Bug 1321108 - Window manager warnings appear on a console when running firstboot/subscription-manager-gui
Summary: Window manager warnings appear on a console when running firstboot/subscripti...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.8
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: William Poteat
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-24 16:54 UTC by Jan Stavel
Modified: 2016-09-13 19:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-13 19:19:35 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jan Stavel 2016-03-24 16:54:05 UTC
Description of problem:

Some warnings appear on a console when running firstboot or subscription-manager-gui.


Version-Release number of selected component (if applicable):

Red Hat Enterprise Linux Server release 6.8 Beta (Santiago)
----------------------------------------
server type                      This system is currently not registered.
subscription management server   0.9.51.15-1
subscription management rules    5.15.1
subscription-manager             1.16.8-7.el6
python-rhsm                      1.16.6-1.el6
----------------------------     ----------------------------
Product                          69.pem
135.pem
----------------------------     ----------------------------
Entitlement                      ----------------------------               ----------------------------

How reproducible:

Run subscription-manager-gui or firstboot at console.
The warnings appear everytime.

Steps to Reproduce:

    I start firstboot from root console.
    When starting this appears:

    #+BEGIN_SRC
    [root@localhost ~]# firstboot
    Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz
    Loading /lib/kbd/keymaps/i386/qwerty/us.map.gz
    Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0xa0008d (firstboot)
    Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.
    #+END_SRC

    When closing firstboot this appears:

    #+BEGIN_SRC
    /usr/lib/python2.6/site-packages/firstboot/interface.py:424: GtkWarning: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.VDPVEY': No such file or directory
    gtk.main()
    /usr/lib/python2.6/site-packages/firstboot/interface.py:424: GtkWarning: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
    gtk.main()
    firstboot: Fatal IO error 11 (Resource temporarily unavailable) on X server :9.
    Window manager warning: Fatal IO error 11 (Resource temporarily unavailable) on display ':9'.
    [root@localhost ~]# pkill -9 Xorg
    #+END_SRC

Expected results:

No warning, I guess.

Additional info:

Comment 2 Chris Snyder 2016-03-31 19:49:04 UTC
I am able to reproduce this (with the following output) when closing subman gui.

"""
/usr/sbin/subscription-manager-gui:208: GtkWarning: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.SRJ1EY': No such file or directory
  sys.exit(ga_Gtk.main() or 0)
/usr/sbin/subscription-manager-gui:208: GtkWarning: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
  sys.exit(ga_Gtk.main() or 0)
"""


Running firstboot from the cli, correct me if I'm wrong, but I believe it is only launched from the commandline in testing cases.

Comment 3 Jan Stavel 2016-04-01 16:55:21 UTC
Yes, it could be due to the fact I run firstboot from console.

I will try it with subscription-manager-gui.

I suspect the messages appear when I run sub-man-gui too.

moment.

Comment 4 Jan Stavel 2016-04-01 17:44:29 UTC
I have reproduced the same you wrote:

"""
/usr/sbin/subscription-manager-gui:208: GtkWarning: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.SRJ1EY': No such file or directory
  sys.exit(ga_Gtk.main() or 0)
/usr/sbin/subscription-manager-gui:208: GtkWarning: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
  sys.exit(ga_Gtk.main() or 0)
"""

Nothing more.

If I run sub-man-gui common way (ie using Application desptop menu) Nothing appears in any logfile.

Comment 6 William Poteat 2016-09-13 19:19:35 UTC
This warning appears because a Gnome session was never started by the root user. It is what causes that file to be created. 

The closing of subman gui or firstboot leads to that attempted file access, but it is out of our control. At best we trap it and then report it [maybe] but it would not lead to more or better information than the current warning message.


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