Steve K. ([info]geckoblue) wrote,
  • Mood: working

Subversion Version Control Bug: attempt to write a readonly database

I found zero help on Google when I was trying to diagnose this bug. I set up a new copy of subversion 1.6.2 and did a dump/merge of a subversion 1.4.6 database into the new system. I made a change to a file and was all set to commit the change, but when I ran a commit I got the following messages:

[error] Could not MERGE resource "/svn/repo/!svn/act/[UUID]" into "/svn/repo/some/path". [409, #0]
[error] An error occurred while committing the transaction. [409, #200031]
[error] attempt to write a readonly database [409, #200031]
[error] attempt to write a readonly database [409, #200031]

After hunting Google to no avail, I decided to examine the permissions on the repository on the subversion server. I found a .db file that did not have group write permissions (because the repository is not owned by apache). After adding group-write permission to the file "/svn/repopath/db/rep-cache.db", the error went away and normal commit behavior resumed as I originally expected. I will have to blame this on a bug in the svnadmin program which appears to not properly create the permissions on this db file.

I hope this helps the many folks out there that run linux/apache/subversion.
Tags: version control

  • Post a new comment

    Error

    Your reply will be screened

    Your IP address will be recorded 

  • 45 comments
Previous
← Ctrl← Alt
  • 1
  • 2
Next
Ctrl →Alt →

Anonymous

August 11 2009, 16:23:34 UTC 2 years ago

That fixed it!

Thanks for that.
We had the same problem today, upgrading a repo from 1.4.x to 1.6.4. After playing wack-a-mole with permission errors we hit the wall when we got to the 'attempt to write a readonly database' error. Your suggestion fixed it.

Anonymous

November 5 2009, 13:25:13 UTC 2 years ago

Thanks! I had the same problem, with a new repository. You saved me hours of searching (:

Anonymous

November 19 2009, 03:51:16 UTC 2 years ago

Thank you. That worked.

Michael N.
Chapel Hill, NC

Anonymous

December 1 2009, 23:19:34 UTC 2 years ago

Thanks!

This fixed it for me .. saved me tons of time. Thanks.

[info]fox2mike

December 18 2009, 00:13:59 UTC 2 years ago

Awesome :) Saved a shitload of time for me there :)

Anonymous

January 10 2010, 21:47:59 UTC 2 years ago

Another thank-you here! :)

Anonymous

January 29 2010, 16:05:01 UTC 2 years ago

Thanks a lot !

Vladan.

Anonymous

March 1 2010, 17:47:57 UTC 2 years ago

Thanks

THANK YOU!!!

Anonymous

March 10 2010, 03:34:35 UTC 2 years ago

Thank you from St. Louis

Anonymous

April 14 2010, 13:11:18 UTC 2 years ago

Thanks Thanks Thanks

Thanks Thanks Thanks, you have saved me lot of time. Keep up the good work buddy.

Cheers

Anonymous

May 24 2010, 21:00:03 UTC 2 years ago

Thanks!

Nothing to add that has not been already said. Thank you!

Anonymous

May 24 2010, 21:41:26 UTC 2 years ago

More thanks.

for saving my time.

Anonymous

July 26 2010, 09:48:02 UTC 1 year ago

Thanks

Thanks a lot for saving me a lot of time. Actually I did notice that the problem may be because of this file is (probably) created later than rest of the repo...
I have a repo for wwwroot files and I do access them both via web and locally.. I did chown -R the whole directory to www user still this file had root as its owner (root user access the repo directly when exporting to the actual wwwroot)

Anonymous

August 4 2010, 10:08:26 UTC 1 year ago

Thanks a lot

Thank you for your research, it is very useful! It seems that many people have this same problem.

Anonymous

August 4 2010, 13:00:11 UTC 1 year ago

Gracias (Thank you in Spanish)

Muchas Gracias!!! Thank you very much!

Anonymous

August 18 2010, 12:08:34 UTC 1 year ago

sweet

big time saver, thank you very much for posting

Anonymous

September 9 2010, 07:54:50 UTC 1 year ago

Thank you very much. It helped me a lot.

Anonymous

September 16 2010, 14:31:16 UTC 1 year ago

Thank You.

Anonymous

October 13 2010, 04:24:16 UTC 1 year ago

It really save hours!

Your reply was really helpful for me and I appreciate that when you had faced this problem you fixed it and then posted the solution on the web for the sake of your developer's community. Thank a ton.

Anonymous

November 4 2010, 10:47:21 UTC 1 year ago

thank you in basque!

in linux... always the reason are the permisions... but, thank you...
Eskerrik asko!!!

Anonymous

November 9 2010, 12:53:08 UTC 1 year ago

Thanks!

Yet another thanks!

Anonymous

November 10 2010, 11:52:00 UTC 1 year ago

Thanks!

Thanks a Lot!!

[info]ivi

November 21 2010, 16:07:29 UTC 1 year ago

thanks!

Anonymous

December 29 2010, 15:48:14 UTC 1 year ago

Thanks in german

Danke!

Anonymous

December 30 2010, 23:01:44 UTC 1 year ago

My thanks too!

Saved me lots of time.

Anonymous

December 31 2010, 15:02:20 UTC 1 year ago

Thank you! It work for me.

Anonymous

January 11 2011, 20:17:34 UTC 1 year ago

Thanks! works now

Anonymous

February 7 2011, 11:25:20 UTC 1 year ago

Great help, thank you!!!
Previous
← Ctrl← Alt
  • 1
  • 2
Next
Ctrl →Alt →
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…