[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Squid on Debian 12 not staring via systemd





On Fri, Dec 6, 2024 at 9:37 PM Timothy M Butterworth <timothy.m.butterworth@gmail.com> wrote:


On Fri, Dec 6, 2024 at 5:20 PM Timothy M Butterworth <timothy.m.butterworth@gmail.com> wrote:


On Fri, Dec 6, 2024 at 4:19 PM Timothy M Butterworth <timothy.m.butterworth@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. 

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. 


Jeff


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

Tim

I built squid 6.12 from source and now I get a new error:

root@hp-debian:/usr/local/squid/sbin# ./squid -z -a 3128 -N -Y -C -f /usr/local/squid/etc/squid.conf
2024/12/06 21:35:05| Processing Configuration File: /usr/local/squid/etc/squid.conf (depth 0)
2024/12/06 21:35:05| Created PID file (/usr/local/squid/var/run/squid.pid)
2024/12/06 21:35:05| storeDirWriteCleanLogs: Starting...
2024/12/06 21:35:05|   Finished.  Wrote 0 entries.
2024/12/06 21:35:05|   Took 0.00 seconds (  0.00 entries/sec).
2024/12/06 21:35:05| FATAL: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists

2024/12/06 21:35:05| Squid Cache (Version 6.12): Terminated abnormally.
2024/12/06 21:35:05| Removing PID file (/usr/local/squid/var/run/squid.pid)

I got Squid 6.12 to work but only listening on IPv4. I am not sure how to get it on both IPv4 and IPv6, any suggestions? 
netstat -ln
tcp        0      0 127.0.0.1:3128          0.0.0.0:*               LISTEN  

I made the following modifications to: /usr/local/squid/etc/squid.conf
# Squid normally listens to port 3128
http_port 127.0.0.1:3128

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /usr/local/squid/var/cache/squid 100 16 256

cache_effective_user proxy
cache_effective_group proxy

I also fixed some permission issues for the disk cache:

chown -R proxy:proxy /usr/local/squid/var/cache/squid/

I am calling it a night. I will see if I can get IPv6 working tomorrow.

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

Reply to: