luizribeiro / mariner

Web interface for controlling MSLA 3D Printers based on Chitu controllers, such as the ones by Elegoo and Phrozen.
MIT License
246 stars 65 forks source link

Error 500 + python error #543

Open jpreculeau opened 2 years ago

jpreculeau commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

same here wonder if anyone has sorted it