2007年12月1日 星期六

squid:errorTryLoadText - squid無法啟動

 前一陣子發生公司的 Squid 服務無法啟動,在 /var/log/squid/cache.log 中顯示如下訊息.....

2007/10/17 08:36:02| Starting Squid Cache version 2.5.STABLE14 for i686-redhat-linux-gnu...
2007/10/17 08:36:02| Process ID 14664
2007/10/17 08:36:02| With 65536 file descriptors available
2007/10/17 08:36:02| DNS Socket created at 0.0.0.0, port 33574, FD 5
2007/10/17 08:36:02| Adding nameserver 10.1.1.25 from squid.conf
2007/10/17 08:36:02| User-Agent logging is disabled.
2007/10/17 08:36:02| Referer logging is disabled.
2007/10/17 08:36:02| errorTryLoadText: '/usr/share/squid/errors/English/ERR_INVALID_RESP': (2) No such file or directory2007/10/17 08:36:02| errorTryLoadText: '/usr/local/squid/etc/errors/ERR_INVALID_RESP': (2) No such file or directoryFATAL: failed to find or read error text file.
Squid Cache (Version 2.5.STABLE14): Terminated abnormally.
CPU Usage: 0.016 seconds = 0.014 user + 0.002 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
原因:
 在 /usr/share/squid/errors/English/ 中,少了 ERR_INVALID_RESP 檔。
解決方法:
 還原 ERR_INVALID_RESP 檔即可。

沒有留言:

張貼留言