-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Kubernetes issues: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory #13865
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
Comments
Also seeing the same error when trying to run my code:
It's also seen in
Docker version:
OC version
Would appreciate any workaround. |
@ganesh3 @LTheobald which openshift version are you using? What are the exact steps that lead you to this error? |
Additionally it would be nice to know which openshift flavor your're using: oc cluster up, minishift, online preview, binaries, else? |
I'm using the OpenShift version found on the releases page of this repo. V1.5.0 to be exact. I'm calling ’oc cluster up’ (although with proxy settings), using the web GUI to build a simple project using some Java & Soring Boot & getting the error on the very first build. I'll see if I can recreate it in a way I can distribute it as-is. |
I was using latest master but that should not differ that much. Definitely
a repeatable reproducer with exact steps would be helpful :-)
…On Apr 26, 2017 11:40 AM, "Lee Theobald" ***@***.***> wrote:
I'm using the OpenShift version found on the releases page of this repo.
V1.5.0 to be exact. I'm calling ’oc cluster up’ (although with proxy
settings), using the web GUI to build a simple project using some Java &
Soring Boot & getting the error on the very first build.
I'll see if I can recreate it in a way I can distribute it as-is.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13865 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAjLVTyFAPAENHObOcSMB3rDLDbxPFbjks5rzxD5gaJpZM4NFcHG>
.
|
@soltysh Latest master is
What Docker version are you running? Is my problem that I don't want to rollback to an old version of Docker? Although I thought I saw that Docker version was fixed in v1.5 so a shame it's regressed potentially in v3.6 |
@LTheobald which docker version you're running, what's your operating system, where did you get your docker version from? |
Linux Mint 18.1 (it's based on Ubuntu Xenial 16.04) |
I have provided the OC version in my issue log above. |
Docker version might be adding to the issue. I'm attempting to downgrade to an older Docker version to see if that removes the issue. Although the docs state:
Various release notes & other bits in Github mention that anything after 1.13 isn't supported. |
Yes, downgrade if you can, see #13281. |
I've run into this buy while trying to run the Administrators: Setting Up a Cluster tutorial. I created a Fedora 25 x64 node in Digital Ocean. I installed Docker, and followed the tutorial. The tutorial app fails to deploy with the following error:
Version Information
Hope this helps, looks like it might be #13281 |
Has any of you got oc working on Ubuntu even with an older release of the oc? |
Sorry, Fedora 25 here. I'll try to get latest ubuntu on a vm and look into the problem. |
same issue here Server https://192.168.1.50:8443 |
Same issue here. When I try to create an integrated registry, there is an error: error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory. Also same error for creating router. oc version Server https://10.0.2.15:8443 |
Same issue here, when i try to run Kubernetes go client, hitting the same issue: [root@robot-vm-dev home]# ./client goroutine 1 [running]: Is it the same issue or any ways to avoid this? Thanks, |
So, I'm also getting this on a fresh Centos 7 system and 'oc cluster up'
|
Its working with the docker version 1.13.0. To install an older docker version see: https://forums.docker.com/t/how-can-i-install-a-specific-version-of-the-docker-engine/1993/5 |
#若忘记修改可能会报错:No API token found for service account "default" and,You need to config admission-control flag on apiserver. Sometihng like --admission-control=ServiceAccount. |
@soltysh so this seems to be consistently caused by using a newer version of docker. WDYT? |
@krims0n32 were you able to resolve the issue? Perhaps by downgrading to docker 1.12.x? |
Following this thread - having the same issue with |
I just run this using ubuntu 16.04 and docker 1.12.6 and everything worked as expected. I'm currently trying with docker 17.03.1-ce. |
Now, I'm pretty confident this is connected with newer docker version. Apparently all the fixes that are provided so far are not sufficient, yet. I'm closing this in favor of #14279. |
Downgrade to version
|
The new release v3.6.0-rc.0 resolved for me the issue: Documentation: https://github.com/openshift/origin/blob/release-3.6/docs/cluster_up_down.md#linux |
same thing :( Server https://127.0.0.1:8443 |
error: open /var/run/secrets/kubernetes.io/serviceaccount/token: no such file or directory |
Uh oh!
There was an error while loading. Please reload this page.
I am following the https://github.com/redhat-iot/summit2017/ URL to setup the redhat IoT solution for fleet management and getting the below errorstar as the pods have not started are in ERROR state. I have installed oc in Ubuntu 16.10.
Current Result
The command below lists the error
Detailed errors for each pod:
pod specific Errors:
Expected Result
To run the application correctly
Additional Information
The text was updated successfully, but these errors were encountered: