j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
289 stars 39 forks source link

[Bug]: Wrong display of widgets if not Admin account #400

Closed DerMouse closed 2 months ago

DerMouse commented 3 months ago

The problem

When connecting with an Octoprint Admin access account, everything is displayed properly (below, that's when the printer is connected). Shutter-543

But when connected with an non-admin account (here, from Operators group), all widgets are always displayed :

Shutter-541 Shutter-542

Version of OctoPrint

1.9.3

Platform

Raspberry Pi 3B+

Operating system running OctoPrint

Gentoo Linux

Dashboard version

1.19.10

Python version

3.11

Printer model & used firmware incl. version

Prusa MK4

Browser and version of browser, operating system running browser

Firefox 123.0 on Gentoo Linux

Logs and other files needed for analysis

File uploads & additional information

No response

j7126 commented 3 months ago

Hi, can you please upload the octoprint system info bundle If you could also can you open the browser console and see if there are any errors there?

DerMouse commented 3 months ago

I did try (when opening the bug report and a few seconds ago) to upload my system bundle - without success.

Here is the browser console when using a « failing » account. Shutter-545

j7126 commented 3 months ago

I did try (when opening the bug report and a few seconds ago) to upload my system bundle - without success.

Here is the browser console when using a « failing » account.

@DerMouse

hmm, not sure why you can't upload the system info bundle here, that's strange. Without that I don't really have much info to go on.

Could you try to upload it to some cloud storage (google drive or dropbox or something) and send a link?

DerMouse commented 3 months ago

hmm, not sure why you can't upload the system info bundle here, that's strange. Without that I don't really have much info to go on.

Found it. A browser-side plugin doing its stuff.

Here comes the bundle.

octoprint-systeminfo-20240308235816.zip

larp-welt commented 2 months ago

I have the same problem since the update to OctoPrint 1.10.0rc4.

And here my system bundle.

octoprint-systeminfo-20240409191718.zip

j7126 commented 2 months ago

@larp-welt that is most likely a different issue that this, That issue was introduced in octoprint 1.10.0rc4, and is already fixed in dashboard 1.19.11

j7126 commented 2 months ago

@DerMouse as for the issue with non-admin accounts, as of yet I have been unable to replicate the issue on my setup.

Can you share if there is any other unusual things about your setup?

Also it appears that in the logs, there is only a very short log history, and you have not logged in with a non-admin account since the logs were cleared, as only admin logins are present in the logs. Can you sign in with the non-admin account which experiences the issue and then send the system bundle?

larp-welt commented 2 months ago

@j7126 that's true, the new version fixed the problem for.

Thank you very much! Octoprint without the Dashboard is not the same thing! :+1:

DerMouse commented 2 months ago

Hello,

@DerMouse as for the issue with non-admin accounts, as of yet I have been unable to replicate the issue on my setup.

Can you share if there is any other unusual things about your setup?

Since we had similar problems with several other plugins, we got somehow suspicious. We made a brand-new, clean, from scratch install of octoprint (we are installing everything on a Gentoo Linux Raspi, not using OctoPi), and of course all the problems disappeared as by magic.

So our previous installation (from an Octoprint « backup and restore ») must have had something weird causing the misbehaviours.

Sorry for wasting your time. Closing this issue, since for the time being (and hopefully the future) the plugin is working flawlessly.

DerMouse commented 2 months ago

I said... closing this issue.