-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
files from ChiTuBox slicer (1.9 basic) cause 500 errors #478
Comments
I haven't upgraded my chitubox in a while and I don't really plan on doing that right now... Can you share an example file? |
Here is a link to the file. Sorry for the large size. Let me know if you need any logs as well. https://drive.google.com/file/d/1XlS-GAviC8qAVWSOTrXD6onCuDfYE_Vm/view?usp=sharing |
I did a but more looking into this. It looks like the file can be transferred without issue to the USB Share. I then took the Pi Zero w 2 and hooked it up to the printer, but powered the pi externally so only the Tx and Rx were connected. This is when I again ran into the 500 HTTP error. I do keep seeing this in the log [ 22.350883] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11 This as well [ 6.707316] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43436-sdio f or chip BCM43430/2 |
I was also able to reproduce this on a Raspberry Pi 4. It's the same HTTP 500 error. Oddly enough when I was done with that I loaded the Pi Zero back up, connecting power, ground Rx and Tx and plugged in the USB. It could read the file that was previously saved to the Zero, and I could pull up it's properties. I went and remotely rebooted the Zero and I was back to the HTTP 500 errors. |
Can you share mariner's logs? Are you sure this isn't the same as #453 ? |
I’ve tried pulling the logs but I can’t find them. I know you call out the log file in your troubleshooting guide, but it tells me the file does not exist. Is there a location o can look, or a way to force the log to generate? |
Did you try running |
I can use sudo systemctl status mariner3d.service This is what I get... ● mariner3d.service - mariner3d Printer Controller Nov 07 07:17:39 Mega8K mariner[303]: path / dir_entry.name |
I am beginning to think that this may be related to the ChituBox encryption they implemented on their files and boards. If I load a .CTB file that I sliced with 1.8 prior to the encryption it shows up, and lets me see the file, the thumbnails, layers and other information. If I use a file sliced with 1.9 or pro it throws the 500 error. There is a Chitu SDK (https://www.chitubox.com/en/page/sdk) That you can apply for to work with their new encryption. This may also be similar to what was seen in issue #453 as that firmware calls out (Mars C: Latest Firmware V4.4.1-F2.14 Update log: Compatible with Chitubox Pro and Chitubox 1.9.0) Oddly I have an Elegoo Saturn with firmware 4.4.3 that adds the same support for Chitubox Pro and Chitubox 1.9 and Mariner is working well with that machine. |
Liberating Mars can convert v3 (unencrypted) .ctb file to v4 (Encrypted) .ctb files I've had a brief look at the Liberating Mars source code and modified it to add two stage lift. Possibly decryption can be added to Mariner based on the Liberating Mars encryption. |
How can I help you with these efforts? |
I'm hoping Luiz can do it - I'm not to clued on Python. I'll dive into it if I have to, but it could take a while |
@JoshuaSKane try this fork: https://github.com/BlueFinBima/mariner |
@fcollingwood Im not super familiar with linux. Do you have a link or some documentation i can use to compile/install of mariner? |
Sorry, no clue. |
@fcollingwood Does the mentioned fork contain changes to the file reading at all? I skipped over the changes and couldn't find anyhting that looks like it would... |
No it doesn't. I've hacked ctb.py to handle both encrypted and unencrypted, but likely won't be doing a pull request for it |
@fcollingwood But it isn't published anywhere, is it? I don't mind patching my installation together from different sources... Since I am not familiar with python, the best I could do is replace the file_read_functions with static values - so now at least I get the information if the machine is idle or priting from the api. If you have a version of ctb.py that offers more, I would be very glad if you could share... |
@fcollingwood Any chance to change your mind about this? I must confess I am a little desperate... I even tried contracting a freelance developer to get it implemented and submit an official pull request, but he left me hanging... |
@fcollingwood it would really be great if this project would not die because of not being able to continue due to ctb encryption. |
Full quote, me too |
I've set up mariner on a Raspberry Pi W 2, and a Phrozen Mega8K.
Firmware for Phrozen Mega8K - 4.4.5 - Changes to allow the printer to exclusively read files sliced by CHITUBOX v1.9.0 (and above) as well as CHITUBOX Pro
Link: https://helpcenter.phrozen3d.com/en/content/firmware-download
The setup went without error, and I was able to both connect to the printer via the Rx and Tx connections as well as upload files via the network share.
Once I place one of the .CTB Files on the network share it errors out (Error 500 HTTP). I know they added encryption to the latest version of ChiTuBox and I wonder if this is the root of the problem
The text was updated successfully, but these errors were encountered: