Skip to content
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

Saturn 2 500 HTTP status code. #86

Open
Sijder opened this issue Nov 29, 2022 · 5 comments
Open

Saturn 2 500 HTTP status code. #86

Sijder opened this issue Nov 29, 2022 · 5 comments

Comments

@Sijder
Copy link

Sijder commented Nov 29, 2022

Description
Something went wrong
The server replied with a 500 HTTP status code.

When clicking "print"

from the page code itself I am getting

GET chrome-extension://koefamocflkgebgibkkjpmpmdioeplip/content/styles.css net::ERR_FILE_NOT_FOUND

GET http://mariner:5001/stream.mjpg net::ERR_CONNECTION_REFUSED

main.js:2 POST http://mariner:5000/api/printer/command/start_print?filename=_tail.ctb 500 (Internal Server Error)

Details:

  • Mariner Version: 0.4.0
  • Printer Model: Elegoo Saturn 2
  • Raspberry Pi Model: RPi Zero 2 W

Additional context

I have so far tried to resolder the pins on the pi and also plug them into crx and ctx pins instead of rx and tx

@raz0rf0x
Copy link

raz0rf0x commented Dec 4, 2022

Check your configuration in /etc/mariner/config.toml.
I don't have things fully working with the Saturn 2 yet (USB gadget is being difficult) but the error you're receiving is probably because the serial port should be /dev/ttyAMA0.

Also, it's pretty clearly stated that this is for firmware 4.4.3 and the Saturn 2 is shipping with 4.5.0 .

EDIT:
I would recommend using Kenzillla's Mariner and Samba Autoinstaller script. You'll want to comment out line 155 so it doesn't try to install vanilla Mariner3D. I swear I'm doing all the steps correctly but I can't get the USB gadget to work. The script did the job for me.

Finally.. You will see some errors here and there but this version seems to be working well with these modifications.

@Sijder
Copy link
Author

Sijder commented Dec 4, 2022

Check your configuration in /etc/mariner/config.toml. I don't have things fully working with the Saturn 2 yet (USB gadget is being difficult) but the error you're receiving is probably because the serial port should be /dev/ttyAMA0.

Also, it's pretty clearly stated that this is for firmware 4.4.3 and the Saturn 2 is shipping with 4.5.0 .

EDIT: I would recommend using Kenzillla's Mariner and Samba Autoinstaller script. You'll want to comment out line 155 so it doesn't try to install vanilla Mariner3D. I swear I'm doing all the steps correctly but I can't get the USB gadget to work. The script did the job for me.

Finally.. You will see some errors here and there but this version seems to be working well with these modifications.

config.toml.txt

Here is my config.toml. I actually used the autoinstaller script and I also manually installed the correct version of python as instructed here luizribeiro#493 (comment), because default autoinstaller wouldnt finish correctly.

And just so I understand, you are getting something back from the Saturn 2? Meaning you see the status of the print and can also start/stop it?

@raz0rf0x
Copy link

raz0rf0x commented Dec 5, 2022

serial_port = "/dev/ttyAMA0"
This what I had to do for serial to work on a raspi zero w (the old one). Be sure to turn uart on and all that.

I can now control the printer and get statuses. The problem I have now is that during the print I'm getting that 500 error.

FYI, that 500 error is basically an unhandled exception. I have been running mariner in the foreground so I can see whats happening as it's happening. Currently it is falling out when it tries to display layer progress.

It seems as if when mariner is analyzing the file it is failing to find the "end_byte_offset_by_layer" list. Basically it is supposed to be the byte at which each layer ends. The printer only gives back what byte out of total bytes that its on. The initial file analysis gives a list of the locations of each layer in the file and then mariner tries to match up the current byte given from status to that list.

I'm going to put up another issue regarding that but we're a little closer.

@raz0rf0x
Copy link

raz0rf0x commented Dec 5, 2022

I also made my own fork. It's running, but lacking layer tracking. You can take a look at it. You'll have to edit your own files.
https://github.com/raz0rf0x/mariner_saturn2

@DonChooluvit
Copy link

I also made my own fork. It's running, but lacking layer tracking. You can take a look at it. You'll have to edit your own files. https://github.com/raz0rf0x/mariner_saturn2

How can I load your fork? I would love to test it on my Saturn 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants