You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brent Webster <bw...@belairnetworks.com> on 2012/01/31 04:08:21 UTC

Can relocate from a svnserve based server that was 'svn sync' to a new http based server

I have numerous large svn repositories accessible by svnserve on an older linux server that I'm moving to a new VMWare VM server using http authentication.  I'm using svnsync to transfer the older "svn://" repositories to the new "http://" repositories.  The problem that I'm having is trying to "relocate" the existing checked out "svn://" based working copy and point it to the new "http://" repository.  An example existing WC:
svn@svna: svn info
Path: .
Working Copy Root Path: /home/svn/bin
URL: svn://svnrepo/BelAir/admin/main/svnserver/bin
Repository Root: svn://svnrepo/BelAir/admin
Repository UUID: ad8b7147-7818-0410-a3fb-ed15fa4e4e0d
Revision: 256
Node Kind: directory
Schedule: normal
Last Changed Author: bwebster
Last Changed Rev: 256
Last Changed Date: 2012-01-30 16:38:51 -0500 (Mon, 30 Jan 2012)

I've tried numerous command syntax combinations like
svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin svn://svnrepo/BelAir/admin/main/svnserver/bin
svn relocate svn://svnrepo/BelAir/admin/main/svnserver/bin http://svnrepo2:18080/svn/admin/main/svnserver/bin
svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin .

This is the type of error message:
svn@svna: svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin .
svn: E195009: The repository at 'http://svnrepo2:18080/svn/admin/main/svnserver/bin' has uuid '65d03f8f-4f6b-4b7c-8505-7ddab04e9aed', but the WC has 'ad8b7147-7818-0410-a3fb-ed15fa4e4e0d'

What am I doing wrong (i.e. hopefully I'm doing something wrong).

Thanks Brent

________________________________


This email, including any attachments, may contain confidential information, privileged material (including material protected by solicitor-client and/or other applicable privileges) or constitute non-public information under securities law(s). Any exploitation of the information contained in this email (including any attachments) by anyone other than the intended recipient is prohibited. If you have received this email in error, please reply to the sender and delete this information from your system as soon as reasonably practicable. Use, dissemination, distribution, reproduction, publication or any other exploitation of this email by unintended recipients is not authorized and may be unlawful.


RE: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

Posted by Tony Sweeney <ts...@omnifone.com>.

________________________________
From: Brent Webster [mailto:bwebster@belairnetworks.com]
Sent: 31 January 2012 03:08
To: users@subversion.apache.org
Cc: Brent Webster
Subject: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

I have numerous large svn repositories accessible by svnserve on an older linux server that I'm moving to a new VMWare VM server using http authentication.  I'm using svnsync to transfer the older "svn://" repositories to the new "http://" repositories.  The problem that I'm having is trying to "relocate" the existing checked out "svn://" based working copy and point it to the new "http://" repository.  An example existing WC:
svn@svna: svn info
Path: .
Working Copy Root Path: /home/svn/bin
URL: svn://svnrepo/BelAir/admin/main/svnserver/bin
Repository Root: svn://svnrepo/BelAir/admin
Repository UUID: ad8b7147-7818-0410-a3fb-ed15fa4e4e0d
Revision: 256
Node Kind: directory
Schedule: normal
Last Changed Author: bwebster
Last Changed Rev: 256
Last Changed Date: 2012-01-30 16:38:51 -0500 (Mon, 30 Jan 2012)

I've tried numerous command syntax combinations like
svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin svn://svnrepo/BelAir/admin/main/svnserver/bin
svn relocate svn://svnrepo/BelAir/admin/main/svnserver/bin http://svnrepo2:18080/svn/admin/main/svnserver/bin
svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin .

This is the type of error message:
svn@svna: svn relocate http://svnrepo2:18080/svn/admin/main/svnserver/bin .
svn: E195009: The repository at 'http://svnrepo2:18080/svn/admin/main/svnserver/bin' has uuid '65d03f8f-4f6b-4b7c-8505-7ddab04e9aed', but the WC has 'ad8b7147-7818-0410-a3fb-ed15fa4e4e0d'

What am I doing wrong (i.e. hopefully I'm doing something wrong).

For this to work, both the old and new repositories must have the same UUID. You should change the UUID of the new repository to match the old one. You can do this using the svnadmin command on the server hosting the new repository:

[sweeney@luke ~]$ svnadmin --help setuuid
setuuid: usage: svnadmin setuuid REPOS_PATH [NEW_UUID]
Reset the repository UUID for the repository located at REPOS_PATH. If
NEW_UUID is provided, use that as the new repository UUID; otherwise,
generate a brand new UUID for the repository.
[sweeney@luke ~]$

Once this is done, one of your relocate commands should work as you intend.

Tony.




Thanks Brent

________________________________


This email, including any attachments, may contain confidential information, privileged material (including material protected by solicitor-client and/or other applicable privileges) or constitute non-public information under securities law(s). Any exploitation of the information contained in this email (including any attachments) by anyone other than the intended recipient is prohibited. If you have received this email in error, please reply to the sender and delete this information from your system as soon as reasonably practicable. Use, dissemination, distribution, reproduction, publication or any other exploitation of this email by unintended recipients is not authorized and may be unlawful.


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
________________________________

No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.1901 / Virus Database: 2109/4776 - Release Date: 01/30/12

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

RE: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

Posted by Brent Webster <bw...@belairnetworks.com>.
There have been several replies telling me to use the 'svnadmin setuuid command and that worked great.

Thanks, Brent

-----Original Message-----
From: Lorenz [mailto:lorenznl@yahoo.com]
Sent: January-31-12 2:10 AM
To: users@subversion.apache.org
Subject: Re: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

Brent Webster wrote:
>[...] I'm using svnsync to transfer the older "svn://" repositories to
>the new "http://" repositories The problem that I'm having is [...]
>svn: E195009: The repository at
>'http://svnrepo2:18080/svn/admin/main/svnserver/bin' has  uuid '65d03f8f-4f6b-4b7c-8505-7ddab04e9aed', but the WC has 'ad8b7147-7818-0410-a3fb-ed15fa4e4e0d'

every repository gets a unique ID (uuid) on creation.
But to be able to svn relocate, your new repo needs to have same uuid as the old one

See
http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.reposadmin.maint.uuids
for more information.
--

Lorenz

________________________________


This email, including any attachments, may contain confidential information, privileged material (including material protected by solicitor-client and/or other applicable privileges) or constitute non-public information under securities law(s). Any exploitation of the information contained in this email (including any attachments) by anyone other than the intended recipient is prohibited. If you have received this email in error, please reply to the sender and delete this information from your system as soon as reasonably practicable. Use, dissemination, distribution, reproduction, publication or any other exploitation of this email by unintended recipients is not authorized and may be unlawful.


Re: Can relocate from a svnserve based server that was 'svn sync' to a new http based server

Posted by Lorenz <lo...@yahoo.com>.
Brent Webster wrote:
>[...] I'm using svnsync to transfer the older "svn://" repositories to the new "http://" repositories
>The problem that I'm having is [...]
>svn: E195009: The repository at 'http://svnrepo2:18080/svn/admin/main/svnserver/bin' has
> uuid '65d03f8f-4f6b-4b7c-8505-7ddab04e9aed', but the WC has 'ad8b7147-7818-0410-a3fb-ed15fa4e4e0d'

every repository gets a unique ID (uuid) on creation.
But to be able to svn relocate, your new repo needs to have same uuid
as the old one

See
http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.reposadmin.maint.uuids
for more information.
-- 

Lorenz