CARP Status Widget fail to load after upgrade to 24.7

Started by opns_neuling, September 09, 2024, 09:31:44 AM

Previous topic - Next topic
Hi People,
after upgrade to 24.7 the CARP Status Widget fails to load.
thanks a lot

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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Hi !
I started  from 24.1.10_8 to 24.7 and so on to current version ...

Just check brower's dev console on the matter. Also "current version" is plain ambiguous.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

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,

I'll met my colleague know, thanks!


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

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.

Wooow!
you are right ! :-)
removed orphan IP Alias and voila, it's works!
Thanks a lot!

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
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT