OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: Nagilum on March 11, 2021, 04:47:58 am

Title: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Nagilum on March 11, 2021, 04:47:58 am
"opnsense upgraded: 21.1 -> 21.1.3"

- I upgraded it via webgui and ran into the problem.
- To be sure I downloaded the 21.1 DVD iso, bootet, load the current configuration and reinstalled | Problem fix'd.
- Re-ran the update to latest packages & version via webgui again
-> System broken again!

See attachements.
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: mmo on March 11, 2021, 08:53:16 am
Here is the Title Link of all Widgets Broken
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 11, 2021, 10:40:20 am
Looks like JavaScript isn't executing. What browser is this and what is the console error?


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Nagilum on March 11, 2021, 01:41:20 pm
As you say JavaScript: Access fixed for me (though it should still be a bug) by switching to Firefox 86.0 portable.
I was using Internet Explorer 11.4046... as I was using Windows Server 2016 to access it.

 How do I get the console error? Just watching console for errors?
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 11, 2021, 02:29:24 pm
I don't have such a system but the Internet says the browser console is accessed with "F12".


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: mrkev on March 11, 2021, 05:07:58 pm
ignore... already been reported  :D
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Nagilum on March 11, 2021, 05:46:26 pm
ignore... already been reported  :D

To make things consistent, it's common to post the link, if already reported somewhere else.
I didn't see that before.
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 11, 2021, 06:26:32 pm
typical IE incompatibility
its on
Code: [Select]
function upgrade_ui(major = false)in firmware.volt
ie not support default parameter
and
Code: [Select]
Object.assignin views/layouts/default.volt (he throws it for a long time)
also not supported by IE
@Nagilum
if I may, although I'm not a dev and this is easily fixable, but it's really time to think about avoiding using IE for anything other than internal corporate systems. really hard to maintain backward compatibility with IE all the time

Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Nagilum on March 11, 2021, 07:43:57 pm
It's just what you have 'on hand' when you work on a Server (VM). It still worked with the 21 ISO, so one doesn't expect it to break when doing an update.

If you (intentionally) don't support it anymore, put in a browser switch with a warning, so ppl. at least have an info about (and you might have less tickets). ;-)

As I know that current Firefox is working, I can continue work, but that was unlucky and cost me quite some time to debug (and document to report the problem).
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 11, 2021, 08:31:57 pm
Quote
If you (intentionally) don't support it anymore, put in a browser switch with a warning, so ppl
no, it's just my 2 cents
quickly ran through the menu and did not notice other errors in IE
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 11, 2021, 11:11:18 pm
I don't mind removing the default parameter from JS. IE 11 is still supported till August so retaining what we had is reasonable.


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 11, 2021, 11:16:28 pm
Here's the patch https://github.com/opnsense/core/commit/210753253

# opnsense-patch 210753253

Tests welcome. Might be a hotfix candidate if the dashboard situation is being improved anyway.


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: miroco on March 11, 2021, 11:32:09 pm
If you need to remove a patch, do you still run it a second time?

https://forum.opnsense.org/index.php?topic=4682.msg18201#msg18201


miroco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 11, 2021, 11:55:39 pm
Yes, still the same.


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Nagilum on March 12, 2021, 02:44:56 am
Patch works!

I'm overwhelmed from response time and how easy you made it to apply the commit/patch and make one able to test it.
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 12, 2021, 07:30:05 am
@franco
Then maybe it's worth replacing the
Code: [Select]
Object.assignwith a
Code: [Select]
$.extendin the views/layouts/default.volt so that the translation starts to work for bootgrid on IE?  ;)
I can make a pr if you say so
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 12, 2021, 07:48:02 pm
@Nagilum: ok super, I'm adding the patch to the hotfix on Monday just to be safe.

@Fright: sure, sounds great. It might not be added to 21.1.x but 21.7 isn't bad either and people can use manual patching in the meantime if it poses an issue for them.


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 12, 2021, 08:21:22 pm
@franco
done
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Antaris on March 13, 2021, 10:53:28 am
Here still no effect. If i click on some dashboard "title" it shows page not found. Firefox 86.0.
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 13, 2021, 11:02:30 am
@Antaris
different issue
https://forum.opnsense.org/index.php?topic=22026.0
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Antaris on March 13, 2021, 06:50:11 pm
@Antaris
different issue
https://forum.opnsense.org/index.php?topic=22026.0
Thx Fright, with
Code: [Select]
opnsense-patch 45199e3 title links are fixed. Only traffic graph widget not working in Firefox now. Works on Chrome.
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 13, 2021, 07:06:53 pm
@Antaris
different issue
https://forum.opnsense.org/index.php?topic=21997.0
 ;)
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Antaris on March 13, 2021, 07:19:36 pm
Thx again. In my situation i have to use:
opnsense-patch 45199e3
opnsense-patch 4053952
opnsense-patch 3274620
In this order to fix the widget titles and trafic graph widget.
I owe you a beer :)
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: Fright on March 13, 2021, 07:26:41 pm
it's all on the first page of the forum)
we all owe devs a beer (or at least coffee)  ;)
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: franco on March 13, 2021, 07:35:08 pm
We will be hotfixing 3 things on Monday (so that would be 21.1.3_3): dashboard widget load, firmware JS compatibility and dashboard title links.


Cheers,
Franco
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: wurmloch on March 13, 2021, 09:48:31 pm
Hi Franco,

Maybe this https://github.com/opnsense/core/issues/4815 (https://github.com/opnsense/core/issues/4815) too?

Regards, Uwe
Title: Re: Webgui system/firmware broken after Upgrade to 21.1.3
Post by: wurmloch on March 15, 2021, 09:29:39 pm
Unfortunately not.

Cheers, Uwe