-
Notifications
You must be signed in to change notification settings - Fork 10
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
Kubernetes Client Exception : Failure executing: GET #21
Comments
Hi Are you sure that the kubectl get crds it should return something like:
If not, you can try re-running the |
Thank you! The CRD does seem to have been created: john@rancher 1-namespaced-hpa]$ kubectl get crds Here's the output of my latest try, done right before opening this issue. This was on k8s 1.19.5. I had deleted the shinyproxy namespace and deleted the CRD prior to this run, to start fresh: [john@rancher 1-namespaced-hpa]$ kustomize build . | kubectl apply -f - And here's the output of the first rerun: [john@rancher 1-namespaced-hpa]$ kustomize build . | kubectl apply -f - I have also tried deleting the shinyproxy-operator pod and letting k8s recreate it, however I end up with the same error logs. |
Are you using our docker container (i.e. https://hub.docker.com/r/openanalytics/shinyproxy-snapshot/tags?page=1&ordering=last_updated)? |
Success! I updated to image: openanalytics/shinyproxy-operator-snapshot:0.1.0-SNAPSHOT-20210923.115703 and now have this: [john@rancher 1-namespaced-hpa]$ kubectl get pods --namespace=shinyproxy Thank you so much for the very quick assistance! |
With the release of version 1.0.0 this is fixed and you should be able to use the |
Hello,
Thank you for your work on the operator! I am running commit 7122072 and have tried deploying against k8s 1.19.5 and 1.21.5, both deployed as RKE by Rancher.
In both cases, the kustomize deploy of 1-namespaced-hpa succeeds without errors, but the shinyproxy-operator pod ends up in CrashLoopBackOff status permanently. I get the following logs for it. Any tips on what to try next?
12:27:30.701 [main ] DEBUG io.fa.ku.cl.Config - Trying to configure client from Kubernetes config...
12:27:30.708 [main ] DEBUG io.fa.ku.cl.Config - Did not find Kubernetes config at: [/home/shinyproxy-operator/.kube/config]. Ignoring.
12:27:30.708 [main ] DEBUG io.fa.ku.cl.Config - Trying to configure client from service account...
12:27:30.709 [main ] DEBUG io.fa.ku.cl.Config - Found service account host and port: 10.43.0.1:443
12:27:30.709 [main ] DEBUG io.fa.ku.cl.Config - Found service account ca cert at: [/var/run/secrets/kubernetes.io/serviceaccount/ca.crt].
12:27:30.709 [main ] DEBUG io.fa.ku.cl.Config - Found service account token at: [/var/run/secrets/kubernetes.io/serviceaccount/token].
12:27:30.710 [main ] DEBUG io.fa.ku.cl.Config - Trying to configure client namespace from Kubernetes service account namespace path...
12:27:30.710 [main ] DEBUG io.fa.ku.cl.Config - Found service account namespace at: [/var/run/secrets/kubernetes.io/serviceaccount/namespace].
12:27:31.620 [main ] INFO eu.op.sh.Operator - Using NAMESPACED for property SPO_MODE
12:27:31.621 [main ] INFO eu.op.sh.Operator - Using false for property SPO_DISABLE_SECURE_COOKIES
12:27:31.623 [main ] INFO eu.op.sh.Operator - Using 0 for property SPO_PROBE_INITIAL_DELAY
12:27:31.703 [main ] INFO eu.op.sh.Operator - Using 0 for property SPO_PROBE_FAILURE_THRESHOLD
12:27:31.704 [main ] INFO eu.op.sh.Operator - Using 3 for property SPO_PROBE_TIMEOUT
12:27:31.705 [main ] INFO eu.op.sh.Operator - Using 60 for property SPO_STARTUP_PROBE_INITIAL_DELAY
12:27:31.706 [main ] INFO eu.op.sh.Operator - Using -1 for property SPO_PROCESS_MAX_LIFETIME
12:27:31.706 [main ] INFO eu.op.sh.Operator - Using DEBUG for property SPO_LOG_LEVEL
12:27:31.709 [main ] INFO eu.op.sh.Operator - Running in NAMESPACED mode
12:27:31.710 [main ] INFO eu.op.sh.Operator - Using namespace : shinyproxy
12:27:31.916 [main ] INFO eu.op.sh.Operator - Starting background processes of ShinyProxy Operator
Warning: could not check whether ShinyProxy CRD exits.
This is normal when the ServiceAccount of the operator does not have permission to access CRDs (at cluster scope).
If you get an unexpected error after this message, make sure that the CRD exists.
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://10.43.0.1/apis/openanalytics.eu/v1/namespaces/shinyproxy/shinyproxies. Message: 404 page not found
.
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:686)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:625)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:565)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:526)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:509)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.listRequestHelper(BaseOperation.java:137)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:524)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:513)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.list(BaseOperation.java:88)
at io.fabric8.kubernetes.client.informers.cache.Reflector.getList(Reflector.java:53)
12:27:32.914 [main ] WARN eu.op.sh.Main - Kubernetes Client Exception : Failure executing: GET at: https://10.43.0.1/apis/openanalytics.eu/v1/namespaces/shinyproxy/shinyproxies. Message: 404 page not found
.
at io.fabric8.kubernetes.client.informers.cache.Reflector.listSyncAndWatch(Reflector.java:77)
at io.fabric8.kubernetes.client.informers.impl.DefaultSharedIndexInformer.run(DefaultSharedIndexInformer.java:146)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.inform(BaseOperation.java:1043)
at eu.openanalytics.shinyproxyoperator.controller.ShinyProxyListener.start(ShinyProxyListener.kt:40)
at eu.openanalytics.shinyproxyoperator.Operator.prepare(Operator.kt:192)
at eu.openanalytics.shinyproxyoperator.MainKt.main(main.kt:38)
at eu.openanalytics.shinyproxyoperator.MainKt$main$3.invoke(main.kt)
at eu.openanalytics.shinyproxyoperator.MainKt$main$3.invoke(main.kt)
at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
at kotlin.coroutines.jvm.internal.RunSuspendKt.runSuspend(RunSuspend.kt:19)
at eu.openanalytics.shinyproxyoperator.MainKt.main(main.kt)
The text was updated successfully, but these errors were encountered: