LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-07-2021, 02:42 PM   #1
pbsd
LQ Newbie
 
Registered: Aug 2017
Posts: 7

Rep: Reputation: Disabled
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?

TIA
 
Old 01-07-2021, 04:34 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by pbsd View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
subscribe query: SMTP error from remote server for MAIL FROM command, host: vger.kernel.org Glenn D. Linux - Newbie 1 11-25-2018 07:59 AM
How do i subscribe to redhat? rezacitra Linux - Enterprise 2 04-04-2007 05:13 AM
"subscribe to thread"? "subscribe to forum"? johnMG LQ Suggestions & Feedback 4 04-12-2005 08:50 PM
Redhat begs me to subscribe to services jon_k Linux - Software 21 07-30-2003 08:38 AM
Auto Subscribe JesseJames LQ Suggestions & Feedback 2 02-17-2003 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration