[Spacewalk-list] rhnpush cannot upload packages
Pradeep Kilambi
pkilambi at redhat.com
Sun Feb 8 01:47:15 UTC 2009
Kirill Morozov wrote:
> 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'
>
>
>
> |
Looks like your mount_point is probably not set. Can you make sure
/var/satellite dir is present on your server. Also make sure your
/etc/rhn/rhn.conf has mount point of /var/satellite defined as a config
variable. Either ways its jus a missing check before we join the paths.
So I opened a bug to track this. It should be a quick fix notifying user
that the path is not set. This is tracked in
https://bugzilla.redhat.com/show_bug.cgi?id=484534
Thanks,
~ Prad
>
>
> 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.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
More information about the Spacewalk-list
mailing list