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

Error 500 + python error #543

Open
jpreculeau opened this issue Mar 7, 2022 · 2 comments
Open

Error 500 + python error #543

jpreculeau opened this issue Mar 7, 2022 · 2 comments

Comments

@jpreculeau
Copy link

Description
Hello,

I'm on a raspberry PI zéro W2 with the rasbian legacy lite installed.
I've ma,age to install mariner + samba for my Saturn S.
My main problem 👍
When loading my Ip:5000 it's working unless I try to go tot the files section or to upload a file.
Then I got an error message and an endless charging.
the msg :
Something went wrong
The server replied with a 500 HTTP status code.

i've also lauch the command line to check if the service is working and there is a weird last line with an error.

pi@SaturnMariner:~ $ sudo systemctl status mariner3d
● mariner3d.service - mariner3d Printer Controller
Loaded: loaded (/lib/systemd/system/mariner3d.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-03-05 03:05:38 CET; 2 days ago
Main PID: 332 (mariner)
Tasks: 6 (limit: 871)
CGroup: /system.slice/mariner3d.service
└─332 /opt/venvs/mariner3d/bin/python /usr/bin/mariner

Mar 07 20:27:22 SaturnMariner mariner[332]: FILES_DIRECTORY / selected_file
Mar 07 20:27:22 SaturnMariner mariner[332]: File "/opt/venvs/mariner3d/lib/python3.7/site-packages/flask_caching/init.py", line 952, in decorated_function
Mar 07 20:27:22 SaturnMariner mariner[332]: rv = f(*args, **kwargs)
Mar 07 20:27:22 SaturnMariner mariner[332]: File "/opt/venvs/mariner3d/lib/python3.7/site-packages/mariner/server/utils.py", line 20, in read_cached_sliced_model_file
Mar 07 20:27:22 SaturnMariner mariner[332]: return file_format.read(FILES_DIRECTORY / filename)
Mar 07 20:27:22 SaturnMariner mariner[332]: File "/opt/venvs/mariner3d/lib/python3.7/site-packages/mariner/file_formats/ctb.py", line 135, in read
Mar 07 20:27:22 SaturnMariner mariner[332]: ctb_slicer = CTBSlicer.unpack(file.read(CTBSlicer.get_size()))
Mar 07 20:27:22 SaturnMariner mariner[332]: File "/opt/venvs/mariner3d/lib/python3.7/site-packages/typedstruct.py", line 89, in unpack
Mar 07 20:27:22 SaturnMariner mariner[332]: return cls(*unpack(cls.get_format(), buffer))
Mar 07 20:27:22 SaturnMariner mariner[332]: struct.error: unpack requires a buffer of 76 bytes
pi@SaturnMariner:~ $

In the positive side : I can print files form the Pi without problem when using the printer's screen.

@JimKnopfIoT
Copy link

Same here on Mars3. I compiled python 3.7.4 on a RPi4 and copied the files to the Pi Zero 2 W to speed up things. I'm able to start mariner3d. When accessing the Web GUI i only can upload files. I can't see any other menu or information. After uploading i get the Error 500 message. I can't see or remove the files on the Pi Zero virtual USB drive. The files are there. I can delete them by hand in /mnt/usb_share via ssh or WinSCP. The GUI is broken.

@jonboy86
Copy link

same here wonder if anyone has sorted it

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