Directory deleted from github for Monit scripts makeing monit in 27.7.3_7 crash

Started by richard378, September 12, 2025, 05:48:01 PM

Previous topic - Next topic
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.



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. 

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

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