I am struggling to see what is tripping me up when a single repository works
fine, but multiple repositories within a directory fails as follows:
https://mail.google.com/mail/ca/u/0/#inbox

$ cat repo.cgi
#!/home/sites/my.domain/bin/fossil
repository: /home/sites/my.domain/repos

http://my.domain/cgi-bin/repo.cgi/repo1
>>>>
SQLITE_CANTOPEN: cannot open file at line 28175 of [7e10a62d0e]
SQLITE_CANTOPEN: os_unix.c:28175: (21) open(/home/sites/my.domain/repos) -
Is a directory
Database Error
[/home/sites/my.domain/repos]: unable to open database file
...

The following edit serves a single repository without error:

$ cat repo.cgi
#!/home/sites/my.domain/bin/fossil
repository: /home/sites/my.domain/repos/repo1.fossil

Some environment data from the server gives me no clue:

$ cat bash-test.cgi
#!/bin/bash
echo "Content-Type: text/plain"
env | sort

DOCUMENT_ROOT=/home/sites/my.domain/public_html/
GATEWAY_INTERFACE=CGI/1.1
HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=en-gb,en;q=0.5
HTTP_CONNECTION=keep-alive
HTTP_HOST=my.domain
HTTP_USER_AGENT=Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0)
Gecko/20100101 Firefox/21.0
PATH=/usr/local/bin:/usr/bin:/bin
PWD=/home/sites/my.domain/cgi-bin
QUERY_STRING=
REMOTE_ADDR=my.ip.61.0
REMOTE_PORT=22428
REQUEST_METHOD=GET
REQUEST_URI=/cgi-bin/bash-test.cgi
SCRIPT_FILENAME=/home/sites/my.domain/cgi-bin/bash-test.cgi
SCRIPT_NAME=/cgi-bin/bash-test.cgi
SCRIPT_URI=http://my.domain/cgi-bin/bash-test.cgi
SCRIPT_URL=/cgi-bin/bash-test.cgi
SERVER_ADDR=79.170.44.123
[email protected]
SERVER_NAME=my.domain
SERVER_PORT=80
SERVER_PROTOCOL=HTTP/1.1
SERVER_SIGNATURE=<address>Apache/2 Server at my.domain Port 80</address>
SERVER_SOFTWARE=Apache/2
SHLVL=1
_=/usr/bin/env

$ fossil version
This is fossil version 1.25 [d2e07756d9] 2013-02-16 00:04:35 UTC

A further test on my local machine gives me:

$ cat test.cgi
#!/usr/bin/fossil
repository: /home/nrb/987mb

nrb@nrb-ThinkPad-T61:~$ fossil cgi test.cgi
Status: 200 OK
X-Frame-Options: SAMEORIGIN
Cache-control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 433

<p class="generalError">
SQLITE_CANTOPEN: cannot open file at line 28175 of [7e10a62d0e]
</p>
<p class="generalError">
SQLITE_CANTOPEN: os_unix.c:28175: (21) open(/home/nrb/987mb) - Is a directory
</p>
<h1>Database Error</h1>
<pre>[/home/nrb/987mb]: unable to open database file</pre>
<p>If you have recently updated your fossil executable, you might
need to run "fossil all rebuild" to bring the repository
schemas up to date.
</p>

Experimenting with a notfound: /repo1 does not change behaviour.

Any help would be much appreciated!

BR/ Nigel
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to