Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

user namespace is missing for some of the accounts (side effects is 'Internal Server Error' during che workspace creation) #3847

Closed
mmorhun opened this issue Jun 25, 2018 · 21 comments

Comments

@mmorhun
Copy link

mmorhun commented Jun 25, 2018

When I try to start any workspace it fails right after loading GWT IDE with Internal Server Error occurred, error time: ******** message in a popup.

I have <username>-che namespace. When I try to see logs or events I only can see No Pods message.
I can always reproduce this issue. It doesn't matter which stack I try to use (I tried a few - the same result).

@AndrienkoAleksandr
Copy link

I have the same issue.

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@AndrienkoAleksandr @mmorhun could you please provide events from *-che namespaces from oso ?

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

for @mmorhun case the che server logs shows the following:

com.google.common.util.concurrent.UncheckedExecutionException: java.lang.RuntimeException: No namespace with type 'user' was found in the user tenant at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2214) at com.google.common.cache.LocalCache.get(LocalCache.java:4053) at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057) at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986) at com.redhat.che.multitenant.TenantDataProvider.getUserCheTenantData(TenantDataProvider.java:85)

@AndrienkoAleksandr could you please provide your osio username ?

@ibuziuk ibuziuk changed the title Failed to start a Che wokspace Failed to start a Che wokspace - Internal Server Error occurred Jun 25, 2018
@AndrienkoAleksandr
Copy link

AndrienkoAleksandr commented Jun 25, 2018

@ibuziuk I'm using oandriie to login.

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@AndrienkoAleksandr do you have all the namespaces when you login to oso ? it appeared to be that @mmorhun is missing user namespace (mmorhun namespace does not exist) :

image

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@aslakknutsen any ideas why user namespace could me missing ?

@AndrienkoAleksandr
Copy link

screenshot-console starter-us-east-2 openshift com-2018 06 25-12-53-13

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@AndrienkoAleksandr O_O you're also missing user namespace oandriie but what is super weird is the TestProject namepace.

@ibuziuk ibuziuk changed the title Failed to start a Che wokspace - Internal Server Error occurred user namespace is missing for some of the accounts (this results in 'Internal Server Error` during workspace creation) Jun 25, 2018
@ibuziuk ibuziuk changed the title user namespace is missing for some of the accounts (this results in 'Internal Server Error` during workspace creation) user namespace is missing for some of the accounts (side effects is 'Internal Server Error` during che workspace creation) Jun 25, 2018
@ibuziuk ibuziuk changed the title user namespace is missing for some of the accounts (side effects is 'Internal Server Error` during che workspace creation) user namespace is missing for some of the accounts (side effects is 'Internal Server Error' during che workspace creation) Jun 25, 2018
@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@AndrienkoAleksandr have you created TestProject manually via oc / web console ?

@AndrienkoAleksandr
Copy link

@ibuziuk, sorry, I can't remember.

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

@AndrienkoAleksandr I would really appreciate if you could try to delete TestProject (if you would be able to do it, this would mean that you have created the project yourself, otherwise it would mean some subtle bug in init-tenant)

@AndrienkoAleksandr
Copy link

AndrienkoAleksandr commented Jun 25, 2018

@ibuziuk I deleted project. Look at video, please:
screencast-console starter-us-east-2 openshift com-2018 06 25-15-05-24

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

The issue with missing / extra namespaces is tracked [1] by the SD team.
@mmorhun @AndrienkoAleksandr the issue for your accounts have been fixed. could you please re-login (in order to trigger init-tenant) and verify that the problem is fixed ?

[1] https://gitlab.cee.redhat.com/dtsd/housekeeping/issues/1852

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 25, 2018

The issue with extra namespaces is supposed to be fixed as part of #1446

@mmorhun
Copy link
Author

mmorhun commented Jun 25, 2018

@ibuziuk I still cannot start a workspace. I delete all existed workspaces, created new one from Java-CentOS stack and the same error...

@AndrienkoAleksandr
Copy link

Doesn't work for me too. The same exception.

@mmorhun
Copy link
Author

mmorhun commented Jun 25, 2018

But namespaces are gone:
screenshot from 2018-06-25 18-27-07

@xyntrix
Copy link

xyntrix commented Jun 26, 2018

@mmorhun are you able to go to profile -> edit profile -> update tenant? that should create missing objects. if that doesn't work go to the same spot and try "reset environment".

i am not seeing namespaces for mmorhun* via tier2 or via service account -- so, if they were manually created, this would be in a space that i cannot see into.

@mmorhun
Copy link
Author

mmorhun commented Jun 26, 2018

@mmclanerh yes updating of tenant helped. Thank you.

@AndrienkoAleksandr
Copy link

@mmclanerh updating of tenant helped me too. Thank you!

@ibuziuk
Copy link
Collaborator

ibuziuk commented Jun 26, 2018

@mmorhun @AndrienkoAleksandr thanks for reporting! Closing this one since the issue with extra namespaces is supposed to be fully fixed as part of #1446

@ibuziuk ibuziuk closed this as completed Jun 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants