Connection with server lost when using Unison over SSH

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite
1












I have a file server running Raspbian and a workstation running Ubuntu MATE 16.04. I use Unison to keep my home directory in sync. I’ve set it up to use a SSH connection.



The workstation runs Unison 2.48; the server has multiple versions (including 2.48). I’ve successfully propagated a couple of changes from the workstation to the server that way.



Now I’ve changed a file on the server. Unison looks for changes and correctly suggests updating the local copy with the file from the server.



However, when I click Go, I get the following error:



Fatal error

Lost connection with the server.


Unison settings are as follows:



# Unison preferences
label = Home dir
root = /home/me
root = ssh://me@fileserver//srv/file/me
sshargs = -C
addversionno = true
dontchmod = true
perms = 0
path = Documents
path = Pictures


General configuration problems (missing Unison version on server, wrong path etc.) are unlikely as changes are being detected and I have synchronized data various times (always workstation to server). It’s just the server-to-workstation scenario that fails.



I decided to “sacrifice” my edits to the new file and chose to replace the server version with the outdated local one. Surprisingly, that sync run completed successfully—everything works unless there are changes on the server side.



What’s happening here?










share|improve this question



















  • 1




    I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
    – Gilles
    Jan 15 '17 at 22:14










  • Both show 102400. That looks to me like the SSH connection isn’t the problem.
    – user149408
    Jan 19 '17 at 23:47














up vote
1
down vote

favorite
1












I have a file server running Raspbian and a workstation running Ubuntu MATE 16.04. I use Unison to keep my home directory in sync. I’ve set it up to use a SSH connection.



The workstation runs Unison 2.48; the server has multiple versions (including 2.48). I’ve successfully propagated a couple of changes from the workstation to the server that way.



Now I’ve changed a file on the server. Unison looks for changes and correctly suggests updating the local copy with the file from the server.



However, when I click Go, I get the following error:



Fatal error

Lost connection with the server.


Unison settings are as follows:



# Unison preferences
label = Home dir
root = /home/me
root = ssh://me@fileserver//srv/file/me
sshargs = -C
addversionno = true
dontchmod = true
perms = 0
path = Documents
path = Pictures


General configuration problems (missing Unison version on server, wrong path etc.) are unlikely as changes are being detected and I have synchronized data various times (always workstation to server). It’s just the server-to-workstation scenario that fails.



I decided to “sacrifice” my edits to the new file and chose to replace the server version with the outdated local one. Surprisingly, that sync run completed successfully—everything works unless there are changes on the server side.



What’s happening here?










share|improve this question



















  • 1




    I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
    – Gilles
    Jan 15 '17 at 22:14










  • Both show 102400. That looks to me like the SSH connection isn’t the problem.
    – user149408
    Jan 19 '17 at 23:47












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I have a file server running Raspbian and a workstation running Ubuntu MATE 16.04. I use Unison to keep my home directory in sync. I’ve set it up to use a SSH connection.



The workstation runs Unison 2.48; the server has multiple versions (including 2.48). I’ve successfully propagated a couple of changes from the workstation to the server that way.



Now I’ve changed a file on the server. Unison looks for changes and correctly suggests updating the local copy with the file from the server.



However, when I click Go, I get the following error:



Fatal error

Lost connection with the server.


Unison settings are as follows:



# Unison preferences
label = Home dir
root = /home/me
root = ssh://me@fileserver//srv/file/me
sshargs = -C
addversionno = true
dontchmod = true
perms = 0
path = Documents
path = Pictures


General configuration problems (missing Unison version on server, wrong path etc.) are unlikely as changes are being detected and I have synchronized data various times (always workstation to server). It’s just the server-to-workstation scenario that fails.



I decided to “sacrifice” my edits to the new file and chose to replace the server version with the outdated local one. Surprisingly, that sync run completed successfully—everything works unless there are changes on the server side.



What’s happening here?










share|improve this question















I have a file server running Raspbian and a workstation running Ubuntu MATE 16.04. I use Unison to keep my home directory in sync. I’ve set it up to use a SSH connection.



The workstation runs Unison 2.48; the server has multiple versions (including 2.48). I’ve successfully propagated a couple of changes from the workstation to the server that way.



Now I’ve changed a file on the server. Unison looks for changes and correctly suggests updating the local copy with the file from the server.



However, when I click Go, I get the following error:



Fatal error

Lost connection with the server.


Unison settings are as follows:



# Unison preferences
label = Home dir
root = /home/me
root = ssh://me@fileserver//srv/file/me
sshargs = -C
addversionno = true
dontchmod = true
perms = 0
path = Documents
path = Pictures


General configuration problems (missing Unison version on server, wrong path etc.) are unlikely as changes are being detected and I have synchronized data various times (always workstation to server). It’s just the server-to-workstation scenario that fails.



I decided to “sacrifice” my edits to the new file and chose to replace the server version with the outdated local one. Surprisingly, that sync run completed successfully—everything works unless there are changes on the server side.



What’s happening here?







ssh unison






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 15 '17 at 17:19

























asked Jan 15 '17 at 16:40









user149408

210210




210210







  • 1




    I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
    – Gilles
    Jan 15 '17 at 22:14










  • Both show 102400. That looks to me like the SSH connection isn’t the problem.
    – user149408
    Jan 19 '17 at 23:47












  • 1




    I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
    – Gilles
    Jan 15 '17 at 22:14










  • Both show 102400. That looks to me like the SSH connection isn’t the problem.
    – user149408
    Jan 19 '17 at 23:47







1




1




I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
– Gilles
Jan 15 '17 at 22:14




I wonder if the problem could be with the underlying SSH connection. What do the following commands do? ssh me@fileserver head -c 100k /dev/urandom | wc -c and head -c 100k /dev/urandom | ssh me@fileserver wc -c
– Gilles
Jan 15 '17 at 22:14












Both show 102400. That looks to me like the SSH connection isn’t the problem.
– user149408
Jan 19 '17 at 23:47




Both show 102400. That looks to me like the SSH connection isn’t the problem.
– user149408
Jan 19 '17 at 23:47










2 Answers
2






active

oldest

votes

















up vote
0
down vote













I think here is a solution:




NB- this is usually because the option PermitUserEnvironment in /etc/sshd_config is set to 'no' (for example, MacOSX ships with this set to NO). You should be able to set it to 'yes' and things will be golden.
https://alliance.seas.upenn.edu/~bcpierce/wiki/?n=Main.UnisonFAQTroubleshooting




But only on my machine sshd_config is placed under /etc/ssh






share|improve this answer




















  • The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
    – user149408
    Feb 20 '17 at 15:21

















up vote
0
down vote













I had the exact same problem (with Mint 18.2 KDE Edition).
I appears that the version of Unison compiled for this version of Linux Mint is the problem. Using the Unison from Debian repository solved the problem.



I downloaded the package "unison-gtk_2.48.3-1_amd64.deb" from Debian packages repository, and install the new binary by hand (extracting the files at the correct places) and using Debian alternative to let the Mint Unison and the Debian Unison co-exist. There may be a smarter way to install a Debian package on Mint, but this was a fast proof-of-concept.






share|improve this answer




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f337590%2fconnection-with-server-lost-when-using-unison-over-ssh%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I think here is a solution:




    NB- this is usually because the option PermitUserEnvironment in /etc/sshd_config is set to 'no' (for example, MacOSX ships with this set to NO). You should be able to set it to 'yes' and things will be golden.
    https://alliance.seas.upenn.edu/~bcpierce/wiki/?n=Main.UnisonFAQTroubleshooting




    But only on my machine sshd_config is placed under /etc/ssh






    share|improve this answer




















    • The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
      – user149408
      Feb 20 '17 at 15:21














    up vote
    0
    down vote













    I think here is a solution:




    NB- this is usually because the option PermitUserEnvironment in /etc/sshd_config is set to 'no' (for example, MacOSX ships with this set to NO). You should be able to set it to 'yes' and things will be golden.
    https://alliance.seas.upenn.edu/~bcpierce/wiki/?n=Main.UnisonFAQTroubleshooting




    But only on my machine sshd_config is placed under /etc/ssh






    share|improve this answer




















    • The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
      – user149408
      Feb 20 '17 at 15:21












    up vote
    0
    down vote










    up vote
    0
    down vote









    I think here is a solution:




    NB- this is usually because the option PermitUserEnvironment in /etc/sshd_config is set to 'no' (for example, MacOSX ships with this set to NO). You should be able to set it to 'yes' and things will be golden.
    https://alliance.seas.upenn.edu/~bcpierce/wiki/?n=Main.UnisonFAQTroubleshooting




    But only on my machine sshd_config is placed under /etc/ssh






    share|improve this answer












    I think here is a solution:




    NB- this is usually because the option PermitUserEnvironment in /etc/sshd_config is set to 'no' (for example, MacOSX ships with this set to NO). You should be able to set it to 'yes' and things will be golden.
    https://alliance.seas.upenn.edu/~bcpierce/wiki/?n=Main.UnisonFAQTroubleshooting




    But only on my machine sshd_config is placed under /etc/ssh







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 20 '17 at 10:10









    theotheo

    1011




    1011











    • The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
      – user149408
      Feb 20 '17 at 15:21
















    • The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
      – user149408
      Feb 20 '17 at 15:21















    The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
    – user149408
    Feb 20 '17 at 15:21




    The FAQ gives this as the reason for the connection failing completely. However, in my case the initial connection is successful—I can list changes, and even upload local changes—it is just pulling remote changes which fails. I’ll give it a try and report back.
    – user149408
    Feb 20 '17 at 15:21












    up vote
    0
    down vote













    I had the exact same problem (with Mint 18.2 KDE Edition).
    I appears that the version of Unison compiled for this version of Linux Mint is the problem. Using the Unison from Debian repository solved the problem.



    I downloaded the package "unison-gtk_2.48.3-1_amd64.deb" from Debian packages repository, and install the new binary by hand (extracting the files at the correct places) and using Debian alternative to let the Mint Unison and the Debian Unison co-exist. There may be a smarter way to install a Debian package on Mint, but this was a fast proof-of-concept.






    share|improve this answer
























      up vote
      0
      down vote













      I had the exact same problem (with Mint 18.2 KDE Edition).
      I appears that the version of Unison compiled for this version of Linux Mint is the problem. Using the Unison from Debian repository solved the problem.



      I downloaded the package "unison-gtk_2.48.3-1_amd64.deb" from Debian packages repository, and install the new binary by hand (extracting the files at the correct places) and using Debian alternative to let the Mint Unison and the Debian Unison co-exist. There may be a smarter way to install a Debian package on Mint, but this was a fast proof-of-concept.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        I had the exact same problem (with Mint 18.2 KDE Edition).
        I appears that the version of Unison compiled for this version of Linux Mint is the problem. Using the Unison from Debian repository solved the problem.



        I downloaded the package "unison-gtk_2.48.3-1_amd64.deb" from Debian packages repository, and install the new binary by hand (extracting the files at the correct places) and using Debian alternative to let the Mint Unison and the Debian Unison co-exist. There may be a smarter way to install a Debian package on Mint, but this was a fast proof-of-concept.






        share|improve this answer












        I had the exact same problem (with Mint 18.2 KDE Edition).
        I appears that the version of Unison compiled for this version of Linux Mint is the problem. Using the Unison from Debian repository solved the problem.



        I downloaded the package "unison-gtk_2.48.3-1_amd64.deb" from Debian packages repository, and install the new binary by hand (extracting the files at the correct places) and using Debian alternative to let the Mint Unison and the Debian Unison co-exist. There may be a smarter way to install a Debian package on Mint, but this was a fast proof-of-concept.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 4 at 17:26









        Skiron

        11




        11



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f337590%2fconnection-with-server-lost-when-using-unison-over-ssh%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay