Hi Pasquale,
I have been working with Ontop with DuckDB quite a bit and have experienced this error one or two times, but it was usually caused by some incorrect way of handling the database file.
Here are some possible things I would recommend to try:
- Make sure that the database file ("test.duckdb") is not currently accessed by another application (for example by the duckdb CLI)
- Make sure the file actually exists (is there a typo in the file name etc...). Please also make sure you have specified the path correctly. Note that the path you indicate in the JDBC URL in the .properties file must be relative to the directory from which you are running Ontop, not relative to the directory of the properties file. If you are running Ontop through docker, make sure the container has access to the file and the permission to use it.
- Make sure there is no write access lock file ("test.duckdb.wal") in the directory of "test.duckdb". When duckdb is forcefully closed, it will not clean up the access lock file, which could also cause such issues. If such a file exists, just delete it.
If none of this works, please let me know. In that case I would also be interested in seeing your .properties file and checking if I can reproduce the problem myself.
Cheers,
Damian