wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.23k stars 533 forks source link

The Drupal installer requires write permissions to ./sites/default/settings.php #324

Closed nkhine closed 6 years ago

nkhine commented 6 years ago

Describe the bug Following the documentation outlined here https://wodby.com/docs/stacks/drupal/local/#local-environment-with-docker4drupal I get:

Requirements problem
The following errors must be resolved before you can continue the installation process:

    The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process. If you are unsure how to grant file permissions, please consult the on-line handbook.
    The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually, or ensure that the installer has the permissions to create it automatically. For more information, please see INSTALL.txt or the on-line handbook.

Please check the error messages and try again.

error

Output of docker info

Containers: 44
 Running: 24
 Paused: 0
 Stopped: 20
Images: 21
Server Version: 17.12.1-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9b55aab90508bd389d7654c4baf173a981477d55
runc version: 9f9c96235cc97674e935002fc3d78361b696a69e
init version: v0.13.0 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.15.0-33-generic
Operating System: Ubuntu 18.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.481GiB
Name: araweelo
ID: KHBH:E6NX:FR3Z:LHKA:SGBV:32AV:CKRS:BZ3C:ECCJ:357B:EGSG:IO7K
Docker Root Dir: /var/lib/docker
Debug Mode (client): true
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

Contents of your docker-compose.yml

version: "2"

services:
  mariadb:
    image: wodby/mariadb:$MARIADB_TAG
    container_name: "${PROJECT_NAME}_mariadb"
    stop_grace_period: 30s
    environment:
      MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
      MYSQL_DATABASE: $DB_NAME
      MYSQL_USER: $DB_USER
      MYSQL_PASSWORD: $DB_PASSWORD

  php:
    image: wodby/drupal-php:$PHP_TAG
    container_name: "${PROJECT_NAME}_php"
    environment:
      PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
      DB_HOST: $DB_HOST
      DB_USER: $DB_USER
      DB_PASSWORD: $DB_PASSWORD
      DB_NAME: $DB_NAME
      DB_DRIVER: $DB_DRIVER
      COLUMNS: 80 # Set 80 columns for docker exec -it.
    volumes:
      - ./:/var/www/html

  nginx:
    image: wodby/nginx:$NGINX_TAG
    container_name: "${PROJECT_NAME}_nginx"
    depends_on:
      - php
    environment:
      NGINX_STATIC_OPEN_FILE_CACHE: "off"
      NGINX_ERROR_LOG_LEVEL: debug
      NGINX_BACKEND_HOST: php
      NGINX_SERVER_ROOT: /var/www/html/web
      NGINX_VHOST_PRESET: $NGINX_VHOST_PRESET
    volumes:
      - ./:/var/www/html
    labels:
      - 'traefik.backend=nginx'
      - 'traefik.port=80'
      - 'traefik.frontend.rule=Host:${PROJECT_BASE_URL}'

  mailhog:
    image: mailhog/mailhog
    container_name: "${PROJECT_NAME}_mailhog"
    labels:
      - 'traefik.backend=mailhog'
      - 'traefik.port=8025'
      - 'traefik.frontend.rule=Host:mailhog.${PROJECT_BASE_URL}'

  portainer:
    image: portainer/portainer
    container_name: "${PROJECT_NAME}_portainer"
    command: --no-auth -H unix:///var/run/docker.sock
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    labels:
      - 'traefik.backend=portainer'
      - 'traefik.port=9000'
      - 'traefik.frontend.rule=Host:portainer.${PROJECT_BASE_URL}'

  traefik:
    image: traefik
    container_name: "${PROJECT_NAME}_traefik"
    command: -c /dev/null --web --docker --logLevel=INFO
    ports:
      - '8000:80'
#      - '8080:8080' # Dashboard
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

Contents of your .env

### PROJECT SETTINGS

PROJECT_NAME=eventsone
PROJECT_BASE_URL=eventsone.localhost

DB_NAME=drupal
DB_USER=drupal
DB_PASSWORD=drupal
DB_ROOT_PASSWORD=password
DB_HOST=mariadb
DB_DRIVER=mysql

### --- MARIADB ----

MARIADB_TAG=10.1-3.3.4

### --- VANILLA DRUPAL ----
### [DRUPAL_VERSION]-[PHP_VERSION]-[STABILITY_TAG]

# Drupal 6

DRUPAL_TAG=6-5.6-4.6.3

### --- PHP ----

# Linux (uid 1000 gid 1000)

PHP_TAG=5.6-dev-4.6.3

### --- NGINX ----

NGINX_TAG=1.15-5.0.3
NGINX_VHOST_PRESET=drupal6

### --- SOLR ---

SOLR_CONFIG_SET="search_api_solr_8.x-2.1"

SOLR_TAG=7.4-3.0.2

### --- ELASTICSEARCH ---

ELASTICSEARCH_TAG=6.2-3.0.0

### --- REDIS ---

REDIS_TAG=4.0-2.1.6

### OTHERS

ADMINER_TAG=4.6-2.0.0
APACHE_TAG=2.4-4.0.0
ATHENAPDF_TAG=2.10.0
DRUPAL_NODE_TAG=1.0-2.0.0
MEMCACHED_TAG=1.5-2.1.1
OPENSMTPD_TAG=6.0-1.4.0
RSYSLOG_TAG=latest
VARNISH_TAG=4.1-3.0.3
WEBGRIND_TAG=1.5-1.3.1

Logs output docker-compose logs

Attaching to eventsone_nginx, eventsone_portainer, eventsone_mariadb, eventsone_mailhog, eventsone_php, eventsone_traefik
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: using the "epoll" event method
nginx_1      | 2018/09/01 08:13:54 [info] 1#1: [ngx_pagespeed 1.13.35.2-0] SharedMemCache: pagespeed_default_shm/metadata_cache, sectors = 128, entries/sector = 2226,  64-byte blocks/sector = 4452, total footprint: 52445184
nginx_1      | 2018/09/01 08:13:54 [info] 1#1: [ngx_pagespeed 1.13.35.2-0] Initializing shared memory for path: /var/cache/ngx_pagespeed/ flush .
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: nginx/1.15.3
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: built by gcc 6.4.0 (Alpine 6.4.0) 
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: OS: Linux 4.15.0-33-generic
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: start worker processes
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: start worker process 41
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: start worker process 42
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: start worker process 43
nginx_1      | 2018/09/01 08:13:54 [notice] 1#1: start worker process 44
nginx_1      | 2018/09/01 08:13:54 [info] 41#41: [ngx_pagespeed 1.13.35.2-0] Reusing shared memory for path: /var/cache/ngx_pagespeed/ flush .
nginx_1      | 2018/09/01 08:13:54 [info] 42#42: [ngx_pagespeed 1.13.35.2-0] Reusing shared memory for path: /var/cache/ngx_pagespeed/ flush .
nginx_1      | 2018/09/01 08:13:54 [info] 44#44: [ngx_pagespeed 1.13.35.2-0] Reusing shared memory for path: /var/cache/ngx_pagespeed/ flush .
nginx_1      | 2018/09/01 08:13:54 [info] 43#43: [ngx_pagespeed 1.13.35.2-0] Reusing shared memory for path: /var/cache/ngx_pagespeed/ flush .
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:16:30 +0000] "GET / HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:16:30 [notice] 41#41: *1 "^/(.+)/$" does not match "/install.php", client: 172.18.0.2, server: default, request: "GET /install.php HTTP/1.1", host: "eventsone.localhost:8000"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:16:30 +0000] "GET /install.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:16:30 [notice] 41#41: *1 "^/(.+)/$" does not match "/install.php", client: 172.18.0.2, server: default, request: "GET /install.php?profile=default HTTP/1.1", host: "eventsone.localhost:8000"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:16:30 +0000] "GET /install.php?profile=default HTTP/1.1" 200 977 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:16:30 [notice] 41#41: *1 "^/(.+)/$" does not match "/modules/system/defaults.css", client: 172.18.0.2, server: default, request: "GET /modules/system/defaults.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 41#41: *1 "^/(.+)/$" does not match "/modules/system/system.css", client: 172.18.0.2, server: default, request: "GET /modules/system/system.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *5 "^/(.+)/$" does not match "/themes/garland/minnelli/minnelli.css", client: 172.18.0.2, server: default, request: "GET /themes/garland/minnelli/minnelli.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 41#41: *1 "^/(.+)/$" does not match "/themes/garland/style.css", client: 172.18.0.2, server: default, request: "GET /themes/garland/style.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *5 "^/(.+)/$" does not match "/modules/system/maintenance.css", client: 172.18.0.2, server: default, request: "GET /modules/system/maintenance.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *6 "^/(.+)/$" does not match "/themes/garland/print.css", client: 172.18.0.2, server: default, request: "GET /themes/garland/print.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/modules/system/system-menus.css", client: 172.18.0.2, server: default, request: "GET /modules/system/system-menus.css?0 HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/themes/garland/minnelli/logo.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/minnelli/logo.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/themes/garland/images/bg-navigation.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/bg-navigation.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *6 "^/(.+)/$" does not match "/themes/garland/images/body.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/body.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/themes/garland/images/task-list.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/task-list.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/themes/garland/images/bg-content.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/bg-content.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *6 "^/(.+)/$" does not match "/themes/garland/images/bg-content-right.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/bg-content-right.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *6 "^/(.+)/$" does not match "/themes/garland/images/bg-content-left.png", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/bg-content-left.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/themes/garland/images/menu-leaf.gif", client: 172.18.0.2, server: default, request: "GET /themes/garland/images/menu-leaf.gif HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/favicon.ico", client: 172.18.0.2, server: default, request: "GET /favicon.ico HTTP/1.1", host: "eventsone.localhost:8000"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:16:30 +0000] "GET /favicon.ico HTTP/1.1" 200 43 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/misc/favicon.ico", client: 172.18.0.2, server: default, request: "GET /misc/favicon.ico HTTP/1.1", host: "eventsone.localhost:8000"
nginx_1      | 2018/09/01 08:16:30 [notice] 44#44: *7 "^/(.+)/$" does not match "/misc/favicon.ico", client: 172.18.0.2, server: default, request: "GET /misc/favicon.ico HTTP/1.1", host: "eventsone.localhost:8000"
nginx_1      | 2018/09/01 08:16:30 [info] 44#44: *7 client 172.18.0.2 closed keepalive connection
nginx_1      | 2018/09/01 08:19:02 [notice] 41#41: *8 "^/(.+)/$" does not match "/install.php", client: 172.18.0.2, server: default, request: "GET /install.php?profile=default&locale=en HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:19:02 +0000] "GET /install.php?profile=default&locale=en HTTP/1.1" 200 1349 "http://eventsone.localhost:8000/install.php?profile=default" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:19:02 [notice] 41#41: *8 "^/(.+)/$" does not match "/misc/watchdog-ok.png", client: 172.18.0.2, server: default, request: "GET /misc/watchdog-ok.png HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/themes/garland/style.css?0"
nginx_1      | 2018/09/01 08:25:58 [notice] 41#41: *10 "^/(.+)/$" does not match "/install.php", client: 172.18.0.2, server: default, request: "GET /install.php?profile=default&locale=en HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default&locale=en"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:25:58 +0000] "GET /install.php?profile=default&locale=en HTTP/1.1" 200 1349 "http://eventsone.localhost:8000/install.php?profile=default&locale=en" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
nginx_1      | 2018/09/01 08:26:00 [notice] 41#41: *10 "^/(.+)/$" does not match "/install.php", client: 172.18.0.2, server: default, request: "GET /install.php?profile=default&locale=en HTTP/1.1", host: "eventsone.localhost:8000", referrer: "http://eventsone.localhost:8000/install.php?profile=default&locale=en"
nginx_1      | 172.18.0.2 - - [01/Sep/2018:08:26:00 +0000] "GET /install.php?profile=default&locale=en HTTP/1.1" 200 1349 "http://eventsone.localhost:8000/install.php?profile=default&locale=en" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0"
portainer_1  | 2018/09/01 08:13:54 Starting Portainer 1.19.1 on :9000
mariadb_1    | Initializing database
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] /usr/bin/mysqld (mysqld 10.1.35-MariaDB) starting as process 66 ...
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Initializing buffer pool, size = 128.0M
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Setting file ./ibdata1 size to 10 MB
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Setting log file ./ib_logfile101 size to 128 MB
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Setting log file ./ib_logfile1 size to 128 MB
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Warning] InnoDB: New log files created, LSN=45781
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Doublewrite buffer not found: creating new
mariadb_1    | 2018-09-01  8:13:53 140094503287688 [Note] InnoDB: Doublewrite buffer created
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Warning] InnoDB: Creating foreign key constraint system tables.
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB: Foreign key constraint system tables created
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB: Creating tablespace and datafile system tables.
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB: Tablespace and datafile system tables created.
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2018-09-01  8:13:54 140094503287688 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 0
mariadb_1    | 2018-09-01  8:13:54 140093899873000 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] /usr/bin/mysqld (mysqld 10.1.35-MariaDB) starting as process 95 ...
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Initializing buffer pool, size = 128.0M
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2018-09-01  8:13:57 140574555548552 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616704
mariadb_1    | 2018-09-01  8:13:57 140573959219944 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] /usr/bin/mysqld (mysqld 10.1.35-MariaDB) starting as process 124 ...
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Initializing buffer pool, size = 128.0M
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2018-09-01  8:14:00 139829660048264 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616714
mariadb_1    | 2018-09-01  8:14:00 139829063719656 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1    | 
mariadb_1    | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
mariadb_1    | To do so, start the server, then issue the following commands:
mariadb_1    | 
mariadb_1    | '/usr/bin/mysqladmin' -u root password 'new-password'
mariadb_1    | '/usr/bin/mysqladmin' -u root -h  password 'new-password'
mariadb_1    | 
mariadb_1    | Alternatively you can run:
mariadb_1    | '/usr/bin/mysql_secure_installation'
mariadb_1    | 
mariadb_1    | which will also give you the option of removing the test
mariadb_1    | databases and anonymous user created by default.  This is
mariadb_1    | strongly recommended for production servers.
mariadb_1    | 
mariadb_1    | See the MariaDB Knowledgebase at http://mariadb.com/kb or the
mariadb_1    | MySQL manual for more instructions.
mariadb_1    | 
mariadb_1    | Please report any problems at http://mariadb.org/jira
mariadb_1    | 
mariadb_1    | The latest information about MariaDB is available at http://mariadb.org/.
mariadb_1    | You can find additional information about the MySQL part at:
mariadb_1    | http://dev.mysql.com
mariadb_1    | Consider joining MariaDB's strong and vibrant community:
mariadb_1    | https://mariadb.org/get-involved/
mariadb_1    | 
mariadb_1    | Database initialized
mariadb_1    | MySQL init process in progress...
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] mysqld (mysqld 10.1.35-MariaDB) starting as process 157 ...
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mailhog_1    | 2018/09/01 08:13:51 Using in-memory storage
mailhog_1    | 2018/09/01 08:13:51 [SMTP] Binding to address: 0.0.0.0:1025
mailhog_1    | 2018/09/01 08:13:51 Serving under http://0.0.0.0:8025/
mailhog_1    | [HTTP] Binding to address: 0.0.0.0:8025
mailhog_1    | Creating API v1 with WebPath: 
mailhog_1    | Creating API v2 with WebPath: 
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mailhog_1    | [APIv1] KEEPALIVE /api/v1/events
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Initializing buffer pool, size = 128.0M
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616724
mariadb_1    | 2018-09-01  8:14:03 139826636872424 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Warning] 'user' entry 'root@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Warning] 'user' entry '@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Warning] 'proxies_priv' entry '@% root@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] Reading of all Master_info entries succeded
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] Added new Master_info '' to hash table
mariadb_1    | 2018-09-01  8:14:03 139827233201032 [Note] mysqld: ready for connections.
mariadb_1    | Version: '10.1.35-MariaDB'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MariaDB Server
mariadb_1    | 2018-09-01  8:14:05 139826636053224 [Warning] 'proxies_priv' entry '@% root@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 2018-09-01  8:14:05 139826636053224 [Warning] 'proxies_priv' entry '@% root@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 
mariadb_1    | 2018-09-01  8:14:05 139826635737832 [Note] mysqld: Normal shutdown
mariadb_1    | 2018-09-01  8:14:05 139826635737832 [Note] Event Scheduler: Purging the queue. 0 events
mariadb_1    | 2018-09-01  8:14:05 139826637249256 [Note] InnoDB: FTS optimize thread exiting.
mariadb_1    | 2018-09-01  8:14:05 139826635737832 [Note] InnoDB: Starting shutdown...
mariadb_1    | 2018-09-01  8:14:05 139826635737832 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool
mariadb_1    | 2018-09-01  8:14:07 139826635737832 [Note] InnoDB: Shutdown completed; log sequence number 1616734
mariadb_1    | 2018-09-01  8:14:07 139826635737832 [Note] mysqld: Shutdown complete
mariadb_1    | 
mariadb_1    | 
mariadb_1    | MySQL init process done. Ready for start up.
mariadb_1    | 
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] mysqld (mysqld 10.1.35-MariaDB) starting as process 1 ...
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Using mutexes to ref count buffer pool pages
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: The InnoDB memory heap is disabled
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Compressed tables use zlib 1.2.11
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Using Linux native AIO
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Using SSE crc32 instructions
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Initializing buffer pool, size = 128.0M
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Completed initialization of buffer pool
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Highest supported file format is Barracuda.
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: 128 rollback segment(s) are active.
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB: Waiting for purge to start
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616734
mariadb_1    | 2018-09-01  8:14:07 139723947924200 [Note] InnoDB: Dumping buffer pool(s) not yet started
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] Plugin 'FEEDBACK' is disabled.
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] Server socket created on IP: '0.0.0.0'.
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Warning] 'proxies_priv' entry '@% root@c76915872a36' ignored in --skip-name-resolve mode.
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] Reading of all Master_info entries succeded
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] Added new Master_info '' to hash table
mariadb_1    | 2018-09-01  8:14:07 139724544252808 [Note] mysqld: ready for connections.
mariadb_1    | Version: '10.1.35-MariaDB'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MariaDB Server
php_1        |  not found in /var/www/html - copying now...
php_1        | Complete!  has been successfully copied to /var/www/html
php_1        | [01-Sep-2018 08:13:52] NOTICE: fpm is running, pid 1
php_1        | [01-Sep-2018 08:13:52] NOTICE: ready to handle connections
php_1        | 172.18.0.7 -  01/Sep/2018:08:16:30 +0000 "GET /index.php" 302
php_1        | 172.18.0.7 -  01/Sep/2018:08:16:30 +0000 "GET /install.php" 302
php_1        | 172.18.0.7 -  01/Sep/2018:08:16:30 +0000 "GET /install.php" 200
php_1        | 172.18.0.7 -  01/Sep/2018:08:19:02 +0000 "GET /install.php" 200
php_1        | 172.18.0.7 -  01/Sep/2018:08:25:58 +0000 "GET /install.php" 200
php_1        | 172.18.0.7 -  01/Sep/2018:08:26:00 +0000 "GET /install.php" 200
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Using TOML configuration file /dev/null"
traefik_1    | time="2018-09-01T08:13:53Z" level=warning msg="web provider configuration is deprecated, you should use these options : api, rest provider, ping and metrics"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Traefik version v1.6.6 built on 2018-08-20_01:10:06PM"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://docs.traefik.io/basics/#collected-data\n"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc4206b5960} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Preparing server traefik &{Address::8080 TLS:<nil> Redirect:<nil> Auth:<nil> WhitelistSourceRange:[] WhiteList:<nil> Compress:false ProxyProtocol:<nil> ForwardedHeaders:0xc4206b5980} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Starting server on :80"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Starting provider *docker.Provider {\"Watch\":true,\"Filename\":\"\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":2,\"DebugLogGeneratedTemplate\":false,\"Endpoint\":\"unix:///var/run/docker.sock\",\"Domain\":\"\",\"TLS\":null,\"ExposedByDefault\":true,\"UseBindPortIP\":false,\"SwarmMode\":false}"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Starting server on :8080"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Server configuration reloaded on :80"
traefik_1    | time="2018-09-01T08:13:53Z" level=info msg="Server configuration reloaded on :8080"
traefik_1    | time="2018-09-01T08:13:55Z" level=info msg="Server configuration reloaded on :8080"
traefik_1    | time="2018-09-01T08:13:55Z" level=info msg="Server configuration reloaded on :80"
traefik_1    | time="2018-09-01T08:43:00Z" level=info msg="Skipping same configuration for provider docker"
csandanov commented 6 years ago

Is it vanilla drupal or do you mount your own codebase? If latter then you'll have to create the dir and manually set correct permissions

nkhine commented 6 years ago

@csandanov - it is vanilla.

can you elaborate on the process, please, in the:

    volumes:
      - ./:/var/www/html

then create code directory and volume section should this be changed to

    volumes:
      - ./code:/var/www/html

and then chown -R 1000:1000 code, is this correct?

csandanov commented 6 years ago

Do you have docker-compose.override.yml in place if it's vanilla? If there's no such file it mount codebase from your current directory. Normally this error does not happen with vanilla since it comes with the correct directories/permissions. Can't reproduce it with the latest stable version.

Create dir/fix permissions:

# Access php container 
# Alternatively use docker exec -ti [container id] bash
$ make shell

# In PHP container:
$ mkdir -p sites/default/files
# chmod to keep write permissions for wodby user
$ chmod 775 sites/default/files
$ chown www-data:www-data sites/default/files
nkhine commented 6 years ago

yes, i have the latest code from https://github.com/wodby/docker4drupal - only changes that i made are on the .env file.

i will try the changes, as suggested and advise, thanks

csandanov commented 6 years ago

Ok, there actually was a problem, we didn't have docker-compose.override.yml in docker4drupal.tar.gz archive, I tested from the repository root. Fixed now, reuploaded the archive to the latest release 5.2.0.

Thank you for reporting this!

nkhine commented 6 years ago

thanks for the quick response