subscription-manager register shows server url has an invalid scheme.
Environment
- Red Hat Enterprise Linux(RHEL) 5.7 and newer
- Red Hat Enterprise Linux(RHEL) 6.1 and newer
- Red Hat Enterprise Linux(RHEL) 7.0 and newer
Issue
- subscription-manager register shows "Server URL has an invalid scheme. http:// and https:// are supported".
Resolution
Unset the wrong entry of "http://" in the environment for proxy using unset command.
# unset http_proxy
Root Cause
Wrong entry of "http://" in the environment for proxy.
# http_proxy=http:/abc.domain.com:1234
The correct entry should be like below.
# http_proxy=http://abc.domain.com:1234
Diagnostic Steps
Check for any wrong proxy entries in the environment using env command.
# env | grep -i proxy
Also check for any proxy shell script in /etc/profile.d/
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments