New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access the database #343
Comments
Hi @versant2612 I guess you are using the example docker-compose file? |
Hi @addshore thanks for your reply. See the answers bellow. Let me know if there are more information needed. I guess you are using the example docker-compose file? Yes. I attached the files used. _:/app/wikibase/wikibase-docker$ sudo docker-compose --env-file .env -f docker-compose.yml -f docker-compose.extra.yml up -d --build --force-recreate _:/app/wikibase/wikibase-docker$ sudo docker-compose ps
|
Try navigating to it on the port that you have selected. It sounds like this has never worked for you yet? and thus there is no data in your wiki right now. |
I've clean up the instalation, dowload the docker-compose file again and changed hosts variables from environment to localhost. _: /app/wikibase$ sudo docker-compose ps
wikibase_mysql_1 docker-entrypoint.sh mysqld Up 3306/tcp _: /app/wikibase$ sudo docker-compose logs <...> |
From the attached log the first thing that I notice is
You need the Next...
This indicates that you are running with an empty LocalSettings.php but not an empty database. Either
|
Thank you @addshore. It worked. I've copied jobrunner-entrypoint.sh and clean up the installation again (this time I used docker rm and docker rmi to remove each container and image). /app/wikibase$ sudo docker-compose ps
|
With docker-compose logs --tail=20 -t I saw some error messagens in the log. How can I fix it?
mysql_1 | 2022-04-16T02:34:31.730288824Z 2022-04-16 2:34:31 10 [Warning] Access denied for user 'sqluser'@'172.18.0.8' (using password: YES)
wikibase_1 | 2022-04-16T02:34:54.387652753Z Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'sqluser'@'172.18.0.8' (using pclient_loop: send disconnect: Connection reset ... done
wikibase_1 | 2022-04-16T02:34:54.8314021Z Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'sqluser'@'172.18.0.8' (using password: YES). Check the host, username and password and try again. If using "localhost" as the database host, try using "127.0.0.1" instead (or vice versa).
The text was updated successfully, but these errors were encountered: