OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: errored out on February 02, 2021, 09:23:59 am

Title: [Solved] Services not starting after upgrade to 21.1
Post by: errored out on February 02, 2021, 09:23:59 am
All services were working under 20.7.8.  After upgrading to 21.1, multiple services are not starting after reboot.  Have rebooted multiple times, waited for booting to complete (waited 20 mins.) with service not starting.

flowd_aggregate
samplicate
squid
suricata
syslog-ng

Can anyone help out?
Title: Re: [Solved] Services not starting after upgrade to 21.1
Post by: errored out on February 07, 2021, 03:31:25 am

Update Resolution:

After hours of testing; reinstalling os, changing settings. Squid is the cause.  I'm guessing the order of starting the services has squid before the other services.  And as Squid was taking time to change ownership of folders, all the other processes were still queued waiting to be processed.
Title: Re: [Solved] Services not starting after upgrade to 21.1
Post by: schnipp on February 07, 2021, 06:16:50 pm
Under some circumstances startup of squid takes very long time. Maybe it's related to https://forum.opnsense.org/index.php?topic=20307.0 (https://forum.opnsense.org/index.php?topic=20307.0)
Title: Re: [Solved] Services not starting after upgrade to 21.1
Post by: dinguz on February 07, 2021, 06:51:12 pm
Try disabling blacklists in squid, they make startup of squid slow, and require lots of memory. This may not be a problem on server hardware, but it is quite taxing to network appliances and such.
Title: Re: [Solved] Services not starting after upgrade to 21.1
Post by: errored out on February 17, 2021, 03:07:10 am
Thanks for the tips, I have confirmed squid was the issue.  The large set of directories and sub-directories was so large, it cause what appeared to be latency in the startup process.  In actuality, it was squid taking ownership of all the files during each boot.  Until squid had completed the directory change, it had paused the remaining startup process.