You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Nikhil Gupta II <nG...@sapient.com> on 2009/07/23 15:24:19 UTC

Issue | Moving and Renaming files on Mirror/Slave repository

Hi ,
We are using the SVN write through proxy for our distributed environment and the configuration has been achieved as mentioned in the blog :
http://blogs.open.collab.net/svn/2007/10/yesterday-at-th.html

We have configured the Two way replication between two severs I,e
Machine (master)  -----------> Machine 2 ( slave)
Machine (slave) ---------------> Machine 2 ( master)

The following versions for Apache, Subversion and SNIT are used
Apache : 2.2.8
Subversion server : 1.6.2
SVN KIT API  : 1.3.0


With the help of WEBDAV Write through proxy , the write operations performed on the slave repository are proxied to the master repository.

The following operation are working fine on slave repository
1) Add files /folders
2) Updating files
3) Deleting files/folders
4) Changing the custom property for files.

The problem we are facing is while the renaming and moving files/folders only on the slave repository.
Whereas the rename and move operations work correctly on the master repository and the changes are also well replicated on all the slave repositories.

While performing the rename and move operation from the tortoise client , the following error messages are received

While renaming a file it gives the following error
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to COPY request for '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'

Similarly while moving the folder gives the following error
svn: Server sent unexpected return value (405 Method Not Allowed)

As per the Apache Error logs : Following is the error message seen in the logs :

[error]  (2)No such file or directory: Requests for a collection must have a trailing slash on the URI.

I have attached the master and slave configuration along with the httpd.conf  for your review.
Looking forward for early reply



Thanks in Advance,
Nikhil Gupta
Associate Technology L2, Delivery Capabilities | Sapient

DLF Cyber Greens, DLF Phase-III, Sector 25-A,
Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
E-mail: ngupta13@sapient.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2374861

Re: Issue | Moving and Renaming files on Mirror/Slave repository

Posted by Dellair Jie <de...@hotmail.com>.
Hi Nikhil,

How'd this problem go? You got any solution? I am currently encountering the
same one.


Nikhil Gupta II wrote:
> 
> Hi ,
> We are using the SVN write through proxy for our distributed environment
> and the configuration has been achieved as mentioned in the blog :
> http://blogs.open.collab.net/svn/2007/10/yesterday-at-th.html
> 
> We have configured the Two way replication between two severs I,e
> Machine (master)  -----------> Machine 2 ( slave)
> Machine (slave) ---------------> Machine 2 ( master)
> 
> The following versions for Apache, Subversion and SNIT are used
> Apache : 2.2.8
> Subversion server : 1.6.2
> SVN KIT API  : 1.3.0
> 
> 
> With the help of WEBDAV Write through proxy , the write operations
> performed on the slave repository are proxied to the master repository.
> 
> The following operation are working fine on slave repository
> 1) Add files /folders
> 2) Updating files
> 3) Deleting files/folders
> 4) Changing the custom property for files.
> 
> The problem we are facing is while the renaming and moving files/folders
> only on the slave repository.
> Whereas the rename and move operations work correctly on the master
> repository and the changes are also well replicated on all the slave
> repositories.
> 
> While performing the rename and move operation from the tortoise client ,
> the following error messages are received
> 
> While renaming a file it gives the following error
> svn: Commit failed (details follow):
> svn: Server sent unexpected return value (405 Method Not Allowed) in
> response to COPY request for
> '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'
> 
> Similarly while moving the folder gives the following error
> svn: Server sent unexpected return value (405 Method Not Allowed)
> 
> As per the Apache Error logs : Following is the error message seen in the
> logs :
> 
> [error]  (2)No such file or directory: Requests for a collection must have
> a trailing slash on the URI.
> 
> I have attached the master and slave configuration along with the
> httpd.conf  for your review.
> Looking forward for early reply
> 
> 
> 
> Thanks in Advance,
> Nikhil Gupta
> Associate Technology L2, Delivery Capabilities | Sapient
> 
> DLF Cyber Greens, DLF Phase-III, Sector 25-A,
> Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
> E-mail: ngupta13@sapient.com
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2374861
>  
>  
> 

-- 
View this message in context: http://www.nabble.com/Issue-%7C-Moving-and-Renaming-files-on-Mirror-Slave-repository-tp24649915p24655575.html
Sent from the Subversion Dev mailing list archive at Nabble.com.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2375475

RE: Issue | Moving and Renaming files on Mirror/Slave repository

Posted by Nikhil Gupta II <nG...@sapient.com>.
Hi Peter ,

Thanks for your reply.

For Windows Configuration

I have installed Collabnet 1.6.3 on two Windows Machines

I  have done one way configuration on Windows :
Machine 1(master) --------------> Machine 2 ( slave)

But renaming the file on the slave gave the same problem :

svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to COPY request for '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'

I have attached the Master and Slave httpd configuration on Windows for your review.

For Mac Configuration

Subversion server ( slave/ master ) : 1.6.2
Apache :  2.2.8

Also , we want this configuration to run on Mac/Linux servers. And we are getting the same problem while renaming/moving the files on slave machine.
I am also sending the configuration for master and slave along with the httpd.conf for Mac machine.

We have configured the two way replication between two Mac/Linux severs in the following manner.
Machine 1(master) --------------> Machine 2 ( slave)
Machine 2(master) ---------------> Machine 1 ( slave)

Please provide your valuable inputs.



Thanks in Advance,
Nikhil Gupta
Associate Technology L2, Delivery Capabilities | Sapient

DLF Cyber Greens, DLF Phase-III, Sector 25-A,
Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
E-mail: ngupta13@sapient.com



-----Original Message-----
From: Peter Samuelson [mailto:peter@p12n.org]
Sent: Saturday, July 25, 2009 12:56 AM
To: Nikhil Gupta II
Cc: dev@subversion.tigris.org; Jay Kumar Sharma
Subject: Re: Issue | Moving and Renaming files on Mirror/Slave repository

Are you sure you are using Subversion 1.6.2 on the slave as well as the
master?  There was a bug in mod_dav_svn in some releases of Subversion
1.5 that sounds a lot like what you are seeing.
--
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/



_____________________________________________
From:   Nikhil Gupta II
Sent:   Thursday, July 23, 2009 8:54 PM
To:     'dev@subversion.tigris.org'
Cc:     Jay Kumar Sharma
Subject:        Issue | Moving and Renaming files on Mirror/Slave repository


Hi ,
We are using the SVN write through proxy for our distributed environment and the configuration has been achieved as mentioned in the blog :
http://blogs.open.collab.net/svn/2007/10/yesterday-at-th.html

We have configured the Two way replication between two severs I,e
Machine (master)  -----------> Machine 2 ( slave)
Machine (slave) ---------------> Machine 2 ( master)

The following versions for Apache, Subversion and SNIT are used
Apache : 2.2.8
Subversion server : 1.6.2
SVN KIT API  : 1.3.0


With the help of WEBDAV Write through proxy , the write operations performed on the slave repository are proxied to the master repository.

The following operation are working fine on slave repository
1) Add files /folders
2) Updating files
3) Deleting files/folders
4) Changing the custom property for files.

The problem we are facing is while the renaming and moving files/folders only on the slave repository.
Whereas the rename and move operations work correctly on the master repository and the changes are also well replicated on all the slave repositories.

While performing the rename and move operation from the tortoise client , the following error messages are received

While renaming a file it gives the following error
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to COPY request for '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'

Similarly while moving the folder gives the following error
svn: Server sent unexpected return value (405 Method Not Allowed)

As per the Apache Error logs : Following is the error message seen in the logs :

[error]  (2)No such file or directory: Requests for a collection must have a trailing slash on the URI.

I have attached the master and slave configuration along with the httpd.conf  for your review.
Looking forward for early reply

 << File: httpd.conf >>  << File: port-443.conf >>

Thanks in Advance,
Nikhil Gupta
Associate Technology L2, Delivery Capabilities | Sapient

DLF Cyber Greens, DLF Phase-III, Sector 25-A,
Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
E-mail: ngupta13@sapient.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2375471

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: Re: Issue | Moving and Renaming files on Mirror/Slave repository

Posted by Dellair Jie <de...@hotmail.com>.
Hi Pete,

I am encountering the exact same problem.

Apache : 2.2.10
Subversion server : 1.6.3

No error shows in Apache error_log. In access_log, there is:
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "MKACTIVITY /master_repo/!svn/act/323a8fc1-d241-4446-81b0-72cc01770010 HTTP/1.1" 201 233
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "CHECKOUT /master_repo/!svn/bln/59 HTTP/1.1" 201 248
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "PROPPATCH /master_repo/!svn/wbl/323a8fc1-d241-4446-81b0-72cc01770010/59 HTTP/1.1" 207 467
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "CHECKOUT /master_repo/!svn/ver/59/branches HTTP/1.1" 201 254
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "COPY /master_repo/!svn/bc/59/trunk HTTP/1.1" 405 203
192.168.1.218 - dellair [25/Jul/2009:11:42:38 -0400] "DELETE /master_repo/!svn/act/323a8fc1-d241-4446-81b0-72cc01770010 HTTP/1.1" 204 -

>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2375477

Re: Issue | Moving and Renaming files on Mirror/Slave repository

Posted by Peter Samuelson <pe...@p12n.org>.
[Nikhil Gupta II]
> We have configured the Two way replication between two severs I,e
> Machine (master)  -----------> Machine 2 ( slave)
> Machine (slave) ---------------> Machine 2 ( master)
> 
> The following versions for Apache, Subversion and SNIT are used
> Apache : 2.2.8
> Subversion server : 1.6.2
> SVN KIT API  : 1.3.0

Are you sure you are using Subversion 1.6.2 on the slave as well as the
master?  There was a bug in mod_dav_svn in some releases of Subversion
1.5 that sounds a lot like what you are seeing.
-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/

RE: Issue | Moving and Renaming files on Mirror/Slave repository

Posted by Nikhil Gupta II <nG...@sapient.com>.
Hi Peter ,

Thanks for your reply.

For Windows Configuration

I have installed Collabnet 1.6.3 on two Windows Machines

I  have done one way configuration on Windows :
Machine 1(master) --------------> Machine 2 ( slave)

But renaming the file on the slave gave the same problem :

svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to COPY request for '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'

I have attached the Master and Slave httpd configuration on Windows for your review.

For Mac Configuration

Subversion server ( slave/ master ) : 1.6.2
Apache :  2.2.8

Also , we want this configuration to run on Mac/Linux servers. And we are getting the same problem while renaming/moving the files on slave machine.
I am also sending the configuration for master and slave along with the httpd.conf for Mac machine.

We have configured the two way replication between two Mac/Linux severs in the following manner.
Machine 1(master) --------------> Machine 2 ( slave)
Machine 2(master) ---------------> Machine 1 ( slave)

Please provide your valuable inputs.



Thanks in Advance,
Nikhil Gupta
Associate Technology L2, Delivery Capabilities | Sapient

DLF Cyber Greens, DLF Phase-III, Sector 25-A,
Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
E-mail: ngupta13@sapient.com



-----Original Message-----
From: Peter Samuelson [mailto:peter@p12n.org]
Sent: Saturday, July 25, 2009 12:56 AM
To: Nikhil Gupta II
Cc: dev@subversion.tigris.org; Jay Kumar Sharma
Subject: Re: Issue | Moving and Renaming files on Mirror/Slave repository

Are you sure you are using Subversion 1.6.2 on the slave as well as the
master?  There was a bug in mod_dav_svn in some releases of Subversion
1.5 that sounds a lot like what you are seeing.
--
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/



_____________________________________________
From:   Nikhil Gupta II
Sent:   Thursday, July 23, 2009 8:54 PM
To:     'dev@subversion.tigris.org'
Cc:     Jay Kumar Sharma
Subject:        Issue | Moving and Renaming files on Mirror/Slave repository


Hi ,
We are using the SVN write through proxy for our distributed environment and the configuration has been achieved as mentioned in the blog :
http://blogs.open.collab.net/svn/2007/10/yesterday-at-th.html

We have configured the Two way replication between two severs I,e
Machine (master)  -----------> Machine 2 ( slave)
Machine (slave) ---------------> Machine 2 ( master)

The following versions for Apache, Subversion and SNIT are used
Apache : 2.2.8
Subversion server : 1.6.2
SVN KIT API  : 1.3.0


With the help of WEBDAV Write through proxy , the write operations performed on the slave repository are proxied to the master repository.

The following operation are working fine on slave repository
1) Add files /folders
2) Updating files
3) Deleting files/folders
4) Changing the custom property for files.

The problem we are facing is while the renaming and moving files/folders only on the slave repository.
Whereas the rename and move operations work correctly on the master repository and the changes are also well replicated on all the slave repositories.

While performing the rename and move operation from the tortoise client , the following error messages are received

While renaming a file it gives the following error
svn: Commit failed (details follow):
svn: Server sent unexpected return value (405 Method Not Allowed) in response to COPY request for '/slave/qa1/helloiamthe_masteronqa1/!svn/bc/17/branches'

Similarly while moving the folder gives the following error
svn: Server sent unexpected return value (405 Method Not Allowed)

As per the Apache Error logs : Following is the error message seen in the logs :

[error]  (2)No such file or directory: Requests for a collection must have a trailing slash on the URI.

I have attached the master and slave configuration along with the httpd.conf  for your review.
Looking forward for early reply

 << File: httpd.conf >>  << File: port-443.conf >>

Thanks in Advance,
Nikhil Gupta
Associate Technology L2, Delivery Capabilities | Sapient

DLF Cyber Greens, DLF Phase-III, Sector 25-A,
Gurgaon 122 002, Haryana, India.mobile: +91.9899699639
E-mail: ngupta13@sapient.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2375470