[Spacewalk-list] rhnpush error - unexpected keyword argument 'file'

Andrew Prowant aprowant at vailsys.com
Sat Apr 21 20:02:30 UTC 2012


With using --server=http://localhost/APP shouldn't it be connecting to
localhost? We have recently implemented proxies on user networks but not
on this server network. Connect to http://localhost and
http://<servername> does not show any kind of proxy.

Would a re-install help anything? I have been wanting to try to migrate
from this Cent5 32bit server w/ PGSql to a new RHEL6 64bit server w/
PGSql. If its possible.

Thanks,
Andrew
Miroslav Suchy wrote:
> On 20.4.2012 21:33, Andrew Prowant wrote:
>> Here it is. Thanks for looking at this.
>>
>> Traceback (most recent call last):
>>    File "/usr/bin/rhnpush", line 22, in ?
>>      sys.exit(mod.main() or 0)
>>    File "/usr/share/rhn/rhnpush/rhnpush.py", line 153, in main
>>      ret = upload.packages()
>>    File "/usr/share/rhn/rhnpush/rhnpush.py", line 338, in packages
>>      (server_digest_hash, pkgs_info, digest_hash) =
>> self.check_package_exists()
>>    File "/usr/share/rhn/rhnpush/rhnpush.py", line 488, in
>> check_package_exists
>>      header, payload_stream = rhn_mpm.load(file=f)
>> TypeError: load() got an unexpected keyword argument 'file'
> 
> You got to part of code which is:
>   # it's an older satellite(< 4.1.0).
> end of quote. But this runtime error is false track (and this was
> completly removed in Spacewalk 1.7).
> Your problem is that your Spacewalk server does not send back header:
> X-RHN-Check-Package-Exists.
> 
> Is it possible that rhnpush is accessing Spacewalk server through some
> HTTP Proxy, which remove this header?
> 
> Mirek
> 
> _______________________________________________
> 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