Difference between revisions of "Old talk:Installing SVN"

From The Uniform Server Wiki
Jump to navigation Jump to search
m (Fixed from Derrick to MrX lol)
Line 1: Line 1:
 +
----
 +
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 +
----
 +
=[http://atosaca.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
----
 +
=[http://atosaca.co.cc CLICK HERE]=
 +
----
 +
</div>
 
MrX has reported a problem with SVN working under the /www/ folder...
 
MrX has reported a problem with SVN working under the /www/ folder...
  
Line 12: Line 20:
  
 
From the free SVN book licensed under Creative Commons:  
 
From the free SVN book licensed under Creative Commons:  
=== [http://svnbook.red-bean.com/en/1.1/apb.html#svn-ap-b-sect-1.2.15 '''I can see my repository in a web browser, but''' <u>svn checkout</u> '''gives me an error about''' ''301 Moved Permanently''.] ===
+
=== [http://svnbook.red-bean.com/en/1.1/apb.html#svn-ap-b-sect-1.2.15 '''I can see my repository in a web browser, but''' &lt;u&gt;svn checkout&lt;/u&gt; '''gives me an error about''' ''301 Moved Permanently''.] ===
<pre>
+
&lt;pre&gt;
 
It means your httpd.conf is misconfigured. Usually this error happens
 
It means your httpd.conf is misconfigured. Usually this error happens
 
when you've defined the Subversion virtual “location” to exist within
 
when you've defined the Subversion virtual “location” to exist within
 
two different scopes at the same time.
 
two different scopes at the same time.
  
For example, if you've exported a repository as <Location /www/foo>,
+
For example, if you've exported a repository as &lt;Location /www/foo&gt;,
 
but you've also set your DocumentRoot to be /www, then you're in
 
but you've also set your DocumentRoot to be /www, then you're in
 
trouble. When the request comes in for /www/foo/bar, Apache doesn't
 
trouble. When the request comes in for /www/foo/bar, Apache doesn't
Line 24: Line 32:
 
DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar
 
DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar
 
from the /www/foo repository. Usually the former case wins, and
 
from the /www/foo repository. Usually the former case wins, and
hence the "Moved Permanently" error.
+
hence the &quot;Moved Permanently&quot; error.
  
The solution is to make sure your repository <Location> does
+
The solution is to make sure your repository &lt;Location&gt; does
 
not overlap or live within any areas already exported as normal
 
not overlap or live within any areas already exported as normal
 
web shares.
 
web shares.
</pre>
+
&lt;/pre&gt;
  
 
From what I understand, that means your Repository Root shouldn't be under your Apache DocumentRoot. I decided to try it out for myself.
 
From what I understand, that means your Repository Root shouldn't be under your Apache DocumentRoot. I decided to try it out for myself.
 
After changing my Repository Root into /www/svn. I got this error while trying to commit:
 
After changing my Repository Root into /www/svn. I got this error while trying to commit:
<pre><nowiki>
+
&lt;pre&gt;&lt;nowiki&gt;
D:\Misc\SVN\testbdb>svn commit --message "More Test"
+
D:\Misc\SVN\testbdb&gt;svn commit --message &quot;More Test&quot;
 
svn: Commit failed (details follow):
 
svn: Commit failed (details follow):
 
svn: OPTIONS request failed on '/svn/testbdb'
 
svn: OPTIONS request failed on '/svn/testbdb'
 
svn: OPTIONS of '/svn/testbdb': 301 Moved Permanently (http://localhost)
 
svn: OPTIONS of '/svn/testbdb': 301 Moved Permanently (http://localhost)
</nowiki></pre>
+
&lt;/nowiki&gt;&lt;/pre&gt;
  
 
I moved changed my Repository Root back to /home/svn and tried again. This is what I got:
 
I moved changed my Repository Root back to /home/svn and tried again. This is what I got:
<pre><nowiki>
+
&lt;pre&gt;&lt;nowiki&gt;
D:\Misc\SVN\testbdb>svn commit --message "New Files :D"
+
D:\Misc\SVN\testbdb&gt;svn commit --message &quot;New Files :D&quot;
 
Adding        123.txt
 
Adding        123.txt
 
Adding        New.txt
 
Adding        New.txt
 
Transmitting file data ..
 
Transmitting file data ..
 
Committed revision 6.
 
Committed revision 6.
</nowiki></pre>
+
&lt;/nowiki&gt;&lt;/pre&gt;
  
 
Other than that, I get a bunch of errors like these every time I access my repository:
 
Other than that, I get a bunch of errors like these every time I access my repository:
<pre>
+
&lt;pre&gt;
 
[Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different
 
[Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different
 
DAV provider than its parent.
 
DAV provider than its parent.
Line 57: Line 65:
 
[Sat Apr 09 12:33:28 2005] [error] A subtree cannot specify a different  
 
[Sat Apr 09 12:33:28 2005] [error] A subtree cannot specify a different  
 
DAV provider than its parent.
 
DAV provider than its parent.
</pre>
+
&lt;/pre&gt;
 
My current guess is that, it has something to do with activating Dav in /www
 
My current guess is that, it has something to do with activating Dav in /www
  

Revision as of 10:22, 24 November 2010



Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly


CLICK HERE


MrX has reported a problem with SVN working under the /www/ folder...

This article is still under editing...

--Olajide 19:05, 10 Apr 2005 (EDT)

301 Moved Permanently and other errors

This is what happened to me, I'll wait for another person to confirm it before making changes to the wiki.

Olajide decided to use /www/svn instead of /home/svn, which was my choice. I'm sure he has his valid reasons :)

From the free SVN book licensed under Creative Commons:

I can see my repository in a web browser, but <u>svn checkout</u> gives me an error about 301 Moved Permanently.

<pre> It means your httpd.conf is misconfigured. Usually this error happens when you've defined the Subversion virtual “location” to exist within two different scopes at the same time.

For example, if you've exported a repository as <Location /www/foo>, but you've also set your DocumentRoot to be /www, then you're in trouble. When the request comes in for /www/foo/bar, Apache doesn't know whether to find a real file named /foo/bar within your DocumentRoot, or whether to ask mod_dav_svn to fetch a file /bar from the /www/foo repository. Usually the former case wins, and hence the "Moved Permanently" error.

The solution is to make sure your repository <Location> does not overlap or live within any areas already exported as normal web shares. </pre>

From what I understand, that means your Repository Root shouldn't be under your Apache DocumentRoot. I decided to try it out for myself. After changing my Repository Root into /www/svn. I got this error while trying to commit: <pre><nowiki> D:\Misc\SVN\testbdb>svn commit --message "More Test" svn: Commit failed (details follow): svn: OPTIONS request failed on '/svn/testbdb' svn: OPTIONS of '/svn/testbdb': 301 Moved Permanently (http://localhost) </nowiki></pre>

I moved changed my Repository Root back to /home/svn and tried again. This is what I got: <pre><nowiki> D:\Misc\SVN\testbdb>svn commit --message "New Files :D" Adding 123.txt Adding New.txt Transmitting file data .. Committed revision 6. </nowiki></pre>

Other than that, I get a bunch of errors like these every time I access my repository: <pre> [Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different DAV provider than its parent. [Sat Apr 09 12:33:27 2005] [error] A subtree cannot specify a different DAV provider than its parent. [Sat Apr 09 12:33:28 2005] [error] A subtree cannot specify a different DAV provider than its parent. </pre> My current guess is that, it has something to do with activating Dav in /www

--MrX

Finalization

We have concluded and it seems MrX Won! To run SVN, you now have to create a /svn folder in the Uniform Server SUBST Drive. :)

--Olajide 14:07, 11 Apr 2005 (EDT)