← Back to team overview

enterprise-support team mailing list archive

[Bug 1943536] [NEW] Number filedescriptors allowed too low for squid on Focal

 

Public bug reported:

On Ubuntu Bionic the maximum number of file descriptors was set to 65535
in system V initscript :

root@eolebase:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
root@eolebase:~# squidclient mgr:info | grep descriptors
	Maximum number of file descriptors:   65535
	Available number of file descriptors: 65529
	Reserved number of file descriptors:   100
root@eolebase:~# grep 65535 /etc/init.d/squid 
ulimit -n 65535
	ulimit -n 65535
root@eolebase:~# 


On Ubuntu Focal the maximum number of file descriptors is not modified by the (new) systemd initscript and errors like *WARNING! Your cache is running out of filedescriptors* ends up happening :

root@eolebase:~# cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
root@eolebase:~# squidclient mgr:info | grep descriptors
stub time| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
	Maximum number of file descriptors:   1024
	Available number of file descriptors: 1019
	Reserved number of file descriptors:   100
root@eolebase:~# 


It is possible to bypass that by overriding the unit but this adaptation should be in native squid systemd unit because it's a regression regression compared to Bionic :

root@eolebase:~# cat >>/etc/systemd/system/squid.service.d/override.conf <<EOF
[Service]
LimitNOFILE=65535
EOF
root@eolebase:~# systemctl daemon-reload
root@eolebase:~# systemctl restart squid.service
root@eolebase:~# squidclient mgr:info | grep descriptors
stub time| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback.
	Maximum number of file descriptors:   65535
	Available number of file descriptors: 65530
	Reserved number of file descriptors:   100
root@eolebase:~#

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: squid 4.10-1ubuntu1.4
ProcVersionSignature: Ubuntu 5.4.0-85.95-generic 5.4.140
Uname: Linux 5.4.0-85-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Sep 14 09:43:12 2021
InstallationDate: Installed on 2021-07-07 (68 days ago)
InstallationMedia: EOLE 2.8.1 "Focal Fossa" - Release amd64 (20210707.1)
SourcePackage: squid
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: squid (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug focal

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to squid in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1943536

Title:
  Number filedescriptors allowed too low for squid on Focal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/1943536/+subscriptions



Follow ups