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 1290885 - subscription-manager-gui --help warnings and traceback
Summary: subscription-manager-gui --help warnings and traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.8
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Alex Wood
QA Contact: Shwetha Kallesh
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-11 19:02 UTC by John Sefler
Modified: 2016-05-10 20:38 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:38:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 881095 0 unspecified CLOSED subscription-manager-gui --help warnings and traceback 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 976689 0 medium CLOSED Got a traceback when run "subscription-manger-gui --help" in a terminal when X window can't be opened. 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2016:0797 0 normal SHIPPED_LIVE python-rhsm and subscription-manager bug fix and enhancement update 2017-01-06 16:31:50 UTC

Internal Links: 881095 976689

Description John Sefler 2015-12-11 19:02:45 UTC
Description of problem:
A traceback similar to Bug 881095 has surfaced in subscription-manager-gui-1.16 when trying to run 'subscription-manager-gui --help' with no DISPLAY


Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager-gui pygtk2 gtk2subscription-manager-gui-1.16.6-1.el6.x86_64
pygtk2-2.16.0-3.el6.x86_64
gtk2-2.24.23-6.el6.x86_64


How reproducible:

Steps to Reproduce:
ssh into a rhel68 system without -X X11 forwarding nor -Y trusted X11 forwarding

[jsefler@jseflerT540p ~]$ ssh -x root.redhat.com 
Last login: Fri Dec 11 13:53:51 2015 from vpn-53-105.rdu2.redhat.com
[root@jsefler-6 ~]# subscription-manager-gui --help
Traceback (most recent call last):
  File "/usr/sbin/subscription-manager-gui", line 111, in <module>
    from subscription_manager.ga import Gtk as ga_Gtk
  File "/usr/share/rhsm/subscription_manager/ga_loader.py", line 116, in load_module
    return self._import_real_module(fullname, real_module_name, real_module_from)
  File "/usr/share/rhsm/subscription_manager/ga_loader.py", line 119, in _import_real_module
    ret = __import__(module_name, globals(), locals(), [module_from])
  File "/usr/share/rhsm/subscription_manager/ga_impls/ga_gtk2/Gtk.py", line 7, in <module>
    from gtk import AboutDialog, Adjustment, Builder, Button, Calendar, CellRendererPixbuf
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
    _init()
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
    _gtk.init_check()
RuntimeError: could not open display


Actual results:
  above

Expected results:
  Unable to open a display

Additional info:

Comment 6 Shwetha Kallesh 2016-02-25 09:05:18 UTC
marking verified!!

[root@dhcp35-72 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 0.9.51.15-1
subscription management rules: 5.15.1
subscription-manager: 1.16.8-3.el6
python-rhsm: 1.16.6-1.el6


[root@dhcp35-72 ~]# subscription-manager-gui --help
Unable to start.  Error: could not open display

Comment 8 errata-xmlrpc 2016-05-10 20:38:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0797.html


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