LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   SVN SYNC hangs (http://www.linuxquestions.org/questions/linux-software-2/svn-sync-hangs-4175466583/)

amilauduwerella 06-19-2013 04:46 AM

SVN SYNC hangs
 
I have setup a SVN read only mirror at my server, and sometimes when I try to do s svn sync, it does not do anything just hang on, CLI.

Can you help me?

eklavya 06-20-2013 01:39 AM

It is necessary to find out which of these is applicable. You can search for processes called ‘svnsync’ using the ps command:

Quote:

ps -C svnsync
If svnsync is running and you believe it has hung then you will need to kill it before proceeding.

If svnsync has died or been killed, and the destination repository remains locked, you can unlock it with the command:

Quote:

svn pd svn:sync-lock --revprop -r 0 file:///var/lib/svn/foo
Do not remove the lock unless you are confident that there is no instance of svnsync running. If two svnsync processes are allowed to write to the destination repository concurrently then it is possible they could leave it in an unusable state.

(In particular, do not assume that a process will necessarily die following a kill command. You should check using ps, and if necessary issue a kill -9.)

amilauduwerella 06-26-2013 05:21 AM

Thanks,
 
Got it fixed. There was a network issue. when it hangs, i had to kill the process and do as you mention.


All times are GMT -5. The time now is 01:14 AM.