[squid-users] squid 5.3 frequent crash

Majed Zouhairy m_zouhairy at ckta.by
Mon Feb 14 14:34:13 UTC 2022


i restarted the system and now it shows:

2022/02/14 17:29:50 kid1| Starting Squid Cache version 5.4 for 
x86_64-suse-linux-gnu...
2022/02/14 17:29:50 kid1| Service Name: squid
2022/02/14 17:29:50 kid1| Process ID 1731
2022/02/14 17:29:50 kid1| Process Roles: worker
2022/02/14 17:29:50 kid1| With 4096 file descriptors available
2022/02/14 17:29:50 kid1| Initializing IP Cache...
2022/02/14 17:29:50 kid1| DNS Socket created at [::], FD 8
2022/02/14 17:29:50 kid1| DNS Socket created at 0.0.0.0, FD 9
2022/02/14 17:29:50 kid1| Adding nameserver 10.0.10.15 from /etc/resolv.conf
2022/02/14 17:29:50 kid1| Adding nameserver 10.0.10.14 from /etc/resolv.conf
2022/02/14 17:29:50 kid1| helperOpenServers: Starting 5/32 
'security_file_certgen' processes
2022/02/14 17:29:50 kid1| helperOpenServers: Starting 8/16 'ufdbgclient' 
processes
2022/02/14 17:29:50 kid1| Logfile: opening log 
daemon:/var/log/squid/access.log
2022/02/14 17:29:50 kid1| Logfile Daemon: opening log 
/var/log/squid/access.log
2022/02/14 17:29:50 kid1| Unlinkd pipe opened on FD 41
2022/02/14 17:29:50 kid1| Local cache digest enabled; rebuild/rewrite 
every 3600/3600 sec
2022/02/14 17:29:50 kid1| Store logging disabled
2022/02/14 17:29:50 kid1| Swap maxSize 3072000 + 983040 KB, estimated 
311926 objects
2022/02/14 17:29:50 kid1| Target number of buckets: 15596
2022/02/14 17:29:50 kid1| Using 16384 Store buckets
2022/02/14 17:29:50 kid1| Max Mem  size: 983040 KB
2022/02/14 17:29:50 kid1| Max Swap size: 3072000 KB
2022/02/14 17:29:50 kid1| Rebuilding storage in /var/cache/squid (dirty log)
2022/02/14 17:29:50 kid1| Using Least Load store dir selection
2022/02/14 17:29:50 kid1| Set Current Directory to /var/cache/squid
2022/02/14 17:29:50 kid1| Finished loading MIME types and icons.
2022/02/14 17:29:50 kid1| HTCP Disabled.
2022/02/14 17:29:50 kid1| Pinger socket opened on FD 46
2022/02/14 17:29:50 kid1| Squid plugin modules loaded: 0
2022/02/14 17:29:50 kid1| Adaptation support is off.
2022/02/14 17:29:50 kid1| Accepting SSL bumped HTTP Socket connections 
at conn29 local=[::]:8080 remote=[::] FD 44 flags=9
2022/02/14 17:29:50| pinger: Initialising ICMP pinger ...
2022/02/14 17:29:50| pinger: ICMP socket opened.
2022/02/14 17:29:50| pinger: ICMPv6 socket opened
2022/02/14 17:29:51 kid1| Store rebuilding is 4.63% complete
2022/02/14 17:29:52 kid1| Done reading /var/cache/squid swaplog (86461 
entries)
2022/02/14 17:29:52 kid1| Finished rebuilding storage from disk.
2022/02/14 17:29:52 kid1|     86460 Entries scanned
2022/02/14 17:29:52 kid1|         0 Invalid entries.
2022/02/14 17:29:52 kid1|         0 With invalid flags.
2022/02/14 17:29:52 kid1|     86460 Objects loaded.
2022/02/14 17:29:52 kid1|         0 Objects expired.
2022/02/14 17:29:52 kid1|         1 Objects cancelled.
2022/02/14 17:29:52 kid1|         0 Duplicate URLs purged.
2022/02/14 17:29:52 kid1|         0 Swapfile clashes avoided.
2022/02/14 17:29:52 kid1|   Took 1.18 seconds (73141.02 objects/sec).
2022/02/14 17:29:52 kid1| Beginning Validation Procedure
2022/02/14 17:29:52 kid1|   Completed Validation Procedure
2022/02/14 17:29:52 kid1|   Validated 86451 Entries
2022/02/14 17:29:52 kid1|   store_swap_size = 2764772.00 KB
2022/02/14 17:29:52 kid1| storeLateRelease: released 1 objects
2022/02/14 17:29:52| Pinger exiting.
2022/02/14 17:29:52 kid1| ERROR: failure while accepting a TLS 
connection on conn116 local=10.0.0.18:8080 remote=10.64.0.55:60273 FD 66 
flags=1: 0x560ccf160380*1
     current master transaction: master55
2022/02/14 17:29:55| Pinger exiting.
2022/02/14 17:29:56 kid1| FATAL: check failed: opening()
     exception location: FwdState.cc(663) noteDestinationsEnd
     current master transaction: master57
2022/02/14 17:29:56 kid1| Closing Pinger socket on FD 46
     current master transaction: master57
2022/02/14 17:29:57 kid1| Set Current Directory to /var/cache/squid
2022/02/14 17:29:57 kid1| Starting Squid Cache version 5.4 for 
x86_64-suse-linux-gnu...
2022/02/14 17:29:57 kid1| Service Name: squid
2022/02/14 17:29:57 kid1| Process ID 1782
2022/02/14 17:29:57 kid1| Process Roles: worker
2022/02/14 17:29:57 kid1| With 4096 file descriptors available
2022/02/14 17:29:57 kid1| Initializing IP Cache...
2022/02/14 17:29:57 kid1| DNS Socket created at [::], FD 8
2022/02/14 17:29:57 kid1| DNS Socket created at 0.0.0.0, FD 9
2022/02/14 17:29:57 kid1| Adding nameserver 10.0.10.15 from /etc/resolv.conf
2022/02/14 17:29:57 kid1| Adding nameserver 10.0.10.14 from /etc/resolv.conf
2022/02/14 17:29:57 kid1| helperOpenServers: Starting 5/32 
'security_file_certgen' processes
2022/02/14 17:29:57 kid1| helperOpenServers: Starting 8/16 'ufdbgclient' 
processes
2022/02/14 17:29:57 kid1| Logfile: opening log 
daemon:/var/log/squid/access.log
2022/02/14 17:29:57 kid1| Logfile Daemon: opening log 
/var/log/squid/access.log
2022/02/14 17:29:57 kid1| Unlinkd pipe opened on FD 41
2022/02/14 17:29:57 kid1| Local cache digest enabled; rebuild/rewrite 
every 3600/3600 sec
2022/02/14 17:29:57 kid1| Store logging disabled
2022/02/14 17:29:57 kid1| Swap maxSize 3072000 + 983040 KB, estimated 
311926 objects
2022/02/14 17:29:57 kid1| Target number of buckets: 15596
2022/02/14 17:29:57 kid1| Using 16384 Store buckets
2022/02/14 17:29:57 kid1| Max Mem  size: 983040 KB
2022/02/14 17:29:57 kid1| Max Swap size: 3072000 KB
2022/02/14 17:29:57 kid1| Rebuilding storage in /var/cache/squid (dirty log)
2022/02/14 17:29:57 kid1| Using Least Load store dir selection
2022/02/14 17:29:57 kid1| Set Current Directory to /var/cache/squid
2022/02/14 17:29:57 kid1| Finished loading MIME types and icons.
2022/02/14 17:29:57 kid1| HTCP Disabled.
2022/02/14 17:29:57 kid1| Pinger socket opened on FD 46
2022/02/14 17:29:57 kid1| Squid plugin modules loaded: 0
2022/02/14 17:29:57 kid1| Adaptation support is off.
2022/02/14 17:29:57 kid1| Accepting SSL bumped HTTP Socket connections 
at conn29 local=[::]:8080 remote=[::] FD 44 flags=9
2022/02/14 17:29:57| pinger: Initialising ICMP pinger ...
2022/02/14 17:29:57| pinger: ICMP socket opened.
2022/02/14 17:29:57| pinger: ICMPv6 socket opened
2022/02/14 17:29:57 kid1| Store rebuilding is 4.63% complete
2022/02/14 17:29:58 kid1| Done reading /var/cache/squid swaplog (86480 
entries)
2022/02/14 17:29:58 kid1| Finished rebuilding storage from disk.
2022/02/14 17:29:58 kid1|     86470 Entries scanned
2022/02/14 17:29:58 kid1|         0 Invalid entries.
2022/02/14 17:29:58 kid1|         0 With invalid flags.
2022/02/14 17:29:58 kid1|     86470 Objects loaded.
2022/02/14 17:29:58 kid1|         0 Objects expired.
2022/02/14 17:29:58 kid1|        10 Objects cancelled.
2022/02/14 17:29:58 kid1|         0 Duplicate URLs purged.
2022/02/14 17:29:58 kid1|         0 Swapfile clashes avoided.
2022/02/14 17:29:58 kid1|   Took 1.20 seconds (72075.51 objects/sec).
2022/02/14 17:29:58 kid1| Beginning Validation Procedure
2022/02/14 17:29:58 kid1|   Completed Validation Procedure
2022/02/14 17:29:58 kid1|   Validated 86461 Entries
2022/02/14 17:29:58 kid1|   store_swap_size = 2765044.00 KB
2022/02/14 17:29:58 kid1| storeLateRelease: released 10 objects
2022/02/14 17:29:59| Pinger exiting.
2022/02/14 17:29:59| SendEcho ERROR: sending to ICMPv6 packet to 
[2603:1020:600::213]: (101) Network is unreachable
2022/02/14 17:29:59 kid1| ERROR: failure while accepting a TLS 
connection on conn278 local=10.0.0.18:8080 remote=10.134.10.155:60276 FD 
104 flags=1: 0x55dbf94bda30*1
     current master transaction: master57
2022/02/14 17:30:00 kid1| Starting new sslcrtd_program helpers...
     current master transaction: master59
2022/02/14 17:30:00 kid1| helperOpenServers: Starting 1/32 
'security_file_certgen' processes
     current master transaction: master59
2022/02/14 17:30:00 kid1| Starting new sslcrtd_program helpers...
     current master transaction: master153
2022/02/14 17:30:00 kid1| helperOpenServers: Starting 1/32 
'security_file_certgen' processes
     current master transaction: master153
2022/02/14 17:30:00| SendEcho ERROR: sending to ICMPv6 packet to 
[2001:67c:4e8:1033:5:100:0:a]: (101) Network is unreachable
2022/02/14 17:30:01| Pinger exiting.
2022/02/14 17:30:03 kid1| FATAL: check failed: opening()
     exception location: FwdState.cc(663) noteDestinationsEnd
     current master transaction: master55
2022/02/14 17:30:03 kid1| Closing Pinger socket on FD 46
     current master transaction: master55
2022/02/14 17:30:03| Removing PID file (/run/squid.pid)


sudo squid -z
zouhairy at proxy:~> 2022/02/14 17:32:14 kid1| Set Current Directory to 
/var/cache/squid
2022/02/14 17:32:14 kid1| Creating missing swap directories
2022/02/14 17:32:14 kid1| /var/cache/squid exists
2022/02/14 17:32:14 kid1| /var/cache/squid/00 exists
2022/02/14 17:32:14 kid1| Making directories in /var/cache/squid/00
2022/02/14 17:32:15 kid1| /var/cache/squid/01 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/01
2022/02/14 17:32:15 kid1| /var/cache/squid/02 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/02
2022/02/14 17:32:15 kid1| /var/cache/squid/03 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/03
2022/02/14 17:32:15 kid1| /var/cache/squid/04 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/04
2022/02/14 17:32:15 kid1| /var/cache/squid/05 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/05
2022/02/14 17:32:15 kid1| /var/cache/squid/06 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/06
2022/02/14 17:32:15 kid1| /var/cache/squid/07 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/07
2022/02/14 17:32:15 kid1| /var/cache/squid/08 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/08
2022/02/14 17:32:15 kid1| /var/cache/squid/09 exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/09
2022/02/14 17:32:15 kid1| /var/cache/squid/0A exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0A
2022/02/14 17:32:15 kid1| /var/cache/squid/0B exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0B
2022/02/14 17:32:15 kid1| /var/cache/squid/0C exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0C
2022/02/14 17:32:15 kid1| /var/cache/squid/0D exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0D
2022/02/14 17:32:15 kid1| /var/cache/squid/0E exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0E
2022/02/14 17:32:15 kid1| /var/cache/squid/0F exists
2022/02/14 17:32:15 kid1| Making directories in /var/cache/squid/0F
2022/02/14 17:32:15| Removing PID file (/run/squid.pid)


On 2/14/22 16:53, Alex Rousskov wrote:
> On 2/14/22 08:49, Majed Zouhairy wrote:
>> i have squid 4.17 on the machine assembled from source but i did an 
>> uninstall
>> sudo make uninstall
>> before installing 5.4 from the package manager..should i have stopped 
>> the squid before uninstalling?
>> or is there something else?
> 
> Sorry, I cannot give you the exact steps to prevent two Squids from 
> running on your server -- there are too many unknowns for me to do that.
> 
> If you have a Squid instance running, you should stop it before starting 
> another Squid instance. You can check whether you have a Squid instance 
> running using "ps aux | fgrep squid" or a similar basic command.
> 
> Alex.
> 
> 
>> On 2/14/22 16:41, Alex Rousskov wrote:
>>> On 2/14/22 07:25, Majed Zouhairy wrote:
>>>> now on 5.4 i get:
>>> ...
>>>> 2022/02/14 15:14:33 kid1| commBind Cannot bind socket FD 44 to 
>>>> [::]:8080: (98) Address already in use
>>>> 2022/02/14 15:14:33 kid1| Closing HTTP(S) port [::]:8080
>>>> 2022/02/14 15:14:33 kid1| FATAL: Unable to open HTTP Socket
>>>> 2022/02/14 15:14:33 kid1| Squid Cache (Version 5.4): Terminated 
>>>> abnormally.
>>>
>>> The above is usually the result of a misconfiguration or 
>>> mismanagement: There are two processes trying to listen on the same 
>>> port 8080. That could be two Squid worker processes or a Squid worker 
>>> process competing with a non-Squid process.
>>>
>>> * If your Squid startup scripts include preliminary steps like "squid 
>>> -z", then make sure those scripts wait for that first Squid instance 
>>> to exit before starting the primary Squid instance.
>>>
>>> * If you are using SMP macros or conditionals in squid.conf, please 
>>> share your Squid configuration.
>>>
>>>
>>> HTH,
>>>
>>> Alex.
> 


More information about the squid-users mailing list