This forum is no longer active. Please post your questions to our new community site

Forums Subversion

Can't open file '/opt/bitnami/repository/db/txn-current-lock': Permission denied

Subscribe to Can't open file '/opt/bitnami/repository/db/txn-current-lock': Permission denied 8 post(s), 3 voice(s)

 
Avatar jpsignups 4 post(s)

I am using the ubuntu with subversion virtual appliance. I can open the repository in TortoiseSVn, but have been unable to write (commit) anything and receive this error.
I have tried the following:

- changing ownership of the repository
- creating a new user and group and assigning ownership.
- logging in using bitnami, user and self created users
- changing the subversion conf directory files.

Please excuse my ignorance, but what am I missing? Any help would be appreciated.

Thanks

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Could you check the subversion server process? Who is the user that is running that process?

$ ps aux | grep svnserve

Try to modify the “/opt/bitnami/repository/” folder and its sub-folders permissions.

 
Avatar jpsignups 4 post(s)

That command yielded:

root 659 0.0 0.1 4928 924 ? Ss 13:48 0:00 /opt/bitnami/subversion/bin/.svnserve.bin -d -r /opt/bitnami/repository —listen-port=3690 —pid-file=/opt/bitnami/subversion/tmp/svnserve.pid
bitnami 706 0.0 0.1 3320 784 pts/0 S+ 14:09 0:00 grep svnserve

so I assume it is running as root.

The /opt/bitnami/repository folders have the following permissions:

drwxr-xr-x 2 root root 4096 2010-09-07 18:49 conf
drwxr-sr-x 6 root root 4096 2010-05-05 09:15 db
r-r—r— 1 root root 2 2010-05-05 09:15 format
drwxr-xr-x 2 root root 4096 2010-05-05 09:15 hooks
drwxr-xr-x 2 root root 4096 2010-05-05 09:15 locks
rw-r-r— 1 root root 229 2010-05-05 09:15 README.txt

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Are you configuring the users/password in the “conf/svnserce.conf” file or you are using SSH authentication? If you use the SSH authentication it is necessary configure the repository permissions. This quick guide could be help you http://svn.haxx.se/dev/archive-2004-03/0253.shtml

 
Avatar jpsignups 4 post(s)

I am trying to use http from tortoise svn to access it and basically just trying to create a folder so that I can test adding to the repository.

My problem is that I have previously set up collabnet’s subversion 1.4 on a windows server, so configuring it was easier for me, but I want to set this up in this stack provided by bitnami. The entires stack comes ready to go, but it doesn’t seem to want to behave. Perhaps the problem is that I need to actually create a repository, set up users and not assume one was created, although the impression I got was that it was ready to go. Unfortuantely I am very green to the linux world and lightweight with subversion. I am not altering the svnserve.conf file at all (this is the way I did it on Windows, but that may change).

I will attempt to create subversion users and set up project repositories if need be.
Is there a way to tell if SSH is set up, and if I set it up, how would I connect to the repository from tortoisesvn.

Thanks for all your help.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

In the link that I sent you you can find the info to configure the Subversion server with SSH. If you prefer a basic authentication you can use the basic configuration that you find in the README file https://bitnami.com/files/stacks/subversion/1.6….

 
Avatar jpsignups 4 post(s)

Thank you for all your help. I ended up using SVN:// and adjusting the svnserve.conf file.

 
Avatar jofil 2 post(s)

the following command worked for me

chown -R root:root /opt/bitnami/repository

Forums Subversion