GConf error:Failed to contact configuration server

Linux系统运行一直正常,但是图形界面使用root账号登录时遇到下面错误,第一次遇到这么怪异的状况

具体错误信息如下所示:

GConf error:Failed to contact configuration server;some possible cause are that you need to enable TCP/IP networking for ORBIT or you have stale NFSlocks due to a system crash,see http://www.gnome.org/projects/gconf/for information.(details -1:IOR file ‘/tmp/gconfd-root/lock/ior‘ not opened successfully;no gconfd located;no such file or directory2;IOR file ‘/tmp/gconfd-root/lock/ior‘ not opened successfully;no gconfd located;no such file or directory)

原因分析:

出现这个问题,有时候是因为在root账号下执行了 chmod -R 777 /tmp,我这边是因为chown –R oracle:oinstall /tmp误操作所导致。官方文档资料显示如下所示,不过水平还没有到那个级别,理解起来也是非常吃力:

I‘m having a lock file problem. What do I do?

Usually a problem here involves either NFS, or a kernel bug.

The per-user daemon locks two files in the default configuration:

~/.gconfd/lock/ior

~/.gconf/%gconf-xml-backend.lock/ior

The first lock is to ensure that only one gconfd is running. The second lock is to ensure only one program accesses the XML config source at a time.

If you have an NFS-mounted home directory, you must be running an rpc.statd/rpc.lockd setup on both NFS client and NFS server, so that file locking works. On Red Hat Linux, this means the "nfslock" service must be running. Enable it permanently with the chkconfig tool - see its manual page. Turn it on or off at any given time with service nfslock startor service nfslock stop. You must be root to do this.

If the kernel crashes (or the power cord gets pulled) on an NFS client machine, theoretically when you reboot the client machine it will notify the NFS server that it has rebooted and all previously-held locks should be released. However, many operating systems including Red Hat Linux 7.2 do not properly do this; so you will have stale locks after a crash. If no gconfd is running, these locks may safely be removed. If gconfd is running though, DO NOT remove them; if you have two gconfd processes for a single user, bad things may happen to that user‘s preferences once in a while.

See also the next question.

解决方法:

登录oracle用户,检查/tmp目录,如下所示,删除gconfd-root目录,重启gnome环境(重启主机也行),问题解决。

[[email protected] tmp]$ ls
 

 

0igYi60r4P              glibc.txt            LinuxVendor_output.txt  pZfW5Q9nxO      tmpFileKernelParms.txt

 

 

cpuinfo.txt             hs_err_pid17281.log  mapping-root            ssh-EOTPVp5471  virtual-root.TIjJMH

 

 

EM_TARGET_INSTALLER.lk  keyring-MgIEnU       orbit-root              ssh-UuyYiJ3942  virtual-root.zzPdWF

 

 

gconfd-root             keyring-uwsUZW       pkginfo.txt             swapinfo.txt

 

 

[[email protected] tmp]$ rm -R /tmp/gconfd-root/

 

 

[[email protected] tmp]$

 

参考资料:

http://gdcsy.blog.163.com/blog/static/127343609201061334949543/

时间: 2024-10-30 22:56:26

GConf error:Failed to contact configuration server的相关文章

使用phpmailer插件发邮件失败提示:SMTP -> ERROR: Failed to connect to server: Connection timed out (110) smtp connect() failed;

一个邮件发送问题,整整弄了我一周时间,起因是这样的,之前弄的一个网站,需要在邮箱里面认证之后才可以注册成功.网站上线了差不多一年之后,客户突然跟我说,网站不能注册了,然后我就查看了一下代码. 发现报这个错误:SMTP -> ERROR: Failed to connect to server: Connection timed out (110)   smtp connect() failed: 这是我的配置. 然后我就想,之前都是可以用的,那会不会可能是客户在邮箱里面更改客户端密码呢?然后我就

Centos系统创建用户oracle后,用该用户登陆系统,页面加载报错GConf error

Linux 的 GConf error 解决办法 问题: Centos系统创建用户oracle后,用该用户登陆系统,页面加载报错,导致重新进入Centos系统后出现: GConf error:Failed to contact configuration server;some possible cause are that you need to enable TCP/IP networking for ORBIT or you have stale NFSlocks due to a sys

PHP 5.6启动失败failed to open configuration file '/usr/local/php/etc/php-fpm.conf'

PHP编译安装完毕,启动失败,提示 1 [23-Jun-2014 12:27:02] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2) 2 [23-Jun-2014 12:27:02] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf' 3

cvsnt报错:Administrator: Switch to user failed due to configuration error. Contact your System Administrator

在安装CVSNT一开始用Administrator登录时总是报[login aborted]Switch to user failed due to configuration error. Contact your System Administrator.网上有说该硬盘安全权限的,但是不能解决问题.后来发现如下即可解决问题. 在Control Panel的Server Setting面板中Run as选项设置成client user.不要设置成Administrator.

Error 20002 (severity 9):Adaptive Server connection failed

环境: Ubuntu12.10_x64 问题: 用tsql访问SQL Server >> tsql -H 192.168.88.133 -p 1433 U sa Error 20002 (severity 9): Adaptive Server connection failed 解决: 查看TDS version >> tsql -C Compile-time settings (established with the "configure" script)

vuser_end.c(3): Error -27796: Failed to connect to server "10.204.105.204:9192": [10060] Connection timed out

分析 因为负载生成器的性能太好,发数据包特别快,服务器也响应特别快,从而导致负载生成器的机器的端口在没有timeout之前就全部占满了.在全部占满后,就会出现上面的错误.执行netstat–na命令,可以看到打开了很多端口.所以就调整TCP的time out.即在最后一个端口还没有用到时,前面已经有端口在释放了. 成功的解决方法: 在负载生成器的注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里,有如

The connection to adb is down, and a severe error has occured. Android ADB server didn't ACK * failed to start daemon. 解决方案

ADB server didn't ACK 这个问题会困恼很多的新手朋友,我以前刚开始做Android的时候也遇到过这个问题,不过自己百度,google啥的,也不知道怎么就给解决了,看到群里很多新手朋友都会问这个问题,说实话我也没有一个解决这个问题的终极方法(百试百灵的那种,哈哈),自己没遇到也没有认真的去对待他,今天,就是在今天,我打开Eclipse连上手机,准备调试程序,出现如下的信息 The connection to adb is down, and a severe error has

【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误解决办法

  场景描述:被测系统是发布在远程服务器上的,假设IP是10.10.10.10,端口是8066,那么访问地址是http://10.10.10.10:8066/,在control机器上我设置了IP欺骗. 错误现象:在场景运行时出现大量Action.c(8): Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误. 官方的troubleshooting: 查看工具的tro

loadrunner:Action.c(4): Error -27796: Failed to connect to server "10.0.9.184:8080": [10060] Connection timed out

Action.c(4): Error -27796: Failed to connect to server "10.0.9.184:8080": [10060] Connection timed out (1) 在负载生成器的注册表HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters里,有如下两个键值: TcpTimedWaitDelay和MaxUserPort 1,这里的TcpTimedWaitD