OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: opns_neuling on September 09, 2024, 09:31:44 AM

Title: CARP Status Widget fail to load after upgrade to 24.7
Post by: opns_neuling on September 09, 2024, 09:31:44 AM
Hi People,
after upgrade to 24.7 the CARP Status Widget fails to load.
thanks a lot
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: Patrick M. Hausen on September 09, 2024, 09:36:21 AM
Did you update to only 24.7 or all the way to 24.7.3_1? There were quite a few adjustments and fixes to the dashboard and widgets between the two versions.
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: opns_neuling on September 09, 2024, 09:38:44 AM
Hi !
I started  from 24.1.10_8 to 24.7 and so on to current version ...
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: franco on September 09, 2024, 10:48:57 AM
Just check brower's dev console on the matter. Also "current version" is plain ambiguous.


Cheers,
Franco
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: opns_neuling on September 09, 2024, 11:06:29 AM
Hi!,
sorry, now corrected.

I updated step by step from 24.1.10_8 to 24.7.3_1.

browser console:
opnsense_widget_manager.js?v=4bb3464f732685dc:518 Failed to load content for widget: carp, Error: TypeError: Cannot read properties of null (reading 'interface')
    at Carp.js?t=1725872511531:70:70
    at Array.forEach (<anonymous>)
    at Carp.onWidgetTick (Carp.js?t=1725872511531:69:28)
    at async tick (opnsense_widget_manager.js?v=4bb3464f732685dc:487:17)
    at async WidgetManager._onMarkupRendered (opnsense_widget_manager.js?v=4bb3464f732685dc:495:9)
    at async Promise.all (index 4)
    at async WidgetManager._loadDynamicContent (opnsense_widget_manager.js?v=4bb3464f732685dc:423:9)
    at async WidgetManager.initialize (opnsense_widget_manager.js?v=4bb3464f732685dc:116:13)


Thanks a lot,
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: franco on September 09, 2024, 11:09:04 AM
I'll met my colleague know, thanks!


Cheers,
Franco
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: tuto2 on September 09, 2024, 12:04:13 PM
A CARP VIP got deleted here while an IP alias was still present with the same VHID group, this should be a validation.

I'll add a patch that bails if no primary CARP is found, but your leftover IP alias should have its VHID group stripped as well.
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: opns_neuling on September 09, 2024, 05:09:37 PM
Wooow!
you are right ! :-)
removed orphan IP Alias and voila, it's works!
Thanks a lot!
Title: Re: CARP Status Widget fail to load after upgrade to 24.7
Post by: franco on September 09, 2024, 09:05:38 PM
The widget will receive a fix for 24.7.4 to avoid crashing in such cases.

We will likely also add validation to the VIP section, but need to test this more first.


Cheers,
Franco