HTTP Status: 403 Forbidden - Insights authorization failed - invalid account number

Posted on

Hello there

three fresh installed machines are not able to register to insights:

here a review from a log from one of these server:

2022-06-23 12:45:24,512 DEBUG insights.client.client Logging initialized
2022-06-23 12:45:24,513 DEBUG root Loaded initial egg: /etc/insights-client/rpm.egg/insights
2022-06-23 12:45:24,513 DEBUG insights.client /usr/bin/gpg --verify --keyring /etc/insights-client/redhattools.pub.gpg /var/lib/insights/newest.egg.asc /var/lib/insights/newest.egg
2022-06-23 12:45:24,524 DEBUG insights.client GPG return code: 0
2022-06-23 12:45:24,850 DEBUG insights.client.client Logging initialized
2022-06-23 12:45:24,850 DEBUG insights.client.auto_config Trying to autoconfigure...
2022-06-23 12:45:24,853 DEBUG rhsm.https Using standard libs to provide httplib and ssl
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Checking if system is subscription-manager registered
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config System is subscription-manager registered
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Found Host: subscription.rhsm.redhat.com, Port: 443
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Found CA: /etc/rhsm/ca/redhat-uep.pem
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Setting authmethod to CERT
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Connected to Red Hat Directly, using cert-api
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Trying to set auto_configuration
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Attempting to auto configure!
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Attempting to auto configure hostname: cert-api.access.redhat.com
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Attempting to auto configure CA cert: None
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Attempting to auto configure proxy: None
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Auto-configured base_url: cert-api.access.redhat.com/r/insights
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Not connected to Satellite, skipping branch_info
2022-06-23 12:45:24,856 DEBUG insights.client.auto_config Updated base_url: cert-api.access.redhat.com/r/insights
2022-06-23 12:45:24,856 INFO insights.client.phase.v1 Running Connection Tests...
2022-06-23 12:45:24,856 DEBUG insights.client.connection NO PROXY: None
2022-06-23 12:45:24,922 DEBUG insights.client.connection Proxy config: None
2022-06-23 12:45:24,922 INFO insights.client.connection === Begin Upload URL Connection Test ===
2022-06-23 12:45:24,922 NETWORK insights.client.connection Testing: https://cert-api.access.redhat.com/r/insights/uploads/
2022-06-23 12:45:24,923 NETWORK insights.client.connection POST https://cert-api.access.redhat.com/r/insights/uploads/
2022-06-23 12:45:25,574 NETWORK insights.client.connection HTTP Status: 403 Forbidden
2022-06-23 12:45:25,574 NETWORK insights.client.connection HTTP Response Text: Insights authorization failed - invalid account number

2022-06-23 12:45:25,574 INFO insights.client.connection Connection failed
2022-06-23 12:45:25,574 INFO insights.client.connection === End Upload URL Connection Test: FAILURE ===

2022-06-23 12:45:25,575 INFO insights.client.connection === Begin API URL Connection Test ===
2022-06-23 12:45:25,575 NETWORK insights.client.connection Testing: https://cert-api.access.redhat.com/r/insights/
2022-06-23 12:45:25,575 NETWORK insights.client.connection GET https://cert-api.access.redhat.com/r/insights/
2022-06-23 12:45:26,238 NETWORK insights.client.connection HTTP Status: 403 Forbidden
2022-06-23 12:45:26,238 NETWORK insights.client.connection HTTP Response Text: Insights authorization failed - invalid account number

2022-06-23 12:45:26,238 INFO insights.client.connection Connection failed
2022-06-23 12:45:26,238 INFO insights.client.connection === End API URL Connection Test: FAILURE ===

2022-06-23 12:45:26,238 INFO insights.client.connection Connectivity tests completed with some errors

Best regards

Kilian