FS#60636 - [squid] setsid failed: (1) Operation not permitted

Attached to Project: Community Packages
Opened by Eric Wang (enihcam) - Monday, 29 October 2018, 23:15 GMT
Last edited by Sergej Pupykin (sergej) - Thursday, 21 February 2019, 15:08 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

squid[586]: setsid failed: (1) Operation not permitted

Additional info:
* package version(s)
* config and/or log files etc.

squid 4.4
Kernel 4.18.16
systemd 239.2-1
BTRFS

Steps to reproduce:
upgrade squid to 4.4 and restart service
This task depends upon

Closed by  Sergej Pupykin (sergej)
Thursday, 21 February 2019, 15:08 GMT
Reason for closing:  Upstream
Additional comments about closing:  and should be fixed
Comment by Eric Wang (enihcam) - Sunday, 11 November 2018, 05:43 GMT
Just read this from https://github.com/squid-cache/squid/blob/master/src/main.cc:

if (!opt_foreground)
GoIntoBackground();

// TODO: Fails with --foreground if the calling process is process group
// leader, which is always (?) the case. Should probably moved to
// GoIntoBackground and executed only after successfully forking
if (setsid() < 0) {
int xerrno = errno;
syslog(LOG_ALERT, "setsid failed: %s", xstrerr(xerrno));
}

I guess it is an upstream bug.
Comment by Eric Wang (enihcam) - Sunday, 11 November 2018, 05:46 GMT
or maybe we can remove

ExecStartPre=/usr/sbin/squid --foreground -z

from squid.service?
Comment by Marcos Mello (marcosfrm) - Thursday, 03 January 2019, 22:16 GMT
https://bugs.squid-cache.org/show_bug.cgi?id=4914

You can ignore the error. It is harmless.

Do not remove ExecStartPre, otherwise cache dir structure will not be created on new installations.

Loading...