OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: richard378 on September 12, 2025, 05:48:01 PM

Title: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: richard378 on September 12, 2025, 05:48:01 PM
The folder in https://github.com/opnsense/core/tree/25.7.2/src/opnsense/scripts OPNsense has been deleted from the directory  https://github.com/opnsense/core/tree/25.7.3/src/opnsense/scripts, The breaks Monit monitoring for carp and gateway.  It is absent in version 25.7.3 in github.  Why?  This broke my install upon updating.

It seems it was moved and the GUI did not automatically update the path.

Monit needs to change the file urls in the GUI to
/usr/local/opnsense/scripts/monit/carp_status.php
and
/usr/local/opnsense/scripts/monit/gateway_alert.php
In the Monit settings I think is the fix.
Title: Re: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: hedders on September 14, 2025, 04:37:01 PM
Can anyone confirm this? Does 25.7.3_7 break monit?
Title: Re: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: franco on September 15, 2025, 08:28:40 AM
https://github.com/opnsense/core/issues/9206

report eventually concluded that

https://github.com/opnsense/core/commit/73040a495

works just as designed.


Cheers,
Franco
Title: Re: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: richard378 on September 15, 2025, 12:45:47 PM
Every factory reset this fails me.  The factory reset doesn't fix this issue it reverts to this error.  I don't know what is wrong with my install.

I did run the migrations script in the github issue and it did not fix this problem.  I am not sure what to do for permanent fix.  This is was a fresh install too cause the same issue of installing 27.7.3 also has this issue.  Maybe I need to reinstall fresh again.

Edit: I reinstalled after wiping all disks.  To fix this. 
Title: Re: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: franco on September 15, 2025, 03:05:55 PM
Thanks, I can reproduce this with a factory reset. Looks like this has to do with our new model caching for 25.7.


Cheers,
Franco
Title: Re: Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash
Post by: franco on September 15, 2025, 05:17:13 PM
Hmm, so this was a bit of a fork-to-the-eye moment but it's sorted out:

# opnsense-patch https://github.com/opnsense/core/commit/7ba47b40364

Migrations were carried out in the post-migration stage which meant that 1.0.14 was executed before 1.0.6 and 1.0.7 added the services to be migrated. But this only pertains to old config restores and factory resets.


Cheers,
Franco