WebFaction
Community site: login faq

Hi, I've just load a backup in my svn app, and everything is ok, but when I commit some changes (using tortoise svn) I get an 'attempt to write a readonly database' error. I've seen that this error is related to 'rep-cache.db' permissions. When I change the permissions it doesn't show the error, but the error comes back in the next commit.

Any ideas?

Thank you in advance!

asked 15 Feb '12, 09:03

mut3nr01
3112
accept rate: 0%


When you import a repository at the command line, it changes the ownership and permissions of several files (including rep-cache.db) so that Apache is no longer able to access them.

Try running the following commands (change "svn_app" to the name of your app):

setfacl -m u:apache:rwx ~/webapps/svn_app/db/rev*/*
setfacl -m u:apache:rw- ~/webapps/svn_app/db/rep-cache.db

Then try a commit again. If the problem persists, then please open a support ticket via the control panel and we'll look into it further.

Hope that helps!

permanent link

answered 15 Feb '12, 11:27

seanf
12.2k42136
accept rate: 37%

edited 17 Feb '12, 13:41

Thank you!! It was really useful.

(15 Feb '12, 12:00) mut3nr01

This has been driving me insane.. Thx!!

(16 Feb '12, 14:00) thedrizzle

This helped, thanks. It ought to be fixed though.

(30 Apr '12, 11:03) scythal
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×41

question asked: 15 Feb '12, 09:03

question was seen: 26,373 times

last updated: 30 Apr '12, 11:03

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM