Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc login connection refused #164

Open
aws-sujith opened this issue May 20, 2019 · 7 comments
Open

oc login connection refused #164

aws-sujith opened this issue May 20, 2019 · 7 comments

Comments

@aws-sujith
Copy link

Post installation on RHEL 7.6 getting the below error while trying to login

[root@ip-10-0-1-116 installcentos]# oc login https://console.demo.io:8443/
error: dial tcp 10.0.1.116:8443: connect: connection refused - verify you have provided the correct host and port and that the server is currently running.
[root@ip-10-0-1-116 installcentos]#

Anyone faced the same issue? Looking for help to resolve.

@liwsakilive
Copy link

me too

@emad-ramlawi
Copy link

emad-ramlawi commented Jun 14, 2019

me 3
using updated Centos
CentOS Linux release 7.6.1810 (Core)
on Digital Ocean

@emad-ramlawi
Copy link

Post installation on RHEL 7.6 getting the below error while trying to login

[root@ip-10-0-1-116 installcentos]# oc login https://console.demo.io:8443/
error: dial tcp 10.0.1.116:8443: connect: connection refused - verify you have provided the correct host and port and that the server is currently running.
[root@ip-10-0-1-116 installcentos]#

Anyone faced the same issue? Looking for help to resolve.

Dont use Cloud Flare, dont use subdomain, use only FQDN and also make A record for console sub domain to the same ip

@emad-ramlawi
Copy link

me too

Dont use Cloud Flare, dont use subdomain, use only FQDN and also make A record for console sub domain to the same ip

@weslcurt
Copy link

@emad-ramlawi Do you know what changed with Cloud Flare? I was working fine for about a year and when 3.10 3.11 rolled out, I see connection refused everywhere. Time to switch I guess.

@emad-ramlawi
Copy link

emad-ramlawi commented Jun 25, 2019 via email

@weslcurt
Copy link

weslcurt commented Aug 4, 2019

So after switching registrars from CF (to Gandi) per @emad-ramlawi suggestion, I had better results albeit unstable. What helped for me was adding localhost.localdomain in my inventory file which is overwritten in line 119 of grant's install-openshift.sh file.

In my fork of this repo, I add something like this to line 119:
"${IP} localhost.localdomain console console.${DOMAIN}"

I also had to comment out line 161 and 162 so that my /etc/hosts file was not overwritten.

This seemed to clear up all "verify you have provided the correct host and port and that the server is currently running".

Not sure if this is addressing the root cause but hopefully helps somebody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants