Re: svnsync error : Error while replaying commit
Hi, you might wanna repost your question in English. I'm not sure whether anybody here can read Chinese (if it is Chinese, that is). All I can make out of this report is that you seem to get some error running svnsync which seems to be a rather old version (1.7.4). If you want/need to stick with 1.7, I suggest you at least upgrade to the latest 1.7-version (which is 1.7.22 at the time of writing this) or even a later (and still supported) version like 1.8/1.9. 我也遇到了该问题Error while replaying commit,有些库用下面同样的步骤操作是没问题的,但是有些库就报这个错,不知道为什么,麻烦大家遇到过解决了的回答下,谢谢 我的操作步骤是 1、将脚本aapost-commit.bat放置到SVN主服务器相对应项目的hooks文件里, 例如:\\192.168.27.1\d$\SVN\c3m-video\hooks "C:\Program Files (x86)\Subversion\bin\svnsync.exe" sync --non-interactive svn://192.168.27.88/c3m-video --username admin --password cmadmin 修改下面一行中的备份服务器IP和项目名 2、将脚本Svn Start Server.bat放置在备份服务器SVN文件的同目录下 svnserve -d -r e:\SVN 修改对应的存储盘符 3、将脚本pre-revprop-change.bat放置在备份服务器相应项目的hooks文件夹下。例如: \\192.168.27.1\d$\SVN\c3m-video\hooks 二、操作命令 (在备份服务器上操作) 1、连接 svnsync init svn://192.168.27.88/C3M-EMS svn://192.168.27.1/C3M-EMS 2、同步 svnsync sync svn://192.168.27.88/MVSS --username admin --password cmadmin 主服务是Windows sever 2008 R2,备份服务器是Windows sever 2008 R2 SVN服务版本为Setup-Subversion-1.7.4 -- View this message in context: http://subversion.1072662.n5.nabble.com/svnsync-error-Error-while-replaying-commit-tp156531p196592.html Sent from the Subversion Users mailing list archive at Nabble.com. -- Regards, Stefan Hett
Re: svnsync error : Error while replaying commit
我也遇到了该问题Error while replaying commit,有些库用下面同样的步骤操作是没问题的,但是有些库就报这个错,不知道为什么,麻烦大家遇到过解决了的回答下,谢谢 我的操作步骤是 1、将脚本aapost-commit.bat放置到SVN主服务器相对应项目的hooks文件里, 例如:\\192.168.27.1\d$\SVN\c3m-video\hooks "C:\Program Files (x86)\Subversion\bin\svnsync.exe" sync --non-interactive svn://192.168.27.88/c3m-video --username admin --password cmadmin 修改下面一行中的备份服务器IP和项目名 2、将脚本Svn Start Server.bat放置在备份服务器SVN文件的同目录下 svnserve -d -r e:\SVN 修改对应的存储盘符 3、将脚本pre-revprop-change.bat放置在备份服务器相应项目的hooks文件夹下。例如: \\192.168.27.1\d$\SVN\c3m-video\hooks 二、操作命令 (在备份服务器上操作) 1、连接 svnsync init svn://192.168.27.88/C3M-EMS svn://192.168.27.1/C3M-EMS 2、同步 svnsync sync svn://192.168.27.88/MVSS --username admin --password cmadmin 主服务是Windows sever 2008 R2,备份服务器是Windows sever 2008 R2 SVN服务版本为Setup-Subversion-1.7.4 -- View this message in context: http://subversion.1072662.n5.nabble.com/svnsync-error-Error-while-replaying-commit-tp156531p196592.html Sent from the Subversion Users mailing list archive at Nabble.com.
Re: SVNSYNC Error
Hi, The repositories and the destination repositories are all running on windows. Im not really an expert on batch files/shell script development...That's why Im asking for your help :( I just followed what I was told to do here but I don't want to mess things up. Thanks, Honey On Wed, Aug 1, 2012 at 2:08 PM, David Chapman dcchap...@acm.org wrote: On 7/31/2012 10:28 PM, Honeylyn O. Fukuoka wrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey The first two scripts are for Unix/Linux; they are /bin/sh or /bin/bash scripts. They will not work on a Windows machine. The third should have worked on any type of machine, though if the destination repository is on Unix/Linux you will need to make the file executable and should change its ownership to match that of the other sample scripts in the hooks directory. For example, on my Linux-hosted repository, all scripts are owned by user apache, group apache. What platform is the destination repository (i.e. the backup) on? Is it Windows or Unix/Linux? You haven't told us anything about the machines you are running on; you mentioned .bat files but then tried scripts meant for Unix/Linux. Do NOT run any experiments with complicated scripts until you get a simple script running; if you can't get a single line exit 0 script to work then none of the complicated scripts will work. In particular, if you are not an expert batch file/shell script developer, you shouldn't try anything fancy. You can really mess things up. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
On 7/31/2012 11:16 PM, Honeylyn O. Fukuoka wrote: Hi, The repositories and the destination repositories are all running on windows. Im not really an expert on batch files/shell script development...That's why Im asking for your help :( I just followed what I was told to do here but I don't want to mess things up. Here are the commands I ran on a Windows machine to synchronize from a remote repository: svnadmin create c:\user\work\repos cd c:\user\work\repos\hooks echo exit 0 pre-revprop-change.bat svnsync initialize file:///user/work/repos http://repos.sourcedomain.com/repos svnsync sync file:///user/work/repos This ran just fine with SVN 1.6. Can you run something similar on your Windows machine and let us know what results you get? Run the steps in a new directory, not in the repository you just created. Note that the source repository in my example is served by Apache, so it uses a http: prefix. You would want to use a svn: prefix if you are using svnserve access, as was implied by your original message. Note that the destination repository is being accessed using the file: protocol. The repository I created was not meant to be accessed by other users; it is intended only to serve as a backup. If you are trying to set up a write-through proxy then you will need something like svnserve or Apache HTTP on the destination repository. Also, depending on your repository directory names, you may need to use quote marks around arguments. I recommend avoiding space characters in your directory names for this test. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com
Re: SVNSYNC Error
Thanks so much for this info, Will try this and will let you know it it is successful... Thanks, Honey On Wed, Aug 1, 2012 at 2:36 PM, David Chapman dcchap...@acm.org wrote: On 7/31/2012 11:16 PM, Honeylyn O. Fukuoka wrote: Hi, The repositories and the destination repositories are all running on windows. Im not really an expert on batch files/shell script development...That's why Im asking for your help :( I just followed what I was told to do here but I don't want to mess things up. Here are the commands I ran on a Windows machine to synchronize from a remote repository: svnadmin create c:\user\work\repos cd c:\user\work\repos\hooks echo exit 0 pre-revprop-change.bat svnsync initialize file:///user/work/repos http://repos.sourcedomain.com/* *repos http://repos.sourcedomain.com/repos svnsync sync file:///user/work/repos This ran just fine with SVN 1.6. Can you run something similar on your Windows machine and let us know what results you get? Run the steps in a new directory, not in the repository you just created. Note that the source repository in my example is served by Apache, so it uses a http: prefix. You would want to use a svn: prefix if you are using svnserve access, as was implied by your original message. Note that the destination repository is being accessed using the file: protocol. The repository I created was not meant to be accessed by other users; it is intended only to serve as a backup. If you are trying to set up a write-through proxy then you will need something like svnserve or Apache HTTP on the destination repository. Also, depending on your repository directory names, you may need to use quote marks around arguments. I recommend avoiding space characters in your directory names for this test. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: Thanks so much for this info, Will try this and will let you know it it is successful... There are quite a lot of posts in this thread already, and I'm surprised that nobody seems to have pointed Honeylyn to the relevant section of the svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync Please read this page first, and if you have any further questions, *then* ask on this list. If you're also going to set up a write-through proxy see http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy Good luck!
Re: SVNSYNC Error
Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Thanks, Honey On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: Thanks so much for this info, Will try this and will let you know it it is successful... There are quite a lot of posts in this thread already, and I'm surprised that nobody seems to have pointed Honeylyn to the relevant section of the svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync Please read this page first, and if you have any further questions, *then* ask on this list. If you're also going to set up a write-through proxy see http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy Good luck! -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
RE: SVNSYNC Error
From: Honeylyn O. Fukuoka [mailto:honey...@menue.com] Sent: 01 August 2012 09:58 To: Honeylyn O. Fukuoka; David Chapman; vishwajeet singh; users@subversion.apache.org Subject: Re: SVNSYNC Error Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? I don't want to be rude but perhaps you could have checked the links before posting this question? ~ mark c On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: Thanks so much for this info, Will try this and will let you know it it is successful... There are quite a lot of posts in this thread already, and I'm surprised that nobody seems to have pointed Honeylyn to the relevant section of the svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#s vn.reposadmin.maint.replication.svnsync Please read this page first, and if you have any further questions, *then* ask on this list. If you're also going to set up a write-through proxy see http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html #svn.serverconfig.httpd.extra.writethruproxy Good luck! -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc.
Re: SVNSYNC Error
On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O. Fukuoka wrote: Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Sure. svnsync is just about repository replication, and has nothing to do with what server is being used to allow access to the repository via the network. You didn't mention why you want to use svnsync. If your goal is to back up a repository to another machine then all you need is svnsync. If the goal is to set up a write-through proxy using the mirrored repostory then you need svnsync and Apache HTTPD because svnserve doesn't support write-through proxying.
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Yes (please read the links to the documentation you've been provided). But not with an HTTP URL for your source repository. If you're using svnserve, your URL should be svn:// On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: Thanks so much for this info, Will try this and will let you know it it is successful... There are quite a lot of posts in this thread already, and I'm surprised that nobody seems to have pointed Honeylyn to the relevant section of the svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync Please read this page first, and if you have any further questions, *then* ask on this list. If you're also going to set up a write-through proxy see http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy Good luck! -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc.
Re: SVNSYNC Error
Hi, The reason why I am doing the svnsync is to backup our repository to our new server in our main branch. Thanks, Honey On Wed, Aug 1, 2012 at 5:14 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O. Fukuoka wrote: Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Sure. svnsync is just about repository replication, and has nothing to do with what server is being used to allow access to the repository via the network. You didn't mention why you want to use svnsync. If your goal is to back up a repository to another machine then all you need is svnsync. If the goal is to set up a write-through proxy using the mirrored repostory then you need svnsync and Apache HTTPD because svnserve doesn't support write-through proxying. -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
Hi, I tried the one in your link under repository replication and followed what was instructed there. I also changed the pre-revprop-change hook script based on the example given there and so as the start-commit hook. But when I performed the 'svnsync initialize' command, I got this error: svnsync: E170001: Authorization Failed Here are the scripts I put in the pre-revprop-change hook #!/bin/sh USER=$3 if [ $USER = syncuser ]; then exit 0; fi echo Only the syncuser user may change revision properties 2 exit 1 And for the start-commit hook: #!/bin/sh USER=$2 if [ $USER = syncuser ]; then exit 0; fi echo Only the syncuser user may commit new revisions 2 exit 1 Those are exactly the same scripts that was on the book. I also did what David told me to do, to create another pre-revprop-change hook script with 'exit 0' and save it in .bat but also received the same error. Can anyone tell me what should I do to succesfuly erform the initialize command? Thanks so much, Honey On Wed, Aug 1, 2012 at 5:59 PM, Andy Levy andy.l...@gmail.com wrote: On Wed, Aug 1, 2012 at 4:57 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Yes (please read the links to the documentation you've been provided). But not with an HTTP URL for your source repository. If you're using svnserve, your URL should be svn:// On Wed, Aug 1, 2012 at 4:51 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 03:00:25PM +0800, Honeylyn O. Fukuoka wrote: Thanks so much for this info, Will try this and will let you know it it is successful... There are quite a lot of posts in this thread already, and I'm surprised that nobody seems to have pointed Honeylyn to the relevant section of the svnbook: http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.replication.svnsync Please read this page first, and if you have any further questions, *then* ask on this list. If you're also going to set up a write-through proxy see http://svnbook.red-bean.com/en/1.7/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy Good luck! -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
RE: SVNSYNC Error
On Wed, Aug 1, 2012 at 5:14 PM, Stefan Sperling s...@elego.de wrote: On Wed, Aug 01, 2012 at 04:57:57PM +0800, Honeylyn O. Fukuoka wrote: Hi, Thanks for this. We are using snserve not Apache... Will this link still work with us? Sure. svnsync is just about repository replication, and has nothing to do with what server is being used to allow access to the repository via the network. You didn't mention why you want to use svnsync. If your goal is to back up a repository to another machine then all you need is svnsync. If the goal is to set up a write-through proxy using the mirrored repostory then you need svnsync and Apache HTTPD because svnserve doesn't support write-through proxying. -Original Message- From: Honeylyn O. Fukuoka [mailto:honey...@menue.com] Sent: 01 August 2012 13:15 To: Honeylyn O. Fukuoka; David Chapman; vishwajeet singh; users@subversion.apache.org Subject: Re: SVNSYNC Error Hi, The reason why I am doing the svnsync is to backup our repository to our new server in our main branch. If all you are doing is a one-off move, then you should also investigate using dump/load. Depending on the size of your repo this can take a while, but can be done without svnsync and can have advantages in having your shiny new in the latest format. I suggest that you read the manual, especially this bit about Migrating Repository Data Elsewhere:- http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.migrate ~ mark c P.S. It is often good to explain what you are trying to do before asking for specific help. This helps us to discuss other, better ways to do stuff than you know about...
Re: SVNSYNC Error
Guten Tag Honeylyn O. Fukuoka, am Mittwoch, 1. August 2012 um 14:25 schrieben Sie: I also changed the pre-revprop-change hook script based on the example given there and so as the start-commit hook. pre-revprop-change is enough, start with the easiest setup possible. But when I performed the 'svnsync initialize' command, I got this error: svnsync: E170001: Authorization Failed This has nothing to do with hooks, I suspect you provided wrong user credentials to the source repo. Check that the provided user on the command line is the same as stated in passwd file of the source repo. Here are the scripts I put in the pre-revprop-change hook #!/bin/sh I'm rude now, but please concentrate on your problem! I only had a fast look over the messages in this thread and found more than one message telling you that hooks starting with #!/bin/sh are for Linux, not for Windows. They won't work, don't do that, ignore each and every hook starting with that line. It's wasted time, confuses you and even the people who try to help you. You want to sync either to Windows or Linux, I read Windows and therefore you won't need to do anything starting with #!/bin/sh. Please delete those files you created and simply forget about them. :-) Those are exactly the same scripts that was on the book. But the book has a paragraph noticing that one has to adopt the procedure on Windows on it's own. I also did what David told me to do, to create another pre-revprop-change hook script with 'exit 0' and save it in .bat but also received the same error. Because you don't even get where the hook could be used. But the creation of this and only this one hook is fine and what you need. Only this hook with the line exit 0 as pre-revprop-change.bat. Can anyone tell me what should I do to succesfuly erform the initialize command? Check the login credentials for the source and maybe even the destination repo, depedning on how you access the destination. Provide us the exact command line you ran for initialize, just without passwords of course. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail:thorsten.schoen...@am-soft.de AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon.030-2 1001-310 Fax...05151- 9468- 88 Mobil..0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow
SVNSYNC Error
Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet
Re: SVNSYNC Error
On 7/31/2012 9:13 PM, Honeylyn O. Fukuoka wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. I created a pre-revprop-change script with the single line exit 0 in it and put it into the hooks directory of the destination repository (not the original repository). Worked fine on Windows. Most of the issues that arise from allowing revision property changes are security-oriented; if you want to prevent some (or most) users from changing revision properties then your script must guard against it. But if you are just creating a repository backup that no one else will use unless the original crashes irretrievably, you don't need anything more. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet
Re: SVNSYNC Error
Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com
Re: SVNSYNC Error
Okay, Thanks for the help. Will try this. Thanks, Honey On Wed, Aug 1, 2012 at 12:40 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 10:07 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: When you created a pre-revprop-change, did you save it in .bak file and put It should be .bat on windows and should be placed in hooks directory it in the hooks directory of the dest repository? Am I getting you right? My goal is to sync our repository to another server outside our country. Will this work? It should work , I don't see a reason why it won't work but you need to get your setup right. Thanks, Honey On Wed, Aug 1, 2012 at 12:29 PM, David Chapman dcchap...@acm.org wrote: On 7/31/2012 9:13 PM, Honeylyn O. Fukuoka wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. I created a pre-revprop-change script with the single line exit 0 in it and put it into the hooks directory of the destination repository (not the original repository). Worked fine on Windows. Most of the issues that arise from allowing revision property changes are security-oriented; if you want to prevent some (or most) users from changing revision properties then your script must guard against it. But if you are just creating a repository backup that no one else will use unless the original crashes irretrievably, you don't need anything more. -- David Chapman dcchap...@acm.org Chapman Consulting -- San Jose, CA Software Development Done Right. www.chapman-consulting-sj.com -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- *HONEYLYN O. FUKUOKA* System Administrator Menue Philippines, Inc. * *
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change hook? I tried some hooks that I saw in the search engine but didn't work. Please help me on this. Thanks so much, -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter: http://twitter.com/vishwajeets | LinkedIn: http://www.linkedin.com/in/singhvishwajeet -- HONEYLYN O. FUKUOKA System Administrator Menue Philippines, Inc. -- Vishwajeet Singh +91-9657702154 | dextrou...@gmail.com | http://bootstraptoday.com Twitter:
Re: SVNSYNC Error
Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5 Question: 1. Am I on the right path in creating the Mirror Repository? 2. How do I create a pre-revprop-change
Re: SVNSYNC Error
I still received the same error message On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka honey...@menue.comwrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you need to enable 'pre-revprop-change hook' in destination repository. I am using Subvrsion Sever 1.7.5
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: I still received the same error message What error ? On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the Repository to Mirror) (URL of the Destination of the Mirrored Repo) sample: svnsync initialize svn://loocalhost/Repo Name svn://localhost/Destination Repo Name ERROR: svnsync: E16506: Repository has not been eabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook. As error says you
Re: SVNSYNC Error
svnsync: E165006: Repository has not been eabled to accept revision prop changes; ask the administrator to create a pre-revprop-change hook. On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: I still received the same error message What error ? On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to sync/mirror it. Here's what I did: 1. Go to the folder where the repositories are located 2. in the cmd typed: svnsync initialize (URL of the
Re: SVNSYNC Error
On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: svnsync: E165006: Repository has not been eabled to accept revision prop changes; ask the administrator to create a pre-revprop-change hook. I hope you are changing pre-revprop-change hook of destination repo not the source. On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: I still received the same error message What error ? On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks, Honey On Wed, Aug 1, 2012 at 12:05 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:28 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I have to sync our repository to another server, so to test it, I created a test repository in my local and tried to do svnsync command to
Re: SVNSYNC Error
Yes, I changed the pre-revprop-change hook of the destination of the mirrored repo then saved it as pre-revprop-change.bat On Wed, Aug 1, 2012 at 1:39 PM, vishwajeet singh dextrou...@gmail.comwrote: On Wed, Aug 1, 2012 at 11:07 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: svnsync: E165006: Repository has not been eabled to accept revision prop changes; ask the administrator to create a pre-revprop-change hook. I hope you are changing pre-revprop-change hook of destination repo not the source. On Wed, Aug 1, 2012 at 1:34 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 11:02 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: I still received the same error message What error ? On Wed, Aug 1, 2012 at 1:28 PM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, I created a .bat file with the following scripts but still didn't work: 1. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 exit 0 2. REPOS=$1 REV=$2 USER=$3 PROPNAME=$4 ACTION=$5 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit0 3. exit 0 Did I do something wrong? Thanks, Honey On Wed, Aug 1, 2012 at 12:41 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:09 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Okay, I will try this.. Correct me if I'm wrog, from this: echo Changing revision properties other than svn:log is prohibited 2 exit 1 To this: echo Changing revision properties other than svn:log is prohibited 2 exit 0 Just keep exit 0 remove everything else. Thanks, Honey On Wed, Aug 1, 2012 at 12:36 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 10:00 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Here's what I did. I don't really know how to do it so what I did I searched then found this one. Basically copy the code below into a text file and name it pre-revprop-change.bat and save it in the \hooks subdirectory for your repository. @ECHO OFF :: Set all parameters. Even though most are not used, in case you want to add :: changes that allow, for example, editing of the author or addition of log messages. set repository=%1 set revision=%2 set userName=%3 set propertyName=%4 set action=%5 :: Only allow the log message to be changed, but not author, etc. if /I not %propertyName% == svn:log goto ERROR_PROPNAME :: Only allow modification of a log message, not addition or deletion. if /I not %action% == M goto ERROR_ACTION :: Make sure that the new svn:log message is not empty. set bIsEmpty=true for /f tokens=* %%g in ('find /V ') do ( set bIsEmpty=false ) if %bIsEmpty% == true goto ERROR_EMPTY goto :eof :ERROR_EMPTY echo Empty svn:log messages are not allowed. 2 goto ERROR_EXIT :ERROR_PROPNAME echo Only changes to svn:log messages are allowed. 2 goto ERROR_EXIT :ERROR_ACTION echo Only modifications to svn:log revision properties are allowed. 2 goto ERROR_EXIT :ERROR_EXIT exit /b 1 Thanks for the link, I will try to follow the instructions there. Do I have to just copy this: #!/bin/sh USER=$3 if [ $USER = svnsync ]; then exit 0; fi echo Only the svnsync user can change revprops 2 exit 1 Just add one line 'exit 0' to your pre-rev-prop hook and try if that works than you can make further changes only if required, above may not work in your environment as I am not sure if you have svnsync user in your environment Thanks a lot, Honey On Wed, Aug 1, 2012 at 12:19 PM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:48 AM, vishwajeet singh dextrou...@gmail.com wrote: On Wed, Aug 1, 2012 at 9:43 AM, Honeylyn O. Fukuoka honey...@menue.com wrote: Hi, Thanks for the past response. Can you tell me what changes do I have to make in the prerevprop-change hook? I tried some but nothing happened. What did you try ? It just need to be there and should be executable nothing else $ echo #!/bin/sh hooks/pre-revprop-change $ chmod 755 hooks/pre-revprop-change You can find more details here http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt Thanks,
svnsync: Error while replaying commit
Can someone help me with this problem I have been running svnsync successfully for many months. All of a sudden it has stopped working. Problem started on 10th July .i.e since a user added revision 28288 More details and tests below Thanks Peter Young | SAP Global IT | 65 Fenchurch St. | UK T: 0044 (0) 20 7553 80285 | M: 0044 (0) 7887 736749 | E: pe.yo...@sap.com http://www.sap.com svn-mh-vm:/export/svn${SVNBIN}svnsync sync --username pyoung --password pyoung file:///export/svn/aleri svnsync: Error while replaying commit hmomh:/export/svnsvn log file:///export/svn/aleri| grep r282| more r28288 | pgandhij | 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) | 6 lines r28287 | larsenl | 2012-06-29 17:42:28 -0400 (Fri, 29 Jun 2012) | 4 lines r28286 | larsenl | 2012-06-29 17:22:31 -0400 (Fri, 29 Jun 2012) | 3 lines ... svnadmin verify aleri ... * Verified revision 28280. * Verified revision 28281. * Verified revision 28282. * Verified revision 28283. * Verified revision 28284. * Verified revision 28285. * Verified revision 28286. * Verified revision 28287. * Verified revision 28288. hmomh:/export/svnsvn info file:///export/svn/aleri -r 28288 Path: aleri URL: file:///export/svn/aleri Repository Root: file:///export/svn/aleri Repository UUID: eeea6706-3bef-0310-a2ed-9c33a50c9945 Revision: 28288 Node Kind: directory Last Changed Author: pgandhij Last Changed Rev: 28288 Last Changed Date: 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) hmomh:/export/svndf -h . filesystem size used avail capacity Mounted on hmomh-ZFS/home 6.0T 882G 3.2T22%/export/home/u hmomh:/export/svnls -lh aleri/db total 36164 -rw-rwxr-- 1 pgandhij svn6 Jul 9 20:04 current -r--rwxr-- 1 csvn svn 22 Aug 24 2010 format -rw-rwxr-- 1 csvn svn5 Aug 24 2010 fs-type -rw-rwxr-- 1 csvn svn 1.9K Aug 24 2010 fsfs.conf -rw-rwxr-- 1 csvn svn2 Aug 24 2010 min-unpacked-rev -rw-rwxr-- 1 csvn svn 18M Jul 9 20:04 rep-cache.db drwxrwsr-x 31 csvn svn 31 Aug 22 2010 revprops drwxrwsr-x 31 csvn svn 31 Aug 22 2010 revs drwxrwsr-x 2 csvn svn2 Jul 9 20:04 transactions -rw-rwxr-- 1 pgandhij svn4 Jul 9 20:04 txn-current -rw-rwxr-- 1 csvn svn0 Aug 24 2010 txn-current-lock drwxrwsr-x 2 csvn svn2 Jul 9 20:04 txn-protorevs -rw-rwxr-- 1 csvn svn 37 Aug 24 2010 uuid -rwxrw-r-x 1 csvn svn0 Aug 24 2010 write-lock
Fw: svnsync: Error while replaying commit
X-KeepSent: C29AB9B0:8D47FFAA-80257A3A:0030A940; type=4; name=$KeepSent To: users@subversion.apache.org X-Mailer: Lotus Notes Release 8.5.2FP4 November 18, 2011 Message-ID: ofc29ab9b0.8d47ffaa-on80257a3a.0030a940-80257a3a.0030a...@sybase.com From: peter.yo...@sybase.com Date: Fri, 13 Jul 2012 09:52:14 +0100 X-MIMETrack: Serialize by Router on gwwest/SYBASE(Release 8.0.2|August 07, 2008) at 07/13/2012 01:52:32 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Fixed it. my start-commit in hooks was checking for $3 instead of $2 and aborting - Forwarded by Peter Young/SYBASE on 13/07/2012 09:50 - From: Peter Young/SYBASE To: users@subversion.apache.org Date: 12/07/2012 17:41 Subject:Fw: svnsync: Error while replaying commit hmomh:/export/svnsvnadmin --version svnadmin, version 1.6.12 (r955767) compiled Jun 21 2010, 15:41:47 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.tigris.org/ This product includes software developed by CollabNet ( http://www.Collab.Net/). The following repository back-end (FS) modules are available: * fs_fs : Module for working with a plain file (FSFS) repository. - Forwarded by Peter Young/SYBASE on 12/07/2012 17:39 - From: Peter Young/SYBASE To: users@subversion.apache.org Date: 12/07/2012 17:37 Subject:svnsync: Error while replaying commit Can someone help me with this problem I have been running svnsync successfully for many months. All of a sudden it has stopped working. Problem started on 10th July .i.e since a user added revision 28288 More details and tests below Thanks Peter Young | SAP Global IT | 65 Fenchurch St. | UK T: 0044 (0) 20 7553 80285 | M: 0044 (0) 7887 736749 | E: pe.yo...@sap.com http://www.sap.com svn-mh-vm:/export/svn${SVNBIN}svnsync sync --username pyoung --password pyoung file:///export/svn/aleri svnsync: Error while replaying commit hmomh:/export/svnsvn log file:///export/svn/aleri| grep r282| more r28288 | pgandhij | 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) | 6 lines r28287 | larsenl | 2012-06-29 17:42:28 -0400 (Fri, 29 Jun 2012) | 4 lines r28286 | larsenl | 2012-06-29 17:22:31 -0400 (Fri, 29 Jun 2012) | 3 lines ... svnadmin verify aleri ... * Verified revision 28280. * Verified revision 28281. * Verified revision 28282. * Verified revision 28283. * Verified revision 28284. * Verified revision 28285. * Verified revision 28286. * Verified revision 28287. * Verified revision 28288. hmomh:/export/svnsvn info file:///export/svn/aleri -r 28288 Path: aleri URL: file:///export/svn/aleri Repository Root: file:///export/svn/aleri Repository UUID: eeea6706-3bef-0310-a2ed-9c33a50c9945 Revision: 28288 Node Kind: directory Last Changed Author: pgandhij Last Changed Rev: 28288 Last Changed Date: 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) hmomh:/export/svndf -h . filesystem size used avail capacity Mounted on hmomh-ZFS/home 6.0T 882G 3.2T22%/export/home/u hmomh:/export/svnls -lh aleri
Fw: svnsync: Error while replaying commit
X-KeepSent: 0804A6D9:FB929237-80257A39:005B9A09; type=4; name=$KeepSent To: users@subversion.apache.org X-Mailer: Lotus Notes Release 8.5.2FP4 November 18, 2011 Message-ID: of0804a6d9.fb929237-on80257a39.005b9a09-80257a39.005b9...@sybase.com From: peter.yo...@sybase.com Date: Thu, 12 Jul 2012 17:41:01 +0100 X-MIMETrack: Serialize by Router on gwwest/SYBASE(Release 8.0.2|August 07, 2008) at 07/12/2012 09:41:22 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII hmomh:/export/svnsvnadmin --version svnadmin, version 1.6.12 (r955767) compiled Jun 21 2010, 15:41:47 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see http://subversion.tigris.org/ This product includes software developed by CollabNet (http://www.Collab.Net/). The following repository back-end (FS) modules are available: * fs_fs : Module for working with a plain file (FSFS) repository. - Forwarded by Peter Young/SYBASE on 12/07/2012 17:39 - From: Peter Young/SYBASE To: users@subversion.apache.org Date: 12/07/2012 17:37 Subject:svnsync: Error while replaying commit Can someone help me with this problem I have been running svnsync successfully for many months. All of a sudden it has stopped working. Problem started on 10th July .i.e since a user added revision 28288 More details and tests below Thanks Peter Young | SAP Global IT | 65 Fenchurch St. | UK T: 0044 (0) 20 7553 80285 | M: 0044 (0) 7887 736749 | E: pe.yo...@sap.com http://www.sap.com svn-mh-vm:/export/svn${SVNBIN}svnsync sync --username pyoung --password pyoung file:///export/svn/aleri svnsync: Error while replaying commit hmomh:/export/svnsvn log file:///export/svn/aleri| grep r282| more r28288 | pgandhij | 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) | 6 lines r28287 | larsenl | 2012-06-29 17:42:28 -0400 (Fri, 29 Jun 2012) | 4 lines r28286 | larsenl | 2012-06-29 17:22:31 -0400 (Fri, 29 Jun 2012) | 3 lines ... svnadmin verify aleri ... * Verified revision 28280. * Verified revision 28281. * Verified revision 28282. * Verified revision 28283. * Verified revision 28284. * Verified revision 28285. * Verified revision 28286. * Verified revision 28287. * Verified revision 28288. hmomh:/export/svnsvn info file:///export/svn/aleri -r 28288 Path: aleri URL: file:///export/svn/aleri Repository Root: file:///export/svn/aleri Repository UUID: eeea6706-3bef-0310-a2ed-9c33a50c9945 Revision: 28288 Node Kind: directory Last Changed Author: pgandhij Last Changed Rev: 28288 Last Changed Date: 2012-07-09 20:04:54 -0400 (Mon, 09 Jul 2012) hmomh:/export/svndf -h . filesystem size used avail capacity Mounted on hmomh-ZFS/home 6.0T 882G 3.2T22%/export/home/u hmomh:/export/svnls -lh aleri/db total 36164 -rw-rwxr-- 1 pgandhij svn6 Jul 9 20:04 current -r--rwxr-- 1 csvn svn 22 Aug 24 2010 format -rw-rwxr-- 1 csvn svn5 Aug 24 2010 fs-type -rw-rwxr-- 1 csvn svn 1.9K Aug 24 2010 fsfs.conf -rw-rwxr-- 1 csvn svn2 Aug 24 2010 min-unpacked-rev -rw-rwxr-- 1 csvn svn 18M Jul 9 20:04 rep-cache.db drwxrwsr-x 31 csvn svn 31 Aug 22 2010 revprops drwxrwsr-x 31 csvn svn 31 Aug 22 2010 revs drwxrwsr-x 2 csvn svn2 Jul 9 20:04 transactions -rw-rwxr-- 1 pgandhij svn4 Jul 9 20:04 txn-current -rw-rwxr-- 1 csvn svn0 Aug 24 2010 txn-current-lock drwxrwsr-x 2 csvn svn2 Jul 9 20:04 txn-protorevs -rw-rwxr-- 1 csvn svn 37 Aug 24 2010 uuid -rwxrw-r-x 1 csvn svn0 Aug 24 2010 write-lock
Re: svnsync: Error while replaying commit
- Original Message - From: Henrik Sundberg Do you have a precommit hook now that was not there when revs 81-82 were committed? There are no hooks as far as I know. (I'm not an admin, and the admin is not very forthcoming on.. well, anything, really). Svn log will show the revisions whereever in the repository they were made. Are they missing for real? Yes the revisions are really missing: $ svn log [snip] r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 r79 | gpspbu | 2011-06-23 15:58:15 +0200 (Thu, 23 Jun 2011) | 1 line Added a PhoneNumberUnlocker On Fri, Mar 30, 2012 at 15:25, Gary listgj-...@yahoo.co.uk wrote: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course.
Re: svnsync: Error while replaying commit
On 02/04/12 08:27, Gary wrote: - Original Message - From: Henrik Sundberg Do you have a precommit hook now that was not there when revs 81-82 were committed? There are no hooks as far as I know. (I'm not an admin, and the admin is not very forthcoming on.. well, anything, really). Svn log will show the revisions whereever in the repository they were made. Are they missing for real? Yes the revisions are really missing: $ svn log Did you run svn log on the working copy? I ask because it's really strange that two revisions are missing so maybe they have been made on a different part of the repository. I would suggest running svn info to get the correct repository URL and then run svn log against that URL. [snip] r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 r79 | gpspbu | 2011-06-23 15:58:15 +0200 (Thu, 23 Jun 2011) | 1 line Added a PhoneNumberUnlocker On Fri, Mar 30, 2012 at 15:25, Garylistgj-...@yahoo.co.uk wrote: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course.
Re: svnsync: Error while replaying commit
Am 30.03.2012 15:25, schrieb Gary: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. Just to cut the discussion short here: You used svn log $REPO_URL directly on the root of the repository, not some directory underneath. Right? I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course. Do you know more about this branch and how it was removed? Just svn deleteing a branch doesn't cause revisions to vanish. I guess the repository was modified using the dumpfilter to remove that branch, causing a non-contiguous range of revisions. svnsync then chokes on this, because it expects the revisions to be contiguous. This would explain the reasons, but doesn't help you getting the repository synced. What I would do is this: 1. Try to reproduce this problem in isolation to make sure it is a problem with dumpfiltered revisions. 2. Try to create empty revisions in the target repository or modify the last-synced-revision (I believe that svnsync stores such a property somewhere). The goal is to keep svnsync from trying to sync that revision from the upstream repository. 3. File an according enhancement request on svnsync. Uli ** Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932 ** Visit our website at http://www.dominolaser.com ** Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden. E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich. **
Re: svnsync: Error while replaying commit
From: Giulio Troccoli On 02/04/12 08:27, Gary wrote: - Original Message - From: Henrik Sundberg Do you have a precommit hook now that was not there when revs 81-82 were committed? There are no hooks as far as I know. (I'm not an admin, and the admin is not very forthcoming on.. well, anything, really). Svn log will show the revisions whereever in the repository they were made. Are they missing for real? Yes the revisions are really missing: $ svn log Did you run svn log on the working copy? I ask because it's really strange that two revisions are missing so maybe they have been made on a different part of the repository. I would suggest running svn info to get the correct repository URL and then run svn log against that URL. Hmm. Yeah, I ran it on a working copy, just based on what Henrik said. I wasn't really thinking (being on call will do that to a chap)... Sorry. This is perhaps better: $ svn log svn://devel.domain/repo/ [snip] r84 | gpspbu | 2011-06-24 12:52:16 +0200 (Fri, 24 Jun 2011) | 1 line merged trunk to branch r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line test r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Created a branch working of /repo/trunk. r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 [snip] But that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) On Fri, Mar 30, 2012 at 15:25, Garylistgj-...@yahoo.co.uk wrote: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course. - Original Message -
Re: svnsync: Error while replaying commit
On 02/04/12 10:24, Gary wrote: From: Giulio Troccoli On 02/04/12 08:27, Gary wrote: - Original Message - From: Henrik Sundberg Do you have a precommit hook now that was not there when revs 81-82 were committed? There are no hooks as far as I know. (I'm not an admin, and the admin is not very forthcoming on.. well, anything, really). Svn log will show the revisions whereever in the repository they were made. Are they missing for real? Yes the revisions are really missing: $ svn log Did you run svn log on the working copy? I ask because it's really strange that two revisions are missing so maybe they have been made on a different part of the repository. I would suggest running svn info to get the correct repository URL and then run svn log against that URL. Hmm. Yeah, I ran it on a working copy, just based on what Henrik said. I wasn't really thinking (being on call will do that to a chap)... Sorry. This is perhaps better: $ svn log svn://devel.domain/repo/ [snip] r84 | gpspbu | 2011-06-24 12:52:16 +0200 (Fri, 24 Jun 2011) | 1 line merged trunk to branch r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line test r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Created a branch working of /repo/trunk. r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 [snip] But that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Also, can you run svn log -v on revision 80, 81 and 82? On Fri, Mar 30, 2012 at 15:25, Garylistgj-...@yahoo.co.uk wrote: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course. - Original Message -
Re: svnsync: Error while replaying commit
From: Ulrich Eckhardt ulrich.eckha...@dominolaser.com I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course. Do you know more about this branch and how it was removed? Just svn deleteing a branch doesn't cause revisions to vanish. I guess the repository was modified using the dumpfilter to remove that branch, causing a non-contiguous range of revisions. svnsync then chokes on this, because it expects the revisions to be contiguous. See my other email, I got the svn log command wrong, and the branch *is* still available, just can't be modified any more. The question is, why svnsync gets its knickers into a twist about that. The revisions *are* available (and can be checked out, I checked). The howto (link in other email) makes no mention of having to do anything special to handle repos with branches in a special way.
Re: svnsync: Error while replaying commit
Am 02.04.2012 11:39, schrieb Gary: See my other email, I got the svn log command wrong, and the branch *is* still available, just can't be modified any more. The question is, why svnsync gets its knickers into a twist about that. The revisions *are* available (and can be checked out, I checked). Yes, my initial guess was wrong and so you can discard the rest of my posting that was based on this assumption. The howto (link in other email) makes no mention of having to do anything special to handle repos with branches in a special way. As far as Subversion itself is concerned, it doesn't even know about things like branches, they are just copies, so you shouldn't have to do anything special. I have no more guesses left what could cause this, good luck! Uli ** Domino Laser GmbH, Fangdieckstra�e 75a, 22547 Hamburg, Deutschland Gesch�ftsf�hrer: Thorsten F�cking, Amtsgericht Hamburg HR B62 932 ** Visit our website at http://www.dominolaser.com ** Diese E-Mail einschlie�lich s�mtlicher Anh�nge ist nur f�r den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empf�nger sein sollten. Die E-Mail ist in diesem Fall zu l�schen und darf weder gelesen, weitergeleitet, ver�ffentlicht oder anderweitig benutzt werden. E-Mails k�nnen durch Dritte gelesen werden und Viren sowie nichtautorisierte �nderungen enthalten. Domino Laser GmbH ist f�r diese Folgen nicht verantwortlich. **
Re: svnsync: Error while replaying commit
- Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: This is perhaps better: $ svn log svn://devel.domain/repo/ [snip] r84 | gpspbu | 2011-06-24 12:52:16 +0200 (Fri, 24 Jun 2011) | 1 line merged trunk to branch r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line test r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Created a branch working of /repo/trunk. r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 [snip] But that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Also, can you run svn log -v on revision 80, 81 and 82? [11:41:02] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/branches/working r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: M /trunk/030-Quellcode/[snip] A /trunk/030-Quellcode/[snip] [snip other source code files] Added WP31 [11:41:08] jg@ggajg ~/.tmp $ svn log -v -r81 svn://devel.domain/repo/branches/working r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: A /branches/working (from /trunk:80) Created a branch working of /repo/trunk. [11:41:21] jg@ggajg ~/.tmp $ svn log -v -r82 svn://devel.domain/repo/branches/working r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: A /branches/working/030-Quellcode/GPSAssemblies/test.txt test
Re: svnsync: Error while replaying commit
On 02/04/12 11:10, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: This is perhaps better: $ svn log svn://devel.domain/repo/ [snip] r84 | gpspbu | 2011-06-24 12:52:16 +0200 (Fri, 24 Jun 2011) | 1 line merged trunk to branch r83 | gpspbu | 2011-06-24 12:34:38 +0200 (Fri, 24 Jun 2011) | 1 line added missing file r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line test r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Created a branch working of /repo/trunk. r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Added WP31 [snip] But that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Sorry, I wasn't very clear. The one your syncing into, so the destination repo. Also, can you run svn log -v on revision 80, 81 and 82? [11:41:02] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/branches/working r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: M /trunk/030-Quellcode/[snip] A /trunk/030-Quellcode/[snip] [snip other source code files] Added WP31 Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? [11:41:08] jg@ggajg ~/.tmp $ svn log -v -r81 svn://devel.domain/repo/branches/working r81 | gpspbu | 2011-06-23 17:48:03 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: A /branches/working (from /trunk:80) Created a branch working of /repo/trunk. [11:41:21] jg@ggajg ~/.tmp $ svn log -v -r82 svn://devel.domain/repo/branches/working r82 | ggapbu | 2011-06-23 17:58:49 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: A /branches/working/030-Quellcode/GPSAssemblies/test.txt test
Re: svnsync: Error while replaying commit
- Original Message - From: Giulio Troccoli On 02/04/12 11:10, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Sorry, I wasn't very clear. The one your syncing into, so the destination repo. No problem. I don't know if this is exactly what you want, but: $ cat ./db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 1 0 END So you mean the sync-from-url property? That looks correct, to me (with my admittedly limited knowledge) Also, can you run svn log -v on revision 80, 81 and 82? [11:41:02] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/branches/working r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: M /trunk/030-Quellcode/[snip] A /trunk/030-Quellcode/[snip] [snip other source code files] Added WP31 Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? Nope, that's the command. I mean, it *is* the log, so... shouldn't it? The commands for trunk and branch produce the same output, anyway: [12:39:07] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/trunk trunk ; svn log -v -r80 svn://devel.domain/repo/branches/working branch [12:39:26] jg@ggajg ~/.tmp $ diff -q trunk branch [12:39:29] jg@ggajg ~/.tmp
Re: svnsync: Error while replaying commit
On 02/04/12 11:51, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 11:10, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Sorry, I wasn't very clear. The one your syncing into, so the destination repo. No problem. I don't know if this is exactly what you want, but: $ cat ./db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 1 0 END So you mean the sync-from-url property? That looks correct, to me (with my admittedly limited knowledge) Well, I would have used svn pl -r0 repo to get the list of props (I didn't remember its name) and then svn pg svn:sync-from-url -r0 repo but I guess it's the same thing. It looks like you're syncing the whole repo. I was just checking :-) Howeve, why is svn:sync-last-merged-rev 0? It should be, well, the last merged revision, 79 I think. I guess svn pg svn:sync-last-merged-rev shows 0 as well? Also, can you run svn log -v on revision 80, 81 and 82? [11:41:02] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/branches/working r80 | gpspbu | 2011-06-23 16:23:46 +0200 (Thu, 23 Jun 2011) | 1 line Changed paths: M /trunk/030-Quellcode/[snip] A /trunk/030-Quellcode/[snip] [snip other source code files] Added WP31 Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? Nope, that's the command. I mean, it *is* the log, so... shouldn't it? The commands for trunk and branch produce the same output, anyway: [12:39:07] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/trunk trunk ; svn log -v -r80 svn://devel.domain/repo/branches/working branch [12:39:26] jg@ggajg ~/.tmp $ diff -q trunk branch [12:39:29] jg@ggajg ~/.tmp What version of SVN are you using? I've got 1.6.12 and if I am in a directory where no changes were made for a revision then svn log doesn't show anything, e.g. svn log -v -r17727 In the list of files changed in revision 80 that you posted earlier, are there any files at all that are actually in branches/working?
Re: svnsync: Error while replaying commit
- Original Message - From: Giulio Troccoli On 02/04/12 11:51, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 11:10, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Sorry, I wasn't very clear. The one your syncing into, so the destination repo. No problem. I don't know if this is exactly what you want, but: $ cat ./db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 1 0 END So you mean the sync-from-url property? That looks correct, to me (with my admittedly limited knowledge) Well, I would have used svn pl -r0 repo to get the list of props (I didn't remember its name) and then svn pg svn:sync-from-url -r0 repo but I guess it's the same thing. It looks like you're syncing the whole repo. I was just checking :-) Okay :) Howeve, why is svn:sync-last-merged-rev 0? It should be, well, the last merged revision, 79 I think. I guess svn pg svn:sync-last-merged-rev shows 0 as well? Oh, simply because I removed that (destination) repo once it was clear it was not correct. I then recreated it this morning in order to perform one or other operation you or someone else asked me to do. If I do it now (having tried to sync again), I get: $ cat db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 26 svn:sync-currently-copying V 2 81 K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 2 80 END as you expected. Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? Nope, that's the command. I mean, it *is* the log, so... shouldn't it? The commands for trunk and branch produce the same output, anyway: [12:39:07] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/trunk trunk ; svn log -v -r80 svn://devel.domain/repo/branches/working branch [12:39:26] jg@ggajg ~/.tmp $ diff -q trunk branch [12:39:29] jg@ggajg ~/.tmp What version of SVN are you using? I've got 1.6.12 and if I am in a directory where no changes were made for a revision then svn log doesn't show anything, e.g. svn log -v -r17727 $ svn --version svn, version 1.6.17 (r1128011) compiled Jun 2 2011, 10:39:28 I'm not 100% sure what the server version is. In the list of files changed in revision 80 that you posted earlier, are there any files at all that are actually in branches/working? No, all are in trunk.
Re: svnsync: Error while replaying commit
On 02/04/12 13:16, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 11:51, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 11:10, Gary wrote: - Original Message - From: Giulio Troccoli On 02/04/12 10:24, Gary wrote: that still doesn't explain to me why svnsync barfs on those (not) missing revisions. Looking at the command line history, I can't see anywhere where I pointed svnsync at just the trunk, only ever at the repo/project within the repo (I took my instructions from http://svn.apache.org/repos/asf/subversion/trunk/notes/svnsync.txt) Well, at least we know that the revisions are not missing. Can you show us the source repository path for you synced repo? It should be in one of the properties stored in revision 0 in the synced repo, if I remember well. Do you mean in the properties of the one I am trying to sync into, or from?I'm not really sure what you mean :P Sorry, I wasn't very clear. The one your syncing into, so the destination repo. No problem. I don't know if this is exactly what you want, but: $ cat ./db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 1 0 END So you mean the sync-from-url property? That looks correct, to me (with my admittedly limited knowledge) Well, I would have used svn pl -r0repo to get the list of props (I didn't remember its name) and then svn pg svn:sync-from-url -r0repo but I guess it's the same thing. It looks like you're syncing the whole repo. I was just checking :-) Okay :) Howeve, why is svn:sync-last-merged-rev 0? It should be, well, the last merged revision, 79 I think. I guess svn pg svn:sync-last-merged-rev shows 0 as well? Oh, simply because I removed that (destination) repo once it was clear it was not correct. I then recreated it this morning in order to perform one or other operation you or someone else asked me to do. If I do it now (having tried to sync again), I get: $ cat db/revprops/0/0 K 8 svn:date V 27 2011-03-01T16:14:38.678110Z K 26 svn:sync-currently-copying V 2 81 K 17 svn:sync-from-url V 33 svn://devel.domain/repo K 18 svn:sync-from-uuid V 36 7c76b8fe-c8ee-45e6-8ede-b17e10a7e991 K 24 svn:sync-last-merged-rev V 2 80 END as you expected. Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? Nope, that's the command. I mean, it *is* the log, so... shouldn't it? The commands for trunk and branch produce the same output, anyway: [12:39:07] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/trunk trunk ; svn log -v -r80 svn://devel.domain/repo/branches/working branch [12:39:26] jg@ggajg ~/.tmp $ diff -q trunk branch [12:39:29] jg@ggajg ~/.tmp What version of SVN are you using? I've got 1.6.12 and if I am in a directory where no changes were made for a revision then svn log doesn't show anything,e.g. svn log -v -r17727 $ svn --version svn, version 1.6.17 (r1128011) compiled Jun 2 2011, 10:39:28 I'm not 100% sure what the server version is. In the list of files changed in revision 80 that you posted earlier, are there any files at all that are actually in branches/working? No, all are in trunk. That is really baffling me. But mayber that's because you have different version. I just thought something else. svnsync stops when trying to create the branch (rev 81). So maybe the error is something not related to the repository, like permission (I don't think so though) or some hooks. Sorry, I am a bit to a dead end here.
Re: svnsync: Error while replaying commit
- Original Message - From: Giulio Troccoli Why is it showing files in trunk when you're log command is for branches/working ? Or have you just pasted the wrong command? Nope, that's the command. I mean, it *is* the log, so... shouldn't it? The commands for trunk and branch produce the same output, anyway: [12:39:07] jg@ggajg ~/.tmp $ svn log -v -r80 svn://devel.domain/repo/trunk trunk ; svn log -v -r80 svn://devel.domain/repo/branches/working branch [12:39:26] jg@ggajg ~/.tmp $ diff -q trunk branch [12:39:29] jg@ggajg ~/.tmp What version of SVN are you using? I've got 1.6.12 and if I am in a directory where no changes were made for a revision then svn log doesn't show anything,e.g. svn log -v -r17727 $ svn --version svn, version 1.6.17 (r1128011) compiled Jun 2 2011, 10:39:28 I'm not 100% sure what the server version is. In the list of files changed in revision 80 that you posted earlier, are there any files at all that are actually in branches/working? No, all are in trunk. That is really baffling me. But mayber that's because you have different version. Maybe. Don't know. I just thought something else. svnsync stops when trying to create the branch (rev 81). So maybe the error is something not related to the repository, like permission (I don't think so though) or some hooks. Sorry, I am a bit to a dead end here. Not to worry. I appreciate you trying to help. Thank you.
Re: svnsync: Error while replaying commit
Haven't read the whole thread, but the problem here has to do with r81. r80 moved fine and I expect `svnlook youngest dest` = 80. If the source repos has authz set up or has undergone history surgeries that's likely related. You could try running: % svnserve --log-file=foo.log -dr. % svnsync sync svn://localhost to get a destination server log. Gary wrote on Fri, Mar 30, 2012 at 14:25:28 +0100: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course.
svnsync: Error while replaying commit
I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course.
Re: svnsync: Error while replaying commit
Do you have a precommit hook now that was not there when revs 81-82 were committed? Svn log will show the revisions whereever in the repository they were made. Are they missing for real? /$ On Fri, Mar 30, 2012 at 15:25, Gary listgj-...@yahoo.co.uk wrote: I see a lot of reports of this error, but little in the way of clear information as to what it might mean, or how to fix it: $ svnsync sync file://`pwd`/dest Committed revision 1. Copied properties for revision 1. Transmitting file data . [...] Committed revision 79. Copied properties for revision 79. Transmitting file data ... Committed revision 80. Copied properties for revision 80. svnsync: Error while replaying commit Huh? If I look at the source server log, revs 81 82 are missing in the trunk. I imagine they are/were in a branch, which AFAIK is no longer available. Is there any way to get around this? Assuming that's the problem, of course.
RE: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device
Setting TMPDIR worked as you stated. Thank you. Case closed. Happy holidays! -Original Message- From: Daniel Shahaf [mailto:d...@daniel.shahaf.name] Sent: Thursday, December 22, 2011 4:31 AM To: Curley, John Cc: users@subversion.apache.org Subject: Re: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device $TMPDIR $TEMP $TMP envvars, but /tmp isn't used for building txns.
Re: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device
$TMPDIR $TEMP $TMP envvars, but /tmp isn't used for building txns. Curley, John wrote on Thu, Dec 22, 2011 at 12:17:41 +: I have more information. The svnsync sync command is filling up the /tmp partition on the source side (building the transaction). Is there a way to specify a different work area? Thank you, John -Original Message- From: Curley, John [mailto:john.cur...@windriver.com] Sent: Wednesday, December 21, 2011 2:36 PM To: users@subversion.apache.org Subject: RE: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device I should have mentioned that I'm using Subversion 1.6.4 on the source side and Subversion 1.6.17 on the destination side. -Original Message- From: Curley, John [mailto:john.cur...@windriver.com] Sent: Wednesday, December 21, 2011 1:58 PM To: users@subversion.apache.org Subject: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device Season's greetings all! I'm using svnsync to copy our repositories for the FIRST time to a mirror site and running out of space, somewhere. From: RH ES 4, Update 5 32-bit server To: CentOS Release 5.5, 64-bit server I tried to watch the disk partitions with a df -h and the numbers never changed. Here's the significant portions of the terminal session: csvn@ala-svn % svnsync init http://ala-cvstst/svn/adimages http://ala-svn/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Copied properties for revision 0. csvn@ala-svn % csvn@ala-svn % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data . Committed revision 1. Copied properties for revision 1. ... snip ... Committed revision 9. Copied properties for revision 9. Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device csvn@ala-svn % If I try again: % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device It is a relatively large repository (2 GB), with some larger image and video files. Where are the temporary files (.svnsync ?) kept. Is the error on the source server or the destination server? Thank you, John Curley, SCM Group, Wind River
Problem running svnsync - Error retrieving replay REPORT (28): No space left on device
Season's greetings all! I'm using svnsync to copy our repositories for the FIRST time to a mirror site and running out of space, somewhere. From: RH ES 4, Update 5 32-bit server To: CentOS Release 5.5, 64-bit server I tried to watch the disk partitions with a df -h and the numbers never changed. Here's the significant portions of the terminal session: csvn@ala-svn % svnsync init http://ala-cvstst/svn/adimages http://ala-svn/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Copied properties for revision 0. csvn@ala-svn % csvn@ala-svn % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data . Committed revision 1. Copied properties for revision 1. ... snip ... Committed revision 9. Copied properties for revision 9. Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device csvn@ala-svn % If I try again: % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device It is a relatively large repository (2 GB), with some larger image and video files. Where are the temporary files (.svnsync ?) kept. Is the error on the source server or the destination server? Thank you, John Curley, SCM Group, Wind River
RE: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device
I should have mentioned that I'm using Subversion 1.6.4 on the source side and Subversion 1.6.17 on the destination side. -Original Message- From: Curley, John [mailto:john.cur...@windriver.com] Sent: Wednesday, December 21, 2011 1:58 PM To: users@subversion.apache.org Subject: Problem running svnsync - Error retrieving replay REPORT (28): No space left on device Season's greetings all! I'm using svnsync to copy our repositories for the FIRST time to a mirror site and running out of space, somewhere. From: RH ES 4, Update 5 32-bit server To: CentOS Release 5.5, 64-bit server I tried to watch the disk partitions with a df -h and the numbers never changed. Here's the significant portions of the terminal session: csvn@ala-svn % svnsync init http://ala-cvstst/svn/adimages http://ala-svn/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Copied properties for revision 0. csvn@ala-svn % csvn@ala-svn % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data . Committed revision 1. Copied properties for revision 1. ... snip ... Committed revision 9. Copied properties for revision 9. Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device csvn@ala-svn % If I try again: % svnsync sync http://ala-cvstst/svn/adimages Authentication realm: http://ala-cvstst:80 Subversion AD Images repository Password for 'csvn': Transmitting file data .svnsync: Error retrieving replay REPORT (28): No space left on device It is a relatively large repository (2 GB), with some larger image and video files. Where are the temporary files (.svnsync ?) kept. Is the error on the source server or the destination server? Thank you, John Curley, SCM Group, Wind River
svnsync error - serialized hash missing terminator
I have a mirror that is synced using svnsync from the master server. The master server was updated to 1.7.1 yesterday, the mirror was updated to 1.7 last week. I had a few good syncs occur yesterday after the master was updated. The mirror locked up last night and was rebooted this morning. Since then, I get the following error when svnsync is attempted: svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent svnsync: E175008: At least one property change failed; repository is unchanged svnsync: E175002: Error setting property 'sync-lock': Serialized hash missing terminator (Both mirror and master are running on Windows)
Re: svnsync error - serialized hash missing terminator
On Wed, Oct 26, 2011 at 01:13:38PM -0400, Andrew Sasak wrote: I have a mirror that is synced using svnsync from the master server. The master server was updated to 1.7.1 yesterday, the mirror was updated to 1.7 last week. I had a few good syncs occur yesterday after the master was updated. The mirror locked up last night and was rebooted this morning. Since then, I get the following error when svnsync is attempted: svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent svnsync: E175008: At least one property change failed; repository is unchanged svnsync: E175002: Error setting property 'sync-lock': Serialized hash missing terminator Is there an existing svn:sync-lock property on revision zero of the slave's repository? If so, what does it look like? svn propget --revprop -r0 svn:sync-lock URL_TO_REPOS It sounds asif the problem is with parsing the existing property, which must be done since the lock needs to be checked. How did the lock-up you mentioned happen? Is it possible that the property got corrupted during the lock-up? For instance, because the file containing the serialized lock data was not fully written to disk by the operating system? In any case, if the property still exists and no sync job is running you need to remove it because it will prevent new sync jobs. Any svnsync process will believe that another svnsync process is currently writing to the repository.
Re: svnsync error - serialized hash missing terminator
I have no idea how the lockup occurred I got no output when I ran propget I got no output when I ran proplist I attempted to delete the property anyway, it indicated success, but I still get the same error. Am I going to have to rebuild the mirror? (Thanks for the response) On Wed, Oct 26, 2011 at 1:22 PM, Stefan Sperling s...@elego.de wrote: On Wed, Oct 26, 2011 at 01:13:38PM -0400, Andrew Sasak wrote: I have a mirror that is synced using svnsync from the master server. The master server was updated to 1.7.1 yesterday, the mirror was updated to 1.7 last week. I had a few good syncs occur yesterday after the master was updated. The mirror locked up last night and was rebooted this morning. Since then, I get the following error when svnsync is attempted: svnsync: E175002: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent svnsync: E175008: At least one property change failed; repository is unchanged svnsync: E175002: Error setting property 'sync-lock': Serialized hash missing terminator Is there an existing svn:sync-lock property on revision zero of the slave's repository? If so, what does it look like? svn propget --revprop -r0 svn:sync-lock URL_TO_REPOS It sounds asif the problem is with parsing the existing property, which must be done since the lock needs to be checked. How did the lock-up you mentioned happen? Is it possible that the property got corrupted during the lock-up? For instance, because the file containing the serialized lock data was not fully written to disk by the operating system? In any case, if the property still exists and no sync job is running you need to remove it because it will prevent new sync jobs. Any svnsync process will believe that another svnsync process is currently writing to the repository.
Re: svnsync error : Error while replaying commit
Yes, that was the problem. After fixing the permissions, I initiated another mirror operation that was able to sync everything. The issue was that A had restricted access and a branch 'B' was created from A for public use. Since A was missing in the mirrored branch, the mirror operation failed However even though the error happened due to incorrect authentication scripts, the error message should have included some details about the problem. When I googled for this generic error message, there was lot of crap but no solution. I had to spend almost half a day to narrow down this issue. Thanks Ankush From: Thorsten Schöning tschoen...@am-soft.de To: users@subversion.apache.org Sent: Wed, April 13, 2011 3:27:30 AM Subject: Re: svnsync error : Error while replaying commit Guten Tag ankush chadha, am Dienstag, 12. April 2011 um 18:46 schrieben Sie: Is there any way to get around this problem. I updated all the permissions but the problem is that A was created like years back and I won't be able to mirror those revisions. Access restrictions are not versioned with the data, they are read from the configuration at the moment one wants to access the data. Therefore it should make no difference when your folder A was created and if the user used to sync now still can't read folder A, then your access configuration is just wrong and needs to be tuned. The easiest thing to test would be to create a new user just for syncing an give him full access to everything. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig Telefon: Potsdam: 0331-743881-0 E-Mail: tschoen...@am-soft.de Web:http://www.am-soft.de AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow
Re: svnsync error : Error while replaying commit
It should work. Specifically, if you run svnsync using an authz-bound user, then you should just see adds-with-history converted into adds-without-history. I believe we have regression tests for such scenarios too. If you can reproduce this (have a minimal example), please file an issue, thanks. Daniel (separately: is the error in the subject really everything? It should be logging the original error somewhere --- possibly on the server side, but *somewhere*.) On Thu, 14 Apr 2011 07:13 -0700, ankush chadha ankushchadha2...@yahoo.com wrote: Yes, that was the problem. After fixing the permissions, I initiated another mirror operation that was able to sync everything. The issue was that A had restricted access and a branch 'B' was created from A for public use. Since A was missing in the mirrored branch, the mirror operation failed However even though the error happened due to incorrect authentication scripts, the error message should have included some details about the problem. When I googled for this generic error message, there was lot of crap but no solution. I had to spend almost half a day to narrow down this issue. Thanks Ankush From: Thorsten Schöning tschoen...@am-soft.de To: users@subversion.apache.org Sent: Wed, April 13, 2011 3:27:30 AM Subject: Re: svnsync error : Error while replaying commit Guten Tag ankush chadha, am Dienstag, 12. April 2011 um 18:46 schrieben Sie: Is there any way to get around this problem. I updated all the permissions but the problem is that A was created like years back and I won't be able to mirror those revisions. Access restrictions are not versioned with the data, they are read from the configuration at the moment one wants to access the data. Therefore it should make no difference when your folder A was created and if the user used to sync now still can't read folder A, then your access configuration is just wrong and needs to be tuned. The easiest thing to test would be to create a new user just for syncing an give him full access to everything. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig Telefon: Potsdam: 0331-743881-0 E-Mail: tschoen...@am-soft.de Web:http://www.am-soft.de AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow
Re: svnsync error : Error while replaying commit
Yeah, even I thought that the behavior should be same as you mentioned but I got svnsync: Error while replaying commit error during sync operation for that revision. When I checked the mirrored repository, A was missing which is correct as at that time A had restricted access. Branch operation of A to B failed to mirror though. I am using svn 1.6.6. After fixing the permissions and re-initiating another mirror the problem went away and now both of my repositories are synced up with A and B. I am sure that this was the error but willl try to write reproduction steps with sample scripts. Thanks Ankush From: Daniel Shahaf d...@daniel.shahaf.name To: ankush chadha ankushchadha2...@yahoo.com; Thorsten Schöning tschoen...@am-soft.de; users@subversion.apache.org Sent: Thu, April 14, 2011 10:21:12 AM Subject: Re: svnsync error : Error while replaying commit It should work. Specifically, if you run svnsync using an authz-bound user, then you should just see adds-with-history converted into adds-without-history. I believe we have regression tests for such scenarios too. If you can reproduce this (have a minimal example), please file an issue, thanks. Daniel (separately: is the error in the subject really everything? It should be logging the original error somewhere --- possibly on the server side, but *somewhere*.) On Thu, 14 Apr 2011 07:13 -0700, ankush chadha ankushchadha2...@yahoo.com wrote: Yes, that was the problem. After fixing the permissions, I initiated another mirror operation that was able to sync everything. The issue was that A had restricted access and a branch 'B' was created from A for public use. Since A was missing in the mirrored branch, the mirror operation failed However even though the error happened due to incorrect authentication scripts, the error message should have included some details about the problem. When I googled for this generic error message, there was lot of crap but no solution. I had to spend almost half a day to narrow down this issue. Thanks Ankush From: Thorsten Schöning tschoen...@am-soft.de To: users@subversion.apache.org Sent: Wed, April 13, 2011 3:27:30 AM Subject: Re: svnsync error : Error while replaying commit Guten Tag ankush chadha, am Dienstag, 12. April 2011 um 18:46 schrieben Sie: Is there any way to get around this problem. I updated all the permissions but the problem is that A was created like years back and I won't be able to mirror those revisions. Access restrictions are not versioned with the data, they are read from the configuration at the moment one wants to access the data. Therefore it should make no difference when your folder A was created and if the user used to sync now still can't read folder A, then your access configuration is just wrong and needs to be tuned. The easiest thing to test would be to create a new user just for syncing an give him full access to everything. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig Telefon: Potsdam: 0331-743881-0 E-Mail: tschoen...@am-soft.de Web:http://www.am-soft.de AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow
svnsync error : Error while replaying commit
Hi All I am encountering this svnsync error while mirroring my repository. The target svn binaries point to 1.6.6 version(windows). I also tried running the svnsync command using 1.6.16 libraries but still getting the same error. The source repository is hosted by svn server with 1.6.6 binaries (windows). The revision that it is trying to sync is just a copy/branch operation of a small folder (2mb). The folder just contains text files and no binaries. Any suggestions? Thanks Ankush
Re: svnsync error : Error while replaying commit
I think I know what the problem is If we try to mirror a repository using a user account and if that user account has restricted access, then we will be seeing such errors. Like in my case svnsync operation for a revision was failing that involved a copy operation if folder A to folder B. Now the user account that I used to initiate the mirror operation cannot access A. May be this is the reason why the svnsync is failing. Is there any way to get around this problem. I updated all the permissions but the problem is that A was created like years back and I won't be able to mirror those revisions. Ankush From: ankush chadha ankushchadha2...@yahoo.com To: users@subversion.apache.org Sent: Tue, April 12, 2011 10:27:03 AM Subject: svnsync error : Error while replaying commit Hi All I am encountering this svnsync error while mirroring my repository. The target svn binaries point to 1.6.6 version(windows). I also tried running the svnsync command using 1.6.16 libraries but still getting the same error. The source repository is hosted by svn server with 1.6.6 binaries (windows). The revision that it is trying to sync is just a copy/branch operation of a small folder (2mb). The folder just contains text files and no binaries. Any suggestions? Thanks Ankush
RE: svnsync error - now one step further
I found out svn:ignore is not a revision property, so that is why I could not find it. It is a versioned property, so I tried this : Y:\utilsvn pg svn:ignore https://svn.edb.com/repos/java/cards/cap/cap_client/tr...@54271 ?\216stmarka - Golf.url And then it is obvious that it contains non UTF-8 characters, ?\216 but how can I get svnsync to tolerate this, or find another workaround. As I understand Subversion there is no way to modify the svn:ignore property as it is in revision 54271? Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System -Original Message- From: Engebakken Geir [mailto:geir.engebak...@edb.com] Sent: 11. november 2010 01:18 To: users@subversion.apache.org Subject: svnsync error I have this error that I have searched the net for,and found a lot of incidents similar, but I cannot find a way to resolve this. The error is well known, I think : svnsync: Cannot accept 'svn:ignore' property because it is not encoded in UTF-8 The error looks straightforward, something fishy about the svn:ignore property possibly from a pre-1.6.x commit where the check for UTF-8 was not that strict. In the db/transactions dir the dead transaction is saved as 54270-, so I supposed the revision with wrong svn:ignore was 54270, but svn info on the synced repository says 54271 is the latest revision. I have tried to find the offending sn:ignore in the source repository, but svnproget doesn't list any svn:ignore for those revisions. This is how I run the svn proget. [r...@alp-edbbfsvn db]# svn pg --revprop 'svn:ignore' -r 54270 file:///source/java [r...@alp-edbbfsvn db]# Nothing is returned, and the same for revision 54271. Could anyone explain what I do wrong here? ( I also noticed something special about this revision 54270 (and 54271) they both lacked svn:log, although that is compulsory in our repository, enforced by a pre-commit, but that could have been manipulated by an admin though) Any pointers would be helpful! Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System
Re: svnsync error
On Thu, Nov 11, 2010 at 1:17 AM, Engebakken Geir geir.engebak...@edb.com wrote: I have this error that I have searched the net for,and found a lot of incidents similar, but I cannot find a way to resolve this. The error is well known, I think : svnsync: Cannot accept 'svn:ignore' property because it is not encoded in UTF-8 The error looks straightforward, something fishy about the svn:ignore property possibly from a pre-1.6.x commit where the check for UTF-8 was not that strict. In the db/transactions dir the dead transaction is saved as 54270-, so I supposed the revision with wrong svn:ignore was 54270, but svn info on the synced repository says 54271 is the latest revision. I have tried to find the offending sn:ignore in the source repository, but svnproget doesn't list any svn:ignore for those revisions. This is how I run the svn proget. [r...@alp-edbbfsvn db]# svn pg --revprop 'svn:ignore' -r 54270 file:///source/java [r...@alp-edbbfsvn db]# Nothing is returned, and the same for revision 54271. Could anyone explain what I do wrong here? svn:ignore is normally not a revision property (revprop), but a *versioned* property (see the book for explanation about the differences between those two). I.e. it's attached to a file or directory, and was added or edited in either 54270 or 54271. So, I think you'll find it by first examining which files had properties added/updated in those revisions, and then propgetting on those files (with a peg revision). Something like this: # svn log -v -r 54270 file:///source/java check which files/dirs had properties added/updated (A or U in second column) # svn propget svn:ignore file:///source/java/the/path/to/the/file/or/d...@54270 I'm not sure how you would be able to fix them though (since it's a versioned property, you can't just edit it like a revision property; it's part of the history). Maybe some of the folks on this list with more svnsync experience know how to cope with this... HTH, -- Johan
RE: svnsync error
-Original Message- From: Johan Corveleyn [mailto:jcor...@gmail.com] Sent: 11. november 2010 14:29 To: Engebakken Geir Cc: users@subversion.apache.org Subject: Re: svnsync error On Thu, Nov 11, 2010 at 1:17 AM, Engebakken Geir geir.engebak...@edb.com wrote: I have this error that I have searched the net for,and found a lot of incidents similar, but I cannot find a way to resolve this. The error is well known, I think : svnsync: Cannot accept 'svn:ignore' property because it is not encoded in UTF-8 The error looks straightforward, something fishy about the svn:ignore property possibly from a pre-1.6.x commit where the check for UTF-8 was not that strict. In the db/transactions dir the dead transaction is saved as 54270- , so I supposed the revision with wrong svn:ignore was 54270, but svn info on the synced repository says 54271 is the latest revision. I have tried to find the offending sn:ignore in the source repository, but svnproget doesn't list any svn:ignore for those revisions. This is how I run the svn proget. [r...@alp-edbbfsvn db]# svn pg --revprop 'svn:ignore' -r 54270 file:///source/java [r...@alp-edbbfsvn db]# Nothing is returned, and the same for revision 54271. Could anyone explain what I do wrong here? svn:ignore is normally not a revision property (revprop), but a *versioned* property (see the book for explanation about the differences between those two). I.e. it's attached to a file or directory, and was added or edited in either 54270 or 54271. So, I think you'll find it by first examining which files had properties added/updated in those revisions, and then propgetting on those files (with a peg revision). Something like this: # svn log -v -r 54270 file:///source/java check which files/dirs had properties added/updated (A or U in second column) # svn propget svn:ignore file:///source/java/the/path/to/the/file/or/d...@54270 I'm not sure how you would be able to fix them though (since it's a versioned property, you can't just edit it like a revision property; it's part of the history). Maybe some of the folks on this list with more svnsync experience know how to cope with this... HTH, -- Johan Indeed, you are right, as I found iouyt and posted in another mail. The error was due to Norwegian characterset not in UTF-8 in svn:ignore but how to fix this is now the question. One possibility is dump/fix/load, but the repository is quite large (18 revisions and 20 Gb, so I fear the size of the dump file!) I have seen some references to a fixed svnsync that can take encoding as a parameter, but I don't know if this is in an official Svn release. We are running 1.6.5 now. Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System
svnsync error
I have this error that I have searched the net for,and found a lot of incidents similar, but I cannot find a way to resolve this. The error is well known, I think : svnsync: Cannot accept 'svn:ignore' property because it is not encoded in UTF-8 The error looks straightforward, something fishy about the svn:ignore property possibly from a pre-1.6.x commit where the check for UTF-8 was not that strict. In the db/transactions dir the dead transaction is saved as 54270-, so I supposed the revision with wrong svn:ignore was 54270, but svn info on the synced repository says 54271 is the latest revision. I have tried to find the offending sn:ignore in the source repository, but svnproget doesn't list any svn:ignore for those revisions. This is how I run the svn proget. [r...@alp-edbbfsvn db]# svn pg --revprop 'svn:ignore' -r 54270 file:///source/java [r...@alp-edbbfsvn db]# Nothing is returned, and the same for revision 54271. Could anyone explain what I do wrong here? ( I also noticed something special about this revision 54270 (and 54271) they both lacked svn:log, although that is compulsory in our repository, enforced by a pre-commit, but that could have been manipulated by an admin though) Any pointers would be helpful! Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System
svnsync error : Too many links
I get the following error trying to synchronize a repository, thought it was due to too few inodes in the file system, but a df -i shows plenty of inodes available : bash-3.00$ df -i FilesystemInodes IUsed IFree IUse% Mounted on /dev/mapper/backupvg-lv_backup 2611200 578933 2032267 23% /backup Any idea what this is ? + svnsync synchronize file:///backup/java svnsync: Can't create directory '/backup/java/db/transactions/54270-7d7v.txn': Too many links Geir Note : All inquiries regarding Subversion, MKS and general Development servers should be directed to EDB SourceControl System
Re: svnsync error : Too many links
On Sun, Nov 7, 2010 at 4:38 PM, Engebakken Geir geir.engebak...@edb.com wrote: I get the following error trying to synchronize a repository, thought it was due to too few inodes in the file system, but a “df –i “ shows plenty of inodes available : + svnsync synchronize file:///backup/java svnsync: Can't create directory '/backup/java/db/transactions/54270-7d7v.txn': Too many links There is a maximum built into every operating system I know, to prevent an accidental recursive symlink or symlink loop from making the operating system descend *perpetually* down a directory tree and get seriously lost. This is similar to the limits on maximum directory depth, and maximum filename length: we don't notice them until we run into them, usually due to some other kind of mistake. Check each component of your path for symlinks. /back, /backup/java, /backup/java/db, etc., and see which is the problem. You should be able to replicate the problem by doing ls -ld on each relevant parent directory until one failes. Such problems are often exacerbated by people doing 'rsync' operations carelessly and accidentally mirroring symlinks inside of directoryes pointed to by other symlinks, instead of replacing the symlink. (This happened to a colleage last week.)
svnsync: Error while replaying commit
Hi, I've had a svnsync job running every day since Mar 3 with no issues. Today May 5 it will no longer synchronize with the below error. Any way to fix this without starting over (if that would work)? svnsync synchronize file:///misc_sourcectrl01/svnrepositories/GRCC svnsync: Error while replaying commit svnsync --version: svnsync, version 1.6.5 (r38866) compiled Oct 24 2009, 06:19:56 Thanks, Kevin