[Spacewalk-list] Spacewalk 0.6: rhnpush fails to upload rpm package

Bushby, Bruce (London)(c) bbushby at maninvestments.com
Tue Sep 15 14:49:26 UTC 2009


Hi
 
I've been struggling with Spacewalk 0.6 on CentOS 5.3 for a couple of
days now so I figured it's time to ask for help.
 
My install steps:
1. Full install from CentOS 5.3 (Final) dvd iso image
2. Configure Oracle by installing the following packages:
        oracle-xe-univ-10.2.0.1-1.0.i386.rpm
        oracle-xe-client-10.2.0.1-1.0.i386.rpm

        oracle-instantclient-basic-10.2.0.4-1.i386.rpm
        oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
        oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
        oracle-instantclient-jdbc-10.2.0.4-1.i386.rpm
 
        oracle-lib-compat-10.2-20.el5.i386.rpm

This all works perfectly and I can login to the database as
'spacewalk/spacewalk at xe' <mailto:'spacewalk/spacewalk at xe'> 
 
I then run through the spacewalk install guide from:
        https://fedorahosted.org/spacewalk/wiki/HowToInstall
<https://fedorahosted.org/spacewalk/wiki/HowToInstall> 
 
I then run:
        spacewalk-setup --disconnected
 
And everything appears normal. I then login to spacewalk GUI, create the
initial user and all appears perfect, however I am unable to "rhnpush"
to a channel.
 
>From the command like, I create a channel using "create_channel.py" ( I
have also tried creating the channel via the GUI...same issue )
    [root at spacewalk oracle]# create_channel.py --user "bbushby"
--password "xxxx" --label=my_channel --name "my channel" --summary "my
channel"
    [root at spacewalk oracle]# echo $?
    0
    [root at spacewalk oracle]#
 
I then login to my GUI and I can see my channel....now this is the part
that will not work......"rhnpush"
 
    [root at spacewalk ~]# rhnpush -v --channel="my_channel"
--server=localhost spacewalk-repo-0.6-5.el5.noarch.rpm
    Connecting to http://localhost/APP <http://localhost/APP> 
    Red Hat Network username: bbushby
    Red Hat Network password:
    Internal Server Error
    [root at spacewalk ~]#
 
 
 
 
Anybody else have this issue?
 
 
 
Python traceback from rhnpush command:
------------------------------------------------------------------------
------------------------------------------------------------------------
--
Subject: RHN TRACEBACK from spacewalk.maninvestments.ad.man.com
To: spacewalk at spacewalk.maninvestments.ad.man.com
<mailto:spacewalk at spacewalk.maninvestments.ad.man.com> 
X-RHN-Traceback-Severity: unhandled
 
Exception reported from spacewalk.maninvestments.ad.man.com
Time: Tue Sep 15 15:46:12 2009
Exception type cx_Oracle.InterfaceError
Exception while handling function headerParserHandler
Request object information:
URI: /APP
Remote Host: 127.0.0.1
Server Name: spacewalk.maninvestments.ad.man.com:0
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 92
        Host: localhost
        content-encoding: x-gzip
        content-transfer-encoding: binary
        content-type: application/binary
        user-agent: rhn.rpclib.py/$Revision$
        x-client-version: 1
        x-info: RPC Processor (C) Red Hat, Inc (version $Revision$)
        x-rhn-transport-capability: follow-redirects=3
        x-transport-info: Extended Capabilities Transport (C) Red Hat,
Inc (version $Revision$)
Extra information about this error:
Unhandled exception type
 
Exception Handler Information
Traceback (most recent call last):
  File "/usr/share/rhn/server/apacheServer.py", line 58, in __call__
    ret = f(req)
  File "/usr/share/rhn/server/apacheHandler.py", line 72, in
headerParserHandler
    rhnSQL.initDB()
  File "/usr/share/rhn/server/rhnSQL/__init__.py", line 98, in initDB
    __init__DB(backend, host, port, username, password, database)
  File "/usr/share/rhn/server/rhnSQL/__init__.py", line 59, in
__init__DB
    __DB.check_connection()
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 490, in
check_connection
    self.connect() # only allow one try
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 370, in
connect
    self.dbh = self._connect()
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 396, in
_connect
    dbh = cx_Oracle.Connection(self.dsn)
InterfaceError: Unable to acquire Oracle environment handle
 
Local variables by frame
Frame _connect in /usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py at
line 396
                        self = <type 'instance'>
<server.rhnSQL.driver_cx_Oracle.Database instance at 0xb79f090c>
 
Frame connect in /usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py at
line 389
                        self = <type 'instance'>
<server.rhnSQL.driver_cx_Oracle.Database instance at 0xb79f090c>
                   reconnect = <type 'int'> 1
 
Frame check_connection in
/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py at line 490
                        self = <type 'instance'>
<server.rhnSQL.driver_cx_Oracle.Database instance at 0xb79f090c>
 
Frame __init__DB in /usr/share/rhn/server/rhnSQL/__init__.py at line 59
                    username = <type 'str'> spacewalk
                    database = <type 'str'> xe
                        host = <type 'str'> localhost
                    password = <type 'str'> spacewalk
                        port = <type 'NoneType'> None
                     backend = <type 'str'> oracle
 
Frame initDB in /usr/share/rhn/server/rhnSQL/__init__.py at line 104
                    username = <type 'str'> spacewalk
                        temp = <type 'str'> spacewalk at xe
<mailto:spacewalk at xe> 
                    database = <type 'str'> xe
                         dsn = <type 'str'> <CENSORED!>
                        host = <type 'str'> localhost
                    password = <type 'str'> spacewalk
                        port = <type 'NoneType'> None
                     backend = <type 'str'> oracle
 
Frame headerParserHandler in /usr/share/rhn/server/apacheHandler.py at
line 75
                        self = <type 'instance'>
<server.apacheHandler.apacheHandler instance at 0xb79cf62c>
                         req = <type 'mp_request'> <mp_request object at
0xb7b0c094>
                         ret = <type 'int'> 0
 
Frame __call__ in /usr/share/rhn/server/apacheServer.py at line 63
                        self = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7b160ac>
                         req = <type 'mp_request'> <mp_request object at
0xb7b0c094>
                     options = <type 'mp_table'> {'RHNComponentType':
'server.app', 'SERVER': 'app', 'RootDir': '/usr/share/rhn'}
                           f = <type 'instancemethod'> <bound method
apacheHandler.headerParserHandler of <server.apacheHandler.apacheHandler
instance at 0xb79cf62c>>
 
Frame HandlerDispatch in
/usr/lib/python2.4/site-packages/mod_python/apache.py at line 299
                         req = <type 'mp_request'> <mp_request object at
0xb7b0c094>
                      config = <type 'mp_table'> {'PythonInterpreter':
'rhn.server', 'PythonPath': 'sys.path+['/usr/share/rhn']'}
                        self = <type 'instance'>
<mod_python.apache.CallBack instance at 0xb7b5f3ac>
                      object = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7b160ac>
                           l = <type 'list'> ['server.apacheServer',
'HeaderParserHandler']
                      module = <type 'module'> <module
'server.apacheServer' from '/usr/share/rhn/server/apacheServer.pyc'>
                       hlist = <type 'mp_hlist'>
{'handler:'server.apacheServer::HeaderParserHandler','directory':'/APP/'
,'silent':0}
                  object_str = <type 'str'> HeaderParserHandler
                       debug = <type 'int'> 0
                 module_name = <type 'str'> server.apacheServer
                  pathstring = <type 'str'> sys.path+['/usr/share/rhn']
                      result = <type 'int'> 500
 

Environment for PID=3085 on exception:
CONSOLE = /dev/console
HOME = /
INIT_VERSION = sysvinit-2.86
LANG = C
NLS_LANG = english.AL32UTF8
ORACLE_HOME = /opt/oracle
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PERL_BADFREE = 0
PREVLEVEL = N
PWD = /
RUNLEVEL = 3
SELINUX_INIT = YES
SHLVL = 3
TERM = linux
_ = /usr/sbin/httpd
previous = N
runlevel = 3
 

--n8FEkCsa004882.1253025972/spacewalk.maninvestments.ad.man.com--

 
 
 
 
 
 
 
 
 

 

**********************************************************************
 Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only.  It contains information which may be confidential and privileged.  If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man Investments cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man Investments makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man Investments reserves the right to monitor, record and retain all electronic communications through its network to ensure the integrity of its systems, for record keeping and regulatory purposes. 
Visit us at: www.maninvestments.com 
TG0908
**********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20090915/4956d887/attachment.htm>


More information about the Spacewalk-list mailing list