Skip to content
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 does not work on windows 10 #4171

Closed
ghost opened this issue Feb 17, 2017 · 2 comments
Closed

che sync does not work on windows 10 #4171

ghost opened this issue Feb 17, 2017 · 2 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.

Comments

@ghost
Copy link

ghost commented Feb 17, 2017

C:\Users\Codenvy>docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/Codenvy/data-one:/data -v /c/Users/Codenvy/projects-io:/sync eclipse/che sync wksp-bv0j --unison-verbose --user xxx@gmail.com --password xxx --url https://codenvy.io
WARN: Bound 'eclipse/che' to 'eclipse/che:5.2.2'
INFO: (che cli): 5.2.2 - using docker 1.13.1 / docker4windows
INFO: (che mount): Starting sync process to /c/Users/Codenvy/projects-io
INFO: INFO: (che mount): Mounting user@node8.codenvy.io:/projects with SSHFS
mkdir: can't create directory '/root/.ssh': File exists
INFO: INFO: (che mount): Successfully mounted user@node8.codenvy.io:/projects (36205)
INFO: INFO: (che mount): Initial sync...Please wait.
INFO: using verbose mode
DEBUG: Using command unison /mntssh /mnthost -batch -auto -prefer=newer
Contacting server...
Looking for changes
Warning: No archive files were found for these roots, whose canonical names are:
        /mntssh
        /mnthost
This can happen either
because this is the first time you have synchronized these roots,
or because you have upgraded Unison to a new version with a different
archive format.

Update detection may take a while on this run if the replicas are
large.

Unison will assume that the 'last synchronized state' of both replicas
was completely empty.  This means that any files that are different
will be reported as conflicts, and any files that exist only on one
replica will be judged as new and propagated to the other replica.
If the two replicas are identical, then no changes will be reported.

If you see this message repeatedly, it may be because one of your machines
is getting its address from DHCP, which is causing its host name to change
between synchronizations.  See the documentation for the UNISONLOCALHOSTNAME
environment variable for advice on how to correct this.

Donations to the Unison project are gratefully accepted:
http://www.cis.upenn.edu/~bcpierce/unison

Reconciling changes
file     ---->            console-java-simple/.che/classpath
file     ---->            console-java-simple/.codenvy.json
dir      ---->            console-java-simple/.git
file     ---->            console-java-simple/.gitignore
file     ---->            console-java-simple/README.md
file     ---->            console-java-simple/pom.xml
dir      ---->            console-java-simple/src
dir      ---->            console-java-simple/target
Propagating updates
UNISON 2.48.4 started propagating changes at 14:15:36.77 on 17 Feb 2017
[BGN] Copying console-java-simple/.che/classpath from /mntssh to /mnthost
  1%  00:17 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.che/.unison.classpath.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
  1%  00:17 ETAFailed [console-java-simple/.che/classpath]: Failed to set permissions of file /mnthost/console-java-simple/.che/.unison.classpath.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/.codenvy.json from /mntssh to /mnthost
 11%  00:04 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.unison..codenvy.json.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/.git from /mntssh to /mnthost
 11%  00:04 ETAFailed [console-java-simple/.codenvy.json]: Failed to set permissions of file /mnthost/console-java-simple/.unison..codenvy.json.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 11%  00:06 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.unison..git.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp/FETCH_HEAD to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 87%  00:00 ETAFailed [console-java-simple/.git]: Failed to set permissions of file /mnthost/console-java-simple/.unison..git.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp/FETCH_HEAD to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 87%  00:00 ETA[BGN] Copying console-java-simple/.gitignore from /mntssh to /mnthost
Failed: Failed to set permissions of file /mnthost/console-java-simple/.unison..gitignore.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/README.md from /mntssh to /mnthost
 87%  00:00 ETAFailed [console-java-simple/.gitignore]: Failed to set permissions of file /mnthost/console-java-simple/.unison..gitignore.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 90%  00:00 ETAFailed [console-java-simple/README.md]: Failed to set permissions of file /mnthost/console-java-simple/.unison.README.md.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 90%  00:00 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.unison.README.md.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/pom.xml from /mntssh to /mnthost
 96%  00:00 ETAFailed [console-java-simple/pom.xml]: Failed to set permissions of file /mnthost/console-java-simple/.unison.pom.xml.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
 96%  00:00 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.unison.pom.xml.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/src from /mntssh to /mnthost
 97%  00:00 ETAFailed: Failed to set permissions of file /mnthost/console-java-simple/.unison.src.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp/main/java/org/eclipse/che/examples/HelloWorld.java to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
[BGN] Copying console-java-simple/target from /mntssh to /mnthost
100%  00:00 ETAFailed [console-java-simple/src]: Failed to set permissions of file /mnthost/console-java-simple/.unison.src.6d5b938b0b3bd7ef825ef558f28c0bb2.unison.tmp/main/java/org/eclipse/che/examples/HelloWorld.java to rw-r--r--: the permissions was set to rwxr-xr-x instead. The filesystem probably does not support all permission bits. If this is a FAT filesystem, you should set the "fat" option to true. Otherwise, you should probably set the "perms" option to 0o1666 (or to 0 if you don't need to synchronize permissions).
---------------------------------------
!!!
!!! ERROR: Fatal error occurred (2)
!!!
---------------------------------------
[END] Copying console-java-simple/target
UNISON 2.48.4 finished propagating changes at 14:15:38.69 on 17 Feb 2017
Saving synchronizer state
Synchronization incomplete at 14:15:38  (1 item transferred, 0 skipped, 7 failed)
  failed: console-java-simple/.che/classpath
  failed: console-java-simple/.codenvy.json
  failed: console-java-simple/.git
  failed: console-java-simple/.gitignore
  failed: console-java-simple/README.md
  failed: console-java-simple/pom.xml
  failed: console-java-simple/src
@ghost ghost added the kind/bug Outline of a bug - must adhere to the bug report template. label Feb 17, 2017
@TylerJewell TylerJewell added the severity/P1 Has a major impact to usage or development of the system. label Feb 17, 2017
@bmicklea
Copy link

@benoitf - this is something that has already affected a major customer, please keep me updated on any progress.

@ghost
Copy link
Author

ghost commented Feb 18, 2017

I have created default.prf with perms = 0 in the sync dir.

$ docker run --rm -it --cap-add SYS_ADMIN --device /dev/fuse -e CHE_VERSION=5.2
.2 -v /var/run/docker.sock:/var/run/docker.sock -v /c/Users/Eugene/projects-io:
/mnthost eclipse/che-mount:5.2.2 wksp-bv0j --unison-verbose --user ivantsoft@gm
ail.com --password nirvana1982 --url https://codenvy.io
Unable to find image 'eclipse/che-action:5.2.2' locally
5.2.2: Pulling from eclipse/che-action
b7f33cc0b48e: Already exists
c4a5e62f3732: Pulling fs layer
e24c442e3d6a: Pulling fs layer
d91e8310c5d5: Pulling fs layer
2ccf387f1855: Pulling fs layer
f951b3a4b9b8: Pulling fs layer
2ccf387f1855: Waiting
f951b3a4b9b8: Waiting
d91e8310c5d5: Verifying Checksum
d91e8310c5d5: Download complete
c4a5e62f3732: Verifying Checksum
c4a5e62f3732: Download complete
2ccf387f1855: Verifying Checksum
2ccf387f1855: Download complete
e24c442e3d6a: Verifying Checksum
e24c442e3d6a: Download complete
c4a5e62f3732: Pull complete
e24c442e3d6a: Pull complete
d91e8310c5d5: Pull complete
2ccf387f1855: Pull complete
f951b3a4b9b8: Verifying Checksum
f951b3a4b9b8: Download complete
f951b3a4b9b8: Pull complete
Digest: sha256:8ecda587c87940dd874d5f2d8b5bc747e9b77d5010286a595fa0fa1da0f9debc
Status: Downloaded newer image for eclipse/che-action:5.2.2
Unable to find image 'eclipse/che-ip:5.2.2' locally
5.2.2: Pulling from eclipse/che-ip
b7f33cc0b48e: Already exists
4e63548b4143: Pulling fs layer
4e63548b4143: Verifying Checksum
4e63548b4143: Download complete
4e63548b4143: Pull complete
Digest: sha256:ad346acdffa3964f1e1d8dc97c15f938be856195d0dee315e971be18fadac29d
Status: Downloaded newer image for eclipse/che-ip:5.2.2
INFO: INFO: (che mount): Mounting user@node5.codenvy.io:/projects with SSHFS
INFO: INFO: (che mount): Successfully mounted user@node5.codenvy.io:/projects (3
3985)
INFO: INFO: (che mount): Initial sync...Please wait.
INFO: using verbose mode
DEBUG: Using command unison /mntssh /mnthost -batch -auto -prefer=newer
Contacting server...
Looking for changes
Warning:/mntsshhive files were found for these roots, whose canonical names are:
        /mnthost
This can happen either
because this is the first time you have synchronized these roots,
or because you have upgraded Unison to a new version with a different
archive format.

Update detection may take a while on this run if the replicas are
large.

Unison will assume that the 'last synchronized state' of both replicas
was completely empty.  This means that any files that are different
will be reported as conflicts, and any files that exist only on one
replica will be judged as new and propagated to the other replica.
If the two replicas are identical, then no changes will be reported.

If you see this message repeatedly, it may be because one of your machines
is getting its address from DHCP, which is causing its host name to change
between synchronizations.  See the documentation for the UNISONLOCALHOSTNAME
environment variable for advice on how to correct this.

Donations to the Unison project are gratefully accepted:
http://www.cis.upenn.edu/~bcpierce/unison

Reconciling changes
props    <==== props      /
props    <==== props      default.prf
dir      ---->            console-java-simple
Propagating updates
UNISON 2.48.4 started propagating changes at 07:01:02.93 on 18 Feb 2017
[BGN] Copying properties for  from /mnthost to /mntssh
[END] Copying properties for
[BGN] Copying properties for default.prf from /mnthost to /mntssh
[END] Copying properties for default.prf
[BGN] Copying console-java-simple from /mntssh to /mnthost
Failed: Failed to set permissions of file /mnthost/.unison.console-java-simple.4
94c074949169d24b5f0684c5fd75c6e.unison.tmp to rwxr-xr-x: the permissions was set
 to rwxrwxrwx instead. The filesystem probably does not support all permission b
its. If this is a FAT filesystem, you should set the "fat" option to true. Other
wise, you should probably set the "perms" option to 0o1755 (or to 0 if you don't
 need to synchronize permissions).
100%  00:00 ETAFailed [console-java-simple]: Failed to set permissions of file /
mnthost/.unison.console-java-simple.494c074949169d24b5f0684c5fd75c6e.unison.tmp
to rwxr-xr-x: the permissions was set to rwxrwxrwx instead. The filesystem proba
bly does not support all permission bits. If this is a FAT filesystem, you shoul
d set the "fat" option to true. Otherwise, you should probably set the "perms" o
ption to 0o1755 (or to 0 if you don't need to synchronize permissions).
UNISON 2.48.4 finished propagating changes at 07:01:03.58 on 18 Feb 2017
Saving synchronizer state
Synchronization incomplete at 07:01:03  (2 items transferred, 0 skipped, 1 faile
d)
  failed: console-java-simple
---------------------------------------
!!!
!!! ERROR: Fatal error occurred (2)
!!!
---------------------------------------

benoitf added a commit that referenced this issue Feb 20, 2017
…ndows)

Change-Id: I6ded03a2591150f6b1cfc5fa6f86eb07db8c3462
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf benoitf added this to the 5.4.0 milestone Feb 20, 2017
riuvshin pushed a commit that referenced this issue Feb 21, 2017
…ndows) (#4182)

Change-Id: I6ded03a2591150f6b1cfc5fa6f86eb07db8c3462
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@riuvshin riuvshin removed this from the 5.4.0 milestone Feb 22, 2017
JPinkney pushed a commit to JPinkney/che that referenced this issue Aug 17, 2017
…ms (like Windows) (eclipse-che#4182)

Change-Id: I6ded03a2591150f6b1cfc5fa6f86eb07db8c3462
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

4 participants