Home page › Forums › Technical Support, Bugs and Fixes › Troubleshooting › Reply To: Troubleshooting
somehow I think the database initialization is not done, maybe the install script needs improvement!
You can also open an issue in GitHub but I will provide you the steps to check it together!
I suspect that maybe the user-provided database info that we ask for during installation may be the root cause of the problem!
1. Please check /opt/mikrowizard/server-conf.json for the database username and password if the same as what you provided during installation
2. please execute the following commands in the terminal to try to re-initiate the database and records
* . please change [databaseusername] with the database username that you provided during installation
sudo docker exec -it MikroWizard-postgre psql -U [databaseusername] -d MikroWizardDB -c 'create extension "uuid-ossp"'
sudo docker exec -it mikroman /bin/bash -c "cd /app/;export PYTHONPATH=/app/py; export PYSRV_CONFIG_PATH=/conf/server-conf.json;python3 scripts/dbmigrate.py;"
* . you should see “migrate OK” at the end
docker exec -it MikroWizard-postgre psql -U [databaseusername] -d MikroWizardDB -f /init.sql
restart the machine/VM and check if it works!
If you get any errors during the executing above commands please let me know
if it is not working again please send output of following command
sudo docker ps -a