-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Che sync fails with permissions errors on ubuntu #4084
Comments
@benoitf - can you take a look. |
@roshanail
Sync command is launched from a docker container, so there is no access to /etc/group or your user from the cli container |
I ran it. I had to take out the backslashes as it gave me this error Now when I run it. It gives me this.
|
I think you used the wrong syntax. With this particular container, you should mount it to |
Same Error roshan@ARC-T540p:~/src/chetest$ docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse -v ${HOME}/.ssh:${HOME}/.ssh -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro -u |
Really confused, as the entrypoint for this container doesn't ever reference CHE_VERSION! So this error should never appear. Makes me think that maybe you don't have a current image. Same error if you use |
Scratch that - I see changes in the nightly. Will you type this please:
|
@benoitf - in the nightly update, it's not clear that when you do the eclipse/che-mount image directly how CHE_VERSION gets set. The existing documentation doesn't use this variable, but the sync command in the CLI does. I am going to add it. |
Did a little bit more but still errors out roshan@ARC-T540p:~/src/chetest$ docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse -v ${HOME}/.ssh:${HOME}/.ssh -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro -u
|
Some of these errors that are showing up generally shouldn't. So makes me ask some questions:
That line 113 error is an indication that the container we launched to do the sync - that we cannot write to a file inside that container. Which should just never happen as containers can always write to their own files internally. Also, what is the output of |
I am not running it as sudo. I didn't start che as sudo. |
Didn't make any difference roshan@ARC-T540p:~/src/chetest$ sudo docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse -v ${HOME}/.ssh:${HOME}/.ssh -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro -u
|
I have one more suspicion. Please try:
Also - let us know the output of |
Still no success. Here are the outputs roshan@ARC-T540p:~/src/chetest$ id -u $USER roshan@ARC-T540p:~/src/chetest$ docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse -v /var/run/docker.sock:/var/run/docker.sock -v ${HOME}/.ssh:${HOME}/.ssh -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro -u
|
@roshanail could you execute :
and
|
roshan@ARC-T540p: |
@roshanail : and what are groups of your user ? As docker socket is only available to docker group users |
roshan@ARC-T540p:~/src/chetest$ groups |
@roshanail can you try mounting into an existing directory created by your user? |
@benoitf I have got the same result when mounting on Ubuntu 16 as a root user. |
@eivantsov could you add
|
@benoitf Yes, that worked. Should we change docs? Or some scripts changes are required? |
Change-Id: I6e461b1d98fc361366db9caecd658c9f1c2dea1e Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Change-Id: I6e461b1d98fc361366db9caecd658c9f1c2dea1e Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
This is the command I run
docker run -it --rm -e CHE_CONTAINER=arc -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/chedata:/data -v $HOME/chedata/sync:/sync eclipse/che sync workspacename --debug
I added myself to the root group and the fuse group.
I changed the group of /dev/fuse to be "fuse" instead of root.
I get this error now when I run it.
WARN: Bound 'eclipse/che' to 'eclipse/che:5.2.2'
WARNING: No swap limit support
WARN: Debugging activated without ':/repo' mount - using binaries inside Docker image
INFO: (che cli): 5.2.2 - using docker 1.13.1 / native
INFO: (che mount): Starting sync process to /home/roshan/chedata/sync
mkdir: can't create directory '/root/.ssh': File exists
INFO: INFO: (che mount): Mounting root@10.20.3.102:/projects with SSHFS
fuse: mount failed: Permission denied
!!!
!!! ERROR: Fatal error occurred (1)
!!!
It wants to run as root. Can you provide more instructions on how to setup sync on ubuntu.
I am running ubuntu gnome 16.04
The text was updated successfully, but these errors were encountered: