InventoR писал(а):есть лог cache когда сквид не может запустится. желательно с максимальным уровнем дебага
перегружал сервер раз 20...
в итоге, наконец таки скид не запустился
Код: Выделить всё
# ps ax | grep squid
1354 p0 S+ 0:00,00 grep squid
Код: Выделить всё
# cat /var/log/messages | grep squid
...
Dec 17 22:48:21 home squid[962]: Squid Parent: child process 964 started
Dec 17 22:48:21 home squid[962]: Squid Parent: child process 964 exited with status 1
Dec 17 22:48:24 home squid[962]: Squid Parent: child process 978 started
Dec 17 22:48:24 home squid[962]: Squid Parent: child process 978 exited with status 1
Dec 17 22:48:27 home squid[962]: Squid Parent: child process 1231 started
Dec 17 22:48:27 home squid[962]: Squid Parent: child process 1231 exited with status 1
Dec 17 22:48:30 home squid[962]: Squid Parent: child process 1336 started
Dec 17 22:48:30 home squid[962]: Squid Parent: child process 1336 exited with status 1
Dec 17 22:48:33 home squid[962]: Squid Parent: child process 1338 started
Dec 17 22:48:33 home squid[962]: Squid Parent: child process 1338 exited with status 1
Dec 17 22:48:33 home squid[962]: Exiting due to repeated, frequent failures
Код: Выделить всё
# cat /usr/local/squid/logs/cache.log
...
2009/12/17 22:38:10| Starting Squid Cache version 2.7.STABLE7 for amd64-portbld-freebsd7.2...
2009/12/17 22:38:10| Process ID 962
2009/12/17 22:38:10| With 11095 file descriptors available
2009/12/17 22:38:10| Using poll for the IO loop
2009/12/17 22:38:10| DNS Socket created at 0.0.0.0, port 57379, FD 5
2009/12/17 22:38:10| Adding domain eden from /etc/resolv.conf
2009/12/17 22:38:10| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2009/12/17 22:38:10| Adding nameserver 82.193.96.199 from /etc/resolv.conf
2009/12/17 22:38:10| Adding nameserver 82.193.96.6 from /etc/resolv.conf
2009/12/17 22:38:10| logfileOpen: opening log /usr/local/squid/logs/access.log
2009/12/17 22:38:10| Unlinkd pipe opened on FD 10
2009/12/17 22:38:10| Swap maxSize 102400 + 65536 KB, estimated 12918 objects
2009/12/17 22:38:10| Target number of buckets: 645
2009/12/17 22:38:10| Using 8192 Store buckets
2009/12/17 22:38:10| Max Mem size: 65536 KB
2009/12/17 22:38:10| Max Swap size: 102400 KB
2009/12/17 22:38:10| logfileOpen: opening log /usr/local/squid/logs/store.log
2009/12/17 22:38:10| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2009/12/17 22:38:10| Using Least Load store dir selection
2009/12/17 22:38:10| Set Current Directory to /usr/local/squid/cache
2009/12/17 22:38:10| Loaded Icons.
2009/12/17 22:38:11| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 12.
2009/12/17 22:38:11| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2009/12/17 22:38:11| Configuring 127.0.0.1 Parent 127.0.0.1/3127/0
2009/12/17 22:38:11| Ready to serve requests.
2009/12/17 22:38:11| Done reading /usr/local/squid/cache swaplog (805 entries)
2009/12/17 22:38:11| Finished rebuilding storage from disk.
2009/12/17 22:38:11| 805 Entries scanned
2009/12/17 22:38:11| 0 Invalid entries.
2009/12/17 22:38:11| 0 With invalid flags.
2009/12/17 22:38:11| 805 Objects loaded.
2009/12/17 22:38:11| 0 Objects expired.
2009/12/17 22:38:11| 0 Objects cancelled.
2009/12/17 22:38:11| 0 Duplicate URLs purged.
2009/12/17 22:38:11| 0 Swapfile clashes avoided.
2009/12/17 22:38:11| Took 0.7 seconds (1134.8 objects/sec).
2009/12/17 22:38:11| Beginning Validation Procedure
2009/12/17 22:38:11| Completed Validation Procedure
2009/12/17 22:38:11| Validated 805 Entries
2009/12/17 22:38:11| store_swap_size = 91256k
2009/12/17 22:38:11| storeLateRelease: released 0 objects
2009/12/17 22:39:13| Preparing for shutdown after 2 requests
2009/12/17 22:39:13| Waiting 30 seconds for active connections to finish
2009/12/17 22:39:13| FD 12 Closing HTTP connection
в squid.conf
после три раза перегрузился - сквид сам так и не завелся, однако вручную сразу запустился стартовым скриптом без пересоздания кеша, после выполнил еще пару перегрузок - пока работает, так что через некоторое время скорее всего опять вот так не запустится после какой-то очередной перезагрузки...
выручайте