Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn problem (read-only lock)

Tags:

svn

I'm having a slight problem with my svn repositories.

When I try checking out/updating/committing I get the following error:

svn: Can't open file '/home/svn/bl_webdev/db/txn-current-lock': Read-only file system

Is this likely a file permission issue?

Thanks

like image 649
sipher_z Avatar asked Feb 22 '26 08:02

sipher_z


2 Answers

Read only filesystem indicates that the volume that was mounted is read-only. Is it a SD-Card (maybe write protected), or a volume on some fileserver that might be read-only for some reason.

Type mount without any parameter to see if the filesystem at that place was mounted read-only.

On Ubuntu boxes another possibility to have a read-only system is that there were errors on the partition (remount ro parameter after errors). In this case running a fsck and reboot might help out.

like image 170
jdehaan Avatar answered Feb 24 '26 21:02

jdehaan


Yes, likely it's permissions. Make sure the user the svn server is run under has permission to write to the repository and all files/subdirectories. Remember that if you're using svn through Apache then the user will be www.

like image 44
Adam Avatar answered Feb 24 '26 22:02

Adam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!