You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Paul Leo <pa...@dataphilesconsulting.com> on 2024/06/06 19:40:39 UTC
Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
We need to migrate an SVN repository from CentOS 7, Subversion 1.94 to
Ubuntu 24.04, SVN 1.14.3.
We don't have any login access to the current server.
The current hosting server plans to perform an SVN dump of the
repository, and make it available through something like Google Drive.
We would obtain the dump file and then use svnadmin load, importing the
repository.
There are only a few hooks that are currently used. The main one being
to force a commit message when committing.
We will use Apache httpd and basic authentication for committing to
repository, as in done currently
We would change DNS to new server IP.
I've read through the svnbook, and the above seems plausible.
I am just wondering if anyone has some guidance and suggestions, since
we are making a significant jump to newer version of SVN.
Thanks for your help
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Andreas Stieger <An...@gmx.de>.
Hello,
On 2024-06-06 21:40, Paul Leo wrote:
> [...] migrate an SVN repository from CentOS 7, Subversion 1.94 to
> Ubuntu 24.04, SVN 1.14.3.
> [...]
> The current hosting server plans to perform an SVN dump of the
> repository, and make it available through something like Google Drive.
> We would obtain the dump file and then use svnadmin load, importing
> the repository.
No cooperation from the hosting provider needed. See "svnrdump help
dump", and yes this does exactly what you need. Assuming you don't have
any path based access controls this is the same as a local dump.
> I am just wondering if anyone has some guidance and suggestions, since
> we are making a significant jump to newer version of SVN.
dump/load is the right thing to do in this case.
Andreas
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Ryan Carsten Schmidt <su...@ryandesign.com>.
On Jun 7, 2024, at 00:32, Lorenz via users wrote:
>
> You might want to retain the repository UUID, otherwise you would need
> to re-checkout your working copies
Loading the dumpfile into a new repository will preserve the UUID unless you tell it not to.
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Paul Leo <pa...@dataphilesconsulting.com>.
List - Thanks for all previous replies
Nico,
I can assure you that the work is legitimate. I support a consortium
of 8 or so state health departments. They all use an application called
IBIS (here's one version https://ibis.doh.nm.gov/).
I am working with Utah Dept of HHS, and Hawaii Data Warehouse who
contracts with the Hawaii Dept of Health. Currently the content is
stored in the SVN repository hosted in UT. That server is managed by UT
Dept of HHS, and because of state security I am not permitted to have
login access to that server. That server is scheduled to be turned of
at the end of this month. Hawaii has offered to host the repository. So
I am working with them to set it up. UT proposed using the dump file
which they would share via some network cloud storage.
I had asked the about svnsync, and am concerned that they may have some
kind of high bandwidth or large "downloads" detection. I have not heard
back from them so I am attempting to use what they propose.
I should be able to try loading this weekend, and see whether or not the
load chokes. If it does I will work with UT for other ways to migrate.
Thanks for you warning about large repos, and your suggestion.
On 6/7/2024 3:15 AM, Nico Kadel-Garcia wrote:
> On Fri, Jun 7, 2024 at 1:31 AM Lorenz via users
> <us...@subversion.apache.org> wrote:
>> Paul Leo wrote:
>>
>>> We need to migrate an SVN repository from CentOS 7, Subversion 1.94 to
>>> Ubuntu 24.04, SVN 1.14.3.
>>>
>>> We don't have any login access to the current server.
>>>
>>> The current hosting server plans to perform an SVN dump of the
>>> repository, and make it available through something like Google Drive.
>>>
>>> We would obtain the dump file and then use svnadmin load, importing the
>>> repository.
>>>
>>> There are only a few hooks that are currently used. The main one being
>>> to force a commit message when committing.
>>>
>>> We will use Apache httpd and basic authentication for committing to
>>> repository, as in done currently
>>>
>>> We would change DNS to new server IP.
>
> "Missing login access" is not the same as "missing bacup access". If
> you can save the SSH hostkeys, and the TLS certificates which may be
> on the host for transfer to the new host, you probably want to do so
> to keep transfers consistent and avoid arguments about changed host
> specific keys. If you don't have backup access.... why are you
> responsible for this work? And are you planning a man-in-the-middle
> replication and replacement?
>
> If the work is legitimate, might I suggest using "svnsync" for the
> transfer, rather than svnad,om dump and restore? It won't preserve all
> your locally modified post or pre commit hooks, but what you describe
> is a simple setup, oddnesses done to those scripts should be recorded
> as Infrastructurre As Code fpr a production system.
>
> Unfortunately, if the repo has gotten too large over the years,
> svnadmin duump and restore, and svnsync, will choke to death before
> completion. This is what happens with the primary Subversion source
> repo, which can no longer be reliably replicated.
>
>
>
>>> I've read through the svnbook, and the above seems plausible.
>>>
>>> I am just wondering if anyone has some guidance and suggestions, since
>>> we are making a significant jump to newer version of SVN.
>>>
>>> Thanks for your help
>>>
>> You might want to retain the repository UUID, otherwise you would need
>> to re-checkout your working copies
>> --
>>
>> Lorenz
>>
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Fri, Jun 7, 2024 at 1:31 AM Lorenz via users
<us...@subversion.apache.org> wrote:
>
> Paul Leo wrote:
>
> >We need to migrate an SVN repository from CentOS 7, Subversion 1.94 to
> >Ubuntu 24.04, SVN 1.14.3.
> >
> >We don't have any login access to the current server.
> >
> >The current hosting server plans to perform an SVN dump of the
> >repository, and make it available through something like Google Drive.
> >
> >We would obtain the dump file and then use svnadmin load, importing the
> >repository.
> >
> >There are only a few hooks that are currently used. The main one being
> >to force a commit message when committing.
> >
> >We will use Apache httpd and basic authentication for committing to
> >repository, as in done currently
> >
> >We would change DNS to new server IP.
"Missing login access" is not the same as "missing bacup access". If
you can save the SSH hostkeys, and the TLS certificates which may be
on the host for transfer to the new host, you probably want to do so
to keep transfers consistent and avoid arguments about changed host
specific keys. If you don't have backup access.... why are you
responsible for this work? And are you planning a man-in-the-middle
replication and replacement?
If the work is legitimate, might I suggest using "svnsync" for the
transfer, rather than svnad,om dump and restore? It won't preserve all
your locally modified post or pre commit hooks, but what you describe
is a simple setup, oddnesses done to those scripts should be recorded
as Infrastructurre As Code fpr a production system.
Unfortunately, if the repo has gotten too large over the years,
svnadmin duump and restore, and svnsync, will choke to death before
completion. This is what happens with the primary Subversion source
repo, which can no longer be reliably replicated.
> >
> >I've read through the svnbook, and the above seems plausible.
> >
> >I am just wondering if anyone has some guidance and suggestions, since
> >we are making a significant jump to newer version of SVN.
> >
> >Thanks for your help
> >
>
> You might want to retain the repository UUID, otherwise you would need
> to re-checkout your working copies
> --
>
> Lorenz
>
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Lorenz via users <us...@subversion.apache.org>.
Paul Leo wrote:
>We need to migrate an SVN repository from CentOS 7, Subversion 1.94 to
>Ubuntu 24.04, SVN 1.14.3.
>
>We don't have any login access to the current server.
>
>The current hosting server plans to perform an SVN dump of the
>repository, and make it available through something like Google Drive.
>
>We would obtain the dump file and then use svnadmin load, importing the
>repository.
>
>There are only a few hooks that are currently used. The main one being
>to force a commit message when committing.
>
>We will use Apache httpd and basic authentication for committing to
>repository, as in done currently
>
>We would change DNS to new server IP.
>
>I've read through the svnbook, and the above seems plausible.
>
>I am just wondering if anyone has some guidance and suggestions, since
>we are making a significant jump to newer version of SVN.
>
>Thanks for your help
>
You might want to retain the repository UUID, otherwise you would need
to re-checkout your working copies
--
Lorenz
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Paul Leo <pa...@dataphilesconsulting.com>.
Thanks Ryan. I guess I can't believe everything on the internet, where
I got the DNS name story
The commands used to create and sync the repo were:
svnsync initialize file:///srv/svn_repos/ibis/main
https://svn.ibisph.org/svn/main
svnsync synchronize file:///srv/svn_repos/ibis/main
https://svn.ibisph.org/svn/main
I didn't receive any errors during the sync
So I assumed that the uuid would be the same but they are different.
Perhaps the safest way for folks to switch would be to create a new folder
Checkout from new server
Diff with old folder from old server, and bring over any changes folks
want and then commit to new server.
Thanks
On 6/18/2024 4:05 PM, Ryan Carsten Schmidt wrote:
> On Jun 18, 2024, at 16:19, Paul Leo wrote:
>> If I try a relocate in TortoiseSVN, I get an error saying the uuid of the new server is different than the WC of the local repo. I presume this is because of the DNS name change.
> The DNS name has nothing to do with the UUID.
>
> If the new repository is *identical* to the old repository (all of the old repository's revisions were copied and they have exactly the same contents) then you will want the UUIDs to be the same so that you can relocate existing working copies. The old repository's UUID is automatically copied to the new repository when you import a dumpfile into a newly created repository unless you use a command line flag to tell it to generate a new UUID.
>
> On the other hand, if the new repository differs at all from the old one (for example you filtered out revisions or you imported the dumpfile into an existing non-empty repository) then the new repository UUID must be different and relocation is not possible and new working copies must be checked out.
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Ryan Carsten Schmidt <su...@ryandesign.com>.
On Jun 18, 2024, at 16:19, Paul Leo wrote:
>
> If I try a relocate in TortoiseSVN, I get an error saying the uuid of the new server is different than the WC of the local repo. I presume this is because of the DNS name change.
The DNS name has nothing to do with the UUID.
If the new repository is *identical* to the old repository (all of the old repository's revisions were copied and they have exactly the same contents) then you will want the UUIDs to be the same so that you can relocate existing working copies. The old repository's UUID is automatically copied to the new repository when you import a dumpfile into a newly created repository unless you use a command line flag to tell it to generate a new UUID.
On the other hand, if the new repository differs at all from the old one (for example you filtered out revisions or you imported the dumpfile into an existing non-empty repository) then the new repository UUID must be different and relocation is not possible and new working copies must be checked out.
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Wed, Jun 19, 2024 at 3:31 AM Andreas Stieger <An...@gmx.de> wrote:
>
>
> On 2024-06-18 23:19, Paul Leo wrote:
> > If I try a relocate in TortoiseSVN, I get an error saying the uuid of
> > the new server is different than the WC of the local repo. I presume
> > this is because of the DNS name change.
>
>
> No, this is because the UUID is different.
It's similar to the TLS certificate for HTTPS access, or the SSH
hostkey for SSH access. It helps ensure that you connect to the
correct, expected source of "truth" for your source control system.
> > I've done some searching and have followed a suggestion and edited the
> > wc.db and replaced old server uuid with new server uuid, tried the
> > relocate command again and things seem to be working and pointing to
> > new server.
> >
>
> No, see "svnadmin help setuuid"
Seconded. You can seriously hurt yourself manually editing such files.
> > I also know that doing a new checkout from the new server may be the
> > simplest solution. But perhaps some folks will not commit all of their
> > changes before switchover because they are not ready.
> >
>
> Make the old one read-only via a pre-commit hook if you can.
>
>
> Andreas
Give that man a cookie. "Split brain" is a real risk if you
accidentally kept both repositories live and accepting commits.
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Andreas Stieger <An...@gmx.de>.
On 2024-06-18 23:19, Paul Leo wrote:
> If I try a relocate in TortoiseSVN, I get an error saying the uuid of
> the new server is different than the WC of the local repo. I presume
> this is because of the DNS name change.
No, this is because the UUID is different.
> I've done some searching and have followed a suggestion and edited the
> wc.db and replaced old server uuid with new server uuid, tried the
> relocate command again and things seem to be working and pointing to
> new server.
>
No, see "svnadmin help setuuid"
> I also know that doing a new checkout from the new server may be the
> simplest solution. But perhaps some folks will not commit all of their
> changes before switchover because they are not ready.
>
Make the old one read-only via a pre-commit hook if you can.
Andreas
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Paul Leo <pa...@dataphilesconsulting.com>.
List responders -
Once again thanks everyone for taking the time to respond and all of
your suggestions.
On 6/19/2024 2:58 AM, Daniel Sahlberg wrote:
> Den tis 18 juni 2024 kl 23:19 skrev Paul Leo
> <pa...@dataphilesconsulting.com>:
> ...
>
> The reason I am posting here instead of TortoiseSVN is I would
> like to know whether it would be safer to have folks just do a new
> checkout from new server once old server is shutdown, (and diff
> folders if needed) instead of trying relocate, or should I have
> them edit the wc.db and replace or try and change the uuid on the
> new server to match the old one.
>
>
> Since you use TortoiseSVN, the other option would be to remove the
> .svn folder and do a new checkout in the same directory. TortoiseSVN
> is quite nice that it picks up the existing files and says "Versioned"
> on them and you can usually continue as before. The command line
> client seems to mark the existing files as "Conflict" and require a
> lot of manual work to resolve. Of course, test it first but it might
> be an easier solution than manually carrying over any changes to the
> new working copy.
>
> I'd avoid editing wc.db - it usually works but I'd be careful asking
> endusers to do it.
>
> Kind regards,
> Daniel
>
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Daniel Sahlberg <da...@gmail.com>.
Den tis 18 juni 2024 kl 23:19 skrev Paul Leo <
paul.leo@dataphilesconsulting.com>:
...
> The reason I am posting here instead of TortoiseSVN is I would like to
> know whether it would be safer to have folks just do a new checkout from
> new server once old server is shutdown, (and diff folders if needed)
> instead of trying relocate, or should I have them edit the wc.db and
> replace or try and change the uuid on the new server to match the old one.
>
Since you use TortoiseSVN, the other option would be to remove the .svn
folder and do a new checkout in the same directory. TortoiseSVN is quite
nice that it picks up the existing files and says "Versioned" on them and
you can usually continue as before. The command line client seems to mark
the existing files as "Conflict" and require a lot of manual work to
resolve. Of course, test it first but it might be an easier solution than
manually carrying over any changes to the new working copy.
I'd avoid editing wc.db - it usually works but I'd be careful asking
endusers to do it.
Kind regards,
Daniel
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Paul Leo <pa...@dataphilesconsulting.com>.
Once again thanks for all your past help
The new repository is up and running. But we haven't cut over yet.
I have asked folks to commit all changes that they would like included
in new repo.
I'm using svnsync multiple times per day, with no issues.
There's a good chance that DNS name may not be able to stay the same.
TortoiseSvn is used almost exclusively for commits. and checkouts.
If I try a relocate in TortoiseSVN, I get an error saying the uuid of
the new server is different than the WC of the local repo. I presume
this is because of the DNS name change.
I've done some searching and have followed a suggestion and edited the
wc.db and replaced old server uuid with new server uuid, tried the
relocate command again and things seem to be working and pointing to new
server.
I also know that doing a new checkout from the new server may be the
simplest solution. But perhaps some folks will not commit all of their
changes before switchover because they are not ready.
The reason I am posting here instead of TortoiseSVN is I would like to
know whether it would be safer to have folks just do a new checkout from
new server once old server is shutdown, (and diff folders if needed)
instead of trying relocate, or should I have them edit the wc.db and
replace or try and change the uuid on the new server to match the old one.
I've done some reading in the SVN-redbook, but am concerned that perhaps
there are things that I may be missing because the redbook may be out of
date.
I've also read of some issues of changing uuid on server, so if that is
what should be done, I would like specific instructions/suggestions.
Thanks,
Paul
On 6/7/2024 10:17 AM, Paul Leo wrote:
>
> Tak Daniel.
>
> Appreciate the detailed response. I have asked for the two hooks that
> seemed to be copied from the templates.
>
> If the dump doesn't work, I may have them try and tar up the whole
> repo directory.
>
> I do have the auth tables, and will try them once repo is up and
> running, otherwise, I will create new user/passwords. The community
> is small enough so that this should not be an issue.
>
> On 6/7/2024 2:16 AM, Daniel Sahlberg wrote:
>> Den tors 6 juni 2024 kl 21:40 skrev Paul Leo
>> <pa...@dataphilesconsulting.com>:
>>
>> We need to migrate an SVN repository from CentOS 7, Subversion
>> 1.94 to
>> Ubuntu 24.04, SVN 1.14.3.
>>
>> We don't have any login access to the current server.
>>
>> The current hosting server plans to perform an SVN dump of the
>> repository, and make it available through something like Google
>> Drive.
>>
>> We would obtain the dump file and then use svnadmin load,
>> importing the
>> repository.
>>
>>
>> As others have already pointed out svnadmin dump/load or svnrdump are
>> the main candidates. Another option is to have your hosting provider
>> pack the repository folder in its entirety (to a tar.gz) which you
>> could unpack on the new server and use as-is.
>>
>>
>> There are only a few hooks that are currently used. The main one
>> being
>> to force a commit message when committing.
>>
>>
>> Although the dump file does NOT contain any hook scripts. These need
>> to be extracted from the [/path/to/repo]/hooks directory on the
>> server. If you don't have access to the server yourself (and the
>> hosting provider doesn't have a web interface to manage the hook
>> scripts) you need to ask them to copy the scripts manually. (If your
>> hosing provider choose to pack the complete repository folder the
>> hooks are of course included).
>>
>>
>> We will use Apache httpd and basic authentication for committing to
>> repository, as in done currently
>>
>>
>> The authentication (login) and authorization (permissions) are not
>> included in the dump file either. If you want to keep the
>> username/passwords the hosting provider need to give you these files
>> as well (path and filename depends on the setup in Apache httpd).
>>
>>
>> We would change DNS to new server IP.
>>
>>
>> I assume you mean you use a DNS entry
>> (https://svn.example.com/repos/..
>> <https://svn.example.com/repos/..>.) which will be updated. In this
>> case you should not need to do anything. If you change some part of
>> the URL (either new hostname, adding SSL/TLS or the path to the
>> repositories) you need to run
>>
>> svn relocate [new_url]
>>
>> in each working copy.
>>
>>
>> I've read through the svnbook, and the above seems plausible.
>>
>> I am just wondering if anyone has some guidance and suggestions,
>> since
>> we are making a significant jump to newer version of SVN.
>>
>>
>> There should be no major difference.
>>
>>
>> Thanks for your help
>>
>>
>> Kind regards,
>> Daniel
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Paul Leo <pa...@dataphilesconsulting.com>.
Tak Daniel.
Appreciate the detailed response. I have asked for the two hooks that
seemed to be copied from the templates.
If the dump doesn't work, I may have them try and tar up the whole repo
directory.
I do have the auth tables, and will try them once repo is up and
running, otherwise, I will create new user/passwords. The community is
small enough so that this should not be an issue.
On 6/7/2024 2:16 AM, Daniel Sahlberg wrote:
> Den tors 6 juni 2024 kl 21:40 skrev Paul Leo
> <pa...@dataphilesconsulting.com>:
>
> We need to migrate an SVN repository from CentOS 7, Subversion
> 1.94 to
> Ubuntu 24.04, SVN 1.14.3.
>
> We don't have any login access to the current server.
>
> The current hosting server plans to perform an SVN dump of the
> repository, and make it available through something like Google Drive.
>
> We would obtain the dump file and then use svnadmin load,
> importing the
> repository.
>
>
> As others have already pointed out svnadmin dump/load or svnrdump are
> the main candidates. Another option is to have your hosting provider
> pack the repository folder in its entirety (to a tar.gz) which you
> could unpack on the new server and use as-is.
>
>
> There are only a few hooks that are currently used. The main one
> being
> to force a commit message when committing.
>
>
> Although the dump file does NOT contain any hook scripts. These need
> to be extracted from the [/path/to/repo]/hooks directory on the
> server. If you don't have access to the server yourself (and the
> hosting provider doesn't have a web interface to manage the hook
> scripts) you need to ask them to copy the scripts manually. (If your
> hosing provider choose to pack the complete repository folder the
> hooks are of course included).
>
>
> We will use Apache httpd and basic authentication for committing to
> repository, as in done currently
>
>
> The authentication (login) and authorization (permissions) are not
> included in the dump file either. If you want to keep the
> username/passwords the hosting provider need to give you these files
> as well (path and filename depends on the setup in Apache httpd).
>
>
> We would change DNS to new server IP.
>
>
> I assume you mean you use a DNS entry
> (https://svn.example.com/repos/.. <https://svn.example.com/repos/..>.)
> which will be updated. In this case you should not need to do
> anything. If you change some part of the URL (either new hostname,
> adding SSL/TLS or the path to the repositories) you need to run
>
> svn relocate [new_url]
>
> in each working copy.
>
>
> I've read through the svnbook, and the above seems plausible.
>
> I am just wondering if anyone has some guidance and suggestions,
> since
> we are making a significant jump to newer version of SVN.
>
>
> There should be no major difference.
>
>
> Thanks for your help
>
>
> Kind regards,
> Daniel
Re: Migration from CentOS 7, Subversion 1.94 to Ubuntu 24.04, SVN 1.14.3
Posted by Daniel Sahlberg <da...@gmail.com>.
Den tors 6 juni 2024 kl 21:40 skrev Paul Leo <
paul.leo@dataphilesconsulting.com>:
> We need to migrate an SVN repository from CentOS 7, Subversion 1.94 to
> Ubuntu 24.04, SVN 1.14.3.
>
> We don't have any login access to the current server.
>
> The current hosting server plans to perform an SVN dump of the
> repository, and make it available through something like Google Drive.
>
> We would obtain the dump file and then use svnadmin load, importing the
> repository.
>
As others have already pointed out svnadmin dump/load or svnrdump are the
main candidates. Another option is to have your hosting provider pack the
repository folder in its entirety (to a tar.gz) which you could unpack on
the new server and use as-is.
>
> There are only a few hooks that are currently used. The main one being
> to force a commit message when committing.
>
Although the dump file does NOT contain any hook scripts. These need to be
extracted from the [/path/to/repo]/hooks directory on the server. If you
don't have access to the server yourself (and the hosting provider doesn't
have a web interface to manage the hook scripts) you need to ask them to
copy the scripts manually. (If your hosing provider choose to pack the
complete repository folder the hooks are of course included).
> We will use Apache httpd and basic authentication for committing to
> repository, as in done currently
>
The authentication (login) and authorization (permissions) are not included
in the dump file either. If you want to keep the username/passwords the
hosting provider need to give you these files as well (path and filename
depends on the setup in Apache httpd).
>
> We would change DNS to new server IP.
>
I assume you mean you use a DNS entry (https://svn.example.com/repos/...)
which will be updated. In this case you should not need to do anything. If
you change some part of the URL (either new hostname, adding SSL/TLS or the
path to the repositories) you need to run
svn relocate [new_url]
in each working copy.
> I've read through the svnbook, and the above seems plausible.
>
> I am just wondering if anyone has some guidance and suggestions, since
> we are making a significant jump to newer version of SVN.
>
There should be no major difference.
>
> Thanks for your help
>
>
Kind regards,
Daniel