![启动后 VNC 服务器发生故障 - 无法建立与会话的连接](https://linux22.com/image/623026/%E5%90%AF%E5%8A%A8%E5%90%8E%20VNC%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8F%91%E7%94%9F%E6%95%85%E9%9A%9C%20-%20%E6%97%A0%E6%B3%95%E5%BB%BA%E7%AB%8B%E4%B8%8E%E4%BC%9A%E8%AF%9D%E7%9A%84%E8%BF%9E%E6%8E%A5.png)
我在 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 已成功。我不再遇到这些错误。