control: retitle -1 On boot squid.service starts but doesn't work
Here at work I have a similar setup in respect to the opening message:
Debian Sid, NetworkManager, Squid 4.1. But very different Squid
configuration.
While the final effect is the same (squid does not start on boot and I
have to manually restart later), the reason looks different. Analyzing
the logs (attached the last one), here is the recurring message:
------------
commBind Cannot bind socket FD 12 to 192.168.1.29:8080: (99) Cannot
assign requested address
------------
Here nss-lookup.target looks active:
------------
# systemctl list-units --type target -all | grep nss
nss-lookup.target loaded active active Host and Network Name Lookups
nss-user-lookup.target loaded active active User and Group Name Lookups
------------
Both at work and in the opening message, the surprising thing is that
Squid looks in a "started" status: I cannot see FAIL message on boot. In
other word Squid starts but doesn't report to systemd that something is
failed.
Cesare.
lug 11 12:53:56 barone systemd[1]: Starting Squid Web Proxy Server...
lug 11 12:53:56 barone squid[833]: setsid failed: (1) Operation not permitted
lug 11 12:53:56 barone squid[833]: 2018/07/11 12:53:56| Created PID file
(/var/run/squid.pid)
lug 11 12:53:56 barone squid[833]: Squid Parent: will start 1 kids
lug 11 12:53:56 barone squid[833]: Squid Parent: (squid-1) process 906 started
lug 11 12:53:56 barone squid[833]: 2018/07/11 12:53:56 kid1| Set Current
Directory to /var/spool/squid
lug 11 12:53:56 barone squid[833]: 2018/07/11 12:53:56 kid1| Creating missing
swap directories
lug 11 12:53:56 barone squid[833]: 2018/07/11 12:53:56 kid1| No cache_dir
stores are configured.
lug 11 12:53:56 barone squid[833]: Squid Parent: squid-1 process 906 exited
with status 0
lug 11 12:53:56 barone squid[833]: 2018/07/11 12:53:56| Removing PID file
(/var/run/squid.pid)
lug 11 12:53:56 barone systemd[1]: squid.service: Can't open PID file
/var/run/squid.pid (yet?) after start: No such file or directory
lug 11 12:53:56 barone squid[1007]: Created PID file (/var/run/squid.pid)
lug 11 12:53:56 barone squid[1007]: Squid Parent: will start 1 kids
lug 11 12:53:56 barone squid[1007]: Squid Parent: (squid-1) process 1011 started
lug 11 12:53:56 barone systemd[1]: Started Squid Web Proxy Server.
lug 11 12:53:56 barone squid[1011]: Set Current Directory to /var/spool/squid
lug 11 12:53:56 barone squid[1011]: Starting Squid Cache version 4.1 for
x86_64-pc-linux-gnu...
lug 11 12:53:56 barone squid[1011]: Service Name: squid
lug 11 12:53:56 barone squid[1011]: Process ID 1011
lug 11 12:53:56 barone squid[1011]: Process Roles: worker
lug 11 12:53:56 barone squid[1011]: With 1024 file descriptors available
lug 11 12:53:56 barone squid[1011]: Initializing IP Cache...
lug 11 12:53:56 barone squid[1011]: DNS Socket created at [::], FD 5
lug 11 12:53:56 barone squid[1011]: DNS Socket created at 0.0.0.0, FD 9
lug 11 12:53:56 barone squid[1011]: Adding domain internal.bernispa.com from
/etc/resolv.conf
lug 11 12:53:56 barone squid[1011]: Adding nameserver 192.168.1.66 from
/etc/resolv.conf
lug 11 12:53:56 barone squid[1011]: Adding nameserver 192.168.1.77 from
/etc/resolv.conf
lug 11 12:53:56 barone squid[1011]: helperOpenServers: Starting 0/5
'digest_file_auth' processes
lug 11 12:53:56 barone squid[1011]: helperOpenServers: No 'digest_file_auth'
processes needed.
lug 11 12:53:56 barone squid[1011]: Logfile: opening log
stdio:/var/log/squid/access.log
lug 11 12:53:56 barone squid[1011]: Local cache digest enabled; rebuild/rewrite
every 3600/3600 sec
lug 11 12:53:56 barone squid[1011]: Store logging disabled
lug 11 12:53:56 barone squid[1011]: Swap maxSize 0 + 262144 KB, estimated 20164
objects
lug 11 12:53:56 barone squid[1011]: Target number of buckets: 1008
lug 11 12:53:56 barone squid[1011]: Using 8192 Store buckets
lug 11 12:53:56 barone squid[1011]: Max Mem size: 262144 KB
lug 11 12:53:56 barone squid[1011]: Max Swap size: 0 KB
lug 11 12:53:56 barone squid[1011]: Using Least Load store dir selection
lug 11 12:53:56 barone squid[1011]: Set Current Directory to /var/spool/squid
lug 11 12:53:56 barone squid[1011]: Finished loading MIME types and icons.
lug 11 12:53:56 barone squid[1011]: commBind Cannot bind socket FD 12 to
192.168.1.29:8080: (99) Cannot assign requested address
lug 11 12:53:56 barone squid[1011]: HTCP Disabled.
lug 11 12:53:56 barone squid[1011]: Pinger socket opened on FD 14
lug 11 12:53:56 barone squid[1011]: Configuring Parent 81.174.18.233/3128/0
lug 11 12:53:56 barone squid[1011]: Squid plugin modules loaded: 0
lug 11 12:53:56 barone squid[1011]: Adaptation support is off.
lug 11 12:53:56 barone squid[1011]: Accepting HTTP Socket connections at
local=[::1]:8080 remote=[::] FD 11 flags=9
lug 11 12:53:57 barone squid[1011]: storeLateRelease: released 0 objects