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

Can't upload gcode with thumbnails. #3

Closed
drewsed opened this issue Apr 22, 2020 · 42 comments · Fixed by #8
Closed

Can't upload gcode with thumbnails. #3

drewsed opened this issue Apr 22, 2020 · 42 comments · Fixed by #8

Comments

@drewsed
Copy link

drewsed commented Apr 22, 2020

Hi,

thanks for this great plugin.
I am using
PrusaSlicer Version 2.2.0+w64 and
Octoprint Version 1.4.0

I created a new Printer Profile in PrusaSlicer, that the thumbnails = section appears.
Then I sliced a stl file and uploaded it to Octoprint. It is working fine through PrusaSlicer and drag&drop on the webUI.

Then i added thumbnails = 16x16,220x124 and from that moment on, the upload to Octoprint fails with the following error:

Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine lesbare valide Datei mit einer dieser Erweiterungen ist: .g, .gco, .gcode

If I change the thumbnails = 16x16,220x124 back to thumbnails = the upload is working again.
So, I don't think this is an issue of your plugin, but maybe Octoprint or my configuation.
Any help is appreciated.

Thanks,
Andi

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

Same error for me. Cannot upload gcode that has been generated with printer profiles modified as per your instructions.

Capture

As soon as I revert back to my previous printer profile, the exact same gcode (minus thumbnails) uploads fine.

PrusaSlicer Version 2.2.0+w64 and
Octoprint Version 1.4.0

@jmarc67
Copy link

jmarc67 commented Apr 22, 2020

Strange. I do not have the problem. And like you ruralaccent i have the Dashboard plugin.

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

Strange. I do not have the problem. And like you ruralaccent i have the Dashboard plugin.

Good point: For me I have only this thumbnail plugin installed.

@jmarc67
Copy link

jmarc67 commented Apr 22, 2020

I have also this plugin: "Upload anything" https://plugins.octoprint.org/plugins/uploadanything/
you could try it perhaps it would help you.

@ruralaccent
Copy link

Hmmm. I had to disable and remove upload anything as it was conflicting with something else and preventing me from being able to print uploaded files. I will try it again, but unless something has changed, then I don't think it'll be a solution for me. If it's down to default Octoprint behaviour blocking upload, then think this thumbnail plugin should include the code to be able to upload gcode with thumbnails and not rely on the functionality of another plugins (which is a weakness of the dashboard plugin, for example).

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

I have also this plugin: "Upload anything" https://plugins.octoprint.org/plugins/uploadanything/
you could try it perhaps it would help you.

Just to confirm, I have loaded the Upload Anything plugin and I still cannot upload gcode files with a thumbnail included, made by Prusa Slicer.

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

I installed "Upload Anything" and can upload files via webUI and also the thumbnail is shown correctly, but i cannot upload directly from PrusaSlicer. So this isn't an option for me either.

@jmarc67
Copy link

jmarc67 commented Apr 22, 2020

Ah ok. i didnot try to upload directly from prusaSlicer. Just uploaded files via webUI.
I'll try.

Update: Direct upload is working fine for me.

@jneilliii
Copy link
Owner

jneilliii commented Apr 22, 2020

Anyone getting an upload error like that needs to include their octoprint.log as it will include more detailed errors for me to find a solution.

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

Here are my logs relevant to the upload error...

2020-04-22 11:39:18,717 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 1001.70ms
2020-04-22 11:39:31,010 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 1713.99ms
2020-04-22 11:40:07,624 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 684.03ms
2020-04-22 11:43:19,865 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 813.35ms
2020-04-22 12:06:26,139 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 1068.82ms
2020-04-22 12:51:37,717 - tornado.access - ERROR - 500 POST /api/files/local (::ffff:192.168.0.133) 1704.69ms

@ruralaccent
Copy link

I installed "Upload Anything" and can upload files via webUI and also the thumbnail is shown correctly, but i cannot upload directly from PrusaSlicer. So this isn't an option for me either.

Just to confirm, my issue is the opposite to drewsed, because I can upload thumbnail gcode directly from Prusa Slicer, but cannot upload via webUI.

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

Just to confirm, my issue is the opposite to drewsed, because I can upload thumbnail gcode directly from Prusa Slicer, but cannot upload via webUI.

Weird, what did you try first? I first uploaded from PrusaSlicer and got an error, then I checked uploading via webUI and saw that error you postet as screenshot.

Edit: Do you see the thumbnail after Upload? PrusaSlicer has to be restarted in order to reload the printer profiles you edited. Maybe there is still no thumbnail included?

This is my relevant log:

2020-04-22 10:38:31,852 - octoprint.filemanager.analysis - INFO - Starting analysis of local:Boot/test.gcode
2020-04-22 10:38:31,853 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/andi/OctoPrint/venv/bin/python2.7 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/andi/.octoprint/uploads/Boot/test.gcode
2020-04-22 10:38:31,852 - octoprint.plugins.prusaslicerthumbnails - INFO - File Added: Boot/test.gcode
2020-04-22 10:38:34,150 - octoprint.filemanager.analysis - INFO - Analysis of entry local:Boot/test.gcode finished, needed 2.30s
2020-04-22 10:42:37,856 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 1953.79ms
2020-04-22 10:44:33,461 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 1208.61ms
2020-04-22 10:58:55,249 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 840.45ms
2020-04-22 10:59:45,272 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 284.49ms
2020-04-22 11:03:36,407 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 474.88ms
2020-04-22 11:09:12,532 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 596.30ms
2020-04-22 12:32:38,594 - tornado.access - WARNING - 409 GET /api/printer?history=true&exclude=state,sd (2003:d5:cf02:c000:cd28:e112:a4f9:36b2) 1.25ms
2020-04-22 14:15:33,389 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 326.52ms
2020-04-22 14:17:09,928 - tornado.access - ERROR - 500 POST /api/files/local (2003:d5:cf02:c000:4535:7d5c:47e2:847d) 504.39ms

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

Strangley, whilst I can still upload via Prusa Slicer, the thumbnails are no longer showing in Octoprint UI...

2020-04-22 13:47:10,745 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 12.28ms
2020-04-22 13:47:18,155 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 3.78ms
2020-04-22 13:49:19,922 - octoprint.plugins.prusaslicerthumbnails - INFO - File Added: Overglasses_Frame_V5B_0.3mm_PETG_MK3S_58m.gcode
2020-04-22 13:49:26,914 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 7.17ms

Capture

I move the files from root to a different directory. Thumbnail was fine at first, but then I restarted the server and now I don't see the thumbnail, just a placeholder.

Edit: I did restart Prusa Slicer, so that's not the issue. :)

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

@ruralaccent Please use tripple accent signs for proper formatting.

@jneilliii
Copy link
Owner

What other plugins do you guys have installed? Moving files could break thumbnails.

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

What other plugins do you guys have installed? Moving files could break thumbnails.

Only This and the bundled ones, see:

2020-04-22 10:30:05,858 - octoprint.plugin.core - INFO - 15 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Backup & Restore (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/backup
|  Core Wizard (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Discovery (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/discovery
|  Error Tracking (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  Logging (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/logging
|  Login UI (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/loginui
|  Plugin Manager (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Printer Safety Check (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  PrusaSlicer Thumbnails (0.0.2) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails
|  Software Update (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Virtual Printer (bundled) = /home/andi/OctoPrint/venv/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible

@jneilliii
Copy link
Owner

Can you also share your example gcode files? There's nothing in those logs that give me the detailed errors I was expecting to see.

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

thumbnail.gcode.txt
no_thumbnail.gcode.txt

I just realized, that during a print it is possible to upload files both, via PrusaSlicer and webUI. But at this moment the icon does not show up, maybe because its disabled during print:

grafik

In about 7h I will see if the thumbs are shown...

@ruralaccent
Copy link

What other plugins do you guys have installed? Moving files could break thumbnails.

I have lots of files and dirs on octoprint, so have to be able to move files. However, it did work fine at first.

@jneilliii
Copy link
Owner

But at this moment the icon does not show up, maybe because its disabled during print:

The thumbnail url gets injected into the metadata upon File Analysis completion (print time estimates, etc.) and becomes available at the same time the "Additional Details" button(drop-down arrow) becomes enabled. This analysis is paused while printing, so the button/inline image will show after your print finishes I hope.

@jneilliii
Copy link
Owner

@drewsed looks like your thumbnail gcode works fine. I assume this is related to your multiple instances or because you have an ongoing print.

image

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

Well, everything i wrote here was before starting my print.
I can upload a thumbnail.gcode file with plugin "Upload anything" installed, and then the thumbnail was shown fine. But i cannot upload a thumbnail.gcode file from Prusaslicer, so i removed "Upload anything" plugin.

And now after starting my print, i can upload via PS and webUI (without "Upload anything" plugin), maybe because some checks are disabled during a print as you mentioned.
So i think this issue is on Octoprints side because of security checks on the files. I wonder why Prusa Mini users do not complain about this issue all over the internet, when the thumbnail is enabled by default in this printer profile.

@drewsed looks like your thumbnail gcode works fine. I assume this is related to your multiple instances or because you have an ongoing print.

I do not have multi instances, i just run my webUI on port 5000 rather than 80. But it does not seem to be a problem, because i already have seen a thumbnail once i got a file uploaded.

@jneilliii
Copy link
Owner

I do not have multi instances,

Sorry, I misinterpreted your post on the other issue. Thought you had that as well. Yeah, port number shouldn't effect this at all. I guess the next question is are you uploading to Local Storage or SD card?

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

Sorry

No problem, glad you clarified :). I'm uploadig to Local Storage.

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

I've narrowed it down more on my installation. I can upload fine with a thumbnail to the local root dir (via PS and UI), but it fails whenever I try to upload to a subdir. Fails if I used UI and Prusa Slicer upload.

@CYberiusPT
Copy link

CYberiusPT commented Apr 22, 2020

Hello..

Thanks for this plugin :)

I am having issues as well..

I made the changes in Prusaslicer as mencioned and confirmed the gcode has now the thumbnail code.

Installed the plugin and restarted the service..
I have multiple folders with a few gcodes files of previous prints...
It doesn't show the thumbnail icon as the above.. at first i was thinking that it's because none of that files has the actual thumbnail code as they made before...

After that, unable to upload any file (web or PS). The error was the same as the above...

I deactivated the plugin and it's now the uploading is working fine even with the thumbnail gcode generated..

Activated again, rebooted and the thumbnail icon is still not showing...

The Displaylayerprogress plugin make changes to the gcode during upload... Maybe is something to do with this?

Not really know what info to give for helping to solve this issue..

Thanks!

EDIT: I too always upload to a subdir... didn't test to root... but the thumbnail icon is not showing still..

@jneilliii
Copy link
Owner

Are all you guys having this problem uploading to a sub-folder? That may have something to do with it. Also, DisplayLayerProgress may interfere, does the same thing happen with that plugin disabled? Also the thumbnail will not show until after file analysis, so if you use the option to start the print automatically it will not show the button/inline image right away.

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

I disabled displaylayerprogress last week for another reason, so defo not that with me.

Edit: I also managed to move one gcode file to a sub dir and thumb ok, but any others that are moved loose the thumbnail.

@jneilliii
Copy link
Owner

One last question for now, have to get back to my day job...lol. If you restart OctoPrint are there any errors in the log shown during the initial startup of the application?

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

I have no errors in the whole log except those upload errors i posted above.

Edit: My setup is also still running in a virtualenv version of Python 2.7, because it is recommended due to plugin compatibility...

@ruralaccent
Copy link

ruralaccent commented Apr 22, 2020

Here's my log from start up...

2020-04-22 16:07:27,582 - octoprint.startup - INFO - ******************************************************************************
2020-04-22 16:07:27,584 - octoprint.startup - INFO - Starting OctoPrint 1.4.0
2020-04-22 16:07:27,584 - octoprint.startup - INFO - ******************************************************************************
2020-04-22 16:07:27,990 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2020-04-22 16:07:28,336 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2020-04-22 16:07:28,363 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2020-04-22 16:07:28,791 - octoprint.plugin.core - INFO - Plugin Anonymous Usage Tracking is disabled.
2020-04-22 16:07:29,136 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_telegram/__init__.py:5: ExtDeprecationWarning: Importing flask.ext.babel is deprecated, use flask_babel instead.
  from flask.ext.babel import gettext

2020-04-22 16:07:29,138 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_telegram/__init__.py:6: ExtDeprecationWarning: Importing flask.ext.login is deprecated, use flask_login instead.
  from flask.ext.login import current_user

2020-04-22 16:07:29,711 - octoprint.plugin.core - INFO - Plugin Prusa Leveling Guide (1.0.7) is disabled.
2020-04-22 16:07:30,191 - octoprint.plugin.core - INFO - Plugin DisplayLayerProgress Plugin (1.20.0) is disabled.
2020-04-22 16:07:30,225 - octoprint.startup - INFO - Added settings overlay from plugin dashboard
2020-04-22 16:07:30,227 - octoprint.plugin.core - INFO - Found 42 plugin(s) providing 39 mixin implementations, 73 hook handlers
2020-04-22 16:07:30,477 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2020-04-22 16:07:30,491 - octoprint.server - INFO - Intermediary server started
2020-04-22 16:07:30,492 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2020-04-22 16:07:30,590 - octoprint.plugin.core - INFO - Found 42 plugin(s) providing 39 mixin implementations, 73 hook handlers
2020-04-22 16:07:30,609 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...
2020-04-22 16:07:31,823 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.
2020-04-22 16:07:31,826 - octoprint.server - INFO - Added new permission from plugin action_command_prompt: PLUGIN_ACTION_COMMAND_PROMPT_INTERACT (needs: u"Need(method='role', value=u'plugin_action_command_prompt_interact')")
2020-04-22 16:07:31,827 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_READ (needs: u"Need(method='role', value=u'plugin_announcements_read')")
2020-04-22 16:07:31,828 - octoprint.server - INFO - Added new permission from plugin announcements: PLUGIN_ANNOUNCEMENTS_MANAGE (needs: u"Need(method='role', value=u'plugin_announcements_manage'), Need(method='role', value=u'plugin_announcements_read')")
2020-04-22 16:07:31,829 - octoprint.server - INFO - Added new permission from plugin appkeys: PLUGIN_APPKEYS_ADMIN (needs: u"Need(method='role', value=u'plugin_appkeys_admin')")
2020-04-22 16:07:31,829 - octoprint.server - INFO - Added new permission from plugin backup: PLUGIN_BACKUP_ACCESS (needs: u"Need(method='role', value=u'plugin_backup_access')")
2020-04-22 16:07:31,830 - octoprint.server - INFO - Added new permission from plugin logging: PLUGIN_LOGGING_MANAGE (needs: u"Need(method='role', value=u'plugin_logging_manage')")
2020-04-22 16:07:31,831 - octoprint.server - INFO - Added new permission from plugin pi_support: PLUGIN_PI_SUPPORT_STATUS (needs: u"Need(method='role', value=u'plugin_pi_support_check')")
2020-04-22 16:07:31,832 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_MANAGE (needs: u"Need(method='role', value=u'plugin_pluginmanager_manage')")
2020-04-22 16:07:31,833 - octoprint.server - INFO - Added new permission from plugin pluginmanager: PLUGIN_PLUGINMANAGER_INSTALL (needs: u"Need(method='role', value=u'plugin_pluginmanager_install'), Need(method='role', value=u'plugin_pluginmanager_manage')")
2020-04-22 16:07:31,834 - octoprint.server - INFO - Added new permission from plugin printer_safety_check: PLUGIN_PRINTER_SAFETY_CHECK_DISPLAY (needs: u"Need(method='role', value=u'plugin_printer_safety_check_display')")
2020-04-22 16:07:31,835 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_CHECK (needs: u"Need(method='role', value=u'plugin_softwareupdate_check')")
2020-04-22 16:07:31,835 - octoprint.server - INFO - Added new permission from plugin softwareupdate: PLUGIN_SOFTWAREUPDATE_UPDATE (needs: u"Need(method='role', value=u'plugin_softwareupdate_update')")
2020-04-22 16:07:31,846 - octoprint.printer.standard - INFO - Using print time estimator provided by PrintTimeGenius
2020-04-22 16:07:31,858 - octoprint.plugins.cancelobject - INFO - No beforegcode defined
2020-04-22 16:07:31,859 - octoprint.plugins.cancelobject - INFO - No aftergcode defined
2020-04-22 16:07:32,052 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2020-04-22 16:07:32,097 - octoprint.plugins.excluderegion - INFO - Logging mode set to 'octoprint'
2020-04-22 16:07:32,098 - octoprint.plugins.excluderegion - INFO - Setting update detected: g90InfluencesExtruder=False, clearRegionsAfterPrintFinishes=True, mayShrinkRegionsWhilePrinting=False, loggingMode=octoprint, enteringExcludedRegionGcode=None, exitingExcludedRegionGcode=None, extendedExcludeGcodes={'G4': {"gcode": "G4", "type": "ExcludedGcode", "mode": "exclude", "description": "Ignore all dwell commands in an excluded area to reduce delays while excluding"}, 'M205': {"gcode": "M205", "type": "ExcludedGcode", "mode": "merge", "description": "Record advanced setting changes while excluding and apply the most recent values in a single command after exiting the excluded area"}, 'M204': {"gcode": "M204", "type": "ExcludedGcode", "mode": "merge", "description": "Record default acceleration changes while excluding and apply the most recent values in a single command after exiting the excluded area"}}, atCommandActions={'ExcludeRegion': [{"action": "enable_exclusion", "type": "AtCommandAction", "command": "ExcludeRegion", "parameterPattern": "^\\s*(enable|on)(\\s|$)", "description": "Default action to enable exclusion"}, {"action": "disable_exclusion", "type": "AtCommandAction", "command": "ExcludeRegion", "parameterPattern": "^\\s*(disable|off)(\\s|$)", "description": "Default action to disable exclusion"}]}
2020-04-22 16:07:32,737 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-04-22 16:07:33,371 - octoprint.util.pip - INFO - Version of pip is 19.3.1
2020-04-22 16:07:33,373 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2020-04-22 16:07:33,374 - octoprint.util.pip - INFO - ==> pip ok -> yes
2020-04-22 16:07:33,378 - octoprint.plugin.core - INFO - Initialized 39 plugin implementation(s)
2020-04-22 16:07:33,390 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/__init__.py:791: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if value_source != value_target:

2020-04-22 16:07:33,404 - octoprint.plugin.core - INFO - 42 plugin(s) registered with the system:
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
| !Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
|  Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
|  Autoscroll (0.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_autoscroll
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
|  Bed Visualizer (0.1.13) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_bedlevelvisualizer
|  BetterHeaterTimeout (1.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_BetterHeaterTimeout
|  Cancel Objects (0.4.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_cancelobject
|  Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
|  Cost Estimation (2.1.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_costestimation
|  Dashboard (1.11.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_dashboard
|  Discovery (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/discovery
| !DisplayLayerProgress Plugin (1.20.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress
|  Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
|  Exclude Region (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_excluderegion
|  Filament Manager (0.5.3) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filamentmanager
|  FileManager (0.1.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_filemanager
|  Floating Navbar (0.3.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_floatingnavbar
|  Fullscreen Plugin (0.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_fullscreen
|  GcodeEditor (0.2.8) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_GcodeEditor
|  Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
|  Login UI (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/loginui
|  Navbar Temperature Plugin (0.13) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_navbartemp
|  OctoFlat Theme (0.2.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octoflat
|  OctoPrint-IFTTT (1.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_IFTTT
|  Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
|  Preheat Button (0.5.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat
|  Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
|  PrinterAlerts (0.7.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrinterAlerts
|  PrintTimeGenius Plugin (2.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrintTimeGenius
| !Prusa Leveling Guide (1.0.7) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaLevelingGuide
|  Prusa Mesh Leveling (0.3.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap
|  PrusaSlicer Thumbnails (0.0.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails
|  Simple Emergency Stop (1.0.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_simpleemergencystop
|  Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
|  Tab Order (0.5.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_taborder
|  Telegram Notifications (1.5.0) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_telegram
|  Themeify (1.2.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_themeify
|  TouchUI (0.3.14) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_touchui
|  Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2020-04-22 16:07:33,414 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
|  hardware:
|      cores: 4
|      freq: 1500.0
|      ram: 4041732096
|  os:
|      id: linux
|      platform: linux2
|  plugins:
|      pi_support:
|          model: Raspberry Pi 4 Model B Rev 1.1
|          octopi_version: 0.17.0
|  python:
|      pip: 19.3.1
|      version: 2.7.16
|      virtualenv: /home/pi/oprint
2020-04-22 16:07:33,424 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2020-04-22 16:07:33,446 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2020-04-22 16:07:34,122 - octoprint.server - INFO - Shutting down intermediary server...
2020-04-22 16:07:34,159 - octoprint.server - INFO - Intermediary server shut down
2020-04-22 16:07:34,161 - octoprint.events - INFO - Processing startup event, this is our first event
2020-04-22 16:07:34,162 - octoprint.events - INFO - Adding 1 events to queue that were held back before startup event
2020-04-22 16:07:34,168 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-22 16:07:34,185 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-04-22 16:07:34,186 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2020-04-22 16:07:34,394 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2020-04-22 16:07:34,447 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "Prusa MK3S (No.2)"' for _http._tcp
2020-04-22 16:07:34,484 - octoprint.plugins.discovery - INFO - Registered 'OctoPrint instance "Prusa MK3S (No.2)"' for _octoprint._tcp
2020-04-22 16:07:34,733 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance "Prusa MK3S (No.2)" for SSDP
2020-04-22 16:07:35,077 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-04-22 16:07:35,148 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2020-04-22 16:07:35,411 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2020-04-22 16:07:36,206 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python2 -m pip" as command to invoke pip
2020-04-22 16:07:36,207 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2020-04-22 16:07:36,213 - octoprint.util.pip - INFO - ==> pip ok -> yes
2020-04-22 16:07:36,294 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2020-04-22 16:07:36,451 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.133
2020-04-22 16:07:36,625 - octoprint.plugins.bedlevelvisualizer - INFO - OctoPrint-BedLevelVisualizer loaded!
2020-04-22 16:07:36,629 - octoprint.plugins.dashboard - INFO - Dashboard started
2020-04-22 16:07:36,645 - octoprint.server.util.flask - INFO - Passively logging in user ******* from ::ffff:192.168.0.133
2020-04-22 16:07:36,660 - octoprint.access.users - INFO - Logged in user: *******
2020-04-22 16:07:36,716 - octoprint.plugins.navbartemp - INFO - Broadcom detected
2020-04-22 16:07:37,059 - octoprint.server.util.sockjs - INFO - User ******* logged in on the socket from client ::ffff:192.168.0.133
2020-04-22 16:07:37,100 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-22 16:07:37,740 - octoprint.plugins.themeify - INFO - Themeify initialized.
2020-04-22 16:07:38,168 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://192.168.0.86/'}
2020-04-22 16:07:39,509 - octoprint.plugins.telegram - INFO - An Exception in get final time : unsupported type for timedelta seconds component: unicode
2020-04-22 16:07:41,185 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.133
2020-04-22 16:07:42,398 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.133
2020-04-22 16:07:42,758 - octoprint.server.util.flask - INFO - Passively logging in user ******* from ::ffff:192.168.0.133
2020-04-22 16:07:42,759 - octoprint.access.users - INFO - Logged in user: *******
2020-04-22 16:07:43,687 - octoprint.server.util.sockjs - INFO - User ******* logged in on the socket from client ::ffff:192.168.0.133
2020-04-22 16:07:49,317 - octoprint.server.preemptive_cache - INFO - ... done in 11.15s
2020-04-22 16:07:52,180 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_0.3mm_PETG_MK3S_1h44m.png?20200422153342 (::ffff:192.168.0.133) 8.01ms
2020-04-22 16:07:52,189 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V5B_0.3mm_PETG_MK3S_58m.png?20200422160336 (::ffff:192.168.0.133) 3.49ms
2020-04-22 16:08:04,700 - octoprint.server.util.flask - INFO - Passively logging in user ******* from ::ffff:192.168.0.133
2020-04-22 16:08:04,701 - octoprint.access.users - INFO - Logged in user: *******
2020-04-22 16:08:04,909 - octoprint.server.util.sockjs - INFO - Client connection closed: ::ffff:192.168.0.133
2020-04-22 16:08:11,547 - octoprint.server.util.sockjs - INFO - New connection from client: ::ffff:192.168.0.133
2020-04-22 16:08:11,760 - octoprint.server.util.flask - INFO - Passively logging in user ******* from ::ffff:192.168.0.133
2020-04-22 16:08:11,761 - octoprint.access.users - INFO - Logged in user: *******
2020-04-22 16:08:15,030 - octoprint.server.util.sockjs - INFO - User ******* logged in on the socket from client ::ffff:192.168.0.133

@jneilliii
Copy link
Owner

@ruralaccent is you disable PrintTimeGenius Plugin does the issue remain?

@ruralaccent
Copy link

@ruralaccent is you disable PrintTimeGenius Plugin does the issue remain?

Just tried it. Makes no difference, unfortunately.

@jneilliii
Copy link
Owner

I have successfully re-created the same error by trying to upload to a sub-folder, so at least that might be related to your problem @ruralaccent and @drewsed I will look into why that is happening and get it resolved as soon as possible.

@jneilliii
Copy link
Owner

Alright, I think I have the issue fixed, at least with my testing. If you guys don't mind trying, install an updated version by using the URL below in plugin manager and give it a go.

https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/archive/0.0.3.zip

@safusu
Copy link

safusu commented Apr 22, 2020

Just tested v0.0.3, not getting the 500 internal server error anymore

@ruralaccent
Copy link

Yes. v0.0.3 seems to work for me know. Many thanks :)

@jneilliii
Copy link
Owner

Thanks @safusu, is the thumbnail showing or are you currently printing and the thumbnail url hasn't been updated yet due to file analysis not being completed?

@jneilliii jneilliii mentioned this issue Apr 22, 2020
Merged
@safusu
Copy link

safusu commented Apr 22, 2020

Thanks @safusu, is the thumbnail showing or are you currently printing and the thumbnail url hasn't been updated yet due to file analysis not being completed?

Thumbnail shows properly
image

@jneilliii
Copy link
Owner

Great, I just officially released an update with these changes. You guys don't need to do anything that have already manually updated.

@ruralaccent
Copy link

Thanks for this great plugin and for fixing it so quickly :)

@drewsed
Copy link
Author

drewsed commented Apr 22, 2020

Yes, thanks so much. I think it's not a surprise anymore, now it is working for me fine, too.

Great :-*

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

Successfully merging a pull request may close this issue.

6 participants