Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

devspace ui should display logs even if it cannot list namespaces #1112

Closed
nberlee opened this issue May 30, 2020 · 3 comments
Closed

devspace ui should display logs even if it cannot list namespaces #1112

nberlee opened this issue May 30, 2020 · 3 comments
Labels
kind/bug Something isn't working

Comments

@nberlee
Copy link
Contributor

nberlee commented May 30, 2020

What happened?
As a devspace-cloud user using devspace ui when displaying logs i got presented with a

An unknown error occurred. We're very sorry about that

This is probably because the url /api/resource?resource=namespaces&context=devspace-randomname (context is correct) is returning a http 500, in the body:

request: unknown (get namespaces)

a kubectl get namespaces in the same context gives me

Error from server (Forbidden): namespaces is forbidden: User "system:serviceaccount:randomname:devspace" cannot list resource "namespaces" in API group "" at the cluster scope

What did you expect to happen instead?
Display the logs of my running devspace containers, even if it cannot list namespaces

How can we reproduce the bug? (as minimally and precisely as possible)
Use devspace cloud, make sure you do not have additional cluster assigned other than the default devspace. Make a minimal working devspace.yaml and try to use devspace ui

Local Environment:

  • DevSpace Version: devspace version 4.12.5
  • Operating System: linux
  • Deployment method: kubectl apply

Kubernetes Cluster:

  • Cloud Provider: DevSpace Cloud (onprem cluster)
  • Kubernetes Version: v1.18.3 (client & api)

Anything else we need to know?
I really like devspace :P

/kind bug

@FabianKramm FabianKramm added the kind/bug Something isn't working label Jun 2, 2020
@FabianKramm
Copy link
Collaborator

@nberlee thanks for reporting this issue! I'll take a look at this as soon as I can!

@FabianKramm
Copy link
Collaborator

@nberlee I took a look at the problem and the failing request to retrieve the namespaces shouldn't be a problem usually, devspace should display only the current namespace then. I suspect the An unknown error occurred. We're very sorry about that is caused by something else, could you open the developer tools in chrome (Command+Option+C (Mac) or Control+Shift+C (Windows, Linux, Chrome OS)) when this error occurs and paste the error messages in here please?

@nberlee
Copy link
Contributor Author

nberlee commented Jun 8, 2020

Hi @FabianKramm ,

Not sure what happend but it is working now and I cannot replicate it anymore. This happened for my colleague and me, but not anymore. So I am closing this issue, and it is not an issue for us anymore, and I cannot get back into the described state anymore to diagnose

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants