Re: [squid-users] Problem writing squid PID file when tproxy is enabled.

From: Henrik Nordstrom <[email protected]>
Date: Tue, 06 Feb 2007 00:13:17 +0100

mån 2007-02-05 klockan 11:41 +0530 skrev Logu:

> 2007/02/03 16:07:22| /usr/local/squid26s9TP/var/logs/squid.pid: (1)
> Operation not permitted
> 2007/02/03 16:07:22| WARNING: Could not write pid file.
>
> But without "tproxy" option it works without any issues. Is it a known
> issue?

Not a known issue, and not expected..

The only related effect that tproxy has on this is that it gives the
process some additional rights it normally doesn't have. But I don't see
how this can cause it to not have permissions to open the pid file..

Is there perhaps a squid.pid file with bad permissions in the directory?
Or missing execute permission for the cache_effective_user on any of the
directories in the path? Or missing write permission on the logs
directory?

grep cache_effective_user squid.conf
ls -ld /usr
ls -ld /usr/local
ls -ld /usr/local/squid26s9TP
ls -ld /usr/local/squid26s9TP/var/
ls -ld /usr/local/squid26s9TP/var/logs/
ls -l /usr/local/squid26s9TP/var/logs/squid.pid

Regards
Henrik

Received on Mon Feb 05 2007 - 16:13:25 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST