I've been looking around and can't seem to figure out what the problem is. I am able to start squid from the shell, but it fails if I try to start in Webmin. Any ideas would be helpful! Running Fedora 9, Webmin 1.441 and Squid 3.0.STABLE7.
From shell:
Quote:
[root@svr1 ~]# /etc/init.d/squid start
2008/11/19 13:01:24| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2008/11/19 13:01:24| Initializing https proxy context
Starting squid: . [ OK ]
[root@svr1 ~]# ps aux | grep 'squid'
root 7852 0.0 0.2 10752 2336 ? Ss 13:01 0:00 squid -D
squid 7855 0.0 0.8 14404 8756 ? S 13:01 0:00 (squid) -D
squid 7856 0.0 0.0 3228 1008 ? Ss 13:01 0:00 (unlinkd)
root 7859 0.0 0.0 4120 688 pts/0 S+ 13:04 0:00 grep squid
[root@svr1 ~]# /etc/init.d/squid status
squid (pid 7852) is running...
[root@svr1 ~]#
|
From Webmin, I get the following error:
Quote:
Failed to start Squid :
2008/11/19 13:11:44| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2008/11/19 13:11:44| Initializing https proxy context
Starting squid: .[ OK ]
|
While Webmin tries to start, it appears as if it is attempting to launch two processes:
Quote:
[root@svr1 ~]# ps aux | grep 'squid'
root 7972 2.0 1.0 16732 10968 ? S 13:11 0:00 /usr/libexec/webmin/squid/start.cgi
root 7983 0.0 0.2 10752 2332 ? Ss 13:11 0:00 squid -D
squid 7986 0.3 0.8 14404 8772 ? S 13:11 0:00 (squid) -D
squid 7988 0.0 0.0 3228 1008 ? Ss 13:11 0:00 (unlinkd)
root 7993 0.0 0.0 2716 1012 ? S 13:11 0:00 sh -c /etc/rc.d/init.d/squid stop >/dev/null 2>&1 </dev/null
root 7994 0.1 0.1 4924 1336 ? S 13:11 0:00 /bin/bash /etc/rc.d/init.d/squid stop
root 8019 0.0 0.0 4124 700 pts/0 S+ 13:12 0:00 grep squid
[root@svr1 ~]# /etc/init.d/squid status
squid (pid 7893 7852) is running...
[root@svr1 ~]#
|
There are no errors in the log.. it simply starts and shuts down:
Quote:
[root@svr1 ~]# nano /var/log/squid/cache.log
2008/11/19 13:11:44| Starting Squid Cache version 3.0.STABLE7 for i386-redhat-linux-gnu...
2008/11/19 13:11:44| Process ID 7986
2008/11/19 13:11:44| With 1024 file descriptors available
2008/11/19 13:11:44| DNS Socket created at 0.0.0.0, port 40816, FD 7
2008/11/19 13:11:44| Adding domain MYDOMAIN.COM from /etc/resolv.conf
2008/11/19 13:11:44| Adding nameserver XX.XX.XX.XX from /etc/resolv.conf
2008/11/19 13:11:44| Adding nameserver XX.XX.XX.XX from /etc/resolv.conf
2008/11/19 13:11:44| User-Agent logging is disabled.
2008/11/19 13:11:44| Referer logging is disabled.
2008/11/19 13:11:45| Unlinkd pipe opened on FD 12
2008/11/19 13:11:45| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/11/19 13:11:45| Swap maxSize 102400 KB, estimated 7876 objects
2008/11/19 13:11:45| Target number of buckets: 393
2008/11/19 13:11:45| Using 8192 Store buckets
2008/11/19 13:11:45| Max Mem size: 8192 KB
2008/11/19 13:11:45| Max Swap size: 102400 KB
2008/11/19 13:11:45| Version 1 of swap file with LFS support detected...
2008/11/19 13:11:45| Rebuilding storage in /var/spool/squid (CLEAN)
2008/11/19 13:11:45| Using Least Load store dir selection
2008/11/19 13:11:45| Set Current Directory to /var/spool/squid
2008/11/19 13:11:45| Loaded Icons.
2008/11/19 13:11:45| Accepting HTTP connections at 0.0.0.0, port 8080, FD 14.
2008/11/19 13:11:45| HTCP Disabled.
2008/11/19 13:11:45| Ready to serve requests.
2008/11/19 13:11:45| Done reading /var/spool/squid swaplog (0 entries)
2008/11/19 13:11:45| Finished rebuilding storage from disk.
2008/11/19 13:11:45| 0 Entries scanned
2008/11/19 13:11:45| 0 Invalid entries.
2008/11/19 13:11:45| 0 With invalid flags.
2008/11/19 13:11:45| 0 Objects loaded.
2008/11/19 13:11:45| 0 Objects expired.
2008/11/19 13:11:45| 0 Objects cancelled.
2008/11/19 13:11:45| 0 Duplicate URLs purged.
2008/11/19 13:11:45| 0 Swapfile clashes avoided.
2008/11/19 13:11:45| Took 0.03 seconds ( 0.00 objects/sec).
2008/11/19 13:11:45| Beginning Validation Procedure
2008/11/19 13:11:45| Beginning Validation Procedure
2008/11/19 13:11:45| Completed Validation Procedure
2008/11/19 13:11:45| Validated 25 Entries
2008/11/19 13:11:45| store_swap_size = 0
2008/11/19 13:11:46| storeLateRelease: released 0 objects
2008/11/19 13:11:50| Preparing for shutdown after 0 requests
2008/11/19 13:11:50| Waiting 30 seconds for active connections to finish
2008/11/19 13:11:50| FD 14 Closing HTTP connection
2008/11/19 13:12:22| Shutting down...
2008/11/19 13:12:22| Closing unlinkd pipe on FD 12
2008/11/19 13:12:22| storeDirWriteCleanLogs: Starting...
2008/11/19 13:12:22| Finished. Wrote 0 entries.
2008/11/19 13:12:22| Took 0.00 seconds ( 0.00 entries/sec).
CPU Usage: 0.129 seconds = 0.079 user + 0.050 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 3396 KB
Ordinary blocks: 3315 KB 9 blks
Small blocks: 0 KB 1 blks
Holding blocks: 1712 KB 8 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 80 KB
Total in use: 5027 KB 148%
Total free: 80 KB 2%
2008/11/19 13:12:22| Squid Cache (Version 3.0.STABLE7): Exiting normally.
|