Bug 1337612
| Summary: | "gsettings set ...: fails with "failed to commit changes to dconf:" after I install package dconf | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Jan Stavel <jstavel> |
| Component: | glib2 | Assignee: | Colin Walters <walters> |
| Status: | CLOSED WONTFIX | QA Contact: | Desktop QE <desktop-qa-list> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | jstavel |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-12-15 07:41:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Hi, does it help if you install dbus-x11 package? Hello, an installation of dbus-x11 does not help.
It will open another problem:
**** install dbux-x11
yum install -y dbus-x11 2>&1
#+RESULTS:
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
dbus-x11 x86_64 1:1.6.12-13.el7 rhel-released 46 k
Installing for dependencies:
libX11 x86_64 1.6.3-2.el7 rhel-released 606 k
libX11-common noarch 1.6.3-2.el7 rhel-released 162 k
libXau x86_64 1.0.8-2.1.el7 rhel-released 29 k
libxcb x86_64 1.11-4.el7 rhel-released 189 k
**** gsettings cannot spawn a command line "dbus-launch"
#+BEGIN_SRC shell
gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1
which dbus-launch 2>&1
exit 0
#+END_SRC
#+RESULTS:
:
: (process:10742): dconf-WARNING **: failed to commit changes to dconf: Error spawning command line 'dbus-launch --autolaunch=495b7e09f6dc42658823557368cb28ac --binary-syntax --close-stderr': Child process exited with code 1
: /usr/bin/dbus-launch
**** launch dbus-launch itself
#+BEGIN_SRC shell
dbus-launch --autolaunch=495b7e09f6dc42658823557368cb28ac --binary-syntax --close-stderr 2>&1
exit 0
#+END_SRC
#+RESULTS:
: Autolaunch error: X11 initialization failed.
**** an output of strace of the execution
#+BEGIN_SRC shell
strace dbus-launch --autolaunch=495b7e09f6dc42658823557368cb28ac --binary-syntax --close-stderr 2>&1
exit 0
#+END_SRC
#+RESULTS:
#+begin_example
execve("/usr/bin/dbus-launch", ["dbus-launch", "--autolaunch=495b7e09f6dc4265882"..., "--binary-syntax", "--close-stderr"], [/* 27 vars */]) = 0
brk(0) = 0x7f0ea4761000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ea2a35000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=21795, ...}) = 0
mmap(NULL, 21795, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0ea2a2f000
close(3) = 0
open("/lib64/libX11.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\337\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1318864, ...}) = 0
mmap(NULL, 3399168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ea24d7000
mprotect(0x7f0ea260f000, 2097152, PROT_NONE) = 0
mmap(0x7f0ea280f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x138000) = 0x7f0ea280f000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2107800, ...}) = 0
mmap(NULL, 3932736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ea2116000
mprotect(0x7f0ea22cc000, 2097152, PROT_NONE) = 0
mmap(0x7f0ea24cc000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b6000) = 0x7f0ea24cc000
mmap(0x7f0ea24d2000, 16960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f0ea24d2000
close(3) = 0
open("/lib64/libxcb.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\234\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=141080, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ea2a2e000
mmap(NULL, 2233224, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ea1ef4000
mprotect(0x7f0ea1f15000, 2093056, PROT_NONE) = 0
mmap(0x7f0ea2114000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x20000) = 0x7f0ea2114000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19520, ...}) = 0
mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ea1cf0000
mprotect(0x7f0ea1cf3000, 2093056, PROT_NONE) = 0
mmap(0x7f0ea1ef2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0ea1ef2000
close(3) = 0
open("/lib64/libXau.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15512, ...}) = 0
mmap(NULL, 2109736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f0ea1aec000
mprotect(0x7f0ea1aee000, 2097152, PROT_NONE) = 0
mmap(0x7f0ea1cee000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f0ea1cee000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ea2a2d000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0ea2a2b000
arch_prctl(ARCH_SET_FS, 0x7f0ea2a2b740) = 0
mprotect(0x7f0ea24cc000, 16384, PROT_READ) = 0
mprotect(0x7f0ea1cee000, 4096, PROT_READ) = 0
mprotect(0x7f0ea1ef2000, 4096, PROT_READ) = 0
mprotect(0x7f0ea2114000, 4096, PROT_READ) = 0
mprotect(0x7f0ea280f000, 4096, PROT_READ) = 0
stat("/etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned", 0x7fff91e45890) = -1 ENOENT (No such file or directory)
mprotect(0x7f0ea2c3f000, 4096, PROT_READ) = 0
mprotect(0x7f0ea2a36000, 4096, PROT_READ) = 0
munmap(0x7f0ea2a2f000, 21795) = 0
brk(0) = 0x7f0ea4761000
brk(0x7f0ea4782000) = 0x7f0ea4782000
brk(0) = 0x7f0ea4782000
write(2, "Autolaunch error: X11 initializa"..., 45Autolaunch error: X11 initialization failed.
) = 45
exit_group(1) = ?
+++ exited with 1 +++
#+end_example
I feel that this dbus-launch behavior is worth sending new bug.
I'm reassigning this to glib2. glib2 launches the dbus-launch and should probably require the dbus-x11 package. The problem with initialization of X11 belongs to glib2 too probably since I don't see it if running dbus-launch without the "--autolaunch" option (I'm not sure whether it could be detected when dbus-launch needs it and when it doesn't). Regards After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
Description of problem: I have installed RHEL7.2 without gnome-desktop. I want to install gnome-desktop and after that I want to run gsettins to enable a11y. gsettings set org.gnome.desktop.interface toolkit-accessibility true After I install dconf package gsettings stops working. Version-Release number of selected component (if applicable): Red Hat Enterprise Linux Server release 7.2 (Maipo) ---------------------------- ---------------------------- arch x86_64 kernel version 3.10.0-327.el7.x86_64 ---------------------------- ---------------------------- server type This system is currently not registered. subscription management server 0.9.51.11-1 subscription management rules 5.15 subscription-manager 1.15.9-15.el7 python-rhsm 1.15.4-5.el7 ---------------------------- ---------------------------- Product 69.pem ---------------------------- ---------------------------- Entitlement How reproducible: Steps to Reproduce: **** gsettings works on RHEL7.2 #+BEGIN_SRC shell gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1 exit 0 #+END_SRC #+RESULTS: : GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. **** GConf2 package does not affect gsettings behaviour **** install dconf package #+BEGIN_SRC shell yum install -y dconf 2>&1 exit 0 #+END_SRC **** gsettings wants to execute dbus-launch even it is not installed #+BEGIN_SRC shell gsettings set org.gnome.desktop.interface toolkit-accessibility true 2>&1 which dbus-launch 2>&1 exit 0 #+END_SRC #+RESULTS: : : (process:11996): dconf-WARNING **: failed to commit changes to dconf: Failed to execute child process "dbus-launch" (No such file or directory) : which: no dbus-launch in (/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin) Actual results: command "gsettings set ..." fails after I install dconf package on a RHEL7.2 Server (without desktop environment).