Ubuntu 14.04
Squid 3.5.5
Hi -
I'm having pretty much exactly the same problem as Priya. I didn't see a resolution so I'm picking up the thread.
I've installed and run squid 3.5.5 previously w/o a problem using:
sudo apt-get install squid
I want to filter by mac address though, so I purged that install and re-built squid with the --enable-arp-acl flag. This is when the problems begin. I've provided what was requested from Priya below. I'm grateful for any help.
Thanks,
Deiter
Output from sudo /usr/local/squid/sbin/squid -NCd1:
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log/usr/local/squid/var/logs/cache.log: Permission deniedmessages will be sent to 'stderr'.2015/08/28 14:47:27| cannot change current directory to /var/spool/squid3: (2) No such file or directory2015/08/28 14:47:27| Current Directory is /home/ubuntuWARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log/usr/local/squid/var/logs/cache.log: Permission deniedmessages will be sent to 'stderr'.2015/08/28 14:47:27| WARNING: Closing open FD 22015/08/28 14:47:27| Starting Squid Cache version 3.5.5 for armv7l-unknown-linux-gnueabihf...2015/08/28 14:47:27| Service Name: squid2015/08/28 14:47:27| Process ID 21182015/08/28 14:47:27| Process Roles: master worker2015/08/28 14:47:27| With 1024 file descriptors available2015/08/28 14:47:27| Initializing IP Cache...2015/08/28 14:47:27| DNS Socket created at [::], FD 72015/08/28 14:47:27| DNS Socket created at 0.0.0.0, FD 82015/08/28 14:47:27| Adding nameserver 75.75.75.75 from /etc/resolv.conf2015/08/28 14:47:27| Adding nameserver 75.75.76.76 from /etc/resolv.conf2015/08/28 14:47:27| Adding domain hsd1.ca.comcast.net from /etc/resolv.conf2015/08/28 14:47:27| Adding domain localdomain from /etc/resolv.conf2015/08/28 14:47:27| Adding domain localdomain from /etc/resolv.conf2015/08/28 14:47:27| Adding nameserver 192.168.1.1 from /etc/resolv.conf2015/08/28 14:47:27| Logfile: opening log daemon:/usr/local/squid/var/logs/access.log2015/08/28 14:47:27| Logfile Daemon: opening log /usr/local/squid/var/logs/access.logfopen: Permission denied2015/08/28 14:47:27| Store logging disabled2015/08/28 14:47:27| Swap maxSize 0 + 262144 KB, estimated 20164 objects2015/08/28 14:47:27| Target number of buckets: 10082015/08/28 14:47:27| Using 8192 Store buckets2015/08/28 14:47:27| Max Mem size: 262144 KB2015/08/28 14:47:27| Max Swap size: 0 KB2015/08/28 14:47:27| Using Least Load store dir selection2015/08/28 14:47:27| cannot change current directory to /var/spool/squid3: (2) No such file or directory2015/08/28 14:47:27| Current Directory is /home/ubuntu2015/08/28 14:47:27| Finished loading MIME types and icons.2015/08/28 14:47:27| HTCP Disabled.2015/08/28 14:47:27| Squid plugin modules loaded: 02015/08/28 14:47:27| Adaptation support is off.2015/08/28 14:47:27| Accepting HTTP Socket connections at local=[::]:8080 remote=[::] FD 11 flags=92015/08/28 14:47:28| logfileHandleWrite: daemon:/usr/local/squid/var/logs/access.log: error writing ((32) Broken pipe)2015/08/28 14:47:28| Closing HTTP port [::]:80802015/08/28 14:47:28| storeDirWriteCleanLogs: Starting...2015/08/28 14:47:28| Finished. Wrote 0 entries.2015/08/28 14:47:28| Took 0.00 seconds ( 0.00 entries/sec).FATAL: I don't handle this error well!Squid Cache (Version 3.5.5): Terminated abnormally.CPU Usage: 0.290 seconds = 0.220 user + 0.070 sysMaximum Resident Size: 34480 KBPage faults with physical i/o: 0
Output from squid -v:
Output from ls -al /usr/local/squid/var/logs/access.log:Squid Cache: Version 3.5.5Service Name: squidconfigure options: '--prefix=/usr' '--localstatedir=/var' '--libexecdir=/lib/squid' '--srcdir=.' '--datadir=/share/squid' '--sysconfdir=/etc/squid' '--with-default-user=proxy' '--with-logdir=/var/log' '--with-pidfile=/var/run/squid.pid' '--enable-arp-acl' --enable-ltdl-convenience
-rw-rw---- 1 squid squid_admin 5262306 Jun 29 21:47 /usr/local/squid/var/logs/access.log
Output from ls -al /usr/local/squid/var/logs:
Output from ls -al /usr/local/squid/var:total 5224drwxrwxrwx 2 squid squid_admin 4096 Aug 28 09:35 .drwxr-xr-x 5 root root 4096 Jun 12 06:57 ..-rw-rw---- 1 squid squid_admin 5262306 Jun 29 21:47 access.log-rw-rw---- 1 squid squid_admin 67925 Jun 27 02:47 cache.log
I adjusted the paths above from what was asked of Priya to jibe with my set-up, but just in case:total 20drwxr-xr-x 5 root root 4096 Jun 12 06:57 .drwxr-xr-x 8 root root 4096 Jun 12 06:57 ..drwxrwxrwx 3 root root 4096 Jun 12 06:57 cachedrwxrwxrwx 2 squid squid_admin 4096 Aug 28 09:35 logsdrwxrwxrwx 3 root root 4096 Jun 21 12:17 run
Output from ls -al /var/logs/access.log:
ls: cannot access /var/logs/access.log: No such file or directory
Output from ls -al /var/logs:
ls: cannot access /var/logs: No such file or directory
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users