When following the tutorial at already in the second step (fossil ui <rep>) I can't see anything in any browser.

Here come the server console printouts:

<pre>
Fossil version no such variable: manifest_version no such variable: manifest_date
Status: 200 OK
Cache-control: private
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 87
&lt;p&gt;&lt;font color="red"&gt;no such repository: class="content"&gt;&lt;/div&gt;&lt;div class="footer"&gt;
Fossil version no such variable: manifest_version no such variable: manifest_date
&lt;hr&gt;&lt;p&gt;&lt;font color="red"&gt;&lt;b&gt;ERROR: no such variable:
</pre>

<hr>
<i>DRH replies:</i><br>
I think this problem has been fixed in more recent versions of fossil.
However, I am away from my office and cannot rebuild until this weekend.
If you can download the latest code and recompile yourself, it might
solve your problem.
<hr>


<hr><i>On 2008-06-08 05:08:53 UTC anonymous added:</i><br />
While  using mingw compilled  Fossil (version [3f706b92a5]  from 2008-06-06) on Win XP SP2,  server console printout produces similar output.
It spawn empty browser window.

<verbatim>
new myrep
fossil: unable to open database file

[sqlite table myrep is created anyway]

ui myrep
Listening for HTTP requests on TCP port 8080
Launch webbrowser: start
Type Ctrl-C to stop the HTTP server
Status: 200 OK
Cache-control: private
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 311

<p><font color="red">repository does not exists or is in an unreadable directory
:

Fossil version no such variable: manifest_version no such variable: manifest_dat
e<hr><p><font color="red"><b>ERROR: no such variable:
p>
</verbatim>

<hr><i>On 2008-06-08 15:53:08 UTC drh added:</i><br />
This problem should now be fixed.  Either recompile using the latest
source code or else download the latest precompiled binary.  Thanks for the
bug report.  Please let me know if you find any other issues.
<hr>


<hr><i>On 2008-06-08 21:30:57 UTC anonymous (claiming to be PF) added:</i><br />
Thank you for prompt fix, your precompiled binary works nicely. (it was little intriguing to get past login page, till I figured out that I can update user table in my repository with login and pw values) Since then it seems to be working fine.

Maybe another issue would be with clone command. It seems not to clone and still complain about being not able to open database.

<verbatim>
clone myclone.fossil
fossil: unable to open database file

new myclone.fossil
fossil: unable to open database file

new myclone.fossil
fossil: table blob already exists

clone myclone.fossil
fossil: unable to open database file
</verbatim>
<hr>


<hr><i>On 2008-07-08 21:22:43 UTC anonymous added:</i><br />
<nowiki><pre>
info myrep
fossil.exe: unable to open database: C:\Documents and aplikac&#221;/_fossil
ATTACH DATABASE 'C:\Documents and aplikac&#221;/_fossil' AS configdb
mismatch - some dat
a files may have been removed or concurrent update without locking support

<hr>


<hr><i>On 2008-07-14 21:13:52 UTC anonymous added:</i><br />
<nowiki><pre>
By modifying line  576 in file db.c to:

  zDbName = zHome); /* fills zDbName with and instead of and aplikac&#237;/_fossil */

AND
  creating directory on C: drive "C:\Documents and aplikac" (please note one ascended character (0xa1) short from original path)

I can get this output:

new rep01
project-id:
server-id:
admin-user: user (no password set yet!)
baseline:


(if i dont create such directory, fossil still fails with fossil.exe: unable to open database file)

I can trace it to line 515 in db_.c:

rc = sqlite3_open(zFileName, &db);

where it either creates database file _fossil in doctored directory of fails with error message.

Where to take from here? Thanks.


<nowiki><pre>
Oh joy, by using doctored directory for _fossil file, I was able to  clone fossil repository:

clone myclone.foss
                Bytes      Cards  Artifacts     Deltas
Send:             378         16          0          0
Received:      148119       3170          0          0
Send:            9406        200          0          0
Received:      545353        203         26        174
Send:           26796        570          0          0
Received:      828104        532         66        463
Send:           70365       1497          0          0
Received:     1992241       1440         87       1350
Send:          127517       2713          0          0
Received:     6327446       2622        189       2153
Send:          103406       2200          0          0
Received:     5013359       2173        108       1787
Send:           38076        810          0          0
Received:     1219330        789         61        725
Rebuilding repository meta-data...
3159 (100%)...

Still, I would like to be able to use default "APPDATA" directory (on systems I cant change it/create suitable directory at will)
even if it contains ascended characters in it. Any idea? Many thanks.

<nowiki><pre>
What do I need to do to check files in?
fossil ui command seems to be mostly working, allowing me to create wiki pages.
So far I was not succesfull with checking in any file in.

new myrep01
project-id:
server-id:
admin-user: user (no password set yet!)
baseline:

(creates file and aplikac&#237;\_fossil)

open myrep01
fossil.exe: table global_config already exists

(creates files c:\Documents and aplikac&#237;\_fossil-journal and

info myrep01
fossil.exe: table global_config already exists

add mytestfile
fossil: table global_config already exists

configuration pull
fossil.exe: table global_config already exists

--another chain of tests

new myrep01
project-id:
server-id:
admin-user: user (no password set yet!)
baseline:

zz_testrep

open ..\myrep01
fossil.exe: table global_config already exists


info myrep01
fossil.exe: not within an open checkout

status myrep01
fossil.exe: not within an open checkout

timeline myrep01
fossil.exe: use --repository or -R to specific the repository database

timeline -R ..\myrep01
(states nothing)

add mytestfile
fossil.exe: not within an open checkout

What could be done about it? Thanks.


<hr><i>On 2008-07-17 00:44:24 UTC drh added:</i><br />
I am unable to replicate any of these problems using the
latest version of fossil for windows (available from the
download page.)  The commands above all work correctly
for me.
<hr>
<nowiki><pre>
Check with precompiled version downloaded from

help
Usage: fossil help COMMAND.
Available COMMANDs:
(list of command removed)
This is fossil version [b3ee50c946] 2008-07-15 19:03:42

new .\myrep01
fossil.exe: unable to open database file


<hr>
<nowiki><pre>

So far no joy with opening repository/adding files to it.
I am checking it on Czech mutation of win XP, SP2 (that's why I have
path with some weird ascented characters in APPDATA variable)
After reading "Note to windows users" at
I realized there shall be UTF-8 encoded path presented. So as a temp workaround
I modified  line 561 in db.c as follows:

zHome = and zHome = getenv("LOCALAPPDATA");*/

With this change it creates "user" and "local checkout" database files at
or "c:\Documents and aplikac&#237;" directories (with journals at times)


Debugging fossil.exe open .\myrep01 (with myrep01 already created) with breakpoint set
on vfile_scan function does not stop there (I can catch sqlite3ErrorMsg, with backtrace log below)

Would you recommend some places to look at/things to check? Many thanks.

--checks
help
Usage: fossil.exe help COMMAND.
Available COMMANDs:
(list of command removed)
This is fossil version [849b94c631] 2008-07-17 01:49:16

new .\myrep01
project-id:
server-id:
admin-user: user (no password set yet!)
baseline:

open .\myrep01
fossil.exe: table global_config already exists

info .\myrep01
fossil.exe: not within an open checkout

--removed all database files
open .\myrep01
fossil.exe: repository does not exists or is in an unreadable directory:

--backtrace log of running open .\myrep01 :
(gdb) backtrace
#0  sqlite3ErrorMsg (pParse=0x22f3e0, zFormat=0x4cb985 "table %T already exists") at
#1  0x00462240 in sqlite3StartTable (pParse=0x22f3e0, pName1=0x7a431c, pName2=0x7a4330, isTemp=0, isView=0, isVirtual=0, noErr=0) at
#2  0x00484b56 in yy_reduce (yypParser=0x7a4290, yyruleno=21) at
#3  0x004875a7 in sqlite3Parser (yyp=0x7a4290, yymajor=19, yyminor={z = 0x4ba85a "(\n  name TEXT PRIMARY KEY,\n  value dyn = 0, n = 1}, pParse=0x22f3e0) at
#4  0x00488124 in sqlite3RunParser (pParse=0x22f3e0, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value pzErrMsg=0x22f3dc) at
#5  0x00472394 in sqlite3Prepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value nBytes=-1, saveSqlFlag=0, ppStmt=0x22f634, pzTail=0x22f638) at
#6  0x004727ac in sqlite3LockAndPrepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value nBytes=-1, saveSqlFlag=0, ppStmt=0x22f634, pzTail=0x22f638) at
#7  0x004728a7 in sqlite3_prepare (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value nBytes=-1, ppStmt=0x22f634, pzTail=0x22f638) at
#8  0x0046e1e1 in sqlite3_exec (db=0x7a0f70, zSql=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value xCallback=0, pArg=0x0, pzErrMsg=0x0) at
#9  0x0040b64a in db_init_database (zFileName=0x7a0700 "C:/Documents and aplikac&#237;/_fossil", zSchema=0x4ba840 "CREATE TABLE global_config(\n  name TEXT PRIMARY KEY,\n  value at db_.c:520
#10 0x0040b80e in db_open_config () at db_.c:582
#11 0x0040b8bf in isValidLocalDb (zDbName=0x22f700 at db_.c:599
#12 0x0040b9d5 in db_open_local () at db_.c:633
#13 0x0040c69a in cmd_open () at db_.c:1047
#14 0x00415b57 in main (argc=3, argv=0x3d2528) at main_.c:233


</pre> </nowiki>