升級後 Squid 伺服器出現問題 (Ubuntu 14)

升級後 Squid 伺服器出現問題 (Ubuntu 14)

我們已經將魷魚代理伺服器從先前版本的 Ubuntu(不記得是什麼了)升級到版本 14.04.2。現在看來 Squid 無法啟動/虛擬機器無法透過代理程式存取網路。我注意到從 CLI 遷移到 Webmin 時服務可能存在問題,我看到我可以“啟動服務”,我單擊了此按鈕並收到錯誤

Failed to start Squid :
squid3 start/running, process 12431

回到 CLI 並運行sudo service squid start並得到以下結果:

squid3 start/running, process 12637

那麼...它在運作嗎?為什麼webmin顯示正在啟動服務...

在網路上看到一些論壇重新啟動服務沒有幫助。 Running service squid3 status顯示:

MGT-VM-PRX:/var/log/squid3$ service squid3 status
squid3 stop/waiting

有誰注意到這一點或知道升級後發生了什麼變化?

我還可以看到 ps -aux | 下有兩個服務grep 魷魚和魷魚3

剛剛檢查了日誌 /var/log/squid3/cache.log.1 ,問題似乎是服務未啟動/工作,因為在發現問題時日誌已於 19 日停止。


更新


透過刪除行修復:acl manager proto cache_object

# Recommended minimum configuration:
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

運行以下命令:

azzurri@MGT-VM-PRX:~$ squid3 -k parse
2015/06/22 12:38:08| Startup: Initializing Authentication Schemes ...
2015/06/22 12:38:08| Startup: Initialized Authentication Scheme 'basic'
2015/06/22 12:38:08| Startup: Initialized Authentication Scheme 'digest'
2015/06/22 12:38:08| Startup: Initialized Authentication Scheme 'negotiate'
2015/06/22 12:38:08| Startup: Initialized Authentication Scheme 'ntlm'
2015/06/22 12:38:08| Startup: Initialized Authentication.
2015/06/22 12:38:08| Processing Configuration File: /etc/squid3/squid.conf (depth 0)
2015/06/22 12:38:08| Processing: acl manager proto cache_object
2015/06/22 12:38:08| aclParseAclLine: ACL 'manager' already exists with different type.
FATAL: Bungled /etc/squid3/squid.conf line 694: acl manager proto cache_object
Squid Cache (Version 3.3.8): Terminated abnormally.
CPU Usage: 0.007 seconds = 0.003 user + 0.003 sys
Maximum Resident Size: 20496 KB
Page faults with physical i/o: 0

目前一切似乎都很好,但我不確定這有什麼用?誰能澄清這是否是一個合適的解決方案?

答案1

你運行過語法檢查squid3 -k check嗎?如果您知道先前的版本,查看更改日誌可能會有所幫助,或者使用以下命令查看當前配置 http://www.squid-cache.org/Doc/config/,可能有一些指令在升級到的版本中已被貶值 - 魷魚。

相關內容