You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Disc Magnet <di...@gmail.com> on 2010/04/13 20:01:39 UTC

Unable to checkout files: Can't open file: Permission denied

This is my configuration.

<Location /myrepository>
  DAV svn
  SVNParentPath /home/magnet/myrepository/
</Location>

The checkout command runs fine:

svn co http://localhost/myrepository/hachumachu

However, the commit command results in this error:

magnet@faku:~/hachumachu$ svn commit -m "Additional line"
svn: Commit failed (details follow):
svn: Can't open file
'/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
denied

This appears in my Apache error log:

[Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Could not create
activity /myrepository/hachumachu/!svn/act/a3cb143e-3098-499b-b7d1-5d5b7e982881.
 [500, #0]
[Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] could not begin
a transaction  [500, #13]
[Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Can't open file
'/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
denied  [500, #13]

In case you want to see the permissions on the folders.

magnet@faku:~/myrepository$ ls -l
total 12
drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu

Please help.

Re: Unable to checkout files: Can't open file: Permission denied

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 13, 2010, at 16:36, David Bartmess wrote:
> On 4/13/2010 3:27 PM, Disc Magnet wrote:
>> I did that. I ran these two commands.
>> 
>> chgrp -R www-data myrepository
>> chown -R 770 myrepository
>> 
>> Now, I get this error:
>> 
>> $ svn commit -m "Updating"
>> svn: Commit failed (details follow):
>> svn: Could not open the requested SVN filesystem
> 
> Probably your http server isn't pointing to the correct path.
> Check your Location in the httpd.conf
> 
> i.e.,
> 
> <Location /repos>
> SVNPath /home/magnet/myrepository
> </Location>

No, he already showed us that SVNParentPath, the way he originally had it, is correct:


On Tue, Apr 13, 2010 at 10:01 PM, Disc Magnet wrote:
> <Location /myrepository>
>  DAV svn
>  SVNParentPath /home/magnet/myrepository/
> </Location>

[snip]

> magnet@faku:~/myrepository$ ls -l
> total 12
> drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu


He also said checking out works fine, so the path must be correct.

> The checkout command runs fine:
> 
> svn co http://localhost/myrepository/hachumachu


Unless he's changed the configuration. What does it say in the Apache error log - it should show the specific path where it's now looking for (and not finding) your repository.

Re: Unable to checkout files: Can't open file: Permission denied

Posted by David Bartmess <di...@edingo.net>.
On 4/13/2010 3:27 PM, Disc Magnet wrote:
> I did that. I ran these two commands.
>
> chgrp -R www-data myrepository
> chown -R 770 myrepository
>
> Now, I get this error:
>
> $ svn commit -m "Updating"
> svn: Commit failed (details follow):
> svn: Could not open the requested SVN filesystem
>
> Please help.
>    

Probably your http server isn't pointing to the correct path.
Check your Location in the httpd.conf

i.e.,

<Location /repos>
SVNPath /home/magnet/myrepository
</Location>


-- 
"Dingo" Dave Bartmess
Broomfield, CO. USA
http://edingo.net


Re: Unable to checkout files: Can't open file: Permission denied

Posted by Disc Magnet <di...@gmail.com>.
I could resolve the issue by adding www-data as a group owner of all
the directories files in the repository. Thanks Erik.

Jeremy, yes, I meant chmod. I typed it 'chown' instead by mistake.

On Wed, Apr 14, 2010 at 6:35 PM, Jeremy Mordkoff <jl...@zeevee.com> wrote:
>
>
> did you mean
>              chmod -R 770 myrepository
> ?
>
>
> -----Original Message-----
> From: Disc Magnet [mailto:discmagnet@gmail.com]
> Sent: Tue 4/13/2010 5:27 PM
> To: Erik Andersson
> Cc: users@subversion.apache.org
> Subject: Re: Unable to checkout files: Can't open file: Permission denied
>
> I did that. I ran these two commands.
>
> chgrp -R www-data myrepository
> chown -R 770 myrepository
>
> Now, I get this error:
>
> $ svn commit -m "Updating"
> svn: Commit failed (details follow):
> svn: Could not open the requested SVN filesystem
>
> Please help.
>
> On Wed, Apr 14, 2010 at 1:59 AM, Erik Andersson <ki...@gmail.com> wrote:
>> The user running apache needs write access to your repository.
>> Cheers / Erik
>>
>> On Tue, Apr 13, 2010 at 10:01 PM, Disc Magnet <di...@gmail.com>
>> wrote:
>>>
>>> This is my configuration.
>>>
>>> <Location /myrepository>
>>>  DAV svn
>>>  SVNParentPath /home/magnet/myrepository/
>>> </Location>
>>>
>>> The checkout command runs fine:
>>>
>>> svn co http://localhost/myrepository/hachumachu
>>>
>>> However, the commit command results in this error:
>>>
>>> magnet@faku:~/hachumachu$ svn commit -m "Additional line"
>>> svn: Commit failed (details follow):
>>> svn: Can't open file
>>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>>> denied
>>>
>>> This appears in my Apache error log:
>>>
>>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Could not create
>>> activity
>>> /myrepository/hachumachu/!svn/act/a3cb143e-3098-499b-b7d1-5d5b7e982881.
>>>  [500, #0]
>>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] could not begin
>>> a transaction  [500, #13]
>>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Can't open file
>>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>>> denied  [500, #13]
>>>
>>> In case you want to see the permissions on the folders.
>>>
>>> magnet@faku:~/myrepository$ ls -l
>>> total 12
>>> drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
>>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
>>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu
>>>
>>> Please help.
>>
>>
>
>

RE: Unable to checkout files: Can't open file: Permission denied

Posted by Jeremy Mordkoff <jl...@ZeeVee.Com>.

did you mean 
             chmod -R 770 myrepository
? 


-----Original Message-----
From: Disc Magnet [mailto:discmagnet@gmail.com]
Sent: Tue 4/13/2010 5:27 PM
To: Erik Andersson
Cc: users@subversion.apache.org
Subject: Re: Unable to checkout files: Can't open file: Permission denied
 
I did that. I ran these two commands.

chgrp -R www-data myrepository
chown -R 770 myrepository

Now, I get this error:

$ svn commit -m "Updating"
svn: Commit failed (details follow):
svn: Could not open the requested SVN filesystem

Please help.

On Wed, Apr 14, 2010 at 1:59 AM, Erik Andersson <ki...@gmail.com> wrote:
> The user running apache needs write access to your repository.
> Cheers / Erik
>
> On Tue, Apr 13, 2010 at 10:01 PM, Disc Magnet <di...@gmail.com> wrote:
>>
>> This is my configuration.
>>
>> <Location /myrepository>
>>  DAV svn
>>  SVNParentPath /home/magnet/myrepository/
>> </Location>
>>
>> The checkout command runs fine:
>>
>> svn co http://localhost/myrepository/hachumachu
>>
>> However, the commit command results in this error:
>>
>> magnet@faku:~/hachumachu$ svn commit -m "Additional line"
>> svn: Commit failed (details follow):
>> svn: Can't open file
>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>> denied
>>
>> This appears in my Apache error log:
>>
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Could not create
>> activity
>> /myrepository/hachumachu/!svn/act/a3cb143e-3098-499b-b7d1-5d5b7e982881.
>>  [500, #0]
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] could not begin
>> a transaction  [500, #13]
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Can't open file
>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>> denied  [500, #13]
>>
>> In case you want to see the permissions on the folders.
>>
>> magnet@faku:~/myrepository$ ls -l
>> total 12
>> drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu
>>
>> Please help.
>
>


Re: Unable to checkout files: Can't open file: Permission denied

Posted by Disc Magnet <di...@gmail.com>.
I did that. I ran these two commands.

chgrp -R www-data myrepository
chown -R 770 myrepository

Now, I get this error:

$ svn commit -m "Updating"
svn: Commit failed (details follow):
svn: Could not open the requested SVN filesystem

Please help.

On Wed, Apr 14, 2010 at 1:59 AM, Erik Andersson <ki...@gmail.com> wrote:
> The user running apache needs write access to your repository.
> Cheers / Erik
>
> On Tue, Apr 13, 2010 at 10:01 PM, Disc Magnet <di...@gmail.com> wrote:
>>
>> This is my configuration.
>>
>> <Location /myrepository>
>>  DAV svn
>>  SVNParentPath /home/magnet/myrepository/
>> </Location>
>>
>> The checkout command runs fine:
>>
>> svn co http://localhost/myrepository/hachumachu
>>
>> However, the commit command results in this error:
>>
>> magnet@faku:~/hachumachu$ svn commit -m "Additional line"
>> svn: Commit failed (details follow):
>> svn: Can't open file
>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>> denied
>>
>> This appears in my Apache error log:
>>
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Could not create
>> activity
>> /myrepository/hachumachu/!svn/act/a3cb143e-3098-499b-b7d1-5d5b7e982881.
>>  [500, #0]
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] could not begin
>> a transaction  [500, #13]
>> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Can't open file
>> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
>> denied  [500, #13]
>>
>> In case you want to see the permissions on the folders.
>>
>> magnet@faku:~/myrepository$ ls -l
>> total 12
>> drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
>> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu
>>
>> Please help.
>
>

Re: Unable to checkout files: Can't open file: Permission denied

Posted by Erik Andersson <ki...@gmail.com>.
The user running apache needs write access to your repository.

Cheers / Erik

On Tue, Apr 13, 2010 at 10:01 PM, Disc Magnet <di...@gmail.com> wrote:

> This is my configuration.
>
> <Location /myrepository>
>  DAV svn
>  SVNParentPath /home/magnet/myrepository/
> </Location>
>
> The checkout command runs fine:
>
> svn co http://localhost/myrepository/hachumachu
>
> However, the commit command results in this error:
>
> magnet@faku:~/hachumachu$ svn commit -m "Additional line"
> svn: Commit failed (details follow):
> svn: Can't open file
> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
> denied
>
> This appears in my Apache error log:
>
> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Could not create
> activity
> /myrepository/hachumachu/!svn/act/a3cb143e-3098-499b-b7d1-5d5b7e982881.
>  [500, #0]
> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] could not begin
> a transaction  [500, #13]
> [Wed Apr 14 01:04:58 2010] [error] [client 127.0.1.1] Can't open file
> '/home/magnet/myrepository/hachumachu/db/txn-current-lock': Permission
> denied  [500, #13]
>
> In case you want to see the permissions on the folders.
>
> magnet@faku:~/myrepository$ ls -l
> total 12
> drwxr-xr-x 4 magnet magnet 4096 2010-04-11 18:13 ondalabondala
> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 18:12 hachumachu
> drwxr-xr-x 6 magnet magnet 4096 2010-04-11 19:36 haggupaggu
>
> Please help.
>