fabric8io / fabric8-platform

Generates the distribution of the fabric8 microservices platform
Apache License 2.0
104 stars 66 forks source link

Can not connet to api server, retrying ... #1179

Open KIC opened 7 years ago

KIC commented 7 years ago

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
ykhadilkar commented 6 years ago

Make sure you set below variables export GITHUB_OAUTH_CLIENT_ID=123 export GITHUB_OAUTH_CLIENT_SECRET=123abc

digikin commented 6 years ago

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

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= [estumbo@localhost-estumbo ~]$ export GITHUB_OAUTH_CLIENT_SECRET= [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/ 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 = Template GITHUB_OAUTH_CLIENT_ID = Template HTTP = true Template TLS_ACME = false Template APISERVER = 192.168.99.100 Template OAUTH_AUTHORIZE_PORT = 8443 Template NAMESPACE = default Template RECOMMENDER_API_TOKEN = Creating system template resources in namespace default from 57 objects Processing resource kind: Secret in namespace default name auth Processing resource kind: Secret in namespace default name f8tenant Processing resource kind: Secret in namespace default name keycloak Processing resource kind: Secret in namespace default name wit Processing resource kind: ServiceAccount in namespace default name configmapcontroller Processing resource kind: ServiceAccount in namespace default name exposecontroller Processing resource kind: ServiceAccount in namespace default name init-tenant Processing resource kind: Service in namespace default name api Processing resource kind: Service in namespace default name auth Processing resource kind: Service in namespace default name auth-db Processing resource kind: Service in namespace default name che-starter Processing resource kind: Service in namespace default name f8tenant Processing resource kind: Service in namespace default name fabric8 Processing resource kind: Service in namespace default name forge Processing resource kind: Service in namespace default name init-tenant-db Processing resource kind: Service in namespace default name keycloak Processing resource kind: Service in namespace default name keycloak-db Processing resource kind: Service in namespace default name sso Processing resource kind: Service in namespace default name wit Processing resource kind: Service in namespace default name wit-db Processing resource kind: RoleBinding in namespace default name configmapcontroller-edit Processing resource kind: RoleBinding in namespace default name exposecontroller-edit Processing resource kind: PersistentVolumeClaim in namespace default name auth-db-postgresql-data Processing resource kind: PersistentVolumeClaim in namespace default name init-tenant-postgresql-data Processing resource kind: PersistentVolumeClaim in namespace default name keycloak-db-postgresql-data Processing resource kind: PersistentVolumeClaim in namespace default name wit-postgresql-data Processing resource kind: ConfigMap in namespace default name auth Processing resource kind: ConfigMap in namespace default name che-starter Processing resource kind: ConfigMap in namespace default name exposecontroller Processing resource kind: ConfigMap in namespace default name f8tenant Processing resource kind: ConfigMap in namespace default name fabric8 Processing resource kind: ConfigMap in namespace default name fabric8-system Processing resource kind: ConfigMap in namespace default name forge Processing resource kind: ConfigMap in namespace default name keycloak Processing resource kind: ConfigMap in namespace default name sso Processing resource kind: ConfigMap in namespace default name wit Processing resource kind: DeploymentConfig in namespace default name auth Processing resource kind: DeploymentConfig in namespace default name auth-db Processing resource kind: DeploymentConfig in namespace default name che-starter Processing resource kind: DeploymentConfig in namespace default name configmapcontroller Processing resource kind: DeploymentConfig in namespace default name exposecontroller Processing resource kind: DeploymentConfig in namespace default name fabric8 Processing resource kind: DeploymentConfig in namespace default name forge Processing resource kind: DeploymentConfig in namespace default name init-tenant Processing resource kind: DeploymentConfig in namespace default name init-tenant-db Processing resource kind: DeploymentConfig in namespace default name keycloak Processing resource kind: DeploymentConfig in namespace default name keycloak-db Processing resource kind: DeploymentConfig in namespace default name wit Processing resource kind: DeploymentConfig in namespace default name wit-db Processing resource kind: Route in namespace default name api Processing resource kind: Route in namespace default name auth Processing resource kind: Route in namespace default name f8tenant Processing resource kind: Route in namespace default name fabric8 Processing resource kind: Route in namespace default name forge Processing resource kind: Route in namespace default name keycloak Processing resource kind: Route in namespace default name sso Processing resource kind: Route in namespace default name wit system........................................................................✔ If this your first deployment then it may take a while to download the docker images, please be patient. To track progress run the following command in a new terminal session: watch oc get pods -n default