Reputation: 1155
This is the first time I've attempt to host a fossil repository on my personal server. When I try to clone a project on Windows 7, I get a bizarre message:
PS [folder]> fossil clone 'http://[hostName]/cgi-bin/repo/[repoName]' [repoName].fossil
Bytes Cards Artifacts Deltas
Sent: 53 1 0 0
Received: 218 1 0 0
Sent: 58 1 0 0
Error: Database error: attempt to write a readonly database
UPDATE event SET mtime=(SELECT m1 FROM time_fudge WHERE mid=objid) WHERE objid IN (SELECT mid FROM time_fudge);DROP TABLE time_fudge;
Received: 218 1 0 0
Total network traffic: 515 bytes sent, 858 bytes received
C:\Program Files (x86)\Fossil\fossil.exe: server returned an error - clone aborted
What does the error message mean? Where did I go wrong?
Upvotes: 1
Views: 863
Reputation: 1155
Alright, I think I figured out the writing problem. I've changed the group permissions of each fossil file to www-data
, and allowed the group to read and write.
$ sudo chown :www-data *.fossil
$ sudo chmod g+w *.fossil
That seemed to have solved that problem.
Upvotes: 1