OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: lewald on July 19, 2024, 04:09:03 PM

Title: After update to RC2 Dashboard ist broken.
Post by: lewald on July 19, 2024, 04:09:03 PM
Hi,

after update from RC1 to RC2 my Dashboard is broken. Browser refresh do not help. I think it is the trafic widget.
This is the only one i can“t delete.
(http://dasboard.png)
Title: Re: After update to RC2 Dashboard ist broken.
Post by: julsssark on July 19, 2024, 04:37:20 PM
I am seeing the same behavior. Tried deleting all widgets but could not delete traffic widget. Tried restoring default layout. That put the deleted widgets back but they are still showing the "Failed to load" message. Tried switching from Vicuna to the standard theme.

I am running in a Proxmox VM.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: Monviech (Cedrik) on July 19, 2024, 05:27:52 PM
The browser aggressively caches all widgets. Try to use a incognito tab or another browser.

If that does not work, check the developement console in the browser for errors.

E.g. "failed promise" - "failed to connect" etc... Post them here if you have errors.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: franco on July 19, 2024, 05:59:59 PM
I wonder if this glitched out while having the dashboard open during the update process?

For whatever reason browsers may excessively cache empty HTPP 500 API response errors for no apparent reason and then just tricking the user into thinking the GUI not working at all. I don't really understand why browsers cache this so vehemently as that's most likely not what the server would have returned under healthy conditions.


Cheers,
Franco
Title: Re: After update to RC2 Dashboard ist broken.
Post by: gtwop on July 19, 2024, 06:05:15 PM
Had the same problem wasted a lot of time trying to find a solution until I read the  post by Monviech
Solution: Firefox Open application menu, upper right corner Settings>Privacy & Security>Clear Data>Clear>Clear Now.
Dashboard appeared after re-login.

Thanks
Title: Re: After update to RC2 Dashboard ist broken.
Post by: Monviech (Cedrik) on July 19, 2024, 06:27:22 PM
This might have happened because the data fetching changed multiple times in the Widgets.

First it was "ajaxGet()", then "this.ajaxGet", and in the end "this.ajaxCall".

The browser caches all widgets aggressively. That means that after an update, when the data fetching method has been changed due to developement reasons (e.g. from ajaxGet to ajaxCall or something), all widgets will fail to load. Even when deleted, added etc... until the browser cache is completely cleaned.

I don't think this will happen anymore.

https://github.com/opnsense/core/commit/4b0a24c25fd22f80881c3231b94e9715368a88f4#

Here is the commit where the fetching method changed again.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: doktornotor on July 19, 2024, 06:36:48 PM
Quote from: gtwop on July 19, 2024, 06:05:15 PM
upper right corner Settings>Privacy & Security>Clear Data>Clear>Clear Now.

Ctrl + Shift + Del works in Edge/Chrome/FF for me. A bit easier and faster.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: julsssark on July 19, 2024, 06:47:44 PM
Thank you all. New widgets are loading and looking beautiful after deleting the browser cache.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: franco on July 19, 2024, 06:52:20 PM
> I don't think this will happen anymore.

Browsers: challenge accepted!
Title: Re: After update to RC2 Dashboard ist broken.
Post by: quybaohoang on July 19, 2024, 07:37:31 PM
Mine is broken severely.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: franco on July 19, 2024, 10:09:00 PM
Technical hint here: https://www.reddit.com/r/opnsense/comments/1e71y4g/comment/ldyiwxt/

The lack of cache-safe URLs makes the browser cache the old JS files and breaks the whole thing quickly so that will definitely happen again sooner than later.

Will be looking into it in time for 24.7:

https://github.com/opnsense/core/issues/7244#issuecomment-2240036458


Cheers,
Franco
Title: Re: After update to RC2 Dashboard ist broken.
Post by: phanos on July 25, 2024, 10:31:04 PM
Same problem here. I have cleared browser cache many times, switch different browsers and used also incognito mode, tried on linux, windows and iOS. Result is the same. Most widget is dashboard not loading....

Is there anything I can do???
Title: Re: After update to RC2 Dashboard ist broken.
Post by: franco on July 25, 2024, 10:32:17 PM
Might be the script timeout issue discussed elsewhere.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: phanos on July 25, 2024, 10:47:47 PM
thanks. I think you might be right since I am reading something about timeout when opening the developer console in firefox.

is there a fix??
Title: Re: After update to RC2 Dashboard ist broken.
Post by: franco on July 26, 2024, 08:15:56 AM
Not yet.
Title: Re: After update to RC2 Dashboard ist broken.
Post by: phanos on July 26, 2024, 08:21:21 AM
Thanks. I guess we are stuck with the issue until an update comes and fix it.