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环境(重启主机也行),问题解决。

[oracle@db-server 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
 
 
[oracle@db-server tmp]$ rm -R /tmp/gconfd-root/
 
 
[oracle@db-server tmp]$
 

参考资料:

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

转载于:https://www.cnblogs.com/kerrycode/p/4071122.html

GConf error:Failed to contact configuration server相关推荐

  1. Jack Server--Android N AOSP编译--Failed to contact Jack server

    准备 今天正式担任Android7.0(N)项目模块的开发和维护工作,借此机会git和make了一套系统代码用来研究.在编译的过程中,与以往系统不同的是Android7.0系统编译工具链使用了全新的J ...

  2. Php错误邮件提示linux,linux下phpmailer发送邮件出现SMTP ERROR: Failed to connect to server: (0)错误...

    在作项目的过程当中,后期客户提出了发送邮件的需求,既然客户有需求,那么没啥说的,上呗.php 通过网上的通常资料查找,PHPMailer这个插件貌似用起来不错,那就从github clone一份下来, ...

  3. Android7.0编译出现问题(Failed to contact Jack server)

    Android N,O在初始源码编译时,很多会出现Failed to contact Jack server: Problem reading .jack-server/client.pem. Try ...

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

    Linux 的 GConf error 解决办法 问题: Centos系统创建用户oracle后,用该用户登陆系统,页面加载报错,导致重新进入Centos系统后出现: GConf error:Fail ...

  5. vs与git中间的阻拦--Git failed with a fatal error. error: open(“.vs/GBA/v16/Server/sqlite3/db.lock

    具体错误信息: Git failed with a fatal error. error: open(".vs/GBA/v16/Server/sqlite3/db.lock 因为git上传要 ...

  6. Error -27796: Failed to connect to server ip地址: [10060] Connection timed out

    如果出现Error -27796: Failed to connect to server "ip地址": [10060] Connection timed out 这样的错误,如 ...

  7. LoadRunner Error -27792: Failed to connect to server

    用Google打开,replay的时候报错 Action.c(74): Error -27792: Failed to connect to server "accounts.google. ...

  8. Arcgis Server 发布服务报错Failed to start the server machine ‘XXX‘. Error while starting AppServer. Requir

    Arcgis Server 发布服务报错 Failed to start the server machine 'XXX'. Error while starting AppServer. Requi ...

  9. Error: Failed to connect to MySQL server: DBI connect(';

    先看问题: [root@localhost ~]# innobackupex --user=root --password=131417 /backup InnoDB Backup Utility v ...

最新文章

  1. 强化学习之贝尔曼方程中文解释
  2. Eclipse中propedit插件安装(解决property中文问题)
  3. ML:从0到1 机器学习算法思路实现全部过程最强攻略
  4. SAP 电商云 Spartacus UI 从 shipping address 到 shipping method 的 HTTP 请求设计
  5. cf1512F. Education
  6. Maven Install报错:Perhaps you are running on a JRE rather than a JDK
  7. reactrouter监听路由变化_前端路由三种模式
  8. 问题-Fastreport4 Memo打印时中文显示不全
  9. 拓端tecdat|R语言异方差回归模型建模:用误差方差解释异方差
  10. 今天二月二龙抬头:除了理发 各地还有哪些习俗?
  11. 【解决问题】RuntimeError: The size of tensor a (80) must match the size of tensor b (56) at non-singleton
  12. python 生成带有alpha 通道的视频
  13. 机器学习相关数据库(转)
  14. 花生壳诊断“域名指向IP与服务器不一致”的解决方法
  15. 关于Qt bindValue函数出错问题
  16. 汇率查询接口,免费实时货币汇率查询换算
  17. 机器人杆长标定_关于机器人标定,还有这些内幕你必须知道
  18. UVa-12325宝箱
  19. 如何获取当前地址以及天气温度情况,适用于微信小程序(端午假期将至,祝愿大家端午快乐)
  20. Github使用秘籍

热门文章

  1. Qt修改QSS中的qlineargradient属性,实现颜色渐变
  2. C++工作笔记-map有自动排序的功能
  3. 数据结构-线性相关代码
  4. matlab数学建模可应用到第几章,《MATLAB在数学建模中的应用(第2版)》
  5. java web 分页技术_javaweb分页的后端实现
  6. html+正则+换行+回车,正则与回车换行符使用详解
  7. 使用 el 能否定义作用域变量_Jsp之El表达和JSTL标签库
  8. 分拣外观残缺的机器人_一款分拣搬运机器人的设计
  9. sqlserver 分组合并列_哪个“三人组”是历史最强组合?数据显示最均衡组合令人意外...
  10. (软件工程复习核心重点)第十二章软件项目管理习题