crc: The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port
General information
- OS: Linux
- Hypervisor: KVM
- Did you run
crc setup
before starting it (Yes/No)? Yes
CRC version
# Put the output of `crc version`
crc version
crc version: 1.9.0+a68b5e0
OpenShift version: 4.3.10 (embedded in binary)
CRC status
# Put the output of `crc status`
crc status
ERRO The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?
- exit status 1
CRC config
# Put the output of `crc config view`
crc config view
- cpus : 8
- memory : 16384
- pull-secret-file : /home/kumar/Downloads/pull-secret
Host Operating System
# Put the output of `cat /etc/os-release` in case of Linux
# put the output of `sw_vers` in case of Mac
# Put the output of `systeminfo` in case of Windows
cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
Steps to reproduce
-
crc setup
-
crc config set memory 16384
-
crc config set cpus 8
-
crc config set pull-secret-file /home/kumar/Downloads/pull-secret
-
crc config view
-
crc start
-
crc oc-env
-
export PATH=“/home/kumar/.crc/bin:$PATH”
-
eval $(crc oc-env)
-
oc login -u developer -p developer https://api.crc.testing:6443
Expected
connects to the console and authenticate the user
Actual
oc login -u developer -p developer https://api.crc.testing:6443 error: dial tcp 192.168.130.11:6443: connect: connection refused - verify you have provided the correct host and port and that the server is currently running.
Logs
aking call to close driver server (crc) Calling .Close Successfully made call to close driver server Making call to close connection to plugin binary time=“2020-05-04T23:15:10+05:30” level=debug msg=“Running ‘/home/kumar/.crc/bin/oc get co -ojson --kubeconfig /home/kumar/.crc/machines/crc/kubeconfig --context admin --cluster crc’” time=“2020-05-04T23:15:10+05:30” level=debug msg=“Command failed: exit status 1” time=“2020-05-04T23:15:10+05:30” level=debug msg="stdout: " time=“2020-05-04T23:15:10+05:30” level=debug msg=“stderr: The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?\n” time=“2020-05-04T23:15:10+05:30” level=error msg=“The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port?\n - exit status 1”
You can start crc with crc start --log-level debug
to collect logs.
Please consider posting this on http://gist.github.com/ and post the link in the issue.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 31 (11 by maintainers)
I have the same problem on Mac OS X Catalina and CRC version:
CodeReady Containers version: 1.12.0+6710aff OpenShift version: 4.4.8 (embedded in binary)
Can you help troubleshooting ? The cluster is unusable.
Thanks.