[Spacewalk-list] rhnpush cannot upload packages

Kirill Morozov l0rda at l0rda.biz
Sat Feb 7 20:50:27 UTC 2009


Hello,

i have installed spacewalk, all is ok, but i cannot add packages to a  
channel.



# rhnpush --channel=centos5-base-x86_64 --server=http://localhost/APP  
--tolerant --dir=/tmp/1 --username=rhnpush --password=xxx -vvv
Uploading files from directory /tmp/1
Connecting to http://localhost/APP
url is http://localhost/PACKAGE-PUSH
Result codes: 200 OK
Computing md5sum and package Info .This may take sometime ...
Internal Server Error





Apache error log:



Exception reported from sw.domain.com
Time: Sat Feb  7 20:33:13 2009
Exception type exceptions.AttributeError
Exception while handling function packages.getPackageMD5sumBySession
Request object information:
URI: /APP
Remote Host: localhost.localdomain
Server Name: sw.domain.com:0
Headers passed in:
     Accept-Encoding: identity
     Content-Length: 382
     Host: localhost
     content-encoding: x-gzip
     content-transfer-encoding: binary
     content-type: application/binary
     user-agent: rhn.rpclib.py/$Revision: 102540 $
     x-client-version: 1
     x-info: RPC Processor (C) Red Hat, Inc (version 102540)
     x-rhn-transport-capability: follow-redirects=2
     x-transport-info: Extended Capabilities Transport (C) Red Hat,  
Inc (version 102540)

Exception Handler Information
Traceback (most recent call last):
   File "/usr/share/rhn/server/apacheRequest.py", line 120, in  
call_function
     response = apply(func, params)
   File "/usr/share/rhn/server/handlers/app/packages.py", line 453, in  
getPackageMD5sumBySession
     return self._getPackageMD5sum(org_id, pkg_infos, info)
   File "/usr/share/rhn/server/handlers/app/packages.py", line 510, in  
_getPackageMD5sum
     filePath = os.path.join(CFG.MOUNT_POINT, row['path'])
   File "/usr/lib64/python2.4/posixpath.py", line 60, in join
     if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'





Test passed ok:


Setting force flag: Passed
Setting the org: Passed
Setting the URL: Passed
Setting the channels: Passed
Setting the username and password: Passed
Connecting to http://localhost/APP
Setting the server: Passed
Testing connection and authentication: Passed
Testing access to upload functionality on server: Passed
The files that would have been pushed:
/tmp/1/hwdata-0.213.6-1.el5.noarch.rpm


If i try to upload only headers - it is ok.
I'm using CentOS 5.2.

Maybe you can help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20090207/4b232cc3/attachment.htm>


More information about the Spacewalk-list mailing list