Your docker-compose.yml
file looks reasonable, although i do not recommend using /usr/share/proj
as a data directory.
If you want to load some data into a virtuoso-opensource docker image i suggest you have a look at GitHub - openlink/vos-docker-bulkload-example: A tutorial on how to bulkload data into a virtuoso docker container which is an example i wrote to show how to bulkload data into a virtuoso instance.
Your output shows a couple of issues with your virtuoso.ini file which explain why the startup is failing:
First:
10:19:10 { Loading plugin 1: Type plain', file wikiv’ in .../hosting' 10:19:10 FAILED plugin 1: Unable to locate file } 10:19:10 { Loading plugin 2: Type plain’, file mediawiki' in …/hosting’
This indicates the LoadPath
setting in your [Plugins]
section is set to .../hosting
instead of ../hosting
.
Secondly:
10:19:10 Unable to create file ./database/virtuoso.lck (No such file or directory).
seems to indicate your LockFile
setting in the [Database]
section is set to ./database/virtuoso.lck
instead of ../database/virtuoso.lck
which is how a standard installation should be setup.
Virtuoso expects the internal database
directory to be accessible from ../database
so it can open ../database/virtuoso.lck
but in your case it fails because the ./database
directory does not exist, so it cannot create a lockfile inside that directory.
There could be 2 reasons for these strange settings.
- There are some settings in your
.env
file that are incorrect.
As i forgot to ask you for the contents of your .env
file, i used the following minimalistic settings which gave me a working docker image:
VIRTUOSO_HTTP_PORT=8890
VIRTUOSO_ISQL_PORT=1111
VIRTUOSO_DATABASE_DIR=./db-dir
VIRTUOSO_DATA_DIR=./data
VIRTUOSO_ADMIN_PASSWD=dba
If you like, you can send us your .env
file so we can see what might be wrong. Just make sure you don’t post your ADMIN/DBA password or other sensitive information.
- You made a mistake editing your
virtuoso.ini
file manually.
There is no need to manually edit the virtuoso.ini
file to change any settings. Please read our Docker reference guide section on Updating virtuoso.ini via environment settings which shows you how to do this from either your .env file or inside your docker-compose.yml
file using the Environment:
section.