Skip to content
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

headlamp and cloud-spanner have incorrect file permissions #16412

Closed
spowelljr opened this issue May 1, 2023 · 0 comments · Fixed by #16413
Closed

headlamp and cloud-spanner have incorrect file permissions #16412

spowelljr opened this issue May 1, 2023 · 0 comments · Fixed by #16413
Assignees
Labels
area/addons kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@spowelljr
Copy link
Member

Related #16408

After my fix in #16408 that fixes setting file permissions, the headlamp and cloud-spanner addons failed to enable.

I0501 18:55:15.820857  777919 out.go:177]     ▪ Using image ghcr.io/headlamp-k8s/headlamp:v0.16.0
    ▪ Using image ghcr.io/headlamp-k8s/headlamp:v0.16.0
I0501 18:55:15.822465  777919 addons.go:420] installing /etc/kubernetes/addons/headlamp-namespace.yaml
I0501 18:55:15.822495  777919 exec_runner.go:151] cp: memory --> /etc/kubernetes/addons/headlamp-namespace.yaml (76 bytes)
I0501 18:55:15.824305  777919 out.go:177] 

W0501 18:55:15.825713  777919 out.go:239] ❌  Exiting due to MK_ADDON_ENABLE: enable failed: run callbacks: running callbacks: [error writing to tempfile /tmp/minikube3721412578: create: open /tmp/minikube3721412578: permission denied]
❌  Exiting due to MK_ADDON_ENABLE: enable failed: run callbacks: running callbacks: [error writing to tempfile /tmp/minikube3721412578: create: open /tmp/minikube3721412578: permission denied]
W0501 18:55:15.825730  777919 out.go:239] 

W0501 18:55:15.827107  777919 out.go:239] ╭───────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                           │
│    😿  If the above advice does not help, please let us know:                             │
│    👉  https://github.com/kubernetes/minikube/issues/new/choose                           │
│                                                                                           │
│    Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
│    Please also attach the following file to the GitHub issue:                             │
│    - /tmp/minikube_addons_af3b8a9ce4f102efc219f1404c9eed7a69cbf2d5_0.log                  │
│                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────╯

I looked at the file permissions for those addon files and they have a typo, they're 6040 instead of 0640.

@spowelljr spowelljr added kind/bug Categorizes issue or PR as related to a bug. area/addons priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels May 1, 2023
@spowelljr spowelljr self-assigned this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/addons kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant