RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1337612 - "gsettings set ...: fails with "failed to commit changes to dconf:" after I install package dconf
Summary: "gsettings set ...: fails with "failed to commit changes to dconf:" after I i...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: glib2
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-19 15:42 UTC by Jan Stavel
Modified: 2020-12-15 07:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 07:41:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Stavel 2016-05-19 15:42:57 UTC
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).

Comment 2 Marek Kašík 2016-05-23 09:58:57 UTC
Hi, does it help if you install dbus-x11 package?

Comment 3 Jan Stavel 2016-05-23 13:21:15 UTC
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.

Comment 4 Marek Kašík 2016-05-24 11:29:55 UTC
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

Comment 6 RHEL Program Management 2020-12-15 07:41:31 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.