{"id":3309,"date":"2014-12-03T10:31:05","date_gmt":"2014-12-03T10:31:05","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=3309"},"modified":"2015-08-31T09:16:39","modified_gmt":"2015-08-31T09:16:39","slug":"subversion-server","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=3309","title":{"rendered":"Subversion Server"},"content":{"rendered":"<h3>FreeBSD<\/h3>\n<p><a href=\"http:\/\/www.amitabhkant.com\/installing-subversion-server-on-freebsd-using-svnserve\/\">Installing Subversion server on FreeBSD using svnserve<\/a><br \/>\n<a href=\"http:\/\/serverzeit.de\/tutorials\/subversion-server\/subversion-verwenden\">Subversion verwenden<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ pkg search subversion\r\nsubversion-1.8.10_3\r\nsubversion16-1.6.23_8\r\nsubversion17-1.7.18\r\n&#x5B;...]\r\n\r\n$ pkg install subversion-1.8.10_3\r\n\r\n$ pw groupadd svn;\r\n$ pw adduser svn -g svn -s \/usr\/sbin\/nologin\r\n$ mkdir -p \/usr\/home\/svn\/repos\r\n$ chown -R svn:svn \/usr\/home\/svn\r\n\r\n$ vi \/etc\/rc.conf\r\nsvnserve_enable=&quot;YES&quot;\r\nsvnserve_data=&quot;\/usr\/home\/svn\/repos&quot;\r\n\r\n$ service svnserve start\r\nStarting svnserve.\r\n\r\n$ ps aux | grep svn\r\nsvn     1988   0.0  0.1  54360  4216  -  Ss   11:00AM  0:00.00 \/usr\/local\/bin\/svnserve -d --listen-port=3690 --listen-host 0.0.0.0 -r \/usr\/home\/svn\/repos\r\n\r\n$ sockstat | grep svnserve\r\nsvn      svnserve   1988  3  tcp4   *:3690                *:*\r\n\r\n$ svnadmin create \/usr\/home\/svn\/repos\/myfirstrepo\r\n$ cd \/home\/svn\/repos\/myfirstrepo\/conf\r\n\r\n$ vi passwd\r\nandreas = andreas-secret\r\n\r\n$ vi authz\r\n&#x5B;\/]\r\nandreas = rw\r\n\r\n$ vi svnserve.conf\r\n&#x5B;general]\r\nanon-access = none\r\nauth-access = write\r\npassword-db = passwd\r\nauthz-db = authz\r\nrealm = My First Repository\r\n&#x5B;...]\r\n\r\n<\/pre>\n<h3>FAQ<\/h3>\n<h4>Couldn&#8217;t open rep-cache database<\/h4>\n<p><a href=\"http:\/\/thinlight.org\/2013\/12\/21\/compiling-subversion-1-8\/\">Compiling Subversion 1.8<\/a><\/p>\n<table>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2014\/12\/tortoise_svn_commit_rep-cache.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2014\/12\/tortoise_svn_commit_rep-cache-300x141.png\" alt=\"tortoise_svn_commit_rep-cache\" width=\"300\" height=\"141\" class=\"alignleft size-medium wp-image-3314\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2014\/12\/tortoise_svn_commit_rep-cache-300x141.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2014\/12\/tortoise_svn_commit_rep-cache-624x294.png 624w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2014\/12\/tortoise_svn_commit_rep-cache.png 768w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ svn checkout file:\/\/\/usr\/home\/svn\/repos\/myfirstrepo\r\nsvn: E200029: Couldn't perform atomic initialization\r\nsvn: E200030: SQLite compiled for 3.8.7.2, but running with 3.8.5\r\n\r\n$ pkg info subversion | grep Version\r\nVersion        : 1.8.10_3\r\n\r\n$ pkg info sqlite3 | grep Version\r\nVersion        : 3.8.5_1\r\n\r\n$ pkg upgrade\r\nUpdating FreeBSD repository catalogue...\r\nFreeBSD repository is up-to-date.\r\nAll repositories are up-to-date.\r\nChecking for upgrades (31 candidates): 100%\r\nThe following 30 packages will be affected (of 0 checked):\r\n\r\nNew packages to be INSTALLED:\r\n        &#x5B;...]\r\n\r\nInstalled packages to be UPGRADED:\r\n        sqlite3: 3.8.5_1 -&gt; 3.8.7.2\r\n        &#x5B;...]\r\n\r\nInstalled packages to be REINSTALLED:\r\n        &#x5B;...]\r\n\r\nProceed with this action? &#x5B;y\/N]: y\r\n&#x5B;...]\r\nFetching sqlite3-3.8.7.2.txz: 100%  685 KB 701.0k\/s    00:01\r\n&#x5B;...]\r\n&#x5B;27\/30] Upgrading sqlite3 from 3.8.5_1 to 3.8.7.2: 100%\r\n&#x5B;...]\r\n\r\n$ svn checkout file:\/\/\/usr\/home\/svn\/repos\/myfirstrepo\r\nA    myfirstrepo\/tags\r\nA    myfirstrepo\/trunk\r\nA    myfirstrepo\/branches\r\nChecked out revision 1.\r\n<\/pre>\n<h4>txn-current-lock: Permission denied<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ svn checkout file:\/\/\/home\/svn\/repos\/project_2015_08_31_a\r\n$ mkdir test\r\n$ cd project_2015_08_31_a\r\n$ echo &quot;hallo&quot; &gt; test\/welt\r\n$ svn add test\r\nA         test\r\nA         test\/welt\r\n\r\n$ svn commit -m &quot;add test&quot;\r\nsvn: E000013: Commit failed (details follow):\r\nsvn: E000013: Can't open file '\/home\/svn\/repos\/project_2015_08_31_a\/db\/txn-current-lock': Permission denied\r\n\r\n$ cd \/home\/svn\/repos\r\n$ ls -la\r\ndrwxr-xr-x  6 root  svn  512 Aug 31 10:46 project_2015_08_31_a\r\n\r\n$ chown -R svn:svn project_2015_08_31_a\r\n$ \/usr\/local\/etc\/rc.d\/svnserve restart\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n=&gt; use sockets (--listen-port=3690 --listen-host 0.0.0.0)\r\n$ svn checkout svn:\/\/localhost\/project_2015_08_31_a\/\r\n$ mkdir test\r\n$ cd project_2015_08_31_a\r\n$ echo &quot;hallo&quot; &gt; test\/welt\r\n$ svn add test\r\nA         test\r\nA         test\/welt\r\n\r\n$ svn commit -m &quot;add test&quot;\r\nsvn: E170001: Commit failed (details follow):\r\nsvn: E170001: Authorization failed\r\n<\/pre>\n<p>Use username\/password.<br \/>\nEdit repository configuration.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ svn checkout svn:\/\/localhost\/project_2015_08_31_a\/\r\nAuthentication realm: &lt;svn:\/\/localhost:3690&gt; My First Repository\r\nUsername: andreas\r\nPassword for 'andreas': ********\r\nChecked out revision 0.\r\n\r\n$  cd project_2015_08_31_a\r\n$  mkdir test\r\n$  echo &quot;hallo&quot; &gt; test\/welt\r\n$  svn add test\r\nA         test\r\nA         test\/welt\r\n$ svn commit -m &quot;add test&quot;\r\nAdding         test\r\nAdding         test\/welt\r\nTransmitting file data .\r\nCommitted revision 1.\r\n\r\n$  echo &quot;welt&quot; &gt; test\/hallo\r\n$ svn add test\/welt\r\n$ svn add test\/hallo\r\nA         test\/hallo\r\n$ svn commit -m &quot;add test&quot;\r\nAdding         test\/hallo\r\nTransmitting file data .\r\nCommitted revision 2.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD Installing Subversion server on FreeBSD using svnserve Subversion verwenden $ pkg search subversion subversion-1.8.10_3 subversion16-1.6.23_8 subversion17-1.7.18 &#x5B;&#8230;] $ pkg install subversion-1.8.10_3 $ pw groupadd svn; $ pw adduser svn -g svn -s \/usr\/sbin\/nologin $ mkdir -p \/usr\/home\/svn\/repos $ chown -R svn:svn \/usr\/home\/svn $ vi \/etc\/rc.conf svnserve_enable=&quot;YES&quot; svnserve_data=&quot;\/usr\/home\/svn\/repos&quot; $ service svnserve start Starting svnserve. $ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3309","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3309"}],"version-history":[{"count":12,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3309\/revisions"}],"predecessor-version":[{"id":3934,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/3309\/revisions\/3934"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}