You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Lasse A. Karlsen" <la...@gmail.com> on 2009/02/19 00:15:36 UTC
svnsync: PROPFIND request failed
Hi everyone! I'm desperately trying to backup my google code-repo but since
I'm not too familiar with SVN, I can't get svnsync to work.
I thought that backup up your repo to another repo or dumpfile was an easy
task, but I'm I wrong?
What I'm trying to do:
norsof@shell:~$ svnsync init http://www.norsof.org/svn/
http://codalyzer.googlecode.com/svn/trunk
svnsync: PROPFIND request failed on '/svn'
svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://www.norsof.org)
What does that mean? And is it possible to fix it?
http://www.norsof.org/svn/ was created with svnadmin create, ofc.
Thanks in advance! =)
laka
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1188890
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svnsync: PROPFIND request failed
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 20, 2009, at 09:46, Lasse A. Karlsen wrote:
> On Thu, Feb 19, 2009 at 10:12 PM, Ryan Schmidt wrote:
>
>> On Feb 19, 2009, at 06:31, Lasse A. Karlsen wrote:
>>
>>> On Thu, Feb 19, 2009 at 5:49 AM, Ryan Schmidt wrote:
>>>
>>>> On Feb 18, 2009, at 18:15, Lasse A. Karlsen wrote:
>>>>
>>>> Hi everyone! I'm desperately trying to backup my google code-
>>>> repo but since I'm not too familiar with SVN, I can't get
>>>> svnsync to work.
>>>>
>>>> I thought that backup up your repo to another repo or dumpfile
>>>> was an easy task, but I'm I wrong?
>>>>
>>>> What I'm trying to do:
>>>>
>>>> norsof@shell:~$ svnsync init http://www.norsof.org/svn/ http://
>>>> codalyzer.googlecode.com/svn/trunk
>>>> svnsync: PROPFIND request failed on '/svn'
>>>> svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://
>>>> www.norsof.org)
>>>>
>>>> What does that mean? And is it possible to fix it?
>>>>
>>>> http://www.norsof.org/svn/ was created with svnadmin create, ofc.
>>>
>>> When I look at http://www.norsof.org/svn/ in a web browser, I
>>> just see the directories conf, dav, db, hooks and locks, and the
>>> files format and pre-revprop-change.cmd. There are two things
>>> wrong with this. One, it means you have not configured your
>>> Apache to serve this directory as a repository. You need to move
>>> that svn directory outside of the DocumentRoot and then set up
>>> Apache to serve the repository like this:
>>>
>>> <Location /svn/>
>>> DAV svn
>>> SVNPath /path/to/where/you/moved/svn
>>> </Location>
>>>
>>> Two, the file pre-revprop-change.cmd will have no effect directly
>>> inside the repository directory. It needs to be in the hooks
>>> directory if you want Subversion to use it. But it also appears
>>> to be empty so maybe it's a leftover file from when you were
>>> testing something.
>>
>>>
>>
>> Hey and thanks for great response! But what do I do when I don't
>> have permissions to change the httpd.conf file? Is there an easy
>> way to dump this to a file (and still preserve all the history..) ?
>>
>> You can svnsync the remote repository to a repository you create
>> on your local computer, on which you presumably have permissions
>> to do anything you want. Note that you don't even need to set up
>> apache or svnserve; you can sync to a repository you just created
>> with "svnadmin create". Then, once the sync is done, you can do
>> whatever you want with your copy of the repository, including
>> svnsync it somewhere else, svnadmin hotcopy it, svnadmin dump it,
>> etc.
>
> But you just said "One, it means you have not configured your
> Apache to serve this directory as a repository. You need to move
> that svn directory outside of the DocumentRoot and then set up
> Apache to serve the repository like this:" ??
If you want to sync to a repository at an http URL (which is what you
showed, trying to sync to http://www.norsof.org/svn/) then of course
you must set up apache correctly on that server. That involves
setting up the httpd.conf as explained above, and also making sure
that the repository is not located in the DocumentRoot (which, for
you, it was, because I could see it when visiting the URL in a web
browser). Otherwise you will get a "moved permanently" error message
which is explained in the Subversion FAQ (albeit not very accurately).
If you want to sync to a repository at a file URL, then apache is not
involved (on your end) so you don't need to set it up at all. So that
is what I recommend.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1201408
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svnsync: PROPFIND request failed
Posted by "Lasse A. Karlsen" <la...@gmail.com>.
But you just said "One, it means you have not configured your Apache to
serve this directory as a repository. You need to move that svn directory
outside of the DocumentRoot and then set up Apache to serve the repository
like this:" ??
On Thu, Feb 19, 2009 at 10:12 PM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
>
> On Feb 19, 2009, at 06:31, Lasse A. Karlsen wrote:
>
> On Thu, Feb 19, 2009 at 5:49 AM, Ryan Schmidt wrote:
>>
>> On Feb 18, 2009, at 18:15, Lasse A. Karlsen wrote:
>>>
>>> Hi everyone! I'm desperately trying to backup my google code-repo but
>>>> since I'm not too familiar with SVN, I can't get svnsync to work.
>>>>
>>>> I thought that backup up your repo to another repo or dumpfile was an
>>>> easy task, but I'm I wrong?
>>>>
>>>> What I'm trying to do:
>>>>
>>>> norsof@shell:~$ svnsync init http://www.norsof.org/svn/ http://
>>>> codalyzer.googlecode.com/svn/trunk
>>>> svnsync: PROPFIND request failed on '/svn'
>>>> svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://
>>>> www.norsof.org)
>>>>
>>>> What does that mean? And is it possible to fix it?
>>>>
>>>> http://www.norsof.org/svn/ was created with svnadmin create, ofc.
>>>>
>>>
>>> When I look at http://www.norsof.org/svn/ in a web browser, I just see
>>> the directories conf, dav, db, hooks and locks, and the files format and
>>> pre-revprop-change.cmd. There are two things wrong with this. One, it means
>>> you have not configured your Apache to serve this directory as a repository.
>>> You need to move that svn directory outside of the DocumentRoot and then set
>>> up Apache to serve the repository like this:
>>>
>>> <Location /svn/>
>>> DAV svn
>>> SVNPath /path/to/where/you/moved/svn
>>> </Location>
>>>
>>> Two, the file pre-revprop-change.cmd will have no effect directly inside
>>> the repository directory. It needs to be in the hooks directory if you want
>>> Subversion to use it. But it also appears to be empty so maybe it's a
>>> leftover file from when you were testing something.
>>>
>>
>> Hey and thanks for great response! But what do I do when I don't have
>> permissions to change the httpd.conf file? Is there an easy way to dump this
>> to a file (and still preserve all the history..) ?
>>
>
> You can svnsync the remote repository to a repository you create on your
> local computer, on which you presumably have permissions to do anything you
> want. Note that you don't even need to set up apache or svnserve; you can
> sync to a repository you just created with "svnadmin create". Then, once the
> sync is done, you can do whatever you want with your copy of the repository,
> including svnsync it somewhere else, svnadmin hotcopy it, svnadmin dump it,
> etc.
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1198949
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svnsync: PROPFIND request failed
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 19, 2009, at 06:31, Lasse A. Karlsen wrote:
> On Thu, Feb 19, 2009 at 5:49 AM, Ryan Schmidt wrote:
>
>> On Feb 18, 2009, at 18:15, Lasse A. Karlsen wrote:
>>
>>> Hi everyone! I'm desperately trying to backup my google code-repo
>>> but since I'm not too familiar with SVN, I can't get svnsync to
>>> work.
>>>
>>> I thought that backup up your repo to another repo or dumpfile
>>> was an easy task, but I'm I wrong?
>>>
>>> What I'm trying to do:
>>>
>>> norsof@shell:~$ svnsync init http://www.norsof.org/svn/ http://
>>> codalyzer.googlecode.com/svn/trunk
>>> svnsync: PROPFIND request failed on '/svn'
>>> svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://
>>> www.norsof.org)
>>>
>>> What does that mean? And is it possible to fix it?
>>>
>>> http://www.norsof.org/svn/ was created with svnadmin create, ofc.
>>
>> When I look at http://www.norsof.org/svn/ in a web browser, I just
>> see the directories conf, dav, db, hooks and locks, and the files
>> format and pre-revprop-change.cmd. There are two things wrong with
>> this. One, it means you have not configured your Apache to serve
>> this directory as a repository. You need to move that svn
>> directory outside of the DocumentRoot and then set up Apache to
>> serve the repository like this:
>>
>> <Location /svn/>
>> DAV svn
>> SVNPath /path/to/where/you/moved/svn
>> </Location>
>>
>> Two, the file pre-revprop-change.cmd will have no effect directly
>> inside the repository directory. It needs to be in the hooks
>> directory if you want Subversion to use it. But it also appears to
>> be empty so maybe it's a leftover file from when you were testing
>> something.
>
> Hey and thanks for great response! But what do I do when I don't
> have permissions to change the httpd.conf file? Is there an easy
> way to dump this to a file (and still preserve all the history..) ?
You can svnsync the remote repository to a repository you create on
your local computer, on which you presumably have permissions to do
anything you want. Note that you don't even need to set up apache or
svnserve; you can sync to a repository you just created with
"svnadmin create". Then, once the sync is done, you can do whatever
you want with your copy of the repository, including svnsync it
somewhere else, svnadmin hotcopy it, svnadmin dump it, etc.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1194324
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svnsync: PROPFIND request failed
Posted by "Lasse A. Karlsen" <la...@gmail.com>.
Hey and thanks for great response! But what do I do when I don't have
permissions to change the httpd.conf file? Is there an easy way to dump this
to a file (and still preserve all the history..) ?
=)
On Thu, Feb 19, 2009 at 5:49 AM, Ryan Schmidt <
subversion-2009a@ryandesign.com> wrote:
>
> On Feb 18, 2009, at 18:15, Lasse A. Karlsen wrote:
>
> Hi everyone! I'm desperately trying to backup my google code-repo but since
>> I'm not too familiar with SVN, I can't get svnsync to work.
>>
>> I thought that backup up your repo to another repo or dumpfile was an easy
>> task, but I'm I wrong?
>>
>> What I'm trying to do:
>>
>> norsof@shell:~$ svnsync init http://www.norsof.org/svn/ http://
>> codalyzer.googlecode.com/svn/trunk
>> svnsync: PROPFIND request failed on '/svn'
>> svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://www.norsof.org
>> )
>>
>> What does that mean? And is it possible to fix it?
>>
>> http://www.norsof.org/svn/ was created with svnadmin create, ofc.
>>
>>
> When I look at http://www.norsof.org/svn/ in a web browser, I just see the
> directories conf, dav, db, hooks and locks, and the files format and
> pre-revprop-change.cmd. There are two things wrong with this. One, it means
> you have not configured your Apache to serve this directory as a repository.
> You need to move that svn directory outside of the DocumentRoot and then set
> up Apache to serve the repository like this:
>
> <Location /svn/>
> DAV svn
> SVNPath /path/to/where/you/moved/svn
> </Location>
>
> Two, the file pre-revprop-change.cmd will have no effect directly inside
> the repository directory. It needs to be in the hooks directory if you want
> Subversion to use it. But it also appears to be empty so maybe it's a
> leftover file from when you were testing something.
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1191638
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svnsync: PROPFIND request failed
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 18, 2009, at 18:15, Lasse A. Karlsen wrote:
> Hi everyone! I'm desperately trying to backup my google code-repo
> but since I'm not too familiar with SVN, I can't get svnsync to work.
>
> I thought that backup up your repo to another repo or dumpfile was
> an easy task, but I'm I wrong?
>
> What I'm trying to do:
>
> norsof@shell:~$ svnsync init http://www.norsof.org/svn/ http://
> codalyzer.googlecode.com/svn/trunk
> svnsync: PROPFIND request failed on '/svn'
> svnsync: PROPFIND of '/svn': 301 Moved Permanently (http://
> www.norsof.org)
>
> What does that mean? And is it possible to fix it?
>
> http://www.norsof.org/svn/ was created with svnadmin create, ofc.
>
When I look at http://www.norsof.org/svn/ in a web browser, I just
see the directories conf, dav, db, hooks and locks, and the files
format and pre-revprop-change.cmd. There are two things wrong with
this. One, it means you have not configured your Apache to serve this
directory as a repository. You need to move that svn directory
outside of the DocumentRoot and then set up Apache to serve the
repository like this:
<Location /svn/>
DAV svn
SVNPath /path/to/where/you/moved/svn
</Location>
Two, the file pre-revprop-change.cmd will have no effect directly
inside the repository directory. It needs to be in the hooks
directory if you want Subversion to use it. But it also appears to be
empty so maybe it's a leftover file from when you were testing
something.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1189966
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].