FS#71621 - [squid] [ARMv8] systemd squid.service fails with result 'timeout'

Attached to Project: Community Packages
Opened by JC Francois (jeancf) - Monday, 26 July 2021, 19:04 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 15 November 2021, 12:16 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:
I have been running squid on a Raspberry Pi on Arch Linux for a couple of years without issue. A while back an update started causing the squid systemd service to time out and fail.
I have identified the update as a bug fix described here: https://github.com/squid-cache/squid/pull/539.

Here is the update in question:
https://github.com/squid-cache/squid/commit/6fa8c66435d55a2e713db0222cdca3a9dccf5bbe#diff-8ee48611fa2907dc60dcadd11cd9480d7e57fc34298c3d3541f702ed29277a40

The modification of the squid.service file has been implemented in the Arch package, however the build configuration switch "--with-systemd" that is also required appears to be missing from the PKGBUILD file https://github.com/archlinux/svntogit-community/blob/packages/squid/trunk/PKGBUILD

Additional info:
Bug that I filed with squid-cache discussing this issue and the solution proposed :"Building with --with-systemd is required if one wants to make sure that Squid supports systemd notifications."
https://bugs.squid-cache.org/show_bug.cgi?id=5145

Can you please add the "--with-systemd" switch to the build configuration?
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 15 November 2021, 12:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  should be fixed in community-testing for x86_64. Cannot do anything for arm.
Comment by loqs (loqs) - Monday, 26 July 2021, 23:13 GMT
Adding --with-systemd made no difference when I added it in a clean chroot. configure detected systemd was not available but did not stop the build.
Adding systemd to makedepends configure then detects systemd support through autodetection and through the option --with-systemd.
Added systemd-libs to depends. Explicitly adding systems also solved  FS#71286 ,  FS#66762  covers why systemd needs to be added to makedepends.

Note squid 4.16-1 was built with systemd installed in the chroot, also has gcc7-7.4.1+20181207-3-x86_64 (custom chroot?) so should not have the issue.
Comment by JC Francois (jeancf) - Tuesday, 27 July 2021, 07:16 GMT
Thank you for your response.

> Note squid 4.16-1 was built with systemd installed in the chroot, also has gcc7-7.4.1+20181207-3-x86_64 (custom chroot?) so should not have the issue.
I confirm that my system runs with systemd 249.1-1 and squid 4.16-1 and it does have the issue. Squid does not issue any notification to systemd which causes the service to time out and fail.
Comment by loqs (loqs) - Tuesday, 27 July 2021, 08:37 GMT
@jeancf squid-4.16-1-x86_64.pkg.tar.zst built with systemd in the chroot not squid-4.16-1-aarch64.pkg.tar.xz that is built without systemd in the chroot?
Comment by Sergej Pupykin (sergej) - Saturday, 07 August 2021, 00:00 GMT
I've closed  FS#71286 , so probably next squid build for arm will work
Comment by Bruand Frédéric (fredolido) - Monday, 09 August 2021, 11:34 GMT
I have the same problem, do you have a workaround while waiting for the new version ?
Comment by Sergej Pupykin (sergej) - Monday, 09 August 2021, 12:11 GMT
You can rebuild package locally with systemd
Comment by JC Francois (jeancf) - Monday, 09 August 2021, 14:06 GMT
I worked around the problem by editing the squid.service file and changing to:
Type=forking
ExecStart=/usr/sbin/squid -sYC
Comment by JC Francois (jeancf) - Thursday, 14 October 2021, 22:29 GMT
  • Field changed: Percent Complete (100% → 0%)
I just installed squid 5.1-1-aarch64 and it is not fixed for me. systemd service still fails with "Job for squid.service failed because a timeout was exceeded."
Comment by Sergej Pupykin (sergej) - Saturday, 13 November 2021, 20:44 GMT
As I understand archlinux-arm has own pkgbuild: https://github.com/archlinuxarm/PKGBUILDs/tree/master/community/squid
Comment by Sergej Pupykin (sergej) - Saturday, 13 November 2021, 20:47 GMT
But I've added systemd to makedep

Loading...