building squid 4 terminates with fatal error but doesnt say the error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

building squid 4 terminates with fatal error but doesnt say the error

robert k Wild
hi all,

im building squid 4 by following this guide -


and when i try to run it, i get this error -

[root@squid ~]# /usr/local/squid/sbin/squid -NCd1
2019/11/26 00:43:59| Created PID file (/usr/local/squid/var/run/squid.pid)
2019/11/26 00:43:59| Set Current Directory to /usr/local/squid/var/cache/squid
2019/11/26 00:43:59| Starting Squid Cache version 4.9 for x86_64-pc-linux-gnu...
2019/11/26 00:43:59| Service Name: squid
2019/11/26 00:43:59| Process ID 1774
2019/11/26 00:43:59| Process Roles: master worker
2019/11/26 00:43:59| With 1024 file descriptors available
2019/11/26 00:43:59| Initializing IP Cache...
2019/11/26 00:43:59| DNS Socket created at [::], FD 3
2019/11/26 00:43:59| DNS Socket created at 0.0.0.0, FD 9
2019/11/26 00:43:59| Adding domain robo84.home from /etc/resolv.conf
2019/11/26 00:43:59| Adding nameserver 8.8.8.8 from /etc/resolv.conf
2019/11/26 00:43:59| Logfile: opening log daemon:/usr/local/squid/var/logs/access.log
2019/11/26 00:43:59| Logfile Daemon: opening log /usr/local/squid/var/logs/access.log
2019/11/26 00:43:59| Store logging disabled
2019/11/26 00:43:59| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2019/11/26 00:43:59| Target number of buckets: 1008
2019/11/26 00:43:59| Using 8192 Store buckets
2019/11/26 00:43:59| Max Mem  size: 262144 KB
2019/11/26 00:43:59| Max Swap size: 0 KB
2019/11/26 00:43:59| Using Least Load store dir selection
2019/11/26 00:43:59| Set Current Directory to /usr/local/squid/var/cache/squid
2019/11/26 00:43:59| Finished loading MIME types and icons.
2019/11/26 00:43:59| HTCP Disabled.
2019/11/26 00:43:59| Squid plugin modules loaded: 0
2019/11/26 00:43:59| Adaptation support is off.
2019/11/26 00:43:59| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 12 flags=9
2019/11/26 00:44:00| logfileHandleWrite: daemon:/usr/local/squid/var/logs/access.log: error writing ((32) Broken pipe)
2019/11/26 00:44:00| Closing HTTP(S) port [::]:3128
2019/11/26 00:44:00| storeDirWriteCleanLogs: Starting...
2019/11/26 00:44:00|   Finished.  Wrote 0 entries.
2019/11/26 00:44:00|   Took 0.00 seconds (  0.00 entries/sec).
2019/11/26 00:44:00| FATAL: I don't handle this error well!
2019/11/26 00:44:00| Squid Cache (Version 4.9): Terminated abnormally.
2019/11/26 00:44:00| Removing PID file (/usr/local/squid/var/run/squid.pid)

if anyone could help out, it would be very grateful

thanks,
rob

--
Regards,

Robert K Wild.

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: building squid 4 terminates with fatal error but doesnt say the error

Amos Jeffries
Administrator
On 26/11/19 1:55 pm, robert k Wild wrote:

> hi all,
>
> im building squid 4 by following this guide -
>
> https://wiki.squid-cache.org/ConfigExamples/Intercept/SslBumpExplicit
>
> and when i try to run it, i get this error -
>
> [root@squid ~]# /usr/local/squid/sbin/squid -NCd1
> 2019/11/26 00:43:59| Created PID file (/usr/local/squid/var/run/squid.pid)
> 2019/11/26 00:43:59| Set Current Directory to
> /usr/local/squid/var/cache/squid
> 2019/11/26 00:43:59| Starting Squid Cache version 4.9 for
> x86_64-pc-linux-gnu...
> 2019/11/26 00:43:59| Service Name: squid
> 2019/11/26 00:43:59| Process ID 1774
> 2019/11/26 00:43:59| Process Roles: master worker
> 2019/11/26 00:43:59| With 1024 file descriptors available
> 2019/11/26 00:43:59| Initializing IP Cache...
> 2019/11/26 00:43:59| DNS Socket created at [::], FD 3
> 2019/11/26 00:43:59| DNS Socket created at 0.0.0.0, FD 9
> 2019/11/26 00:43:59| Adding domain robo84.home from /etc/resolv.conf
> 2019/11/26 00:43:59| Adding nameserver 8.8.8.8 from /etc/resolv.conf

Not a good idea to use this resolver with SSL-Bump features. See
<https://wiki.squid-cache.org/KnowledgeBase/HostHeaderForgery>.


> 2019/11/26 00:43:59| Logfile: opening log
> daemon:/usr/local/squid/var/logs/access.log
> 2019/11/26 00:43:59| Logfile Daemon: opening log
> /usr/local/squid/var/logs/access.log
...
> 2019/11/26 00:44:00| logfileHandleWrite:
> daemon:/usr/local/squid/var/logs/access.log: error writing ((32) Broken
> pipe)

There is your error message.

Check that the folder path all exists and has the correct permissions
for Squid's low-privilege account to create the access.log file there.


> 2019/11/26 00:44:00| FATAL: I don't handle this error well!
> 2019/11/26 00:44:00| Squid Cache (Version 4.9): Terminated abnormally.


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: building squid 4 terminates with fatal error but doesnt say the error

robert k Wild
nice one Amos, i did -

touch /usr/local/squid/var/logs/access.log
chmod 777 /usr/local/squid/var/logs/access.log

On Tue, 26 Nov 2019 at 06:11, Amos Jeffries <[hidden email]> wrote:
On 26/11/19 1:55 pm, robert k Wild wrote:
> hi all,
>
> im building squid 4 by following this guide -
>
> https://wiki.squid-cache.org/ConfigExamples/Intercept/SslBumpExplicit
>
> and when i try to run it, i get this error -
>
> [root@squid ~]# /usr/local/squid/sbin/squid -NCd1
> 2019/11/26 00:43:59| Created PID file (/usr/local/squid/var/run/squid.pid)
> 2019/11/26 00:43:59| Set Current Directory to
> /usr/local/squid/var/cache/squid
> 2019/11/26 00:43:59| Starting Squid Cache version 4.9 for
> x86_64-pc-linux-gnu...
> 2019/11/26 00:43:59| Service Name: squid
> 2019/11/26 00:43:59| Process ID 1774
> 2019/11/26 00:43:59| Process Roles: master worker
> 2019/11/26 00:43:59| With 1024 file descriptors available
> 2019/11/26 00:43:59| Initializing IP Cache...
> 2019/11/26 00:43:59| DNS Socket created at [::], FD 3
> 2019/11/26 00:43:59| DNS Socket created at 0.0.0.0, FD 9
> 2019/11/26 00:43:59| Adding domain robo84.home from /etc/resolv.conf
> 2019/11/26 00:43:59| Adding nameserver 8.8.8.8 from /etc/resolv.conf

Not a good idea to use this resolver with SSL-Bump features. See
<https://wiki.squid-cache.org/KnowledgeBase/HostHeaderForgery>.


> 2019/11/26 00:43:59| Logfile: opening log
> daemon:/usr/local/squid/var/logs/access.log
> 2019/11/26 00:43:59| Logfile Daemon: opening log
> /usr/local/squid/var/logs/access.log
...
> 2019/11/26 00:44:00| logfileHandleWrite:
> daemon:/usr/local/squid/var/logs/access.log: error writing ((32) Broken
> pipe)

There is your error message.

Check that the folder path all exists and has the correct permissions
for Squid's low-privilege account to create the access.log file there.


> 2019/11/26 00:44:00| FATAL: I don't handle this error well!
> 2019/11/26 00:44:00| Squid Cache (Version 4.9): Terminated abnormally.


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users


--
Regards,

Robert K Wild.

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: building squid 4 terminates with fatal error but doesnt say the error

Amos Jeffries
Administrator
On 26/11/19 10:54 pm, robert k Wild wrote:
> nice one Amos, i did -
>
> touch /usr/local/squid/var/logs/access.log
> chmod 777 /usr/local/squid/var/logs/access.log
>


This will break again when the log rotation happens. The *directory*
(folder path) is the important piece to get right. That is
/usr/local/squid/var/logs in your case.


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: building squid 4 terminates with fatal error but doesnt say the error

robert k Wild
Amos,

thanks so much for all your help!!!!! :)

On Tue, 26 Nov 2019 at 11:58, Amos Jeffries <[hidden email]> wrote:
On 26/11/19 10:54 pm, robert k Wild wrote:
> nice one Amos, i did -
>
> touch /usr/local/squid/var/logs/access.log
> chmod 777 /usr/local/squid/var/logs/access.log
>


This will break again when the log rotation happens. The *directory*
(folder path) is the important piece to get right. That is
/usr/local/squid/var/logs in your case.


Amos
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users


--
Regards,

Robert K Wild.

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users