Bug#273127: gconf2: gconftool search for lock/ior in
$HOME/.gconfd whereas gconfd-2 put this into /tmp/gconfd-$USER
Serge Gavrilov
Serge Gavrilov <serge@pdmi.ras.ru>, 273127@bugs.debian.org
Fri, 24 Sep 2004 10:00:09 +0400
Package: gconf2
Version: 2.6.4-2
Severity: important
Hi!
Recently I try to install new schemas by gconftool:
gconftool --install-schema-file /usr/local/lib/nautilus/ps-thumbnail.schema
The result was several warnings like this:
WARNING: failed to install schema `/schemas/desktop/gnome/thumbnailers/image@vnd.djvu/enable' locale `C': Failed to contact configuration server (a likely cause of this is that you have an existing configuration server (gconfd) running, but it isn't reachable from here - if you're logged in from two machines at once, you may need to enable TCP networking for ORBit)
After analyzing the situation with strace I understand that gconftool search
for lock/ior file in $HOME/.gconfd whereas gconfd-2 daemon put this file into /tmp/gconfd-$USER:
close(35) = 0
close(37) = 0
close(-1) = -1 EBADF (Bad file descriptor)
close(-1) = -1 EBADF (Bad file descriptor)
close(-1) = -1 EBADF (Bad file descriptor)
waitpid(9154, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0) = 9154
read(33, "", 8) = 0
read(36, "\303#\0\0", 4) = 4
read(36, "", 0) = 0
read(4, "g", 1) = 1
open("/home/serge/.gconfd/lock/ior", O_RDONLY) = -1 ENOENT (No such file or directory)
close(4) = 0
close(5) = 0
write(2, "WARNING: failed to install schem"..., 369WARNING: failed to install schema `/schemas/desktop/gnome/thumbnailers/image@vnd.djvu/enable' locale `C': Failed to contact configuration server (a likely cause of this is that you have an existing configuration server (gconfd) running, but it isn't reachable from here - if you're logged in from two machines at once, you may need to enable TCP networking for ORBit)
The workaround is
ln -s /tmp/gconfd-$USER/lock ~/.gconfd
After this gconftool begin to work correctly.
Thanks!
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.22
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R
Versions of packages gconf2 depends on:
hi libatk1.0-0 1.6.1-3 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an
hi libgconf2-4 2.6.4-2 GNOME configuration database syste
hi libglib2.0-0 2.4.6-2 The GLib library of C routines
hi libgtk2.0-0 2.4.9-1 The GTK+ graphical user interface
hi liborbit2 1:2.10.2-1.1 libraries for ORBit2 - a CORBA ORB
hi libpango1.0-0 1.4.1-2 Layout and rendering of internatio
ii libpopt0 1.7-4 lib for parsing cmdline parameters
hi libxml2 2.6.11-3 GNOME XML library
hi zlib1g 1:1.2.1-4 compression library - runtime
-- no debconf information