subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Jensen <han...@riseup.net>
Subject sqlite[S8]: attempt to write a readonly database
Date Sun, 10 Apr 2016 17:29:03 GMT
Hi,

I am *very* new to svn. I just set up a server (svnserve, version 1.8.14 (r1692801)) on OpenBSD-5.8.
(See http://daemonforums.org/showpost.php?p=58638&postcount=2).

The repository was created with: doas -u _svn svnadmin create /var/svn/project-A
The server runs as: doas -u _svn svnserve -d -r /var/svn
Directories were created with: svn mkdir svn://minerva.bohemia.net/project-A/{trunk,tags,branches}


Then I did an: svn checkout svn://minerva.bohemia.net/project-A
I copied some files into the new ~/project-A/trunk

Then from ~/project-A/trunk: 

svn import bin svn://minerva.bohemia.net/project-A/trunk/bin
Authentication realm: <svn://minerva.bohemia.net:3690> minerva.bohemia.net
Password for 'hanzer': **********

Adding         bin/foo.tcl
Adding         bin/getem.tcl
Adding         bin/update_db.tcl

Committed revision 5.

Warning: post commit FS processing had error:
sqlite[S8]: attempt to write a readonly database
------------------------------------------------

Is this a known problem? I see rep-cache.db might be the problem:

ls -la /var/svn/project-A/db
total 72
drwxr-sr-x  6 _svn  _svn   512 Apr 10 13:10 ./
drwxr-xr-x  6 _svn  _svn   512 Apr  9 17:35 ../
-rw-r--r--  1 _svn  _svn     2 Apr 10 13:10 current
-r--r--r--  1 _svn  _svn    22 Apr  9 17:35 format
-rw-r--r--  1 _svn  _svn     5 Apr  9 17:35 fs-type
-rw-r--r--  1 _svn  _svn  6838 Apr  9 17:35 fsfs.conf
-rw-r--r--  1 _svn  _svn     2 Apr  9 17:35 min-unpacked-rev
-rw-r--r--  1 root  _svn  3072 Apr  9 17:56 rep-cache.db
drwxr-xr-x  3 _svn  _svn   512 Apr  9 17:35 revprops/
drwxr-xr-x  3 _svn  _svn   512 Apr  9 17:35 revs/
drwxr-xr-x  2 _svn  _svn   512 Apr 10 13:10 transactions/
-rw-r--r--  1 _svn  _svn     2 Apr 10 13:10 txn-current
-rw-r--r--  1 _svn  _svn     0 Apr  9 17:35 txn-current-lock
drwxr-xr-x  2 _svn  _svn   512 Apr 10 13:10 txn-protorevs/
-rw-r--r--  1 _svn  _svn    37 Apr  9 17:35 uuid
-rw-r--r--  1 _svn  _svn     0 Apr  9 17:35 write-lock

But those permissions were set up automatically by svn. Is it a reasonable fix to just manually
change rep-cache.db permissions or ownership? Or did I make a mistake when setting up the
environment?

Mime
View raw message