Open TeclisFtw opened 7 years ago
Did you used "mariadb" instead of "localhost" for database server. You need to expand "Advanced options" and set "Database host" to be mariadb (name of the service from yml file).
Can you ilustrate how I do that? I can't find "Advanced options"
Thanks!
I'll go check it now.
Only thing is I'm getting this problem :
ERROR: for mariadb Cannot start service mariadb: oci runtime error: container_linux.go:265: starting container process caused "process_linux.go:368: container init caused \"rootfs_linux.go:57: mounting \\"/C/Users/H├®ctor/Downloads/mariad b\\" to rootfs \\"/var/lib/docker/overlay2/0a9cf1ec4f61d778b77850f651c2cae71e145c1d526ec5f3c9d898d79bc0f2a4/merged\\" at \\"/var/lib/mysql\\" caused \\"stat /C/Users/H├®ctor/Downloads/mariadb: permission denied\\"\""
and I'm running it as administrator (Windows 10)
Run "docker-compose ps" and check if mariadb is up. Maybe its not. By default "volumes" on mariadb are commented out. Maybe that is messing things up for you.
I have it exactly as the image I posted above.
Now it works... but on the drupal page I get Gateway Timeout... sigh
Wait, you are using php image with Drupal 8, but on image attached you shared it looks like Drupal 7 install. Sometimes when I do get "bad gateway" this helps "docker-compose restart" which will restart all containers and then issue is gone.
Alright, I had to reset docker to default.
Also, I realised I need a durpal 7 image so I pulled that accordingly, I still get the same error when trying to install Drupal.
I have written "mariadb" on the database server now.
doing a docker-compose ps
gives me this :
drupal_apache_1 /docker-entrypoint.sh sudo ... Up 80/tcp drupal_mailhog_1 MailHog Up 1025/tcp, 8025/tcp drupal_mariadb_1 /docker-entrypoint.sh mysqld Exit 1 drupal_nginx_1 /docker-entrypoint.sh sudo ... Up 80/tcp drupal_php_1 /docker-entrypoint.sh php-fpm Up 9000/tcp drupal_portainer_1 /portainer --no-auth -H un ... Up 9000/tcp drupal_traefik_1 /traefik -c /dev/null --we ... Up 0.0.0.0:8000->80/tcp
So I guess that "Exit 1" from mariadb is the one causing the issue.
I tried running a docker-compose logs and this is what I got :
drupal_apache_1 /docker-entrypoint.sh sudo ... Up 80/tcp
drupal_mailhog_1 MailHog Up 1025/tcp, 8025/tcp
drupal_mariadb_1 /docker-entrypoint.sh mysqld Exit 1
drupal_nginx_1 /docker-entrypoint.sh sudo ... Up 80/tcp
drupal_php_1 /docker-entrypoint.sh php-fpm Up 9000/tcp
drupal_portainer_1 /portainer --no-auth -H un ... Up 9000/tcp
drupal_traefik_1 /traefik -c /dev/null --we ... Up 0.0.0.0:8000->80/tcp
PS C:\Users\Héctor\Documents\Drupal> docker-compose logs
Attaching to drupal_nginx_1, drupal_apache_1, drupal_portainer_1, drupal_php_1, drupal_mariadb_1, drupal_traefik_1, drup
al_mailhog_1
portainer_1 | 2017/11/07 19:49:02 Starting Portainer 1.15.0 on :9000
portainer_1 | 2017/11/07 19:52:31 Instance already has defined endpoints. Skipping the endpoint defined via CLI.
portainer_1 | 2017/11/07 19:52:31 Starting Portainer 1.15.0 on :9000
portainer_1 | 2017/11/07 19:56:11 Instance already has defined endpoints. Skipping the endpoint defined via CLI.
portainer_1 | 2017/11/07 19:56:11 Starting Portainer 1.15.0 on :9000
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: using the "epoll" event method
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: nginx/1.13.6
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: built by gcc 6.3.0 (Alpine 6.3.0)
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: OS: Linux 4.9.49-moby
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: start worker processes
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: start worker process 26
nginx_1 | 2017/11/07 19:49:03 [notice] 1#1: start worker process 27
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:07 +0000] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Windows NT 10.0; Win
64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:07 +0000] "GET /install.php HTTP/1.1" 200 1628 "-" "Mozilla/5.0 (Window
s NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:09 +0000] "POST /install.php HTTP/1.1" 302 5 "http://drupal.docker.loca
lhost:8000/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.32
02.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:09 +0000] "GET /install.php?profile=standard HTTP/1.1" 200 1601 "http:/
/drupal.docker.localhost:8000/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Ge
cko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:10 +0000] "POST /install.php?profile=standard HTTP/1.1" 302 5 "http://d
rupal.docker.localhost:8000/install.php?profile=standard" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:10 +0000] "GET /install.php?profile=standard&locale=en HTTP/1.1" 200 29
41 "http://drupal.docker.localhost:8000/install.php?profile=standard" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe
bKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.3 - - [07/Nov/2017:19:51:22 +0000] "POST /install.php?profile=standard&locale=en HTTP/1.1" 200 3
288 "http://drupal.docker.localhost:8000/install.php?profile=standard&locale=en" "Mozilla/5.0 (Windows NT 10.0; Win64; x
64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: signal 15 (SIGTERM) received, exiting
nginx_1 | 2017/11/07 19:52:20 [notice] 26#26: exiting
nginx_1 | 2017/11/07 19:52:20 [notice] 26#26: exit
nginx_1 | 2017/11/07 19:52:20 [notice] 27#27: exiting
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: signal 17 (SIGCHLD) received from 26
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: worker process 26 exited with code 0
nginx_1 | 2017/11/07 19:52:20 [notice] 27#27: exit
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: signal 29 (SIGIO) received
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: signal 17 (SIGCHLD) received from 27
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: worker process 27 exited with code 0
nginx_1 | 2017/11/07 19:52:20 [notice] 1#1: exit
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: using the "epoll" event method
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: nginx/1.13.6
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: built by gcc 6.3.0 (Alpine 6.3.0)
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: OS: Linux 4.9.49-moby
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: start worker processes
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: start worker process 24
nginx_1 | 2017/11/07 19:52:35 [notice] 1#1: start worker process 25
nginx_1 | 172.18.0.2 - - [07/Nov/2017:19:54:47 +0000] "GET /install.php?profile=standard&locale=en HTTP/1.1" 200 29
40 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.
36"
nginx_1 | 172.18.0.2 - - [07/Nov/2017:19:54:53 +0000] "POST /install.php?profile=standard&locale=en HTTP/1.1" 200 3
266 "http://drupal.docker.localhost:8000/install.php?profile=standard&locale=en" "Mozilla/5.0 (Windows NT 10.0; Win64; x
64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.2 - - [07/Nov/2017:19:54:59 +0000] "POST /install.php?profile=standard&locale=en HTTP/1.1" 200 3
288 "http://drupal.docker.localhost:8000/install.php?profile=standard&locale=en" "Mozilla/5.0 (Windows NT 10.0; Win64; x
64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 172.18.0.2 - - [07/Nov/2017:19:55:01 +0000] "POST /install.php?profile=standard&locale=en HTTP/1.1" 200 3
285 "http://drupal.docker.localhost:8000/install.php?profile=standard&locale=en" "Mozilla/5.0 (Windows NT 10.0; Win64; x
64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36"
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: signal 15 (SIGTERM) received, exiting
nginx_1 | 2017/11/07 19:55:59 [notice] 25#25: exiting
nginx_1 | 2017/11/07 19:55:59 [notice] 25#25: exit
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: signal 17 (SIGCHLD) received from 25
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: worker process 25 exited with code 0
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: signal 29 (SIGIO) received
nginx_1 | 2017/11/07 19:55:59 [notice] 24#24: exiting
nginx_1 | 2017/11/07 19:55:59 [notice] 24#24: exit
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: signal 17 (SIGCHLD) received from 24
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: worker process 24 exited with code 0
nginx_1 | 2017/11/07 19:55:59 [notice] 1#1: exit
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: using the "epoll" event method
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: nginx/1.13.6
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: built by gcc 6.3.0 (Alpine 6.3.0)
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: OS: Linux 4.9.49-moby
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: start worker processes
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: start worker process 24
nginx_1 | 2017/11/07 19:56:11 [notice] 1#1: start worker process 25
php_1 | DRUPAL_ROOT=/var/www/html/web init.sh
mariadb_1 | 2017-11-07 19:49:00 140045451926344 [Note] mysqld (mysqld 10.1.26-MariaDB) starting as process 1 ...
apache_1 | [Tue Nov 07 19:49:03.756405 2017] [ssl:info] [pid 1:tid 140010015320904] AH01887: Init: Initializing (vir
tual) servers for SSL
traefik_1 | time="2017-11-07T19:48:59Z" level=info msg="Using TOML configuration file /dev/null"
php_1 | [07-Nov-2017 19:49:00] NOTICE: fpm is running, pid 1
mariadb_1 | 2017-11-07 19:49:00 140045451926344 [Note] InnoDB: Using mutexes to ref count buffer pool pages
apache_1 | [Tue Nov 07 19:49:03.756518 2017] [ssl:info] [pid 1:tid 140010015320904] AH01876: mod_ssl/2.4.28 compiled
against Server: Apache/2.4.28, Library: LibreSSL/2.5.5
traefik_1 | time="2017-11-07T19:48:59Z" level=info msg="Traefik version v1.4.2 built on 2017-11-02_01:47:46PM"
php_1 | [07-Nov-2017 19:49:00] NOTICE: ready to handle connections
mariadb_1 | 2017-11-07 19:49:00 140045451926344 [Note] InnoDB: The InnoDB memory heap is disabled
apache_1 | [Tue Nov 07 19:49:03.756572 2017] [http2:debug] [pid 1:tid 140010015320904] mod_http2.c(108): AH03089: in
itializing post config dry run
traefik_1 | time="2017-11-07T19:48:59Z" level=info msg="Preparing server http &{Network: Address::80 TLS:
If someone have an idea of why it's happening.... I think I'm getting all the errors docker can offer xD
I am experiencing a similar problem, mariadb won't stay up (Status: Exit 1 when checking with docker-compose ps) I checked the logs with portainer (http://portainer.drupal.docker.localhost:8000 ) and ran across the following errors [Note] Recovering after a crash using tc.log 2017-11-26 13:33:41 140056255667016 [ERROR] Can't init tc log 2017-11-26 13:33:41 140056255667016 [ERROR] Aborting
I tried commenting out the volumes section of the mariadb service as suggested in https://github.com/wodby/docker4drupal/issues/37 , no luck there.
As @csandanov suggested in https://github.com/wodby/mariadb/issues/2 recreating the containers worked for me. So running docker system prune
might work for someone else too.
If you run MariaDB on windows with a bind mount from host see #222 (comment)
Hello all, I'm trying to run a vanilla drupal with docker.
Everything seems to be fine and when I run docker-compose up -d it goes up, but when tyring to install drupal I get this :
I'm using the latest version of both, docker and docker4drupal.
My docker-compose.yml looks like this :