prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.73k stars 1.93k forks source link

Error uploading to print host #10750

Closed Drlevinsk closed 1 year ago

Drlevinsk commented 1 year ago

Description of the bug

uploading perfectly fine 30 seconds prior then i suddenly get this. Error uploading to print host: HTTP 403: {"error": {"code": 403, "message": "Forbidden", "traceback": "Traceback (most recent call last):\n\n File \"/usr/share/moonraker/moonraker/components/file_manager/file_manager.py\", line 586, in _finish_gcode_upload\n can_start = await self._handle_operation_check(check_path)\n\n File \"/usr/share/moonraker/moonraker/components/file_manager/file_manager.py\", line 309, in _handle_operation_check\n raise self.server.error(\"File currently in use\", 403)\n\nutils.ServerError: File currently in use\n\n\nDuring handling of the above exception, another exception occurred:\n\n\nTraceback (most recent call last):\n\n File \"/usr/share/moonraker/moonraker/app.py\", line 807, in post\n result = await self.file_manager.finalize_upload(form_args)\n\n File \"/usr/share/moonraker/moonraker/components/file_manager/file_manager.py\", line 451, in finalize_upload\n result = await self._finish_gcode_upload(upload_info)\n\n File \"/usr/share/moonraker/moonraker/components/file_manager/file_manager.py\", line 590, in _finish_gcode_upload\n \"File is loaded, upload not permitted\", 403)\n\nutils.ServerError: File is loaded, upload not permitted\n\n\nDuring handling of the above exception, another exception occurred:\n\n\nTraceback (most recent call last):\n\n File \"/usr/share/moonraker-env/lib/python3.7/site-packages/tornado/web.py\", line 1704, in _execute\n result = await result\n\n File \"/usr/share/moonraker/moonraker/app.py\", line 810, in post\n e.status_code, str(e))\n\ntornado.web.HTTPError: HTTP 403: Forbidden (File is loaded, upload not permitted)\n"}}

Project file & How to reproduce

just when i try to upload using octo.

Checklist of files included above

Version of PrusaSlicer

2.5

Operating system

windows 8

Printer model

ender 3v2, ender 6, ender 5 pro

Drlevinsk commented 1 year ago

have no idea how something like this can literally go from working then not in 30 seconds.

plampix commented 1 year ago

Looks like the file you're uploading is already loaded, and cannot be overwritten. Though PrusaSlicer is reporting the issue, it's clearly caused by moonraker (and probably for a good reason). PrusaSlicer is doing exactly what it should.

Jan-Soustruznik commented 1 year ago

Hello, @Drlevinsk,

Could you check?

Looks like the file you're uploading is already loaded, and cannot be overwritten. Though PrusaSlicer is reporting the issue, it's clearly caused by moonraker (and probably for a good reason). PrusaSlicer is doing exactly what it should.

Thank you, have a nice day.

Drlevinsk commented 1 year ago

all good forgot to close. fat fingers was the issue.lol