
我在 Tiger VNC 伺服器(版本 Tigervnc-server-1.1.0-5.el6_4.1.x86_64)的日誌檔案中遇到此錯誤:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)
(Details - 1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)GConf warning: failure listing pairs in `/apps/nautilus/desktop-metadata': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Failed to connect to socket /tmp/dbus-Auq6xEVNZb: Connection refused)
當我重新啟動伺服器時,它工作得很好,但過了一會兒它開始失敗,當我連接時,沒有桌面,並且有一個彈出視窗出現和消失。
我最近錯誤地刪除了 /tmp 目錄,這可能是問題的根源嗎?怎麼解決這個問題呢?
此問題也會導致磁碟使用問題,因為該日誌檔案總是在成長,這似乎與持續錯誤狀態有關。
謝謝!
答案1
透過建立目錄 /tmp/dbus-Auq6xEVNZb 解決了這個問題(每個伺服器上的目錄有所不同,您需要檢查錯誤並查看 VNC 伺服器嘗試存取的路徑)。其命令為:
mkdir -p /tmp/dbus-Auq6xEVNZb
似乎另一個解決方案可能是修改 ~/.dbus 目錄所有權(https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/367169)。
編輯:重新啟動後,此解決方案不再有效。我還嘗試刪除 /tmp/ 的內容(不是目錄本身)並將所有權更改為 dbus 用戶,但它也不起作用。
編輯2: 重新安裝dbus就可以了。我不再犯那些錯誤了。