Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gconfd can't connect to d-bus due to permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
`VL
n00b
n00b


Joined: 30 Apr 2004
Posts: 70
Location: Russia

PostPosted: Wed Apr 22, 2009 6:44 am    Post subject: gconfd can't connect to d-bus due to permissions Reply with quote

Hello. Recently i found that many programs give me the following errors:

Quote:

GConf Error: 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://www.gnome.org/projects/gconf/ for information. (Details - 1: Could not send message to gconf daemon: The name org.gnome.GConf was not provided by any .service files)

this one is caused because gconfd was not running. So, i went to /usr/libexec and executed gconfd-2 manually.
Here is what i get from strace's output:
Quote:

11788 write(11, "BEGIN\r\n"..., 7) = 7
11788 poll([{fd=11, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=11, revents=POLLOUT}])
11788 writev(11, [{"l\1\0\1\0\0\0\0\1\0\0\0n\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\6\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\
0\0\3\1s\0\5\0\0\0Hello\0\0\0"..., 128}, {""..., 0}], 2) = 128
11788 gettimeofday({1240382116, 997624}, NULL) = 0
11788 poll([{fd=11, events=POLLIN}], 1, 25000) = 1 ([{fd=11, revents=POLLIN}])
11788 read(11, "l\2\1\1\v\0\0\0\1\0\0\0=\0\0\0\6\1s\0\6\0\0\0:1.202\0\0\5\1u\0\1\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\6\0\0\0:1.202\0l\4\1\1\v\0\0\0\2\0\0\0\215\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\3\1s\0\f\0\0\0NameAcquired\0\0\0\0\6\1s\0\6\0\0\0:1.202\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\6\0\0\0:1.202\0"..., 2048) = 262
11788 read(11, 0x8061098, 2048) = -1 EAGAIN (Resource temporarily unavailable)
11788 fstat64(11, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
11788 fcntl64(11, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
11788 gettimeofday({1240382116, 998191}, NULL) = 0
11788 writev(11, [{"l\1\0\1\30\0\0\0\2\0\0\0\200\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\6\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\3\1s\0\v\0\0\0RequestName\0\0\0\0\0\10\1g\0\2su\0"..., 144}, {"\17\0\0\0org.gnome.GConf\0\0\0\0\0"..., 24}], 2) = 168
11788 gettimeofday({1240382116, 998527}, NULL) = 0
11788 poll([{fd=11, events=POLLIN}], 1, 25000) = 1 ([{fd=11, revents=POLLIN}])


11788 read(11, "l\3\1\1\177\0\0\0\3\0\0\0m\0\0\0\6\1s\0\6\0\0\0:1.202\0\0\4\1s\0'\0\0\0org.freedesktop.DBus.Error.AccessDenied\0\5\1u\0\2\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0z\0\0\0Connection \":1.202\" is not allowed to own the service \"org.gnome.GConf\" due to security policies in the configuration file\0"..., 2048) = 255
11788 read(11, 0x8061098, 2048) = -1 EAGAIN (Resource temporarily unavailable)


11788 open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 12
11788 fstat64(12, {st_mode=S_IFREG|0644, st_size=26040, ...}) = 0
11788 mmap2(NULL, 26040, PROT_READ, MAP_SHARED, 12, 0) = 0xb7f50000
11788 close(12) = 0
11788 futex(0x454aea4c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
11788 write(2, "\n(process:11788): GConf-WARNING **: Failed to get bus name for daemon, exiting: Connection \":1.202\" is not allowed to own the service \"org.gnome.GConf\" due to security policies in the configuration file\n"..., 203) = 203
11788 close(9) = 0
11788 close(8) = 0
11788 unlink("/tmp/orbit-vl/linc-2e0c-0-32c655d5f2e61") = 0
11788 close(10) = 0
11788 exit_group(1) = ?


i tried to re-emerge gconf and other stuff but nothing changes. I guess i can add something
to /etc/dbus-1 to allow gconf connections, but i have no idea why it doesn't work as it should.

Here is what i have in /etc/dbus-1. Maybe i'm missed something?
Quote:

find dbus-1/ -type f
dbus-1/system.conf
dbus-1/system.d/ConsoleKit.conf
dbus-1/system.d/audacious.conf
dbus-1/system.d/cups.conf
dbus-1/system.d/f-spot.conf
dbus-1/system.d/.keep_sys-apps_dbus-0
dbus-1/system.d/hal.conf
dbus-1/session.d/.keep_sys-apps_dbus-0
dbus-1/session.conf


gconf is 2.24.0 and gnome is 2.24.1, and i'm not in gnome, but in fluxbox, if it matters.

Please, help.
_________________
Life is too short to be taken seriously.
Back to top
View user's profile Send private message
shur
Tux's lil' helper
Tux's lil' helper


Joined: 08 Aug 2004
Posts: 95

PostPosted: Sat Mar 06, 2010 3:20 am    Post subject: Reply with quote

this is a bit late, but in case you still are interested they have a bug on it in Ubuntu
https://bugs.launchpad.net/ubuntu/+source/gconf/+bug/336660

I am experiencing this annoying problem still.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum