[Spacewalk-list] spacewalk-repo-sync gives "HTTPS Error 401 - Unauthorized" for ULN repository

Nicole Beck nskyrca at syr.edu
Mon Mar 26 18:37:10 UTC 2018


Hi,
I'm trying to setup channels for Oracle Linux on my Spacewalk 2.7 server (running  CentOS 7), but the spacewalk-repo-sync is failing with the "unauthorized" error below.

[root at spacewalk rpm-gpg]# spacewalk-repo-sync --type uln --channel=ol6_x86_64_spacewalk26_client --url=uln:///ol6_x86_64_spacewalk26_client --verbose
14:03:49 ======================================
14:03:49 | Channel: ol6_x86_64_spacewalk26_client
14:03:49 ======================================
14:03:49 Sync of channel started.
14:03:49 Repo URL: uln:///ol6_x86_64_spacewalk26_client
The download URL is: https://linux-update.oracle.com/XMLRPC/GET-REQ/ol6_x86_64_spacewalk26_client
14:03:52 Packages in repo:                56
14:03:52 Packages already synced:          0
14:03:52 Packages to sync:                40
14:03:52 New packages to download:        40
14:03:52 Downloading total 40 files from 1 queues.
14:03:52 ERROR: Download failed: https://linux-update.oracle.com/XMLRPC/GET-REQ/ol6_x86_64_spacewalk26_client/getPackage/jabberpy-0.5-0.21.el6.noarch.rpm - [Errno 14] HTTPS Error 401 - Unauthorized.


I put my ULN username and password in /etc/rhn/spacewalk-repo-sync/uln.conf, and the permissions are 0400. I verified that the username and password are correct by copying and pasting from this file into the login for https://uln.oracle.com.  If I put the wrong password in uln.conf, I get the "Fault 60: Invalid username or password" error when running spacewalk-repo-sync, so I'm assuming the file is correct.

I tried stopping Spacewalk, removing the appropriate subdirectories in /var/cache/rhn/reposync/1/ and restarting Spacewalk, but this did not help.  Does anyone have suggestions? The directions at https://github.com/spacewalkproject/spacewalk/blob/master/backend/README.ULN are pretty straightforward, but I'm obviously missing something.
Thanks.
Nicole
Nicole Beck
Information Technology Analyst
Information Technolgy Services - Core Infrustructure Services - Unix

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20180326/0643a35f/attachment.htm>


More information about the Spacewalk-list mailing list