Search squid archive

Can't start Squid with workers via systemd on CentOS 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I installed Squid 4.0.18 on CentOS 7 X86_84 according to http://wiki.squid-cache.org/KnowledgeBase/CentOS#Squid_Beta_release

I add a line "workers 2" to `/etc/squid/squid.conf` (just a copy of `squid.conf.default`) and start squid via `systemctl start squid`, It seems squid is running, except that it
is not listening to the port 3128 (confirmed by netstat).

However, if I start squid in command line (`squid -sYC`), squid does listen to port 3128.

There are some differences in `/var/log/squid/cache.log` for these two cases:

* start via `systemctl start squid`:

2017/03/09 21:12:54 kid3| commBind Cannot bind socket FD 12 to [::]: (98) Address already in use 2017/03/09 21:12:54 kid2| commBind Cannot bind socket FD 21 to [::]: (98) Address already in use 2017/03/09 21:12:54 kid1| commBind Cannot bind socket FD 21 to [::]: (98) Address already in use

* start via `squid -sYC`:

2017/03/09 21:19:28 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 15 flags=1 2017/03/09 21:19:28 kid2| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 15 flags=1

The full logs are attached. Please help.
2017/03/09 21:19:28| creating PID file: /var/run/squid.pid
2017/03/09 21:19:28 kid3| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid3| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:19:28 kid3| Service Name: squid
2017/03/09 21:19:28 kid3| Process ID 3082
2017/03/09 21:19:28 kid3| Process Roles: coordinator
2017/03/09 21:19:28 kid3| With 1024 file descriptors available
2017/03/09 21:19:28 kid3| Initializing IP Cache...
2017/03/09 21:19:28 kid1| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid1| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:19:28 kid1| Service Name: squid
2017/03/09 21:19:28 kid1| Process ID 3084
2017/03/09 21:19:28 kid1| Process Roles: worker
2017/03/09 21:19:28 kid1| With 1024 file descriptors available
2017/03/09 21:19:28 kid3| DNS Socket created at [::], FD 9
2017/03/09 21:19:28 kid1| Initializing IP Cache...
2017/03/09 21:19:28 kid1| DNS Socket created at [::], FD 12
2017/03/09 21:19:28 kid1| DNS Socket created at 0.0.0.0, FD 13
2017/03/09 21:19:28 kid1| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:19:28 kid2| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid3| DNS Socket created at 0.0.0.0, FD 10
2017/03/09 21:19:28 kid3| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:19:28 kid2| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:19:28 kid2| Service Name: squid
2017/03/09 21:19:28 kid3| Please check your /etc/resolv.conf file
2017/03/09 21:19:28 kid2| Process ID 3083
2017/03/09 21:19:28 kid3| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:19:28 kid1| Please check your /etc/resolv.conf file
2017/03/09 21:19:28 kid2| Process Roles: worker
2017/03/09 21:19:28 kid1| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:19:28 kid3| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:19:28 kid2| With 1024 file descriptors available
2017/03/09 21:19:28 kid2| Initializing IP Cache...
2017/03/09 21:19:28 kid3| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:19:28 kid2| DNS Socket created at [::], FD 12
2017/03/09 21:19:28 kid2| DNS Socket created at 0.0.0.0, FD 13
2017/03/09 21:19:28 kid2| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:19:28 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:19:28 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:19:28 kid2| Please check your /etc/resolv.conf file
2017/03/09 21:19:28 kid2| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:19:28 kid3| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:19:28 kid3| Store logging disabled
2017/03/09 21:19:28 kid3| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:19:28 kid3| Target number of buckets: 1008
2017/03/09 21:19:28 kid3| Using 8192 Store buckets
2017/03/09 21:19:28 kid3| Max Mem  size: 262144 KB [shared]
2017/03/09 21:19:28 kid2| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:19:28 kid3| Max Swap size: 0 KB
2017/03/09 21:19:28 kid3| Using Least Load store dir selection
2017/03/09 21:19:28 kid3| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:19:28 kid1| Store logging disabled
2017/03/09 21:19:28 kid2| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:19:28 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:19:28 kid1| Target number of buckets: 1008
2017/03/09 21:19:28 kid1| Using 8192 Store buckets
2017/03/09 21:19:28 kid1| Max Mem  size: 262144 KB [shared]
2017/03/09 21:19:28 kid1| Max Swap size: 0 KB
2017/03/09 21:19:28 kid1| Using Least Load store dir selection
2017/03/09 21:19:28 kid2| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:19:28 kid2| Store logging disabled
2017/03/09 21:19:28 kid2| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:19:28 kid2| Target number of buckets: 1008
2017/03/09 21:19:28 kid2| Using 8192 Store buckets
2017/03/09 21:19:28 kid1| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid2| Max Mem  size: 262144 KB [shared]
2017/03/09 21:19:28 kid2| Max Swap size: 0 KB
2017/03/09 21:19:28 kid2| Using Least Load store dir selection
2017/03/09 21:19:28 kid2| Set Current Directory to /var/spool/squid
2017/03/09 21:19:28 kid3| Finished loading MIME types and icons.
2017/03/09 21:19:28 kid3| Squid plugin modules loaded: 0
2017/03/09 21:19:28 kid3| Adaptation support is off.
2017/03/09 21:19:28 kid1| Finished loading MIME types and icons.
2017/03/09 21:19:28 kid1| HTCP Disabled.
2017/03/09 21:19:28 kid1| Squid plugin modules loaded: 0
2017/03/09 21:19:28 kid1| Adaptation support is off.
2017/03/09 21:19:28 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 15 flags=1
2017/03/09 21:19:28 kid2| Finished loading MIME types and icons.
2017/03/09 21:19:28 kid2| HTCP Disabled.
2017/03/09 21:19:28 kid2| Squid plugin modules loaded: 0
2017/03/09 21:19:28 kid2| Adaptation support is off.
2017/03/09 21:19:28 kid2| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 15 flags=1
2017/03/09 21:19:29 kid3| storeLateRelease: released 0 objects
2017/03/09 21:19:29 kid1| storeLateRelease: released 0 objects
2017/03/09 21:19:29 kid2| storeLateRelease: released 0 objects
2017/03/09 21:12:54| creating PID file: /var/run/squid.pid
2017/03/09 21:12:54 kid3| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid2| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid1| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid1| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:12:54 kid3| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:12:54 kid2| Starting Squid Cache version 4.0.18 for x86_64-redhat-linux-gnu...
2017/03/09 21:12:54 kid1| Service Name: squid
2017/03/09 21:12:54 kid3| Service Name: squid
2017/03/09 21:12:54 kid2| Service Name: squid
2017/03/09 21:12:54 kid3| Process ID 2957
2017/03/09 21:12:54 kid1| Process ID 2959
2017/03/09 21:12:54 kid2| Process ID 2958
2017/03/09 21:12:54 kid3| Process Roles: coordinator
2017/03/09 21:12:54 kid1| Process Roles: worker
2017/03/09 21:12:54 kid2| Process Roles: worker
2017/03/09 21:12:54 kid3| With 16384 file descriptors available
2017/03/09 21:12:54 kid2| With 16384 file descriptors available
2017/03/09 21:12:54 kid1| With 16384 file descriptors available
2017/03/09 21:12:54 kid3| Initializing IP Cache...
2017/03/09 21:12:54 kid2| Initializing IP Cache...
2017/03/09 21:12:54 kid1| Initializing IP Cache...
2017/03/09 21:12:54 kid3| DNS Socket created at [::], FD 9
2017/03/09 21:12:54 kid3| DNS Socket created at 0.0.0.0, FD 10
2017/03/09 21:12:54 kid1| DNS Socket created at [::], FD 12
2017/03/09 21:12:54 kid1| DNS Socket created at 0.0.0.0, FD 13
2017/03/09 21:12:54 kid2| DNS Socket created at [::], FD 12
2017/03/09 21:12:54 kid2| DNS Socket created at 0.0.0.0, FD 13
2017/03/09 21:12:54 kid3| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:12:54 kid2| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:12:54 kid1| Warning: Could not find any nameservers. Trying to use localhost
2017/03/09 21:12:54 kid3| Please check your /etc/resolv.conf file
2017/03/09 21:12:54 kid2| Please check your /etc/resolv.conf file
2017/03/09 21:12:54 kid1| Please check your /etc/resolv.conf file
2017/03/09 21:12:54 kid3| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:12:54 kid2| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:12:54 kid1| or use the 'dns_nameservers' option in squid.conf.
2017/03/09 21:12:54 kid3| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:12:54 kid3| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:12:54 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:12:54 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:12:54 kid2| Logfile: opening log daemon:/var/log/squid/access.log
2017/03/09 21:12:54 kid2| Logfile Daemon: opening log /var/log/squid/access.log
2017/03/09 21:12:54 kid3| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:12:54 kid3| Store logging disabled
2017/03/09 21:12:54 kid3| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:12:54 kid3| Target number of buckets: 1008
2017/03/09 21:12:54 kid3| Using 8192 Store buckets
2017/03/09 21:12:54 kid3| Max Mem  size: 262144 KB [shared]
2017/03/09 21:12:54 kid3| Max Swap size: 0 KB
2017/03/09 21:12:54 kid3| Using Least Load store dir selection
2017/03/09 21:12:54 kid3| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid2| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:12:54 kid2| Store logging disabled
2017/03/09 21:12:54 kid2| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:12:54 kid2| Target number of buckets: 1008
2017/03/09 21:12:54 kid2| Using 8192 Store buckets
2017/03/09 21:12:54 kid2| Max Mem  size: 262144 KB [shared]
2017/03/09 21:12:54 kid2| Max Swap size: 0 KB
2017/03/09 21:12:54 kid2| Using Least Load store dir selection
2017/03/09 21:12:54 kid2| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2017/03/09 21:12:54 kid1| Store logging disabled
2017/03/09 21:12:54 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2017/03/09 21:12:54 kid1| Target number of buckets: 1008
2017/03/09 21:12:54 kid1| Using 8192 Store buckets
2017/03/09 21:12:54 kid1| Max Mem  size: 262144 KB [shared]
2017/03/09 21:12:54 kid1| Max Swap size: 0 KB
2017/03/09 21:12:54 kid1| Using Least Load store dir selection
2017/03/09 21:12:54 kid1| Set Current Directory to /var/spool/squid
2017/03/09 21:12:54 kid3| Finished loading MIME types and icons.
2017/03/09 21:12:54 kid3| Squid plugin modules loaded: 0
2017/03/09 21:12:54 kid3| Adaptation support is off.
2017/03/09 21:12:54 kid3| commBind Cannot bind socket FD 12 to [::]: (98) Address already in use
2017/03/09 21:12:54 kid2| Finished loading MIME types and icons.
2017/03/09 21:12:54 kid2| HTCP Disabled.
2017/03/09 21:12:54 kid2| Squid plugin modules loaded: 0
2017/03/09 21:12:54 kid2| Adaptation support is off.
2017/03/09 21:12:54 kid2| commBind Cannot bind socket FD 21 to [::]: (98) Address already in use
2017/03/09 21:12:54 kid1| Finished loading MIME types and icons.
2017/03/09 21:12:54 kid1| HTCP Disabled.
2017/03/09 21:12:54 kid1| Squid plugin modules loaded: 0
2017/03/09 21:12:54 kid1| Adaptation support is off.
2017/03/09 21:12:54 kid1| commBind Cannot bind socket FD 21 to [::]: (98) Address already in use
2017/03/09 21:12:55 kid3| storeLateRelease: released 0 objects
2017/03/09 21:12:55 kid2| storeLateRelease: released 0 objects
2017/03/09 21:12:55 kid1| storeLateRelease: released 0 objects
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux