OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: thebraz on April 10, 2019, 12:11:02 PM

Title: Slow shutdown / restart on reboot
Post by: thebraz on April 10, 2019, 12:11:02 PM
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
Title: Re: Slow shutdown / restart on reboot
Post by: franco on April 11, 2019, 06:34:02 PM
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
Title: Re: Slow shutdown / restart on reboot
Post by: Steven on April 12, 2019, 03:58:59 AM
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.
Title: Re: Slow shutdown / restart on reboot
Post by: thebraz on April 12, 2019, 09:56:15 AM
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