squid stable permissions problems with log files

Bug #420729 reported by Evgeniy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
squid (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: firefox-3.0

Hi i'm newbie in ubuntu
has installe squid proxy

in debuging mode has error message
permissions for parent directory is

FATAL: Cannot open '/var/log/squid/access.log' for writing.
 The parent directory must be writeable by the
 user 'proxy', which is the cache_effective_user

drwxrwxrwx 2 proxy proxy 4096 2009-08-28 23:13 squid

running debug has message again

root@unixoid-desktop:/var/log# sudo squid -NCd10
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
         messages will be sent to 'stderr'.
2009/08/28 23:29:39| WARNING: Closing open FD 2
2009/08/28 23:29:39| Starting Squid Cache version 2.6.STABLE18 for i386-debian-linux-gnu...
2009/08/28 23:29:39| Process ID 7794
2009/08/28 23:29:39| With 1024 file descriptors available
2009/08/28 23:29:39| Using epoll for the IO loop
2009/08/28 23:29:39| Performing DNS Tests...
2009/08/28 23:29:39| Successful DNS name lookup tests...
2009/08/28 23:29:39| DNS Socket created at 0.0.0.0, port 39762, FD 5
2009/08/28 23:29:39| Adding nameserver 195.112.96.34 from /etc/resolv.conf
2009/08/28 23:29:39| Adding nameserver 172.16.254.1 from /etc/resolv.conf
2009/08/28 23:29:39| User-Agent logging is disabled.
2009/08/28 23:29:39| Referer logging is disabled.
FATAL: Cannot open '/var/log/squid/access.log' for writing.
 The parent directory must be writeable by the
 user 'proxy', which is the cache_effective_user
 set in squid.conf.
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted

user "proxy" is the owner of parent directory

ProblemType: Bug
Architecture: i386
Date: Fri Aug 28 23:23:34 2009
DistroRelease: Ubuntu 8.04
Package: firefox-3.0 3.0.13+nobinonly-0ubuntu0.8.04.1
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-19-generic i686

Tags: apport-bug
Revision history for this message
Evgeniy (edgecrus) wrote :
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for reporting this to Ubuntu. I'm moving this to the squid package for triage.

affects: firefox-3.0 (Ubuntu) → squid (Ubuntu)
Revision history for this message
Evgeniy (edgecrus) wrote :

issue was resolved with chmod 777 for /var/log folder and after that debug mode was started and service started too!

After chmod i implement chown to folder with root:root and no further problems were found, so SQUID is now working and configured successfully. Proxy server tested with 2 PCs(one with Wi-fi adapter) acording to acl all resolved.

Thank you for your unswer! Micah

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Which version of squid and Ubuntu are you using?

Thanks
chuck

Changed in squid (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Evgeniy (edgecrus) wrote : Re: [Bug 420729] Re: squid stable permissions problems with log files

Ubuntu 8.10 19build
squid 2.6.stable18
----- Original Message -----
From: "Chuck Short" <email address hidden>
To: <email address hidden>
Sent: Tuesday, September 01, 2009 6:32 PM
Subject: [Bug 420729] Re: squid stable permissions problems with log files

Hi,

Which version of squid and Ubuntu are you using?

Thanks
chuck

** Changed in: squid (Ubuntu)
   Importance: Undecided => Low

** Changed in: squid (Ubuntu)
       Status: New => Incomplete

--
squid stable permissions problems with log files
https://bugs.launchpad.net/bugs/420729
You received this bug notification because you are a direct subscriber
of the bug.

Status in “squid” package in Ubuntu: Incomplete

Bug description:
Binary package hint: firefox-3.0

Hi i'm newbie in ubuntu
has installe squid proxy

in debuging mode has error message
permissions for parent directory is

FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'proxy', which is the cache_effective_user

drwxrwxrwx 2 proxy proxy 4096 2009-08-28 23:13 squid

running debug has message again

root@unixoid-desktop:/var/log# sudo squid -NCd10
WARNING: Cannot write log file: /var/log/squid/cache.log
/var/log/squid/cache.log: Permission denied
         messages will be sent to 'stderr'.
2009/08/28 23:29:39| WARNING: Closing open FD 2
2009/08/28 23:29:39| Starting Squid Cache version 2.6.STABLE18 for
i386-debian-linux-gnu...
2009/08/28 23:29:39| Process ID 7794
2009/08/28 23:29:39| With 1024 file descriptors available
2009/08/28 23:29:39| Using epoll for the IO loop
2009/08/28 23:29:39| Performing DNS Tests...
2009/08/28 23:29:39| Successful DNS name lookup tests...
2009/08/28 23:29:39| DNS Socket created at 0.0.0.0, port 39762, FD 5
2009/08/28 23:29:39| Adding nameserver 195.112.96.34 from /etc/resolv.conf
2009/08/28 23:29:39| Adding nameserver 172.16.254.1 from /etc/resolv.conf
2009/08/28 23:29:39| User-Agent logging is disabled.
2009/08/28 23:29:39| Referer logging is disabled.
FATAL: Cannot open '/var/log/squid/access.log' for writing.
The parent directory must be writeable by the
user 'proxy', which is the cache_effective_user
set in squid.conf.
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted

user "proxy" is the owner of parent directory

ProblemType: Bug
Architecture: i386
Date: Fri Aug 28 23:23:34 2009
DistroRelease: Ubuntu 8.04
Package: firefox-3.0 3.0.13+nobinonly-0ubuntu0.8.04.1
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games LANG=en_US.UTF-8 SHELL=/bin/bashSourcePackage: firefox-3.0Uname: Linux 2.6.24-19-generic i686

Chuck Short (zulcss)
Changed in squid (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Amos Jeffries (yadi) wrote :

This was fixed by the "squid" binary package built from squid3 sources in Ubuntu Xenial and later.

Changed in squid (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.