Squid continously crashing

Hello. I am using ipfire and the web-proxy for some years now. Today it squid came up with an error and is continously crashing. I hope to find some help here to solve the issue.

I am using the most recent IPFire 2.27 (x86_64) - Core Update 169.

The Web-Proxy log shows entries like the following:

10:19:49	squid[8464]: 	Squid Parent: (squid-1) process 9161 started
10:19:49	squid[8464]: 	Squid Parent: squid-1 process 9161 exited due to signal 6 with status 0
10:19:49	squid[8464]: 	Squid Parent: squid-1 process 9161 will not be restarted for 3600 seconds due to repeated, frequent failures
10:19:49	squid[8464]: 	Exiting due to repeated, frequent failures

When started via ssh with command squid -d 5 --foreground I get the following output, including the potential error around dns-resolving with ip v6 addresses:

2022/09/12 17:41:01| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:41:01| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:41:01 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:41:01 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:41:01 kid1| Current Directory is /root
2022/09/12 17:41:01 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:41:01 kid1| Service Name: squid
2022/09/12 17:41:01 kid1| Process ID 7151
2022/09/12 17:41:01 kid1| Process Roles: worker
2022/09/12 17:41:01 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:41:01 kid1| With 4096 file descriptors available
2022/09/12 17:41:01 kid1| Initializing IP Cache...
2022/09/12 17:41:01 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:41:01 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:41:01 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:41:01 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:41:01 kid1| Logfile: opening log /dev/null
2022/09/12 17:41:01 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:41:01 kid1| Store logging disabled
2022/09/12 17:41:01 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:41:01 kid1| Target number of buckets: 504
2022/09/12 17:41:01 kid1| Using 8192 Store buckets
2022/09/12 17:41:01 kid1| Max Mem  size: 131072 KB
2022/09/12 17:41:01 kid1| Max Swap size: 0 KB
2022/09/12 17:41:01 kid1| Using Least Load store dir selection
2022/09/12 17:41:01 kid1| Current Directory is /root
2022/09/12 17:41:01 kid1| Finished loading MIME types and icons.
2022/09/12 17:41:01 kid1| HTCP Disabled.
2022/09/12 17:41:01 kid1| Squid plugin modules loaded: 0
2022/09/12 17:41:01 kid1| Adaptation support is off.
2022/09/12 17:41:01 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
2022/09/12 17:41:02 kid1| storeLateRelease: released 0 objects
2022/09/12 17:48:21 kid1| DNS error while resolving ipv6.msftconnecttest.com: No valid address records
    current master transaction: master1906
2022/09/12 17:48:21 kid1| DNS error while resolving ipv6.msftconnecttest.com: No valid address records
    current master transaction: master1906
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:36 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:50:36 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:50:36 kid1| Service Name: squid
2022/09/12 17:50:36 kid1| Process ID 8185
2022/09/12 17:50:36 kid1| Process Roles: worker
2022/09/12 17:50:36 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:50:36 kid1| With 4096 file descriptors available
2022/09/12 17:50:36 kid1| Initializing IP Cache...
2022/09/12 17:50:36 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:50:36 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:50:36 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:50:36 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:50:36 kid1| Logfile: opening log /dev/null
2022/09/12 17:50:36 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:50:36 kid1| Store logging disabled
2022/09/12 17:50:36 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:50:36 kid1| Target number of buckets: 504
2022/09/12 17:50:36 kid1| Using 8192 Store buckets
2022/09/12 17:50:36 kid1| Max Mem  size: 131072 KB
2022/09/12 17:50:36 kid1| Max Swap size: 0 KB
2022/09/12 17:50:36 kid1| Using Least Load store dir selection
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Finished loading MIME types and icons.
2022/09/12 17:50:36 kid1| HTCP Disabled.
2022/09/12 17:50:36 kid1| Squid plugin modules loaded: 0
2022/09/12 17:50:36 kid1| Adaptation support is off.
2022/09/12 17:50:36 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:36 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:50:36 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:50:36 kid1| Service Name: squid
2022/09/12 17:50:36 kid1| Process ID 8195
2022/09/12 17:50:36 kid1| Process Roles: worker
2022/09/12 17:50:36 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:50:36 kid1| With 4096 file descriptors available
2022/09/12 17:50:36 kid1| Initializing IP Cache...
2022/09/12 17:50:36 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:50:36 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:50:36 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:50:36 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:50:36 kid1| Logfile: opening log /dev/null
2022/09/12 17:50:36 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:50:36 kid1| Store logging disabled
2022/09/12 17:50:36 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:50:36 kid1| Target number of buckets: 504
2022/09/12 17:50:36 kid1| Using 8192 Store buckets
2022/09/12 17:50:36 kid1| Max Mem  size: 131072 KB
2022/09/12 17:50:36 kid1| Max Swap size: 0 KB
2022/09/12 17:50:36 kid1| Using Least Load store dir selection
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Finished loading MIME types and icons.
2022/09/12 17:50:36 kid1| HTCP Disabled.
2022/09/12 17:50:36 kid1| Squid plugin modules loaded: 0
2022/09/12 17:50:36 kid1| Adaptation support is off.
2022/09/12 17:50:36 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:36 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:50:36 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:50:36 kid1| Service Name: squid
2022/09/12 17:50:36 kid1| Process ID 8205
2022/09/12 17:50:36 kid1| Process Roles: worker
2022/09/12 17:50:36 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:50:36 kid1| With 4096 file descriptors available
2022/09/12 17:50:36 kid1| Initializing IP Cache...
2022/09/12 17:50:36 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:50:36 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:50:36 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:50:36 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:50:36 kid1| Logfile: opening log /dev/null
2022/09/12 17:50:36 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:50:36 kid1| Store logging disabled
2022/09/12 17:50:36 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:50:36 kid1| Target number of buckets: 504
2022/09/12 17:50:36 kid1| Using 8192 Store buckets
2022/09/12 17:50:36 kid1| Max Mem  size: 131072 KB
2022/09/12 17:50:36 kid1| Max Swap size: 0 KB
2022/09/12 17:50:36 kid1| Using Least Load store dir selection
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Finished loading MIME types and icons.
2022/09/12 17:50:36 kid1| HTCP Disabled.
2022/09/12 17:50:36 kid1| Squid plugin modules loaded: 0
2022/09/12 17:50:36 kid1| Adaptation support is off.
2022/09/12 17:50:36 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:36 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:50:36 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:50:36 kid1| Service Name: squid
2022/09/12 17:50:36 kid1| Process ID 8215
2022/09/12 17:50:36 kid1| Process Roles: worker
2022/09/12 17:50:36 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:50:36 kid1| With 4096 file descriptors available
2022/09/12 17:50:36 kid1| Initializing IP Cache...
2022/09/12 17:50:36 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:50:36 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:50:36 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:50:36 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:50:36 kid1| Logfile: opening log /dev/null
2022/09/12 17:50:36 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:50:36 kid1| Store logging disabled
2022/09/12 17:50:36 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:50:36 kid1| Target number of buckets: 504
2022/09/12 17:50:36 kid1| Using 8192 Store buckets
2022/09/12 17:50:36 kid1| Max Mem  size: 131072 KB
2022/09/12 17:50:36 kid1| Max Swap size: 0 KB
2022/09/12 17:50:36 kid1| Using Least Load store dir selection
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Finished loading MIME types and icons.
2022/09/12 17:50:36 kid1| HTCP Disabled.
2022/09/12 17:50:36 kid1| Squid plugin modules loaded: 0
2022/09/12 17:50:36 kid1| Adaptation support is off.
2022/09/12 17:50:36 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:36 kid1| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
2022/09/12 17:50:36 kid1| ERROR: setrlimit: RLIMIT_NOFILE: (1) Operation not permitted
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Starting Squid Cache version 5.6 for x86_64-pc-linux-gnu...
2022/09/12 17:50:36 kid1| Service Name: squid
2022/09/12 17:50:36 kid1| Process ID 8225
2022/09/12 17:50:36 kid1| Process Roles: worker
2022/09/12 17:50:36 kid1| NOTICE: Could not increase the number of filedescriptors
2022/09/12 17:50:36 kid1| With 4096 file descriptors available
2022/09/12 17:50:36 kid1| Initializing IP Cache...
2022/09/12 17:50:36 kid1| DNS Socket created at 0.0.0.0, FD 7
2022/09/12 17:50:36 kid1| Adding domain xyz.org from /etc/resolv.conf
2022/09/12 17:50:36 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2022/09/12 17:50:36 kid1| helperOpenServers: Starting 4/4 'redirect_wrapper' processes
2022/09/12 17:50:36 kid1| Logfile: opening log /dev/null
2022/09/12 17:50:36 kid1| WARNING: log name now starts with a module name. Use 'stdio:/dev/null'
2022/09/12 17:50:36 kid1| Store logging disabled
2022/09/12 17:50:36 kid1| Swap maxSize 0 + 131072 KB, estimated 10082 objects
2022/09/12 17:50:36 kid1| Target number of buckets: 504
2022/09/12 17:50:36 kid1| Using 8192 Store buckets
2022/09/12 17:50:36 kid1| Max Mem  size: 131072 KB
2022/09/12 17:50:36 kid1| Max Swap size: 0 KB
2022/09/12 17:50:36 kid1| Using Least Load store dir selection
2022/09/12 17:50:36 kid1| Current Directory is /root
2022/09/12 17:50:36 kid1| Finished loading MIME types and icons.
2022/09/12 17:50:36 kid1| HTCP Disabled.
2022/09/12 17:50:36 kid1| Squid plugin modules loaded: 0
2022/09/12 17:50:36 kid1| Adaptation support is off.
2022/09/12 17:50:36 kid1| Accepting HTTP Socket connections at conn10 local=192.168.10.1:3128 remote=[::] FD 17 flags=9
assert "false" at line 663
Ip::Address invalid? with isIPv4()=F, isIPv6()=T
ADDRESS: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
(squid-1): Address.cc:663: void Ip::Address::getAddrInfo(addrinfo*&, int) const: Assertion `false' failed.
2022/09/12 17:50:37| Removing PID file (/var/run/squid.pid)

Thank you for your help!

So it worked before without any change?

Disk full? Failing hard drive?

Thank you for your suggestions.

It was working before and started failing without any change to the config or the server.

The disk has 270 GB more free space and SMART-Info states it is alright - and I would expect more errors than this single one from full or failing disk. Everything else is working fine (IPfire is also used as OpenVPN, DNS and DHCP-Server).

One more thing: The “Cached Memory” increased today (maximum today 20%, normally around 1%). Nevertheless the total memory consumption was never above 25% (8 GB installed).

Previous post with similar logs: Squid webproxy crashing in fresh install on RPi3 Model B

1 Like

If the hard disk is not failing (keep in mind, I never had an hard disk fail on me with the courtesy of a warning from SMART monitor) still the problem has to do with memory.

By the way, why is the swap only in ram? Could it be that it needs more memory than available in ram, and cannot get it because the way it was configured?

Swap maxSize 0 + 131072 KB, estimated 10082 objects
[...]
Max Mem  size: 131072 KB
Max Swap size: 0 KB

To reduce the wearing level of an SSD. I have it disabled, too. But the max mem size is really small. What’s the amount of ram available?

1 Like

8 GB Ram in total, never filled more than 20%, normally < 10% memory usage.
I have not configured anything special for squid. I just installed IPFire, activated the web proxy and used the web ui config options.

Well the most easy way will be to backup the system, reinstall and restore.

However I would set the max size something like 2048 MB.

2 Likes