Hello,
I have Opnsense (up-to-date version) installed in a Virtualbox VM.
Usually it has to be restarted for :
- Upgrades of Opnsense itself
- Updates of the VM host
The shutdown (and often restart) phase is extremely slow:
the execution of the backup scripts
>>> Invoking early script 'backup'
>>> Invoking backup script 'captiveportal'
>>> Invoking backup script 'dhcpleases'
>>> Invoking backup script 'duid'
>>> Invoking backup script 'netflow'
can take minutes.
Is there something I can do to improve the situation ?
Thanks in advance
Best Regards
You can disable individual periodic backups under System: Settings: Miscellaneous. Set them to "disable".
I guess it's Netflow / Insight causing the delay.
Cheers,
Franco
I have the same issue with slow OPNsense shutdown and restarts, can take minutes. Disabling the "Periodic NetFlow Backup" fixed it for me.
Not sure why NetFlow / Insight takes so long to backup. I have OPNsense running on a dedicated Qotom i7-7500U with 8GB RAM and 128SSD, more than enough CPU and I/O capabilities.
I have seen this behavior on other hardware configurations too.
Hello,
Thanks a lot for your kind answers.
I disabled the backup and I'll let you know the results next time I reboot it.
Best Regards