After docker run command, nothing happens. I enter to my subdomain and/or IP and the page is offline.
docker run -d -p 80:3000 -p 443:3443 -e "SSL_ACTIVE=1" -e "LETSENCRYPT_DOMAIN=wiki.site.come" -e "[email protected]" --name wiki --restart unless-stopped -e "DB_TYPE=postgres" -e "DB_HOST=172.17.0.1" -e "DB_PORT=5432" -e "DB_USER=wikijs" -e "DB_PASS=pass" -e "DB_NAME=wiki" requarks/wiki:2
If I use docker-compose install, it works but ssl is not working..
check the logs? (docker logs wiki)
root@ubuntu-s-1vcpu-1gb-nyc1-01:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8a79092f8563 requarks/wiki:2 "docker-entrypoint.s…" 3 seconds ago Up 3 seconds 0.0.0.0:80->3000/tcp, 0.0.0.0:443->3443/tcp wiki
root@ubuntu-s-1vcpu-1gb-nyc1-01:~# docker logs wiki
Loading configuration from /wiki/config.yml... OK
2020-08-24T01:07:05.746Z [MASTER] info: =======================================
2020-08-24T01:07:05.748Z [MASTER] info: = Wiki.js 2.4.107 =====================
2020-08-24T01:07:05.748Z [MASTER] info: =======================================
2020-08-24T01:07:05.748Z [MASTER] info: Initializing...
2020-08-24T01:07:06.104Z [MASTER] info: Using database driver pg for postgres [ OK ]
2020-08-24T01:07:06.124Z [MASTER] info: Connecting to database...
2020-08-24T01:07:06.130Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:06.131Z [MASTER] warn: Will retry in 3 seconds... [Attempt 1 of 10]
2020-08-24T01:07:09.135Z [MASTER] info: Connecting to database...
2020-08-24T01:07:09.136Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:09.136Z [MASTER] warn: Will retry in 3 seconds... [Attempt 2 of 10]
2020-08-24T01:07:12.140Z [MASTER] info: Connecting to database...
2020-08-24T01:07:12.140Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:12.141Z [MASTER] warn: Will retry in 3 seconds... [Attempt 3 of 10]
2020-08-24T01:07:15.141Z [MASTER] info: Connecting to database...
2020-08-24T01:07:15.142Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:15.143Z [MASTER] warn: Will retry in 3 seconds... [Attempt 4 of 10]
2020-08-24T01:07:18.145Z [MASTER] info: Connecting to database...
2020-08-24T01:07:18.146Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:18.146Z [MASTER] warn: Will retry in 3 seconds... [Attempt 5 of 10]
2020-08-24T01:07:21.149Z [MASTER] info: Connecting to database...
2020-08-24T01:07:21.150Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:21.150Z [MASTER] warn: Will retry in 3 seconds... [Attempt 6 of 10]
2020-08-24T01:07:24.152Z [MASTER] info: Connecting to database...
2020-08-24T01:07:24.153Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:24.153Z [MASTER] warn: Will retry in 3 seconds... [Attempt 7 of 10]
2020-08-24T01:07:27.156Z [MASTER] info: Connecting to database...
2020-08-24T01:07:27.157Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:27.157Z [MASTER] warn: Will retry in 3 seconds... [Attempt 8 of 10]
2020-08-24T01:07:30.161Z [MASTER] info: Connecting to database...
2020-08-24T01:07:30.162Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:30.162Z [MASTER] warn: Will retry in 3 seconds... [Attempt 9 of 10]
2020-08-24T01:07:33.164Z [MASTER] info: Connecting to database...
2020-08-24T01:07:33.165Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:33.165Z [MASTER] warn: Will retry in 3 seconds... [Attempt 10 of 10]
2020-08-24T01:07:36.169Z [MASTER] info: Connecting to database...
2020-08-24T01:07:36.171Z [MASTER] error: Database Initialization Error: connect ECONNREFUSED 172.17.0.1:5432
Loading configuration from /wiki/config.yml... OK
2020-08-24T01:07:36.771Z [MASTER] info: =======================================
2020-08-24T01:07:36.773Z [MASTER] info: = Wiki.js 2.4.107 =====================
2020-08-24T01:07:36.773Z [MASTER] info: =======================================
2020-08-24T01:07:36.773Z [MASTER] info: Initializing...
2020-08-24T01:07:37.110Z [MASTER] info: Using database driver pg for postgres [ OK ]
2020-08-24T01:07:37.128Z [MASTER] info: Connecting to database...
2020-08-24T01:07:37.134Z [MASTER] error: Database Connection Error: ECONNREFUSED 172.17.0.1:5432
2020-08-24T01:07:37.135Z [MASTER] warn: Will retry in 3 seconds... [Attempt 1 of 10]
@Smankusors
then you have a database connection problem
is your database................ also in docker?
I followed this guide https://docs.requarks.io/install/docker
This command line doesn't install the db as well? What I am missing? How should I install the database?
Follow this guide:
https://docs.requarks.io/install/ubuntu
The docs requirements clearly state that the db is not part of the application.
Thank you @NGPixel this guide worked and now I have the Wiki running.
How should I set up SSL / run letsencrypt?
Hi! Do you have any -clear- guide to run letsencrypt on docker? Thank you for your kindly support.
https://docs.requarks.io/install/ubuntu#automatic-https-with-lets-encrypt-optional
Thank you. Any further suggestion on migration? @NGPixel we are still stuck on the same as this user #2336
For anyone looking for this, this has been solved and you can find the instructions at https://github.com/Requarks/wiki/issues/2403 🙂
Most helpful comment
For anyone looking for this, this has been solved and you can find the instructions at https://github.com/Requarks/wiki/issues/2403 🙂