Trouble to subscribe (or re-subscribe) redhat server
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trouble to subscribe (or re-subscribe) redhat server
The server worked fine until end of 2020 - we tried to download some packages and got 'Network error'.
So we tried something (in vale) and then we decided to run subscription-manager to resubscribe it.
Then from there we seemed ran into big mess, we searched lots posts and tried all they mentioned but no luck.
The issue is that we have an expired registration and whenever we tried to re-register (with subscription-manager command) it threw 'Network error', in /var/log/rhsm/rhsm.log, we see 'Tunnel connection failed: 407 Proxy Authentication Required'.
So we know something wrong with the proxy. We now run two commands in row: 1) subscription-manager config --server.proxy_hostname=aaa --server.proxy_port=80 --server.proxy_user=bbb --server.proxy_password=ccc; 2) subscription-manager register --username=xxx --password=yyy --force, but it still threw 'Network error' in command output and the 407 error in the log file.
Finally we turned to 'subscription-manager-gui', and configured (by adding proxy server/username/password) and tested proxy connection success (and click 'Save', which saved all the above info in /etc/rhsm/rhsm.conf), from the GUI, we can see that the subscription is expired, but when we tried to remove it, we got our old friend 'Network error'. When we tried to 'Update' in 'All Available Subscriptions', it error out with 'Unable to search for subscriptions: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details'. Then in /var/log/rhsm/rhsm.log, we see the following (same errors) - .......
...Response: 400
...JSON parsing error: No JASON object could be decoded
...Network error code: 400
...Unable to reach server using cached status
.......
We also included the redhat subscription account info in /etc/rhsm/rhsm.conf in [server] section as follow -
username=ppp
password=qqq
Can anybody point out why the GUI connection tested success but it still gave 'Network error' and '400' in log file? What we did wrong and what we should do to fix it?
The server worked fine until end of 2020 - we tried to download some packages and got 'Network error'. So we tried something (in vale) and then we decided to run subscription-manager to resubscribe it.
Then from there we seemed ran into big mess, we searched lots posts and tried all they mentioned but no luck.
The issue is that we have an expired registration and whenever we tried to re-register (with subscription-manager command) it threw 'Network error', in /var/log/rhsm/rhsm.log, we see 'Tunnel connection failed: 407 Proxy Authentication Required'.
So we know something wrong with the proxy. We now run two commands in row: 1) subscription-manager config --server.proxy_hostname=aaa --server.proxy_port=80 --server.proxy_user=bbb --server.proxy_password=ccc; 2) subscription-manager register --username=xxx --password=yyy --force, but it still threw 'Network error' in command output and the 407 error in the log file.
Finally we turned to 'subscription-manager-gui', and configured (by adding proxy server/username/password) and tested proxy connection success (and click 'Save', which saved all the above info in /etc/rhsm/rhsm.conf), from the GUI, we can see that the subscription is expired, but when we tried to remove it, we got our old friend 'Network error'. When we tried to 'Update' in 'All Available Subscriptions', it error out with 'Unable to search for subscriptions: Error updating system data on the server, see /var/log/rhsm/rhsm.log for more details'. Then in /var/log/rhsm/rhsm.log, we see the following (same errors) -
Code:
......
...Response: 400
...JSON parsing error: No JASON object could be decoded
...Network error code: 400
...Unable to reach server using cached status
.......
We also included the redhat subscription account info in /etc/rhsm/rhsm.conf in [server] section as follow -
username=ppp
password=qqq
Can anybody point out why the GUI connection tested success but it still gave 'Network error' and '400' in log file? What we did wrong and what we should do to fix it?
No idea, since there's next to nothing in the way of details. You say you:
"Downloaded some packages" - but don't say which ones, where you downloaded them from, or why you downloaded them versus having yum install them.
"tried something (in vale) - but don't say what.
"searched lots of posts and tried all" - again, no idea WHAT you tried.
...and you don't tell us what version of Red Hat Enterprise you're using, or if you're able to connect to ANYTHING on the Internet from that system.
If you're having a subscription problem with RHEL, the best people to contact would be Red Hat support, since you're paying for it. And if you're using a developer version, there's not much we can help with when we have no idea what you've done/tried so far.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.