spring-cloud-dataflow-server-openshift icon indicating copy to clipboard operation
spring-cloud-dataflow-server-openshift copied to clipboard

Expired token?

Open kalvarez2 opened this issue 7 years ago • 0 comments

Folowing some of the instructions from blog, started the server with the following arguments:

-Dopenshift.url=https://192.168.42.189:8443 \
 -Dkubernetes.master=https://192.168.42.189:8443 \
 -Dkubernetes.trust.certificates=true \
 -Dkubernetes.auth.basic.username=admin \
 -Dkubernetes.auth.basic.password=admin \
--spring.cloud.deployer.kubernetes.namespace=scdf-apps \
--maven.resolvePom=true \ 
--maven.remote-repositories.spring.url=http://repo.spring.io/snapshots

Using a new minishift instance, I can login to the minishift instance using the host port username and password supplied as arguments Got the following stack trace:

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://192.168.42.189:8443/api/v1/namespaces/default/services?labelSelector=spring-app-id%3Dpeople-personsink. Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized
.
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:470)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:407)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:343)
	at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:327)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:605)
	at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:70)
	at org.springframework.cloud.deployer.spi.kubernetes.KubernetesAppDeployer.status(KubernetesAppDeployer.java:202)
	at org.springframework.cloud.deployer.spi.openshift.OpenShiftAppDeployer.deploy(OpenShiftAppDeployer.java:70)
	at org.springframework.cloud.deployer.spi.openshift.ResourceAwareOpenShiftAppDeployer.deploy(ResourceAwareOpenShiftAppDeployer.java:33)
...  

Is there any difference I should be aware of when using minishft instead of vagrant as per the blog? Any more recent blog post that would help? Would the instructions here be better? https://donovanmuller.github.io/spring-cloud-dataflow-server-openshift/docs/1.1.0.RELEASE/reference/htmlsingle/#getting-started thanks!

kalvarez2 avatar Jan 16 '18 18:01 kalvarez2