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
Item ${projectName} already exists #693
Comments
no matter what project name i change to , it does not work~ |
What is your local UID? If you run Che as root or your UID is not 1000, this issue occurs. |
wow,thank you so much for replying me, yes ,that's right ,i was running Che as root, but, how to solve this problem if i really need to run Che was root? |
@eivantsov Can you elaborate more about why Che cannot run as root? I was aware that Che must run as UID 1000, but surprised about the root issue. @medusar The reason that Che requires UID 1000 is that this UID is passed along into the workspaces that are created by Che itself. Che creates workspaces as Docker containers. Inside those Docker containers, they inherit certain properties from the Che system. And in order for users in the workspace to have proper write permissions, we have to pass along a UID of 1000 from Che to inside of the container itself. So that is the UID part. I was just surprised by the root requirement so interested to hear Eugene's description of the circumstances. |
Che can be run as a root, but as a result there's a permission issue. We mount a local directory into |
Ahh, thank you that is quite clear. So let me restate in my own words.
Question - is there a way for Che to give the user root permissions? Is there a way to grant sudo rights when we first create the workspace? |
Theoretically, we may grab UID of a current local user and run @medusar after you have started the workspace, run This will fix the problems. Sure, it's a workaround. |
Would this be something we could inject into our base Dockerfiles? |
Local folder permissions stil override the CMD. Besides, we do not know UID of a workspace user. I mean we do not know it for sure, unless this is a Che certified image. We'll discuss this with engineers. |
#754 This pull request addresses the problem. I'm closing the issue. Feel free to reopen if the problem is still there (you may try the latest nightly build in ~24 hrs) |
each time when i try to created a project, it tells me "Item ${projectName} already exists" , really difficult to use!!!
The text was updated successfully, but these errors were encountered: