• Re: Squid on Debian 12 not staring via systemd

    From Stefan Monnier@21:1/5 to All on Fri Dec 6 17:00:01 2024
    Is anyone running Squid on Debian 12? I installed it but I can not get it
    to start via systemd.

    FWIW, I'm running Squid on Debian 12, yes.
    I don't know if I start it via systemd, but it's started at boot
    presumably by systemd and `systemctl status squid` gives mean sane output.
    [ and it does serve connections on port 3128. ]


    Stefan

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Jeffrey Walton on Fri Dec 6 20:10:01 2024
    On Fri, 6 Dec 2024 13:01:37 -0500
    Jeffrey Walton <noloader@gmail.com> wrote:


    Squid has a service account: "proxy" and group "proxy".

    That may be an issue. Years ago I had MySQL failures because MySQL
    startup scripts checked UID and GID were mysql. Trying to start the
    server as root led to failures. You may be experiencing something
    similar. You might try `su proxy` to run as the squid user.

    Not necessarily. Looking at the service file for squid shows, inter
    alia:

    [Service]
    Type=notify
    PIDFile=/run/squid.pid
    Group=proxy
    RuntimeDirectory=squid
    RuntimeDirectoryMode=0775
    ExecStartPre=/usr/sbin/squid --foreground -z
    ExecStart=/usr/sbin/squid --foreground -sYC
    ExecReload=/bin/kill -HUP $MAINPID
    KillMode=mixed
    NotifyAccess=all

    That suggests tha you want to run as user root, group squid. Indeed:

    root@issola:~# ps aux | grep -i squid
    root 2217 0.0 0.2 66372 17516 ? Ss Nov26 0:00 /usr/sbin/squid --foreground -sYC
    proxy 2220 0.0 0.2 71824 23064 ? S Nov26 1:53 (squid-1) --kid squid-1 --foreground -sYC
    proxy 2244 0.0 0.0 5644 1168 ? S Nov26 0:00 (logfile-daemon) /var/log/squid/access.log
    root 285132 0.0 0.0 6332 2120 pts/1 S+ 11:46 0:00 grep --colour=auto -i squid
    root@issola:~#




    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to Timothy M Butterworth on Sat Dec 7 00:20:01 2024
    On Fri, Dec 06, 2024 at 05:20:02PM -0500, Timothy M Butterworth wrote:
    On Fri, Dec 6, 2024 at 4:19 PM Timothy M Butterworth < timothy.m.butterworth@gmail.com> wrote:



    According to squid upstream version 5.7 is no longer supported. Version
    6.7 has a workaround fix for the problem. The latest release version is 6.12. I downloaded the source code for 6.12 and I am going to try it out.


    6.12 is built in Testing/trixie - you may find that you can either install
    just squid from there or at least use the Debian files as a basis for repackaging.

    There doesn't seem to be a squid in debian-backports.

    All the very best, as ever,

    Andy
    (amacater@debian.org)



    Jeff



    I would like to thank everyone who helped me out with this. I submitted a
    bug report with debian.

    Tim

    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
    ⠈⠳⣄⠀⠀

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Timothy M Butterworth on Sat Dec 7 04:40:01 2024
    On Fri, Dec 06, 2024 at 21:37:35 -0500, Timothy M Butterworth wrote:
    2024/12/06 21:35:05| *FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists *

    A quick google search gives me <https://squid-users.squid-cache.narkive.com/CcSDst54/fatal-ipc-mem-segment-create-failed-to-shm-open-squid-cf-queues-shm-17-file-exists>
    which says:

    It seems the squid-cf__queues.shm file already exists in /dev/shm/
    and Squid has not permission to overwrite the file.

    So, I'd check that. Obviously with "metadata" instead of "queues" in
    the filename, to match your variant of the error message.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andy Smith@21:1/5 to Timothy M Butterworth on Sat Dec 7 04:20:01 2024
    Hi,

    On Fri, Dec 06, 2024 at 09:37:35PM -0500, Timothy M Butterworth wrote:
    2024/12/06 21:35:05| *FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists *

    Are there files in /dev/shm left from a previous run that are owned by a different user?

    Thanks,
    Andy

    --
    https://bitfolk.com/ -- No-nonsense VPS hosting

    You dont have to be illiterate to use the Internet, but it help's.
    — Mike Bristow

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)