fabric8-platform
fabric8-platform copied to clipboard
Can not connet to api server, retrying ...
I can not get the fabric8 api server up and running while I can easily use plain minishift.
$>gofabric8 start --minishift --disk-size=10g --memory=2048 --cpus=2 --package=system --namespace fabric8
minishift is already available on your PATH at C:\Users\XXX\Apps\minishift.exe
oc is already available on your PATH at C:\Users\XXX\cache\oc\v3.6.0\oc.exe
running: C:\Users\XXX\Apps\minishift.exe start --vm-driver=hyperv --memory=2048 --cpus=2 --disk-size=10g
-- Checking if requested hypervisor 'hyperv' is supported on this platform ... OK
-- Checking if Hyper-V driver is installed ... OK
-- Checking if Hyper-V driver is configured to use a Virtual Switch ... OK
-- Checking if user is a member of the Hyper-V Administrators group ... OK
-- Checking the ISO URL ... OK
-- Starting local OpenShift cluster using 'hyperv' hypervisor ...
-- Starting Minishift VM ........................... OK
-- Checking for IP address ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... OK
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... 22% used OK
-- OpenShift cluster will be configured with ...
Version: v3.6.0
-- Checking `oc` support for startup flags ...
host-pv-dir ... OK
host-volumes-dir ... OK
routing-suffix ... OK
host-config-dir ... OK
host-data-dir ... OK
Starting OpenShift using openshift/origin:v3.6.0 ...
OpenShift server started.
The server is accessible via web console at:
https://192.168.25.xxx:8443
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
Cannot connect to api server, retrying...
...
Cannot connect to api server, retrying...
Unable to connect to minishift.exe timed out
Make sure you set below variables export GITHUB_OAUTH_CLIENT_ID=123 export GITHUB_OAUTH_CLIENT_SECRET=123abc
ok I have figured out the way around this through this doc http://fabric8.io/guide/getStarted/minishift.html.
but when the console starts up login as admin/admin
[estumbo@localhost-estumbo ~]$ minishift start --memory=6000 -- Starting profile 'minishift' The 'minishift' VM is already running. [estumbo@localhost-estumbo ~]$ oc get pods error: You must be logged in to the server (the server has asked for the client to provide credentials) [estumbo@localhost-estumbo ~]$ oc get pods error: You must be logged in to the server (the server has asked for the client to provide credentials) [estumbo@localhost-estumbo ~]$ oc login -u system:admin <<<*****-------!!!!! Logged into "https://192.168.99.100:8443" as "system:admin" using existing credentials.
You have access to the following projects and can switch between them with 'oc project
cockpit
- default golang kube-public kube-system mini-che openshift openshift-infra openshift-node
Using project "default".
[estumbo@localhost-estumbo ~]$ oc get pods
NAME READY STATUS RESTARTS AGE
docker-registry-1-wv97h 1/1 Running 8 1d
persistent-volume-setup-tz9j4 0/1 Completed 0 1d
router-1-wqcdd 1/1 Running 8 1d
[estumbo@localhost-estumbo ~]$ gofabric8 deploy -y
▄▄▄▄▄▄▄
███████
▄▄▄▄▄▄▄ ▄▄▄▄▄▄█
███████ ▀▀▀▀▀▀▀ ▄▄▄▄▄▄
▄▄▄▄▄▄▄ ██████
▄▄▄▄▄ ▄▄▄▄▄▄
▀▄▄▄▄▄ ▄▄▄ ▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄▄▀
▀▀▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄█▄▄▄█▄▄▄█▄▄▄
▄█▄▄▄▄▄▄▄▄▄▄▄
▄▄█▄▄▄▄▄▄▄▄
▄▄▄▄▀▀▄█▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Deploying fabric8 to your OpenShift installation at https://192.168.99.100:8443 for domain 192.168.99.100.nip.io in namespace default
Loading fabric8 releases from maven repository:https://repo1.maven.org/maven2/
No --github-client-id flag was specified or $GITHUB_OAUTH_CLIENT_ID environment variable supplied!
[estumbo@localhost-estumbo ~]$ export GITHUB_OAUTH_CLIENT_ID=
███████
▄▄▄▄▄▄▄ ▄▄▄▄▄▄█
███████ ▀▀▀▀▀▀▀ ▄▄▄▄▄▄
▄▄▄▄▄▄▄ ██████
▄▄▄▄▄ ▄▄▄▄▄▄
▀▄▄▄▄▄ ▄▄▄ ▄▄▄
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▀
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▄▄▀
▀▀▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▄█▄▄▄█▄▄▄█▄▄▄
▄█▄▄▄▄▄▄▄▄▄▄▄
▄▄█▄▄▄▄▄▄▄▄
▄▄▄▄▀▀▄█▄
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Deploying fabric8 to your OpenShift installation at https://192.168.99.100:8443 for domain 192.168.99.100.nip.io in namespace default
Loading fabric8 releases from maven repository:https://repo1.maven.org/maven2/ Deploying package: system version: 4.0.208
Template APISERVER_HOSTPORT = 192.168.99.100:8443
Template NODE_IP = 192.168.99.100
Template EXPOSER = Route
Template DOMAIN = 192.168.99.100.nip.io
Template GITHUB_OAUTH_CLIENT_SECRET =