Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275349

Re: Squid on Debian 12 not staring via systemd

From Jeffrey Walton <noloader@gmail.com>
Newsgroups linux.debian.user
Subject Re: Squid on Debian 12 not staring via systemd
Date 2024-12-06 19:20 +0100
Message-ID <JQL5L-efFs-15@gated-at.bofh.it> (permalink)
References (1 earlier) <JQDKV-e8nh-5@gated-at.bofh.it> <JQJnj-eezG-5@gated-at.bofh.it> <JQK9H-ef5F-15@gated-at.bofh.it> <JQK9H-ef5F-17@gated-at.bofh.it> <JQK9H-ef5F-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Dec 6, 2024 at 11:56 AM Timothy M Butterworth
<timothy.m.butterworth@gmail.com> wrote:
>
> On Fri, Dec 6, 2024 at 11:48 AM Jeffrey Walton <noloader@gmail.com> wrote:
>>
>> On Fri, Dec 6, 2024 at 11:29 AM Timothy M Butterworth
>> <timothy.m.butterworth@gmail.com> wrote:
>> >
>> > On Fri, Dec 6, 2024 at 11:08 AM Jeffrey Walton <noloader@gmail.com> wrote:
>> >>
>> >> On Fri, Dec 6, 2024 at 8:27 AM Timothy M Butterworth
>> >> <timothy.m.butterworth@gmail.com> wrote:
>> >> > [...]
>> >> > After troubleshooting a bit I found that squid is not binding a socket to 3128 when started manually.
>> >> >
>> >> > root@hp-debian:/home/tmb# squid -a 3128
>> >> > 2024/12/06 05:01:01| FATAL: vector::_M_range_check: __n (which is 1) >= this->size() (which is 0)
>> >> >
>> >> > squid -f /etc/squid/squid.conf
>> >> > executes but no listening socket is established.
>> >>
>> >> A similar bug report at <https://bugs.squid-cache.org/show_bug.cgi?id=5121>.
>> >
>> > Thanks, I just updated the bug report. At least it is not just me having problems.
>>
>> Squid is not my specialty, but a couple of thoughts...
>>
>> Does setting http_port to 3128 in squid.conf help?
>
> This setting is already set. I tried setting it to 127.0.0.1:3128 as well, with no luck.
>>
>> Does Squid have a user and group, like squid:squid? Would running with
>> the account (rather than root) succeed?
>
> 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.

The other thing that comes to mind is SELinux, but Debian does not
enable it by default. If it is a SELinux issue, then something like
`semanage port -a -t http_port_t -p tcp 3128` may help. (I'm not sure
what the object type should be for Squid. I'm guessing it is
http_port_t).

Jeff

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 11:10 +0100
  Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 11:30 +0100
    Re: Squid on Debian 12 not staring via systemd Jeffrey Walton <noloader@gmail.com> - 2024-12-06 17:30 +0100
      Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 18:20 +0100
        Re: Squid on Debian 12 not staring via systemd Jeffrey Walton <noloader@gmail.com> - 2024-12-06 19:20 +0100
          Re: Squid on Debian 12 not staring via systemd Charles Curley <charlescurley@charlescurley.com> - 2024-12-06 20:10 +0100
      Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 22:40 +0100
        Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-06 23:40 +0100
          Re: Squid on Debian 12 not staring via systemd "Andrew M.A. Cater" <amacater@einval.com> - 2024-12-07 00:20 +0100
            Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 12:40 +0100
          Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 04:00 +0100
            Re: Squid on Debian 12 not staring via systemd Andy Smith <andy@strugglers.net> - 2024-12-07 04:20 +0100
            Re: Squid on Debian 12 not staring via systemd Greg Wooledge <greg@wooledge.org> - 2024-12-07 04:40 +0100
            Re: Squid on Debian 12 not staring via systemd Timothy M Butterworth <timothy.m.butterworth@gmail.com> - 2024-12-07 05:00 +0100
  Re: Squid on Debian 12 not staring via systemd Stefan Monnier <monnier@iro.umontreal.ca> - 2024-12-06 17:00 +0100

csiph-web