<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sebastian Mogilowskis Blog &#187; svn</title>
	<atom:link href="http://www.mogilowski.net/lang/en-us/tag/svn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mogilowski.net</link>
	<description>Just another blog about administration, linux and other stuff</description>
	<lastBuildDate>Thu, 26 Apr 2012 06:44:10 +0000</lastBuildDate>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Install Subversion repository on a nfs share</title>
		<link>http://www.mogilowski.net/lang/en-us/2009/01/31/install-subversion-repository-on-a-nfs-share</link>
		<comments>http://www.mogilowski.net/lang/en-us/2009/01/31/install-subversion-repository-on-a-nfs-share#comments</comments>
		<pubDate>Sat, 31 Jan 2009 10:56:00 +0000</pubDate>
		<dc:creator>sebastian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.mogilowski.net/?p=247</guid>
		<description><![CDATA[This howto describes how to install subversion on debian with the repository on a mounted nfs share. 1. Installation aptitude install subversion libapache2-svn 2. Create the repository mkdir /mnt/nfsshare/svn/ svnadmin create --fs-type fsfs /mnt/nfsshare/svn/project1 The path /mnt/nfsshare is the mountpoint of the NFS share, please make sure you use the fsfs filesystem type for your [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="en-us">This howto describes how to install subversion on debian with the repository on a mounted nfs share.</span></p>
<h3>1. Installation</h3>
<pre>
aptitude install subversion libapache2-svn
</pre>
<h3><span lang="en-us">2. Create the repository</span></h3>
<pre>
mkdir /mnt/nfsshare/svn/
svnadmin create --fs-type fsfs /mnt/nfsshare/svn/project1
</pre>
<p><span lang="en-us">The path<em> /mnt/nfsshare</em> is the mountpoint of the NFS share, please make sure you use the <strong>fsfs</strong> filesystem type for your repository. You need this type for NFS support.</span></p>
<h3><span lang="en-us">3. Permissions</span></h3>
<pre>
chown -R www-data:www-data /mnt/nfsshare/svn/*
chmod -R 770 /var/svn-repos/*
</pre>
<h3><span lang="en-us">4. Enable WebDAV</span></h3>
<pre>
a2enmod dav
a2enmod dav_svn
</pre>
<h3><span lang="en-us">5. Access Controll</span></h3>
<p><span lang="en-us">Create an htaccess password file:</span></p>
<pre>
htpasswd2 -c /etc/apache2/svn.passwd your_username
</pre>
<h3><span lang="en-us">6. Configurate SVN</span></h3>
<pre>
&#60;location   /project1&#62;
    DAV svn
    SVNPath /mnt/nfsshare/svn/project1
    AuthType Basic
    AuthName &#34;Subversion Repository&#34;
    AuthUserFile /etc/apache2/svn.passwd
    Require valid-user
    SSLRequireSSL
&#60;/location&#62;
</pre>
<p><span lang="en-us">Edit the file &#8220;/etc/apache2/mods-available/dav_svn.conf&#8221;:</span></p>
<h3><span lang="en-us">7. Restart the Apache Webserver</span></h3>
<pre>
/etc/init.d/apache2 restart
</pre>
<h3><span lang="en-us">8. Connect to your subversion server</span></h3>
<p><span lang="en-us">Now you can create a connection to your subversion server with your subversion client.</span></p>
<h3><span lang="en-us">9. Problems</span></h3>
<p><em>9.1 &#8220;svn: Can&#8217;t get exclusive lock on file &#8216;/mnt/nfsshare/svn/project1/db/txn-current-lock&#8217;: No locks available&#8221;</em></p>
<p><span lang="en-us">Check the logs on your NFS server:</span></p>
<pre>
tail /var/log/messages
</pre>
<pre>
kernel: lockd: cannot monitor nfs -Client-Name/IP
</pre>
<p><span lang="en-us">You get this error because there is a problem with the rpc.statd service.</span></p>
<p><span lang="en-us">Check if it is running:</span></p>
<pre>
ps -ef &#124; grep stat
</pre>
<p><span lang="en-us">You can start this service per hand by running:</span></p>
<pre>
/sbin/rpc.statd
</pre>
<p><span lang="en-us">Now your subversion commit should work.</span></p>
<p><span lang="en-us">This service is part of &#8220;nfs-common&#8221; you start this service on system startup:</span></p>
<pre>
update-rc.d nfs-common defaults
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mogilowski.net/lang/en-us/2009/01/31/install-subversion-repository-on-a-nfs-share/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 19/34 queries in 0.025 seconds using apc
Object Caching 469/480 objects using apc

Served from: www.mogilowski.net @ 2012-05-22 17:58:40 -->
