On Sun, May 7, 2017 at 11:41 AM, Johan Corveleyn <jcorvel_at_gmail.com> wrote:
> On Fri, May 5, 2017 at 10:29 AM, Artur Yarosh
> <a.yarosh_at_kamia-security.com> wrote:
>> Hi support!
>> I can't commit any files/folders in my SVN repositories.
>> I using the server packages:
>> - subversion-1.7.14-10.el7.x86_64
>> - httpd-2.4.6-45.el7.centos.4.x86_64
>> - mod_dav_svn-1.7.14-10.el7.x86_64
>> on OS: CentOS Linux release 7.3.1611 (Core)
>> The 'httpd' daemon is running under user "apache".
>> Current rights in SVN-directory is:
>> -rw-r--r--. 1 root root 1257 May 4 16:37 authz
>> drwxr-xr-x. 6 root apache 86 May 4 16:17 branches
>> drwxr-xr-x. 6 root apache 86 May 4 16:16 site
>> drwxr-xr-x. 6 root apache 86 May 4 15:56 trunk
>> How can I fix it?
>> Error logs is below.
>> Thanks.
>>
>> -- server log --
>> ==> /var/log/httpd/error_log <==
>> [Fri May 05 11:13:25.688479 2017] [:error] [pid 2254] [client
>> 172.16.1.35:56420] could not begin a transaction [500, #13]
>> [Fri May 05 11:13:25.688497 2017] [:error] [pid 2254] [client
>> 172.16.1.35:56420] Can't open file '/svn/branches/db/txn-current-lock':
>> Permission denied [500, #13]
>> -- client log --
>> ayarosh_at_KSS-WS-07:~/Downloads/SVN/branches$ svn status testfile
>> ? testfile
>> ayarosh_at_KSS-WS-07:~/Downloads/SVN/branches$ svn add testfile
>> A testfile
>> ayarosh_at_KSS-WS-07:~/Downloads/SVN/branches$ svn commit testfile -m "first
>> commit"
>> svn: E000013: Commit failed (details follow):
>> svn: E000013: could not begin a transaction
>
> Hi Artur,
>
> Is this the first time you're trying to set up an SVN repository? If
> so, I highly recommend you read (at least the first chapters of) the
> "svn book":
>
> http://svnbook.red-bean.com/nightly/en/index.html
>
> I think you have not set up your svn repository correctly. Normally,
> you wouldn't have directories "branches" and "trunk" on your
> filesystem. Those will be inside your repository (which should be
> regarded a bit like a database, a black box if you will, with all the
> versioned items inside), but are not directly related to files /
> directories on your filesystem.
>
> A subversion repository is created by running "svnadmin create
> $REPOS". See here what the $REPOS directory will look like, after
> creation:
>
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.basics.html
>
> HTH,
> --
> Johan
Oh and, forgot to mention: subversion 1.7 is almost 6 years old and
actually not supported anymore (you might still get help on this
users-mailinglist, but the chances of it receiving any more bugfixes
are close to non-existent). You should upgrade to 1.9 if possible. See
http://subversion.apache.org/docs/release-notes/ if you want to take a
look at the 1.8 and 1.9 release notes.
--
Johan
Received on 2017-05-07 11:48:00 CEST