克隆化石时出错:“尝试编写只读数据库”

时间:2013-01-20 01:43:24

标签: repository clone fossil

这是我第一次尝试在我的个人服务器上托管化石库。当我尝试在Windows 7上克隆项目时,我收到一条奇怪的消息:

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

错误消息是什么意思?我哪里出错了?

1 个答案:

答案 0 :(得分:1)

好吧,我想我找出了写作问题。我已将每个化石文件的组权限更改为www-data,并允许该组进行读写。

$ sudo chown :www-data *.fossil
$ sudo chmod g+w *.fossil

这似乎解决了这个问题。