paukstelis / octoprint_deploy

Bash script for rapid deployment of multiple octoprint instance on a single machine
MIT License
394 stars 39 forks source link

PrettyGcode plugin not working #53

Open swheettaos opened 1 year ago

swheettaos commented 1 year ago

So I got everything working after created a new instance using your script. Some plugins had to be reinstalled (I had a few).. that being said, the only thing I can't get working is the prettygcode plugin. I really like this plugin so I hope I can figure out whats going on. When I print it just doen't show the gcode, and has a NaN on the scroll bar. I tried removing and reinstalling it but no difference. The plugin is this one and I'm using the latest release https://github.com/Kragrathea/OctoPrint-PrettyGCode anything for me to try? It hasn't been updated in a while but it was working great until I switched to multiple instances.

paukstelis commented 1 year ago

It works perfectly fine for me with my octoprint_deploy setup. Have you rebooted after installing it?

stephenwheet commented 1 year ago

Multiple times. I did link the instances for gcode uploads. I wonder if that is a problem. I changed my mind and I thought I deleted the shared upload folder. So I might have broke it or it’s messing with the plug-in? I do I make sure the linked uploads is disabled.

paukstelis commented 1 year ago

Tough to say. You need to go through each instance and in the settings change the OctoPrint->Folders paths.

swheettaos commented 1 year ago

Ok I’ll try that. You don’t have the shared gcode folder right?

Stephen


From: paukstelis @.> Sent: Thursday, February 2, 2023 6:54:10 PM To: paukstelis/octoprint_deploy @.> Cc: swheettaos @.>; Author @.> Subject: Re: [paukstelis/octoprint_deploy] PrettyGcode plugin not working (Issue #53)

Tough to say. You need to go through each instance and in the settings change the OctoPrint->Folders paths.

— Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaukstelis%2Foctoprint_deploy%2Fissues%2F53%23issuecomment-1414739443&data=05%7C01%7C%7Cce5015256c054059253608db0591ed1f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109896525594974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PZGNRxkP1S2EHkw4TKToDz6gNV%2F9V3DrlEE6L9k7zGM%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAM3C4ENUHLQMLUGIL6SFLC3WVRXNFANCNFSM6AAAAAAUPWIXQQ&data=05%7C01%7C%7Cce5015256c054059253608db0591ed1f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109896525594974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dQkeP4LOXBZhLJCakX5p907WPRRoqNfN1KWDo8haEIU%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

paukstelis commented 1 year ago

Ok I’ll try that. You don’t have the shared gcode folder right? Stephen ____ From: paukstelis @.> Sent: Thursday, February 2, 2023 6:54:10 PM To: paukstelis/octoprint_deploy @.> Cc: swheettaos @.>; Author @.> Subject: Re: [paukstelis/octoprint_deploy] PrettyGcode plugin not working (Issue #53) Tough to say. You need to go through each instance and in the settings change the OctoPrint->Folders paths. — Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fpaukstelis%2Foctoprint_deploy%2Fissues%2F53%23issuecomment-1414739443&data=05%7C01%7C%7Cce5015256c054059253608db0591ed1f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109896525594974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=PZGNRxkP1S2EHkw4TKToDz6gNV%2F9V3DrlEE6L9k7zGM%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAM3C4ENUHLQMLUGIL6SFLC3WVRXNFANCNFSM6AAAAAAUPWIXQQ&data=05%7C01%7C%7Cce5015256c054059253608db0591ed1f%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C638109896525594974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dQkeP4LOXBZhLJCakX5p907WPRRoqNfN1KWDo8haEIU%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

No, not using a shared folder in the case where I tested.

swheettaos commented 1 year ago

nope that wasn't it .. bummer .. still not working .. verified the location for uploads was under the instance folder location. I just can't get it working. Completely uninstalled .. rebooted .. reinstalled, rebooted .. same thing.. doesn't show like it used to.

paukstelis commented 1 year ago

You might check if you have errors in the browser console. Use Developer Tools, typically ctrl+shift+I.

paukstelis commented 1 year ago

OK. I believe I have figured out the problem (though no solution as of yet). The issue is with haproxy. I think prettygcode is using some hardwired links that get broken by haproxy. If you connect to your instance(s) using the ip:port (rather than /instancename/) I think it will work.

paukstelis commented 1 year ago

Ok. Known (old) issue it appears: https://github.com/Kragrathea/OctoPrint-PrettyGCode/issues/132 Perhaps the developer has abandoned the plugin.

stephenwheet commented 1 year ago

Ok, are you not using haproxy? You said it’s working for you.

paukstelis commented 1 year ago

I have haproxy setup, but my bookmarks are rather old and still point to ip:port, so it worked fine.

jneilliii commented 1 year ago

You guys could try this patched version using relative paths instead of root paths.

Copy/Paste the following URL in plugin manager > get more > ...from URL and click install.

https://github.com/jneilliii/OctoPrint-PrettyGCode/archive/refs/heads/patch-2.zip
swheettaos commented 1 year ago

Woot!! worked like a champ!! Thank you!

jneilliii commented 1 year ago

Thanks for confirming. I submitted the change as a PR to the plugin's repository, but there were others that have been sitting in there a while, so seems plugin may be abandoned.

swheettaos commented 1 year ago

Thanks for confirming. I submitted the change as a PR to the plugin's repository, but there were others that have been sitting in there a while, so seems plugin may be abandoned.

Thats a bummer .. it's a great plugin.