Search the web
Sign In
New User? Sign Up
unison-users · Users group discussion forum for Unison file synchronizer
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 8609 - 8638 of 8638   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries   (Group by Topic) Sort by Date ^  
#8609 From: Sandro Plischewski <sanplis@...>
Date: Thu Nov 12, 2009 10:39 am
Subject: Re: Synchronizing to one server with different hostnames
sanplis@...
Send Email Send Email
 
Isn't there a way to set the display name for the local and remote host inside
the prf file?

Sandro


> -----Ursprngliche Nachricht-----
> Von: "Konrad Hinsen" <konrad.hinsen@...>
> Gesendet: 12.11.09 11:24:02
> An: unison-users@yahoogroups.com
> Betreff: Re: [unison-users] Synchronizing to one server with different
hostnames


> On 11 Nov 2009, at 22:13, Cameron wrote:
> > I'm currently using Unison to sync my computer with my university's
> > networked file space using SSH. My university has a pool of
> machines
> > you can log into at one hostname, but then directs you to whichever
> > machine is available. Each mounts my networked file space as the
> > home directory.
> >
> > The problem is that Unison thinks I'm syncing to different machines
> > each time I run it. Is it possible to have Unison ignore that its
> > connecting to different machines, or make it treat every computer
> in
> > the pool as one archive?
> >
> Set the environment variable UNISONLOCALHOSTNAME to the same value on
> all those machines. Its value will be used instead of the hostname.
>
> Konrad.
>
>

#8610 From: "askar.ibragimov" <askar.ibragimov@...>
Date: Thu Nov 12, 2009 12:32 pm
Subject: Unison "Lost connection with server"
askar.ibragimov
Offline Offline
Send Email Send Email
 
Hello,

I have a problem: I need to sync two machines which are far away from each
other. Unison is installed on both and short sync IS okay. However when I try to
sync huge folder then after scanning the local folder (for few hours) it reports
"Lost connection with server". I am trying to have initial synchronisation, do
not know if it is any faster when initial sync has been done already.

I tried to play with ssh options on the remote machine (server) but that was not
OK. I can NOT synchronise by small pieces, since I have LOTS of data.

Therefore, if somebody had and overcame this problem, please tell how you did
that! Is there a way to speed up scanning process (now it takes hours)?

Cheers, Askar

#8611 From: Alan Schmitt <alan.schmitt@...>
Date: Thu Nov 12, 2009 12:38 pm
Subject: Re: Unison "Lost connection with server"
schmittafr
Offline Offline
Send Email Send Email
 
On Thu, Nov 12, 2009 at 1:32 PM, askar.ibragimov
<askar.ibragimov@...> wrote:
> Hello,
>
> I have a problem: I need to sync two machines which are far away from each
other. Unison is installed on both and short sync IS okay. However when I try to
sync huge folder then after scanning the local folder (for few hours) it reports
"Lost connection with server". I am trying to have initial synchronisation, do
not know if it is any faster when initial sync has been done already.
>
> I tried to play with ssh options on the remote machine (server) but that was
not OK. I can NOT synchronise by small pieces, since I have LOTS of data.
>
> Therefore, if somebody had and overcame this problem, please tell how you did
that! Is there a way to speed up scanning process (now it takes hours)?

Why can't you synchronize by small pieces? Set the roots as they will
be at the end, and add synchronization paths little by little.

Alan

#8612 From: Askar Ibragimov <askar.ibragimov@...>
Date: Thu Nov 12, 2009 12:50 pm
Subject: Re: Unison "Lost connection with server"
askar.ibragimov
Offline Offline
Send Email Send Email
 
Hello,

I can not. Unless you have a good way to sync dozens of thousands of
these small pieces. As I stated, I am not interested in the solutions
which relate to small pieces.

For the most curious ones: I have a particular folder with  20784
subfolders inside (typical hierarchy depth is 5 folders deep).  Whole
work folder contains about 5 times more subfolders.

Cheers, Askar


2009/11/12 Alan Schmitt <alan.schmitt@...>:
> On Thu, Nov 12, 2009 at 1:32 PM, askar.ibragimov
> <askar.ibragimov@...> wrote:
>> Hello,
>>
>> I have a problem: I need to sync two machines which are far away from each
other. Unison is installed on both and short sync IS okay. However when I try to
sync huge folder then after scanning the local folder (for few hours) it reports
"Lost connection with server". I am trying to have initial synchronisation, do
not know if it is any faster when initial sync has been done already.
>>
>> I tried to play with ssh options on the remote machine (server) but that was
not OK. I can NOT synchronise by small pieces, since I have LOTS of data.
>>
>> Therefore, if somebody had and overcame this problem, please tell how you did
that! Is there a way to speed up scanning process (now it takes hours)?
>
> Why can't you synchronize by small pieces? Set the roots as they will
> be at the end, and add synchronization paths little by little.
>
> Alan
>

#8613 From: Richrd Kun <kr.listak@...>
Date: Thu Nov 12, 2009 2:03 pm
Subject: shortcut question
kr.listak@...
Send Email Send Email
 
Hi,

I use unison with "-repeat" optioncontinuously, and logging to file. I got lines next to the following:

Shortcut: copying 118/1ec/551e54024504df604053b01e5f87fcb from local file ../var/www/files/cache/dictionary/d15/6c1/bc1/c546be3b753c18b920248cc5a5713f0
Shortcut didn't work because ../var/www/files/cache/dictionary/d15/6c1/bc1/c546be3b753c18b920248cc5a5713f0 disappeared!

The files mentioned above generated from a web application, and deleted by a hourly cronjob, but the lines comes oftener.
What causes this?

thanks:
--
Ricsi

#8614 From: Thomas Manson <dev.mansonthomas@...>
Date: Thu Nov 12, 2009 2:02 pm
Subject: file synchronisation between two node of a http cluster
dev.mansonthomas@...
Send Email Send Email
 
Hi,

  I'm building a cluster of lighttpd (web server).

  It's two seperate machine, each one running one lighttpd server (among other thing).

  the incomming traffic is sent to a virtual ip address that point to a loadbalancer (haproxy) which loadbalance the traffic accross the two servers (and maybe more servers if needed).

  The webservers hosts hundred of virtualhost, so, there will be hundred of directories to sync.

  The problem is, if someone upload something like an image on a website one server, I need it to be replicated on the other server.

  One of the MySQL consultant I hire speak to me of unison.

  I've quickly read the doc, and it doesn't seem to have an unison daemon.

  So my question is  : 

  1. Is unison the right tool to do what I want ? if not, do you have some other tool to recommend?
  2. What is the best way to do it ?  (cron on each machine? how to handle the hundred of dir)
Regards,
Thomas.



#8615 From: "Data Control Systems - Mike Elkevizth" <mike@...>
Date: Thu Nov 12, 2009 3:56 pm
Subject: RE: Synchronizing to one server with different hostnames
melk600
Offline Offline
Send Email Send Email
 
You could use the "root alias" option in a .prf, but I would use a script to
set the UNISONLOCALHOSTNAME if possible, because then you don't need to know
all the machine hostnames before syncing.  However, I would be careful about
doing this at all.  How do you know that all of the university's computers
are in sync?  If you get one machine one time and do a sync and then another
machine the next time, that for some reason on the universities end hasn't
been synced with the first machine you contacted, unison will "think" that
"you" changed the file(s) and so will end up propagating them in the wrong
direction.  I would be very careful doing this.  Root alias is really
intended for the same file system being mounted in a different location and
not different file systems being mounted in the same location.

Mike E.


-----Original Message-----
From: unison-users@yahoogroups.com
[mailto:unison-users@yahoogroups.com]On Behalf Of Sandro Plischewski
Sent: Thursday, November 12, 2009 5:40 AM
To: unison-users@yahoogroups.com
Subject: Re: [unison-users] Synchronizing to one server with different
hostnames


Isn't there a way to set the display name for the local and remote host
inside the prf file?

Sandro


> -----Ursprngliche Nachricht-----
> Von: "Konrad Hinsen" <konrad.hinsen@...>
> Gesendet: 12.11.09 11:24:02
> An: unison-users@yahoogroups.com
> Betreff: Re: [unison-users] Synchronizing to one server with different
hostnames


> On 11 Nov 2009, at 22:13, Cameron wrote:
> > I'm currently using Unison to sync my computer with my university's
> > networked file space using SSH. My university has a pool of
> machines
> > you can log into at one hostname, but then directs you to whichever
> > machine is available. Each mounts my networked file space as the
> > home directory.
> >
> > The problem is that Unison thinks I'm syncing to different machines
> > each time I run it. Is it possible to have Unison ignore that its
> > connecting to different machines, or make it treat every computer
> in
> > the pool as one archive?
> >
> Set the environment variable UNISONLOCALHOSTNAME to the same value on
> all those machines. Its value will be used instead of the hostname.
>
> Konrad.
>
>




------------------------------------

Yahoo! Groups Links

#8616 From: Антон Дербенёв <anticode@...>
Date: Thu Nov 12, 2009 3:11 pm
Subject: Re: file synchronisation between two node of a http cluster
anticode@...
Send Email Send Email
 
Unison is not appropriate tool.

Looking through maillist archives, found this:
<http://tech.groups.yahoo.com/group/unison-users/message/8426>
> A better solution is to put the image upload directory on a NFS share on linux
> or a shared directoy on Windows. That avoids the sync delay completely and
setup
> shouldn't be too complicated.
>Hope that helps,
> Dirk Dittert

and my own message:
> A little googling gives results like
<http://stackoverflow.com/questions/398305/file-upload-on-load-balanced-server>
and forth. Just try:
> <http://www.google.com/search?num=100&q=load-balanced+file+uploading>


on message of Thomas Manson <dev.mansonthomas@...> sent Thu, 12 Nov 2009
17:02:55 +0300 :

>    1. Is unison the right tool to do what I want ? if not, do you have some
>    other tool to recommend?
>    2. What is the best way to do it ?  (cron on each machine? how to handle
>    the hundred of dir)


--
Regards

#8617 From: Derek Schutt <derek.schutt@...>
Date: Thu Nov 12, 2009 3:14 pm
Subject: Re: Unison "Lost connection with server"
icthy
Offline Offline
Send Email Send Email
 
Hi Askar,

I had the same problem, and the same response.   What I found was that I was using the official stable version of unison (2.27), which had problems with too many directories.   I compiled the latest version and now it works fine.   

Hope that helps.

-Derek



Hello,

I can not. Unless you have a good way to sync dozens of thousands of
these small pieces. As I stated, I am not interested in the solutions
which relate to small pieces.

For the most curious ones: I have a particular folder with 20784
subfolders inside (typical hierarchy depth is 5 folders deep). Whole
work folder contains about 5 times more subfolders.

Cheers, Askar

2009/11/12 Alan Schmitt <alan.schmitt@polytechnique.org>:
> On Thu, Nov 12, 2009 at 1:32 PM, askar.ibragimov
> <askar.ibragimov@gmail.com> wrote:
>> Hello,
>>
>> I have a problem: I need to sync two machines which are far away from each other. Unison is installed on both and short sync IS okay. However when I try to sync huge folder then after scanning the local folder (for few hours) it reports "Lost connection with server". I am trying to have initial synchronisation, do not know if it is any faster when initial sync has been done already.
>>
>> I tried to play with ssh options on the remote machine (server) but that was not OK. I can NOT synchronise by small pieces, since I have LOTS of data.
>>
>> Therefore, if somebody had and overcame this problem, please tell how you did that! Is there a way to speed up scanning process (now it takes hours)?
>
> Why can't you synchronize by small pieces? Set the roots as they will
> be at the end, and add synchronization paths little by little.
>
> Alan
>

#8618 From: "Urbaniak, Sebastian" <surbaniak@...>
Date: Thu Nov 12, 2009 3:51 pm
Subject: RE: Unison "Lost connection with server"
sebski73
Offline Offline
Send Email Send Email
 
> > Hello,
> > I have a problem: I need to sync two machines which are far away
from each other. Unison is installed on both and short sync
> IS okay. However when I try to sync huge folder then after scanning
the local folder (for few hours) it reports "Lost
> connection with server". I am trying to have initial synchronisation,
do not know if it is any faster when initial sync has
> been done already.
> >
> > I tried to play with ssh options on the remote machine (server) but
that was not OK. I can NOT synchronise by small pieces,
> since I have LOTS of data.
> >
> > Therefore, if somebody had and overcame this problem, please tell
how you did that! Is there a way to speed up scanning
> process (now it takes hours)?
>
> Why can't you synchronize by small pieces? Set the roots as they will
> be at the end, and add synchronization paths little by little.
>
> Alan
[_SUrbaniak_]

Alan,  you are talking about a very tedious manual process.  I have been
struggling with the very same issue for years.  (Connection Loss on
synchs that take more then 1h    -     no my WAN link that is a fact of
life).

Is there nothing that can be added to the software that would do the
"little by little"  breakup automatically for you ?

I even wrote myself a tiny VB app that lets me ignore/un-ignore paths
interactively/graphically in a prf.... but as much as it helps that is
still a super tedious manual process ... when you have to rerun Unison
10, 20, 30, ...   times.
There has got to be a way to make that automated behind the scenes !
What about something as simple as making the TCP connection a property
of the session (ie. persist in reconnecting as necessary to complete the
synch - unless expressly terminated), as opposed to the way it is now
where 1connection = 1synch-session.

Seb

#8619 From: "Data Control Systems - Mike Elkevizth" <mike@...>
Date: Thu Nov 12, 2009 3:56 pm
Subject: RE: file synchronisation between two node of a http cluster
melk600
Offline Offline
Send Email Send Email
 

I think unison could do the trick, but you would have to either call it often via a cron job, which probably isn't the best idea, or call unison based on a file system change.  You should look into "incron" to do this.  Good luck.
 
Mike E.
 
 
-----Original Message-----
From: unison-users@yahoogroups.com [mailto:unison-users@yahoogroups.com]On Behalf Of Thomas Manson
Sent: Thursday, November 12, 2009 9:03 AM
To: unison-users@yahoogroups.com
Subject: [unison-users] file synchronisation between two node of a http cluster

 

Hi,


  I'm building a cluster of lighttpd (web server).

  It's two seperate machine, each one running one lighttpd server (among other thing).

  the incomming traffic is sent to a virtual ip address that point to a loadbalancer (haproxy) which loadbalance the traffic accross the two servers (and maybe more servers if needed).

  The webservers hosts hundred of virtualhost, so, there will be hundred of directories to sync.

  The problem is, if someone upload something like an image on a website one server, I need it to be replicated on the other server.

  One of the MySQL consultant I hire speak to me of unison.

  I've quickly read the doc, and it doesn't seem to have an unison daemon.

  So my question is  : 

  1. Is unison the right tool to do what I want ? if not, do you have some other tool to recommend?
  2. What is the best way to do it ?  (cron on each machine? how to handle the hundred of dir)
Regards,
Thomas.



#8620 From: Jason Axelson <bostonvaulter@...>
Date: Thu Nov 12, 2009 7:24 pm
Subject: Re: Unison "Lost connection with server"
bostonvaulter
Offline Offline
Send Email Send Email
 
It should be possible to write a perl or bash script to do this for
you. Might take a bit of work, but nothing too crazy I think.

Jason

On Thu, Nov 12, 2009 at 5:51 AM, Urbaniak, Sebastian
<surbaniak@...> wrote:
>> > Hello,
>> > I have a problem: I need to sync two machines which are far away
> from each other. Unison is installed on both and short sync
>> IS okay. However when I try to sync huge folder then after scanning
> the local folder (for few hours) it reports "Lost
>> connection with server". I am trying to have initial synchronisation,
> do not know if it is any faster when initial sync has
>> been done already.
>> >
>> > I tried to play with ssh options on the remote machine (server) but
> that was not OK. I can NOT synchronise by small pieces,
>> since I have LOTS of data.
>> >
>> > Therefore, if somebody had and overcame this problem, please tell
> how you did that! Is there a way to speed up scanning
>> process (now it takes hours)?
>>
>> Why can't you synchronize by small pieces? Set the roots as they will
>> be at the end, and add synchronization paths little by little.
>>
>> Alan
> [_SUrbaniak_]
>
> Alan, you are talking about a very tedious manual process. I have been
> struggling with the very same issue for years. (Connection Loss on
> synchs that take more then 1h  -   no my WAN link that is a fact of
> life).
>
> Is there nothing that can be added to the software that would do the
> "little by little" breakup automatically for you ?
>
> I even wrote myself a tiny VB app that lets me ignore/un-ignore paths
> interactively/graphically in a prf.... but as much as it helps that is
> still a super tedious manual process ... when you have to rerun Unison
> 10, 20, 30, ...  times.
> There has got to be a way to make that automated behind the scenes !
> What about something as simple as making the TCP connection a property
> of the session (ie. persist in reconnecting as necessary to complete the
> synch - unless expressly terminated), as opposed to the way it is now
> where 1connection = 1synch-session.
>
> Seb
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

#8621 From: Jason Axelson <bostonvaulter@...>
Date: Thu Nov 12, 2009 8:53 pm
Subject: Re: Unison "Lost connection with server"
bostonvaulter
Offline Offline
Send Email Send Email
 
The basic idea of what I was thinking was to put the entire profile
description in the script and then write out the profile for the first
path, and run unison. Then do this for each folder in the root
(assuming those folders are big enough). You could probably generalize
it even more by checking if unison fails (although this takes a while)
then set the root as a deeper folder. But I personally have not tried
this or even tried setting path separately since I have so few files.

Jason

On Thu, Nov 12, 2009 at 9:51 AM, Urbaniak, Sebastian
<surbaniak@...> wrote:
> Script to do which part ?
>
>> -----Original Message-----
>> From: Jason Axelson [mailto:bostonvaulter@...]
>> Sent: November 12, 2009 14:24
>> To: Urbaniak, Sebastian
>> Cc: unison-users@yahoogroups.com
>> Subject: Re: [unison-users] Unison "Lost connection with server"
>>
>> It should be possible to write a perl or bash script to do this for
>> you. Might take a bit of work, but nothing too crazy I think.
>>
>> Jason
>>
>> On Thu, Nov 12, 2009 at 5:51 AM, Urbaniak, Sebastian
>> <surbaniak@...> wrote:
>> >> > Hello,
>> >> > I have a problem: I need to sync two machines which are far away
>> > from each other. Unison is installed on both and short sync
>> >> IS okay. However when I try to sync huge folder then after scanning
>> > the local folder (for few hours) it reports "Lost
>> >> connection with server". I am trying to have initial synchronisation,
>> > do not know if it is any faster when initial sync has
>> >> been done already.
>> >> >
>> >> > I tried to play with ssh options on the remote machine (server) but
>> > that was not OK. I can NOT synchronise by small pieces,
>> >> since I have LOTS of data.
>> >> >
>> >> > Therefore, if somebody had and overcame this problem, please tell
>> > how you did that! Is there a way to speed up scanning
>> >> process (now it takes hours)?
>> >>
>> >> Why can't you synchronize by small pieces? Set the roots as they will
>> >> be at the end, and add synchronization paths little by little.
>> >>
>> >> Alan
>> > [_SUrbaniak_]
>> >
>> > Alan, you are talking about a very tedious manual process. I have been
>> > struggling with the very same issue for years. (Connection Loss on
>> > synchs that take more then 1h  -   no my WAN link that is a fact of
>> > life).
>> >
>> > Is there nothing that can be added to the software that would do the
>> > "little by little" breakup automatically for you ?
>> >
>> > I even wrote myself a tiny VB app that lets me ignore/un-ignore paths
>> > interactively/graphically in a prf.... but as much as it helps that is
>> > still a super tedious manual process ... when you have to rerun Unison
>> > 10, 20, 30, ...  times.
>> > There has got to be a way to make that automated behind the scenes !
>> > What about something as simple as making the TCP connection a property
>> > of the session (ie. persist in reconnecting as necessary to complete the
>> > synch - unless expressly terminated), as opposed to the way it is now
>> > where 1connection = 1synch-session.
>> >
>> > Seb
>> >
>> >
>> > ------------------------------------
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>> >
>

#8622 From: "Urbaniak, Sebastian" <surbaniak@...>
Date: Thu Nov 12, 2009 10:13 pm
Subject: RE: Unison "Lost connection with server"
sebski73
Offline Offline
Send Email Send Email
 
That works in some cases,  but not in general.

For example one of the cases where mine runs into  Connection Loss is where only
10 files (9 of them in same folder) update,  but they are each 2GB in size.

The solution/algorithm for the client which I proposed handles the problem in
general.

	 Thread1:
		 While(<detecting_file_diffs>)
		 {
			 If(!CONNECTED)
				 Sleep(20seconds)
			 Else
				 <keep_detecting_file_diffs>
		 }
		 While(<synchronizing>)
		 {
			 If(!CONNECTED)
				 Sleep(20seconds)
			 Else
				 <keep_synchronizing>
		 }
	 Thread2:
		 While(TRUE)
		 {
			 If(!CONNECTED && SUPPOSED_TO_BE_CONNECTED)
				 AttemptConnectionToServer()
			 If(USER_ABORTED || PROCESS_TERMINATED)
				 Exit()
			 Else
				 Sleep(10seconds)
		 }
		 // add configurable MAX_OVERALL_CONNECT_RETRY_LIMIT & Counter if you like


Does it fit the current paradigm?  Anyone feel like implementing this in the
Unison core?


Seb

> -----Original Message-----
> From: Jason Axelson [mailto:bostonvaulter@...]
> Sent: November 12, 2009 15:53
> To: Urbaniak, Sebastian
> Cc: unison-users@yahoogroups.com
> Subject: Re: [unison-users] Unison "Lost connection with server"
>
> The basic idea of what I was thinking was to put the entire profile
> description in the script and then write out the profile for the first
> path, and run unison. Then do this for each folder in the root
> (assuming those folders are big enough). You could probably generalize
> it even more by checking if unison fails (although this takes a while)
> then set the root as a deeper folder. But I personally have not tried
> this or even tried setting path separately since I have so few files.
>
> Jason
>
> On Thu, Nov 12, 2009 at 9:51 AM, Urbaniak, Sebastian
> <surbaniak@...> wrote:
> > Script to do which part ?
> >
> >> -----Original Message-----
> >> From: Jason Axelson [mailto:bostonvaulter@...]
> >> Sent: November 12, 2009 14:24
> >> To: Urbaniak, Sebastian
> >> Cc: unison-users@yahoogroups.com
> >> Subject: Re: [unison-users] Unison "Lost connection with server"
> >>
> >> It should be possible to write a perl or bash script to do this for
> >> you. Might take a bit of work, but nothing too crazy I think.
> >>
> >> Jason
> >>
> >> On Thu, Nov 12, 2009 at 5:51 AM, Urbaniak, Sebastian
> >> <surbaniak@...> wrote:
> >> >> > Hello,
> >> >> > I have a problem: I need to sync two machines which are far away
> >> > from each other. Unison is installed on both and short sync
> >> >> IS okay. However when I try to sync huge folder then after scanning
> >> > the local folder (for few hours) it reports "Lost
> >> >> connection with server". I am trying to have initial synchronisation,
> >> > do not know if it is any faster when initial sync has
> >> >> been done already.
> >> >> >
> >> >> > I tried to play with ssh options on the remote machine (server) but
> >> > that was not OK. I can NOT synchronise by small pieces,
> >> >> since I have LOTS of data.
> >> >> >
> >> >> > Therefore, if somebody had and overcame this problem, please tell
> >> > how you did that! Is there a way to speed up scanning
> >> >> process (now it takes hours)?
> >> >>
> >> >> Why can't you synchronize by small pieces? Set the roots as they will
> >> >> be at the end, and add synchronization paths little by little.
> >> >>
> >> >> Alan
> >> > [_SUrbaniak_]
> >> >
> >> > Alan, you are talking about a very tedious manual process. I have been
> >> > struggling with the very same issue for years. (Connection Loss on
> >> > synchs that take more then 1h  -   no my WAN link that is a fact of
> >> > life).
> >> >
> >> > Is there nothing that can be added to the software that would do the
> >> > "little by little" breakup automatically for you ?
> >> >
> >> > I even wrote myself a tiny VB app that lets me ignore/un-ignore paths
> >> > interactively/graphically in a prf.... but as much as it helps that is
> >> > still a super tedious manual process ... when you have to rerun Unison
> >> > 10, 20, 30, ...  times.
> >> > There has got to be a way to make that automated behind the scenes !
> >> > What about something as simple as making the TCP connection a property
> >> > of the session (ie. persist in reconnecting as necessary to complete the
> >> > synch - unless expressly terminated), as opposed to the way it is now
> >> > where 1connection = 1synch-session.
> >> >
> >> > Seb

#8623 From: Benjamin Pierce <bcpierce@...>
Date: Fri Nov 13, 2009 1:23 am
Subject: Re: Unison "Lost connection with server"
benjamincpierce
Offline Offline
Send Email Send Email
 
No, this doesn't fit Unison's view of the world very well.

I believe what's needed is to change the update detection code so
that, if it notices it is taking a long time, it quits early (without
scanning all of the replica), writes out the archive files, and then
restarts the scanning process.  I don't think this would be too hard
for someone to implement, but it does involve touching the Update
module, which is a little tangled.

      - B



On Nov 12, 2009, at 5:13 PM, Urbaniak, Sebastian wrote:

> That works in some cases,  but not in general.
>
> For example one of the cases where mine runs into  Connection Loss
> is where only 10 files (9 of them in same folder) update,  but they
> are each 2GB in size.
>
> The solution/algorithm for the client which I proposed handles the
> problem in general.
>
>  Thread1:
> 	 While(<detecting_file_diffs>)
> 	 {
> 		 If(!CONNECTED)
> 			 Sleep(20seconds)
> 		 Else
> 			 <keep_detecting_file_diffs>
> 	 }
> 	 While(<synchronizing>)
> 	 {
> 		 If(!CONNECTED)
> 			 Sleep(20seconds)
> 		 Else
> 			 <keep_synchronizing>
> 	 }
>  Thread2:
> 	 While(TRUE)
> 	 {
> 		 If(!CONNECTED && SUPPOSED_TO_BE_CONNECTED)
> 			 AttemptConnectionToServer()
> 		 If(USER_ABORTED || PROCESS_TERMINATED)
> 			 Exit()
> 		 Else
> 			 Sleep(10seconds)
> 	 }
> 	 // add configurable MAX_OVERALL_CONNECT_RETRY_LIMIT & Counter if
> you like
>
>
> Does it fit the current paradigm?  Anyone feel like implementing
> this in the Unison core?
>
>
> Seb
>
>> -----Original Message-----
>> From: Jason Axelson [mailto:bostonvaulter@...]
>> Sent: November 12, 2009 15:53
>> To: Urbaniak, Sebastian
>> Cc: unison-users@yahoogroups.com
>> Subject: Re: [unison-users] Unison "Lost connection with server"
>>
>> The basic idea of what I was thinking was to put the entire profile
>> description in the script and then write out the profile for the
>> first
>> path, and run unison. Then do this for each folder in the root
>> (assuming those folders are big enough). You could probably
>> generalize
>> it even more by checking if unison fails (although this takes a
>> while)
>> then set the root as a deeper folder. But I personally have not tried
>> this or even tried setting path separately since I have so few files.
>>
>> Jason
>>
>> On Thu, Nov 12, 2009 at 9:51 AM, Urbaniak, Sebastian
>> <surbaniak@...> wrote:
>>> Script to do which part ?
>>>
>>>> -----Original Message-----
>>>> From: Jason Axelson [mailto:bostonvaulter@...]
>>>> Sent: November 12, 2009 14:24
>>>> To: Urbaniak, Sebastian
>>>> Cc: unison-users@yahoogroups.com
>>>> Subject: Re: [unison-users] Unison "Lost connection with server"
>>>>
>>>> It should be possible to write a perl or bash script to do this for
>>>> you. Might take a bit of work, but nothing too crazy I think.
>>>>
>>>> Jason
>>>>
>>>> On Thu, Nov 12, 2009 at 5:51 AM, Urbaniak, Sebastian
>>>> <surbaniak@...> wrote:
>>>>>>> Hello,
>>>>>>> I have a problem: I need to sync two machines which are far away
>>>>> from each other. Unison is installed on both and short sync
>>>>>> IS okay. However when I try to sync huge folder then after
>>>>>> scanning
>>>>> the local folder (for few hours) it reports "Lost
>>>>>> connection with server". I am trying to have initial
>>>>>> synchronisation,
>>>>> do not know if it is any faster when initial sync has
>>>>>> been done already.
>>>>>>>
>>>>>>> I tried to play with ssh options on the remote machine
>>>>>>> (server) but
>>>>> that was not OK. I can NOT synchronise by small pieces,
>>>>>> since I have LOTS of data.
>>>>>>>
>>>>>>> Therefore, if somebody had and overcame this problem, please
>>>>>>> tell
>>>>> how you did that! Is there a way to speed up scanning
>>>>>> process (now it takes hours)?
>>>>>>
>>>>>> Why can't you synchronize by small pieces? Set the roots as
>>>>>> they will
>>>>>> be at the end, and add synchronization paths little by little.
>>>>>>
>>>>>> Alan
>>>>> [_SUrbaniak_]
>>>>>
>>>>> Alan,  you are talking about a very tedious manual process.  I
>>>>> have been
>>>>> struggling with the very same issue for years.  (Connection Loss
>>>>> on
>>>>> synchs that take more then 1h    -     no my WAN link that is a
>>>>> fact of
>>>>> life).
>>>>>
>>>>> Is there nothing that can be added to the software that would do
>>>>> the
>>>>> "little by little"  breakup automatically for you ?
>>>>>
>>>>> I even wrote myself a tiny VB app that lets me ignore/un-ignore
>>>>> paths
>>>>> interactively/graphically in a prf.... but as much as it helps
>>>>> that is
>>>>> still a super tedious manual process ... when you have to rerun
>>>>> Unison
>>>>> 10, 20, 30, ...   times.
>>>>> There has got to be a way to make that automated behind the
>>>>> scenes !
>>>>> What about something as simple as making the TCP connection a
>>>>> property
>>>>> of the session (ie. persist in reconnecting as necessary to
>>>>> complete the
>>>>> synch - unless expressly terminated), as opposed to the way it
>>>>> is now
>>>>> where 1connection = 1synch-session.
>>>>>
>>>>> Seb
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

#8624 From: Thomas Manson <dev.mansonthomas@...>
Date: Fri Nov 13, 2009 10:09 am
Subject: Re: file synchronisation between two node of a http cluster
dev.mansonthomas@...
Send Email Send Email
 
I think unison will do the job.

I've made some initial test, and unison is asking interractively to synchronize files... ex: I add on file on one server then call unison :

local          sd2.123mo...
new file ---->            test2  [f] f

Proceed with propagating updates? [] y
Propagating updates


I don't understand the first question ...
I'd like the synchro to be as automatic as possible... How can I achieve that?

Regards,
Thomas.

On Thu, Nov 12, 2009 at 16:56, Data Control Systems - Mike Elkevizth <mike@...> wrote:
I think unison could do the trick, but you would have to either call it often via a cron job, which probably isn't the best idea, or call unison based on a file system change.  You should look into "incron" to do this.  Good luck.
 
Mike E.
 
 
-----Original Message-----
From: unison-users@yahoogroups.com [mailto:unison-users@yahoogroups.com]On Behalf Of Thomas Manson
Sent: Thursday, November 12, 2009 9:03 AM
To: unison-users@yahoogroups.com
Subject: [unison-users] file synchronisation between two node of a http cluster

 

Hi,


  I'm building a cluster of lighttpd (web server).

  It's two seperate machine, each one running one lighttpd server (among other thing).

  the incomming traffic is sent to a virtual ip address that point to a loadbalancer (haproxy) which loadbalance the traffic accross the two servers (and maybe more servers if needed).

  The webservers hosts hundred of virtualhost, so, there will be hundred of directories to sync.

  The problem is, if someone upload something like an image on a website one server, I need it to be replicated on the other server.

  One of the MySQL consultant I hire speak to me of unison.

  I've quickly read the doc, and it doesn't seem to have an unison daemon.

  So my question is  : 

  1. Is unison the right tool to do what I want ? if not, do you have some other tool to recommend?
  2. What is the best way to do it ?  (cron on each machine? how to handle the hundred of dir)
Regards,
Thomas.




#8625 From: Alan Schmitt <alan.schmitt@...>
Date: Fri Nov 13, 2009 10:17 am
Subject: Re: file synchronisation between two node of a http cluster
schmittafr
Offline Offline
Send Email Send Email
 
On Fri, Nov 13, 2009 at 11:09 AM, Thomas Manson <dev.mansonthomas@...> wrote:


I think unison will do the job.

I've made some initial test, and unison is asking interractively to synchronize files... ex: I add on file on one server then call unison :

local sd2.123mo...
new file ----> test2 [f] f

Proceed with propagating updates? [] y
Propagating updates


I don't understand the first question ...
I'd like the synchro to be as automatic as possible... How can I achieve that?

Look at the "batch" option in the manual.

Hope this helps,

Alan

#8626 From: Thomas Manson <dev.mansonthomas@...>
Date: Fri Nov 13, 2009 10:50 am
Subject: Re: file synchronisation between two node of a http cluster
dev.mansonthomas@...
Send Email Send Email
 
Thanks Alan, I'll take a look.

Thomas.

On Fri, Nov 13, 2009 at 11:17, Alan Schmitt <alan.schmitt@...> wrote:
On Fri, Nov 13, 2009 at 11:09 AM, Thomas Manson <dev.mansonthomas@...> wrote:


I think unison will do the job.

I've made some initial test, and unison is asking interractively to synchronize files... ex: I add on file on one server then call unison :

local          sd2.123mo...
new file ---->            test2  [f] f

Proceed with propagating updates? [] y
Propagating updates


I don't understand the first question ...
I'd like the synchro to be as automatic as possible... How can I achieve that?

Look at the "batch" option in the manual.

Hope this helps,

Alan 


#8627 From: "Urbaniak, Sebastian" <surbaniak@...>
Date: Fri Nov 13, 2009 3:11 pm
Subject: RE: Unison "Lost connection with server"
sebski73
Offline Offline
Send Email Send Email
 
That would work for me.
In fact, why could the archives not get updated "AS YOU GO" (on a timer,
or for every N megabytes read)?
That way  when a sudden Connection Loss occurs you don't loose all the
precious processing you have already done up to this point.   (I believe
this methodology was already kind of applied in the propagation stage -
by resuming previously aborted transfers (if I am not mistaken))

Yes?
This way there would be no need to write any additional timers for
detection of 'long' scans, or logic for auto restarting.
The next unison cycle would simply pickup where the previous left off  -
currently if I understand things correctly everything starts from the
very beginning (even if previous cycle already scanned 9 out of 10 huge
files).

Any coders out there ,  that want to make this mod ?

S

> -----Original Message-----
> From: Benjamin Pierce [mailto:bcpierce@...]
> Sent: November 12, 2009 20:23
> To: Urbaniak, Sebastian
> Cc: Jason Axelson; unison-users@yahoogroups.com
> Subject: Re: [unison-users] Unison "Lost connection with server"
>
> No, this doesn't fit Unison's view of the world very well.
>
> I believe what's needed is to change the update detection code so
> that, if it notices it is taking a long time, it quits early (without
> scanning all of the replica), writes out the archive files, and then
> restarts the scanning process.  I don't think this would be too hard
> for someone to implement, but it does involve touching the Update
> module, which is a little tangled.
>
>      - B

#8628 From: Joerg van den Hoff <j.van_den_hoff@...>
Date: Fri Nov 13, 2009 4:38 pm
Subject: macos X 10.6: 'fingerprint mismatch' problem
vdh_j
Offline Offline
Send Email Send Email
 
dear unisoners,

sorry for this long post.

before reading along: the following happened with 2.27 since
this is currently the best one can get from MacPorts:

I  ran into massive problems when trying to sync between two
macos X machines, the first (old) one being  a  PPC  running
10.4, the second (new) being a macbook running 10.6.

I  first  copied  most  of  the  big chunks manually to help
unison along and then tried a standard unsion sync  of  both
machines.

these  led  to  many  apparent(?)  conflicts concerning file
props, although the reported  permissions  (when  using  'x'
during the conflict resolution) where exactly the same.

since  the number of 'conflicts' was way to large to confirm
interactively I then tried a

'unison force'

forcing  the  old root for all conflicts (assuming that they
concerned only spurious props differences).

but in the _very_ long list of detected conflicts (thousands
of  them)  there  where,  beside  the  maybe  95%    'props'
conflicts,   also   quite  some  'files  differ'   conflicts
although, as mentioned, I had transferred the affected files
manually  just before the unison run from the old to the new
machine.

so  my FIRST QUESTION is: what are these 'file differences'?
do they indicate actual differences  (which  would  be  very
strange  since  I do'nt assume that the previous manual copy
had any problems)? can I trust the transferred data  on  the
target machine for these files?

I   nevertheless  confirmed  the  run  (as  long  as  it  is
unidirectional I think I cannot mess  up  something  on  the
first machine ...).

this  produced some 150 errors (out of some 10^4 transferred
files) a la

Failed: The file .unison.Dr.doc.6711619009f4bc8f8ae6196d85070fc1.unison.tmp was
incorrectly transferred (fingerprint mismatch)

in  the  logfile  I  see  that the affected files seem to be
mostly ms-word .doc files (should be expected  anyway  :-)),
quicktime movies and pdf-files but I'm not sure whether that
has any significance.

my  SECOND  QUESTION is: is this a known 2.27 problem? I did
not find anything helpful in the mail archive.

I've mailed the macports maintainer of unison in parallel. a
few weeks ago  they  had  still  problems  getting  the  GUI
running  under  10.6  and  therefore  did  not  upgrade  the
package.

my  THIRD QUESTION is: if the macports people cannot provide
this for now, is there a well-defined way of getting the CLI
version   of   unison  running  under  10.6?  I've  got  the
impression that it's not as simple as calling ocamopt :-)


any  advice  what  to  do to make unison (and thus me) happy
again would be greatly appreciated.

best

joerg

#8629 From: "a227song" <a.song@...>
Date: Fri Nov 13, 2009 5:32 pm
Subject: Permissions sync
a227song
Offline Offline
Send Email Send Email
 
Can unison syncronize advanced ACL, along with the chmod bits?

I added group:staff:rwx permissions to a file in unison_root1 directory, also
there is default mask:: and these don't seem to be synced to the second
root(unison_test4).

-bash-3.1$ getfacl /unison_root1/AddGroup
# file: unison_root1/AddGroup
# owner: asong
# group: asong
user::rwx
group::rwx
group:staff:rwx
mask::rwx
other::r--

-bash-3.1$ getfacl /unison_test4/AddGroup
# file: unison_test4/AddGroup
# owner: asong
# group: asong
user::rwx
group::rwx
other::r--

#8630 From: Alan Schmitt <alan.schmitt@...>
Date: Fri Nov 13, 2009 6:29 pm
Subject: Re: Permissions sync
schmittafr
Offline Offline
Send Email Send Email
 
On Fri, Nov 13, 2009 at 6:32 PM, a227song <a.song@...> wrote:
> Can unison syncronize advanced ACL, along with the chmod bits?

I don't think so.

Alan

#8631 From: "Urbaniak, Sebastian" <surbaniak@...>
Date: Fri Nov 13, 2009 6:52 pm
Subject: Error performing inpage operation.
sebski73
Offline Offline
Send Email Send Email
 
I am getting this error more and more recently:



   Waiting for changes from server
Reconciling changes
          error            configs/apps/Memeo
Error in scanning directory:
Error performing inpage operation.
  [opendir()]
No updates to propagate



Any ideas what I can do to make it not fail on these 'inpage operations'
?

Running: unison.win32-2.27.57-Text.exe         on both ends.

#8632 From: "isbn4877284443" <yamakiyo@...>
Date: Mon Nov 16, 2009 4:33 pm
Subject: Re: macos X 10.6: 'fingerprint mismatch' problem
isbn4877284443
Offline Offline
Send Email Send Email
 
Hi Joerg,

> I've mailed the macports maintainer of unison in parallel. a
> few weeks ago  they  had  still  problems  getting  the  GUI
> running  under  10.6  and  therefore  did  not  upgrade  the
> package.

Oh, really?

I submitted minimal patches to MacPorts BTS which makes unison-2.27.157/2.32.52
works with MacGUI on MacOSX 10.6(64-bit):
http://trac.macports.org/ticket/21862
It is working without serious error on my Mac.

Please tell me the detail of the problems about GUI support which prevent to
upgrade the package.
I will try to fix the problems and re-submit updated patches.

-- Kiyoshi

#8633 From: "dedebaykus" <dedebaykus@...>
Date: Wed Nov 18, 2009 4:03 am
Subject: Incredibly slow VPN Sync
dedebaykus
Offline Offline
Send Email Send Email
 
Hello

I am trying to to sync some folders between a local machine and folders that are
mapped(network folder mapping) over Vpn(distant) under Windows. Both sides are
windows(server and the client). For some reason Unison spends incredible amount
of time per file, maybe couple mins per file. I am not sure if this is expected
but does not sound right. When I use another application to sync I can get
easily 80 kb/sec between my computer and the server so the speed is not like
super slow.

Any ideas why that might be happening?


thanks

#8634 From: Alan Schmitt <alan.schmitt@...>
Date: Wed Nov 18, 2009 6:22 am
Subject: Re: Incredibly slow VPN Sync
schmittafr
Offline Offline
Send Email Send Email
 
On Wed, Nov 18, 2009 at 5:03 AM, dedebaykus <dedebaykus@...> wrote:
> Hello
>
> I am trying to to sync some folders between a local machine and folders that
are mapped(network folder mapping) over Vpn(distant) under Windows. Both sides
are windows(server and the client). For some reason Unison spends incredible
amount of time per file, maybe couple mins per file. I am not sure if this is
expected but does not sound right. When I use another application to sync I can
get easily 80 kb/sec between my computer and the server so the speed is not like
super slow.

Is it slow during the change detection or during the file transfer?
When you monitor network traffic, do you see a lot of it?

Alan

#8635 From: Kai Steinbach <kai.steinbach@...>
Date: Wed Nov 18, 2009 4:28 pm
Subject: Re: Incredibly slow VPN Sync
kai_steinbach
Offline Offline
Send Email Send Email
 
Hi dedebaykus,

On Wed, Nov 18, 2009 at 05:03, dedebaykus wrote:
> I am trying to to sync some folders between a local machine and folders that
are mapped(network folder mapping) over Vpn(distant) under Windows. Both sides
are windows(server and the client). For some reason Unison spends incredible
amount of time per file, maybe couple mins per file. I am not sure if this is
expected but does not sound right. When I use another application to sync I can
get easily 80 kb/sec between my computer and the server so the speed is not like
super slow.
>
> Any ideas why that might be happening?

The way you are using Unison - by pointing it to a mapped drive - it
is not using the client & server mode. Instead you are using local
mode.
http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual\
.html#local

Here are a few tips:
  - do the first sync when you are IN the office, not over VPN
  - use "fastcheck = true" otherwise (on Windows) Unison will always
read in the whole files for creating the checksums and comparing it
against the previous state
  - please note that some file extensions are excluded from fastcheck
optimization
http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual\
.html#fastcheck

HTH, Kai

#8636 From: "Data Control Systems - Mike Elkevizth" <mike@...>
Date: Wed Nov 18, 2009 7:04 pm
Subject: RE: Incredibly slow VPN Sync
melk600
Offline Offline
Send Email Send Email
 
You should use the fastcheck option to stop unison from scanning the contents of each file to speed things up.  However, that isn't the real problem.  The real problem is the way you are calling unison.  By using the mapped drive, the unison on the local machine is doing all of the work.  This means that it is going through the VPN to scan the files, which is very slow.  The proper way to run unison is to have it installed on both machines, have each machine do a local scan and then the only thing that needs to happen over the VPN is reconciling changes and transferring files which will be much faster.  Read the manual on how to accomplish this setup.  Not mapping drives (or at least not using them) is part of it.
 
Regards,
 
Mike E.
 
 
-----Original Message-----
From: unison-users@yahoogroups.com [mailto:unison-users@yahoogroups.com]On Behalf Of dedebaykus
Sent: Tuesday, November 17, 2009 11:04 PM
To: unison-users@yahoogroups.com
Subject: [unison-users] Incredibly slow VPN Sync

 

Hello

I am trying to to sync some folders between a local machine and folders that are mapped(network folder mapping) over Vpn(distant) under Windows. Both sides are windows(server and the client). For some reason Unison spends incredible amount of time per file, maybe couple mins per file. I am not sure if this is expected but does not sound right. When I use another application to sync I can get easily 80 kb/sec between my computer and the server so the speed is not like super slow.

Any ideas why that might be happening?

thanks


#8637 From: Thiemo Nagel <thiemo.nagel@...>
Date: Sun Nov 22, 2009 1:56 pm
Subject: FAT issue: rename fails with "Destination updated"
thiemo.nagel@...
Send Email Send Email
 
Hello,

I've run into an issue with unison (Debian package version 2.13.16-5) on
FAT filesystems:  If I rename a file from lower case to upper case (eg.
a --> A), unison fails to propagate this change, saying: "Failed:
Destination updated during synchronization"

Probably the reason for this is that in a FAT filesystem "a" and "A"
indeed are the same file, it's only the representation of the filename
which changes.  A simple mv doesn't work either:

$ mv a A
mv: `a' and `A' are the same file

The obvious work-around is:
$ mv a a_
$ mv a_ A

What do you think?  Can it be fixed?

Cheers!

Thiemo Nagel

#8638 From: LaMain <lamainsites@...>
Date: Wed Nov 25, 2009 6:34 pm
Subject: Some Feedbacks
lamainsites
Offline Offline
Send Email Send Email
 

Hi,

I'm new to your mailing list, and French.

Some times ago, I'd choosen to try unison for automatic backups in a small society.

Things works fine, at the start. Now i'm trapped in some trouble, and asking you some advice/help/anti-depressors.

Some regular informations :

- I use stable version of unison (2.32.52)

- I use the mirroring only mode ( -force switch)

- Backups are made from local network to local HD

(ie: \\pc\the\src\path =>> c:\dest\path )

- Some other switch i use :

* -fastcheck

* -batch

*-logfile

*-backups

*-maxbackups

*-retry

There is 2 things (perhaps not new to you, but i don't find anything in the net).

First one NTFS max length problem:

There's some really long path in the src tree to backup. Unfortunatly, during the operation unison create more longer ones in the destination dir by prefixing and a appending with .unison[.temp] stuffs. The result is that some path for the operation will grow over 255 chars and results in ERRORs.

Is there is some workaround for this ?

Second problem in which i have no clue.

Sometimes on some regular files (after checking nothing particular with these files), unison report an error in the log file saying :

/some/.unison.dir.1212.unison.temp/thefile.ext ERROR FILE EXIST.

Errors repeat over relaunch of unison.

These errors make unison stop the backup operation, leaving some temporary directory in the system.

- Is it possible that unison doesn't handle correctly the temporary stuffs it left in a previously crashed session ?

- Why unison doesn't continue the backuping and only report the error in the log file ?

- Did i miss something ?

Thank's for your patients and useful jobs.

Cheers Patrick

--

J'aime pas le marketing glouton


Messages 8609 - 8638 of 8638   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help