-
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
CLI - che mount Fails #2442
Comments
I do not think we have done any exhaustive testing of the Che CLI or our containers on Fedora. It seems that it is likely that the root of the issues are unrelated to Che mount and instead how the CLI was authored in bash. We need to get a qa cycle readied for fedora 24 to see how it performs. |
ok that makes sense. worth noting that the working directly with the che-mount container fails as well (both with and without sudo)
Totally possible I'm doing something wrong here, so let me know. |
@TylerJewell has any linux distro been tested? I'm happy to try this in a VM as well |
The cli and Che mount have been tested on Ubuntu, centos, rhel. Your issue is now going to have me setup some digital ocean vms for testing. Unless you beat me to it! |
Btw - your container syntax looks perfect. |
Ok - glad the container syntax is right. I'm locked in other stuff right now but I'll free up early next week to try this on a centos and/or Ubuntu machine. |
@sherl0cks why do you run docker with sudo? |
@sherl0cks I don't know if it makes a difference but try the following. sudo mkdir /root/LabsCode
sudo docker run --cap-add SYS_ADMIN --device /dev/fuse --name che-mount -v /root/LabsCode:/mnthost codenvy/che-mount 172.17.0.2 39417 If this doesn't fix it try: sudo docker run ---cap-add SYS_ADMIN --cap-add MKNOD --device=/dev/fuse --security-opt apparmor:unconfined --name che-mount -v /root/LabsCode:/mnthost codenvy/che-mount 172.17.0.2 39417 Also, using linux/unix you should not need to mount with the above che-mount. I think it is more for systems with sshfs NOT built-in like windows. You should be able to |
@eivantsov that command was a bit of copy paste error. The |
@JamesDrummond first command has the same error as before running the second command returns:
removing the apparmour flag (as this is a fedora machine with selinux, not apparmour) brings us back to the beginning: That said, I agree that using sshfs directly makes more sense if the che-mount image is really just a proxy for it on windows/mac. I'll give that a try in the next day or so. |
@sherl0cks I edited my response above about sshfs directly. When you have low latency between workspace and desktop machine sshfs directly is usually better. Usually this is the case when the workspace and desktop machine are on the same machine or local network. It could also be used for remote che server setups if your latency and download/upload speeds are not a factor. Sorry you are having issues with selinux. We would love it if you could figure out how to get che-mount to work as other users will get into the same issue. If you cannot, you can use sshfs directly and setup unison on your fedora machine. You can take a look at how we setup by looking at che-mount dockerfile and script file on our github page below: https://github.com/eclipse/che-dockerfiles/tree/master/che-mount |
@JamesDrummond I hear you on working through these issues, and I'd love to contribute. Unfortunately, we'll need to convince my team that such work is a priority first. I'll let you know if I can dedicate more time to this in the near future FYI @TylerJewell |
@TylerJewell @JamesDrummond che mount does not work for me on Ubuntu:
|
@eivantsov maybe you need to use latest PR from @l0rd with improvements including some permissions Launch it without che.sh |
@eivantsov I've a couple of PR (#2523 and eclipse-che/che-dockerfiles#18) that should fix Could you try to run this in an empty directory: # Set the SSH port and workspace
SSH_PORT=32816
SYNC_FOLDER="$(pwd)"
# get files from the PRs
curl -sSL https://raw.githubusercontent.com/l0rd/che-dockerfiles/chemountfixes/che-mount/Dockerfile > Dockerfile
curl -sSL https://raw.githubusercontent.com/l0rd/che-dockerfiles/chemountfixes/che-mount/sync.sh > sync.sh
curl -sSL https://raw.githubusercontent.com/l0rd/che/chemountfixes/che.sh > che.sh
chmod +x ./che.sh
chmod +x ./sync.sh
# Build che-mount and run it
docker build -t codenvy/che-mount:local .
CHE_UTILITY_VERSION=local ./che.sh mount $SYNC_FOLDER $SSH_PORT |
misspoke - ignore this comment |
@sherl0cks - the new che-mount has been merged. It will probably show up as codenvy/che-mount:nightly docker image in another 24 hours. I think the merge happened after the nightly CI cycle, so we may have to wait 24 hours. Or, you can build it directly into codenvy/che-mount:nightly. Also - there are some Che CLI improvements that are waiting for a merge - they will have to go in within the next 24 hours to be synchronized with this new image. We will now do discovery to provide a list of workspaces that have SSH running in them that can be mounted. And if there is only a single workspace with SSH, it will just attempt to connect to it. So it simplifies the syntax quite a bit. |
Closed to this being resolved. Performance is screaming now. |
A number of things seem to go wrong when trying to run
che mount
on my machineReproduction Steps:
Expected behavior:
Mount takes place and file system is synced up to what is in the CodEnvy workspace.
Observed behavior:
A few odd things in the console output below, as well as other investigations
ip: can't find device eth0
which is odd because with centos, fedora and alpine containers on the same host and runningip a show eth0
returns something likeexport CHE_CLI_DEBUG=true
, otherwise it just failed silently...docker ps -a
does not show a che-mount containerConsole Output
Che version: CLI says latest. Please do share if there is a way to get a specific version
OS and version: fedora 24, with selinux disabled per #2441
Docker version: 1.10.3
Che install: cli per the docs
Additional information:
FYI @TylerJewell @bmicklea
The text was updated successfully, but these errors were encountered: