Re: [fossil-users] Stupid newbie question: attempt to write a readonly database

2012-07-02 Thread Robin Shannon
Thanks heaps. That was a pretty stupid mistake.

Just for the next person with the same problem, my Fossil directory
and cgi-bin directory were both owned by root for some reason. To fix
this I ran

$ sudo chown -R USERNAME:GROUP cgi-bin/
$ sudo chown -R USERNAME:GROUP Fossil/

with USERNAME and GROUP, obviously being replaced with my username and group.

Thanks again.


On 1 July 2012 20:28, Lluís Batlle i Rossell  wrote:
> On Sun, Jul 01, 2012 at 12:16:55PM +0200, Stephan Beal wrote:
>> On Sun, Jul 1, 2012 at 12:16 PM, Stephan Beal  wrote:
>>
>> > On Sun, Jul 1, 2012 at 11:47 AM, Robin Shannon 
>> > wrote:
>> >
>> >> SQLITE_CANTOPEN: cannot open file at line 27473 of [2677848087]
>> >>
>> >
>> > The directory containing the db also has to be writable by the CGI process.
>> >
>>
>> PS: that's necessary for the db journaling files.
>
> Notice that the user running the cgi may not be the user owning the db file 
> and
> folder.
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users



-- 
http://robinshannon.net
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Stupid newbie question: attempt to write a readonly database

2012-07-01 Thread Lluís Batlle i Rossell
On Sun, Jul 01, 2012 at 12:16:55PM +0200, Stephan Beal wrote:
> On Sun, Jul 1, 2012 at 12:16 PM, Stephan Beal  wrote:
> 
> > On Sun, Jul 1, 2012 at 11:47 AM, Robin Shannon wrote:
> >
> >> SQLITE_CANTOPEN: cannot open file at line 27473 of [2677848087]
> >>
> >
> > The directory containing the db also has to be writable by the CGI process.
> >
> 
> PS: that's necessary for the db journaling files.

Notice that the user running the cgi may not be the user owning the db file and
folder.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Stupid newbie question: attempt to write a readonly database

2012-07-01 Thread Stephan Beal
On Sun, Jul 1, 2012 at 12:16 PM, Stephan Beal  wrote:

> On Sun, Jul 1, 2012 at 11:47 AM, Robin Shannon wrote:
>
>> SQLITE_CANTOPEN: cannot open file at line 27473 of [2677848087]
>>
>
> The directory containing the db also has to be writable by the CGI process.
>

PS: that's necessary for the db journaling files.


-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Stupid newbie question: attempt to write a readonly database

2012-07-01 Thread Stephan Beal
On Sun, Jul 1, 2012 at 11:47 AM, Robin Shannon  wrote:

> SQLITE_CANTOPEN: cannot open file at line 27473 of [2677848087]
>

The directory containing the db also has to be writable by the CGI process.
What i do is stuff all my fsl files in one dir and make that dir writable
to the CGI process (which on my hoster just happens to be me - they run
CGIs as the account user).

Give that a try and let us know.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users