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.
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)
--