Closed uxmfdesign closed 3 years ago
Docker VM new fresh install from geerlingguy-drupal-vm.zip
mike.freeman[cira-docker] $ docker-compose -help Define and run multi-container applications with Docker. Usage: docker-compose [-f <arg>...] [--profile <name>...] [options] [--] [COMMAND] [ARGS...] docker-compose -h|--help Options: -f, --file FILE Specify an alternate compose file (default: docker-compose.yml) -p, --project-name NAME Specify an alternate project name (default: directory name) --profile NAME Specify a profile to enable -c, --context NAME Specify a context name --verbose Show more output --log-level LEVEL Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) --ansi (never|always|auto) Control when to print ANSI control characters --no-ansi Do not print ANSI control characters (DEPRECATED) -v, --version Print version and exit -H, --host HOST Daemon socket to connect to --tls Use TLS; implied by --tlsverify --tlscacert CA_PATH Trust certs signed only by this CA --tlscert CLIENT_CERT_PATH Path to TLS certificate file --tlskey TLS_KEY_PATH Path to TLS key file --tlsverify Use TLS and verify the remote --skip-hostname-check Don't check the daemon's hostname against the name specified in the client certificate --project-directory PATH Specify an alternate working directory (default: the path of the Compose file) --compatibility If set, Compose will attempt to convert keys in v3 files to their non-Swarm equivalent (DEPRECATED) --env-file PATH Specify an alternate environment file Commands: build Build or rebuild services config Validate and view the Compose file create Create services down Stop and remove resources events Receive real time events from containers exec Execute a command in a running container help Get help on a command images List images kill Kill containers logs View output from containers pause Pause services port Print the public port for a port binding ps List containers pull Pull service images push Push service images restart Restart services rm Remove stopped containers run Run a one-off command scale Set number of containers for a service start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show version information and quit mike.freeman[cira-docker] $ sudo docker exec –it cira-docker /bin/bash Error: No such container: –it mike.freeman[cira-docker] $ sudo docker exec –it drupal-vm /bin/bash Error: No such container: –it mike.freeman[cira-docker] $ docker-compose up -d Creating network "cira-docker_drupalvm" with driver "bridge" Creating drupal-vm ... error ERROR: for drupal-vm Cannot start service drupal-vm: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use ERROR: for drupal-vm Cannot start service drupal-vm: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use ERROR: Encountered errors while bringing up the project. mike.freeman[cira-docker] $ docker-compose up -d Recreating drupal-vm ... done mike.freeman[cira-docker] $ docker exec drupal-vm bash -c "drush" The Drush launcher could not find a Drupal site to operate on. Please do *one* of the following: - Navigate to any where within your Drupal project and try again. - Add --root=/path/to/drupal so Drush knows where your site is located. mike.freeman[cira-docker] $ docker exec drupal-vm bash -c "drush --uri=drupalvm.test --root=/var/www/drupalvm/drupal/web status" Drupal version : 9.2.0-dev Site URI : http://drupalvm.test DB driver : mysql DB hostname : localhost DB port : DB username : drupal DB name : drupal PHP binary : /usr/bin/php7.4 PHP config : /etc/php/7.4/cli/php.ini PHP OS : Linux Drush script : /usr/local/bin/drush Drush version : 10.3.6 Drush temp : /tmp Drush configs : /root/.drush/drush.yml /var/www/drupalvm/drupal/vendor/drush/drush/drush.yml Drupal root : /var/www/drupalvm/drupal/web Site path : sites/default mike.freeman[cira-docker] $ docker exec drupal-vm bash -c "drush" The Drush launcher could not find a Drupal site to operate on. Please do *one* of the following: - Navigate to any where within your Drupal project and try again. - Add --root=/path/to/drupal so Drush knows where your site is located. mike.freeman[cira-docker] $ docker-compose kill Killing drupal-vm ... done mike.freeman[cira-docker] $ docker-compose up -d Recreating drupal-vm ... done mike.freeman[cira-docker] $ docker-compose kill Killing cira-d8 ... done mike.freeman[cira-docker] $ docker-compose up -d Building drupal-vm [+] Building 88.6s (9/9) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 804B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/geerlingguy/docker-debian10-ansible:latest 1.7s => [internal] load build context 9.4s => => transferring context: 110.69MB 9.1s => [1/5] FROM docker.io/geerlingguy/docker-debian10-ansible:latest@sha256:90a3a892265d677f408d45a687b938cd65e39847a75eddd33 30.9s => => resolve docker.io/geerlingguy/docker-debian10-ansible:latest@sha256:90a3a892265d677f408d45a687b938cd65e39847a75eddd332 0.0s => => sha256:90a3a892265d677f408d45a687b938cd65e39847a75eddd332b0d9838d25cfb7 743B / 743B 0.0s => => sha256:8bf9c589d5f9475f1fcc050e02308d6b4eeb86eab7752ef948a13693e81a6aaa 50.40MB / 50.40MB 7.4s => => sha256:4d6d684f63447601f435a5894789c98d29ab44a9c4ee2e708dd32542029f39c5 157.00MB / 157.00MB 13.0s => => sha256:36828b4fda3aa06320ac72ff1856566289620264b563271e9bbe38df51a44cdf 4.16MB / 4.16MB 1.4s => => sha256:25b6692bb49c95675c4e0418cbe203039b9970d06bfb3d7c9395b185c606080c 2.20kB / 2.20kB 0.0s => => sha256:f4c5f7c68f63418f4e4a84ee10cc8ac3ad9c04b8f8ab0a37d3d02ef6950d91c4 3.76kB / 3.76kB 0.0s => => sha256:da63cc1fdf05301a4f5cbc77b8861b112d4c972567ef6b872abb97fc2c38d53a 145.76MB / 145.76MB 13.4s => => sha256:8da9dba44435952d28b02734f1135c614fbfe4dc549f589628e57b4ba7c40a20 297B / 297B 7.9s => => extracting sha256:8bf9c589d5f9475f1fcc050e02308d6b4eeb86eab7752ef948a13693e81a6aaa 3.9s => => sha256:8586a5fb509defde236c35cea68c7b3e9628f831a800895f4744a626548a6e0a 355B / 355B 8.2s => => sha256:9aa2c8589e50b653dada7b0d5c384b6f8bf6e087e81d61e86dda16fc67b2f182 123B / 123B 8.3s => => sha256:b1d9a93164fedc93f1e02d74cb4322ca3ba82cccfae55561adbd01631b8227ab 189B / 189B 8.5s => => sha256:ddbbf12bfd7e16fd77e17a2c7006884524164bac889617411ce69284646d4ab0 221B / 221B 8.6s => => extracting sha256:4d6d684f63447601f435a5894789c98d29ab44a9c4ee2e708dd32542029f39c5 6.2s => => extracting sha256:36828b4fda3aa06320ac72ff1856566289620264b563271e9bbe38df51a44cdf 0.3s => => extracting sha256:da63cc1fdf05301a4f5cbc77b8861b112d4c972567ef6b872abb97fc2c38d53a 9.7s => => extracting sha256:8da9dba44435952d28b02734f1135c614fbfe4dc549f589628e57b4ba7c40a20 0.0s => => extracting sha256:8586a5fb509defde236c35cea68c7b3e9628f831a800895f4744a626548a6e0a 0.0s => => extracting sha256:9aa2c8589e50b653dada7b0d5c384b6f8bf6e087e81d61e86dda16fc67b2f182 0.0s => => extracting sha256:b1d9a93164fedc93f1e02d74cb4322ca3ba82cccfae55561adbd01631b8227ab 0.0s => => extracting sha256:ddbbf12bfd7e16fd77e17a2c7006884524164bac889617411ce69284646d4ab0 0.0s => [2/5] COPY ./ /etc/ansible/drupal-vm 8.1s => [3/5] COPY ./provisioning/docker/vars/docker-hub-overrides.yml /etc/ansible/drupal-vm/local.config.yml 0.0s => [4/5] COPY ./provisioning/docker/bin/* /usr/local/bin 0.0s => ERROR [5/5] RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/ 47.7s ------ > [5/5] RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/bin/python3" && systemctl enable php7.4-fpm.service: #9 1.808 #9 1.808 PLAY [all] ********************************************************************* #9 1.979 #9 1.979 TASK [Gathering Facts] ********************************************************* #9 2.923 ok: [localhost] #9 2.940 #9 2.940 TASK [Include OS-specific variables.] ****************************************** #9 2.985 ok: [localhost] #9 3.000 #9 3.000 TASK [Define config_dir.] ****************************************************** #9 3.040 ok: [localhost] #9 3.056 #9 3.056 TASK [Include optional configuration files.] *********************************** #9 3.117 ok: [localhost] => (item=/etc/ansible/drupal-vm/config.yml) #9 3.120 ok: [localhost] => (item=/etc/ansible/drupal-vm/local.config.yml) #9 3.137 #9 3.137 TASK [Configure toggle vars for Debian/Ubuntu.] ******************************** #9 3.174 ok: [localhost] #9 3.190 #9 3.190 TASK [Configure toggle vars for CentOS.] *************************************** #9 3.224 skipping: [localhost] #9 3.240 #9 3.240 TASK [Ensure Apache is stopped and disabled if Nginx is used.] ***************** #9 3.276 skipping: [localhost] #9 3.292 #9 3.292 TASK [Ensure Nginx is stopped and disabled if Apache is used.] ***************** #9 3.936 ok: [localhost] #9 3.951 #9 3.951 TASK [Ensure MySQL is stopped and disabled if Postgres is used.] *************** #9 3.984 skipping: [localhost] #9 3.999 #9 3.999 TASK [Ensure Postgres is stopped and disabled if MySQL is used.] *************** #9 4.344 ok: [localhost] #9 4.359 #9 4.359 TASK [nginx_hosts shim] ******************************************************** #9 4.416 ok: [localhost] #9 4.430 #9 4.430 TASK [include_tasks] *********************************************************** #9 4.480 included: /etc/ansible/drupal-vm/provisioning/tasks/init-Debian.yml for localhost #9 4.500 #9 4.500 TASK [Update apt cache if needed.] ********************************************* #9 10.89 ok: [localhost] #9 10.89 [WARNING]: Updating cache and auto-installing missing dependency: python3-apt #9 10.91 #9 10.91 TASK [Install required dependencies.] ****************************************** #9 23.45 changed: [localhost] #9 23.47 #9 23.47 TASK [Add repository for Apache 2.4.9+ (Ubuntu 12/14).] ************************ #9 23.50 skipping: [localhost] #9 23.52 #9 23.52 TASK [Define php_xhprof_html_dir.] ********************************************* #9 23.55 skipping: [localhost] #9 23.57 #9 23.57 TASK [Run configured pre-provision shell scripts.] ***************************** #9 23.62 #9 23.62 TASK [Run configured pre-provision ansible task files.] ************************ #9 23.67 #9 23.67 TASK [Set the PHP webserver daemon correctly when nginx is in use.] ************ #9 23.70 skipping: [localhost] #9 23.72 #9 23.72 TASK [Ensure PHP version-specific workspace directory exists.] ***************** #9 24.16 changed: [localhost] #9 24.19 #9 24.19 TASK [geerlingguy.repo-epel : Check if EPEL repo is already configured.] ******* #9 24.23 skipping: [localhost] #9 24.25 #9 24.25 TASK [geerlingguy.repo-epel : Import EPEL GPG key.] **************************** #9 24.28 skipping: [localhost] #9 24.30 #9 24.30 TASK [geerlingguy.repo-epel : Install EPEL repo.] ****************************** #9 24.34 skipping: [localhost] #9 24.35 #9 24.35 TASK [geerlingguy.repo-epel : Disable Main EPEL repo.] ************************* #9 24.39 skipping: [localhost] #9 24.41 #9 24.41 TASK [geerlingguy.repo-remi : Import remi GPG key.] **************************** #9 24.44 skipping: [localhost] #9 24.46 #9 24.46 TASK [geerlingguy.repo-remi : Install remi repo.] ****************************** #9 24.49 skipping: [localhost] #9 24.51 #9 24.51 TASK [drupalvm.hostname : Configure /etc/mailname (Debian).] ******************* #9 24.55 skipping: [localhost] #9 24.56 #9 24.56 TASK [drupalvm.hostname : Add hostname to /etc/hosts.] ************************* #9 24.60 skipping: [localhost] #9 24.61 #9 24.61 TASK [drupalvm.hostname : Configure hostname.] ********************************* #9 24.65 skipping: [localhost] #9 24.67 #9 24.67 TASK [drupalvm.hostname : Set the hostname for current session.] *************** #9 24.71 skipping: [localhost] #9 24.72 #9 24.72 TASK [geerlingguy.firewall : Ensure iptables is present.] ********************** #9 24.76 skipping: [localhost] #9 24.78 #9 24.78 TASK [geerlingguy.firewall : Flush iptables the first time playbook runs.] ***** #9 24.81 skipping: [localhost] #9 24.83 #9 24.83 TASK [geerlingguy.firewall : Copy firewall script into place.] ***************** #9 24.87 skipping: [localhost] #9 24.88 #9 24.88 TASK [geerlingguy.firewall : Copy firewall init script into place.] ************ #9 24.92 skipping: [localhost] #9 24.94 #9 24.94 TASK [geerlingguy.firewall : Copy firewall systemd unit file into place (for systemd systems).] *** #9 24.97 skipping: [localhost] #9 24.99 #9 24.99 TASK [geerlingguy.firewall : Configure the firewall service.] ****************** #9 25.02 skipping: [localhost] #9 25.04 #9 25.04 TASK [geerlingguy.firewall : Check if firewalld package is installed (on RHEL).] *** #9 25.07 skipping: [localhost] #9 25.09 #9 25.09 TASK [geerlingguy.firewall : Disable the firewalld service (on RHEL, if configured).] *** #9 25.12 skipping: [localhost] #9 25.14 #9 25.14 TASK [geerlingguy.firewall : Check if ufw package is installed (on Ubuntu).] *** #9 25.17 skipping: [localhost] #9 25.19 #9 25.19 TASK [geerlingguy.firewall : Disable the ufw firewall (on Ubuntu, if configured).] *** #9 25.22 skipping: [localhost] #9 25.24 #9 25.24 TASK [geerlingguy.firewall : Check if ufw package is installed (on Archlinux).] *** #9 25.28 skipping: [localhost] #9 25.30 #9 25.30 TASK [geerlingguy.firewall : Disable the ufw firewall (on Archlinux, if configured).] *** #9 25.34 skipping: [localhost] #9 25.36 #9 25.36 TASK [geerlingguy.git : Ensure git is installed (RedHat).] ********************* #9 25.40 skipping: [localhost] #9 25.41 #9 25.41 TASK [geerlingguy.git : Update apt cache (Debian).] **************************** #9 26.61 ok: [localhost] #9 26.63 #9 26.63 TASK [geerlingguy.git : Ensure git is installed (Debian).] ********************* #9 33.43 changed: [localhost] #9 33.45 #9 33.45 TASK [geerlingguy.git : Include OS-specific variables (RedHat).] *************** #9 33.48 skipping: [localhost] #9 33.50 #9 33.50 TASK [geerlingguy.git : Include OS-specific variables (Fedora).] *************** #9 33.53 skipping: [localhost] #9 33.55 #9 33.55 TASK [geerlingguy.git : Include OS-specific variables (Debian).] *************** #9 33.59 skipping: [localhost] #9 33.60 #9 33.60 TASK [geerlingguy.git : Define git_install_from_source_dependencies.] ********** #9 33.64 skipping: [localhost] #9 33.65 #9 33.65 TASK [geerlingguy.git : Ensure git's dependencies are installed.] ************** #9 33.69 skipping: [localhost] #9 33.70 #9 33.70 TASK [geerlingguy.git : Get installed version.] ******************************** #9 33.74 skipping: [localhost] #9 33.75 #9 33.75 TASK [geerlingguy.git : Force git install if the version numbers do not match.] *** #9 33.79 skipping: [localhost] #9 33.81 #9 33.81 TASK [geerlingguy.git : Download git.] ***************************************** #9 33.85 skipping: [localhost] #9 33.87 #9 33.87 TASK [geerlingguy.git : Expand git archive.] *********************************** #9 33.90 skipping: [localhost] #9 33.92 #9 33.92 TASK [geerlingguy.git : Build git.] ******************************************** #9 33.96 skipping: [localhost] => (item=all) #9 33.96 skipping: [localhost] => (item=install) #9 33.98 #9 33.98 TASK [geerlingguy.postfix : Ensure postfix is installed.] ********************** #9 46.52 changed: [localhost] #9 46.54 #9 46.54 TASK [geerlingguy.postfix : Update Postfix configuration.] ********************* #9 46.96 changed: [localhost] => (item={'name': 'inet_interfaces', 'value': 'localhost'}) #9 47.15 ok: [localhost] => (item={'name': 'inet_protocols', 'value': 'all'}) #9 47.16 #9 47.16 TASK [geerlingguy.postfix : Ensure postfix is started and enabled at boot.] **** #9 47.50 fatal: [localhost]: FAILED! => {"changed": false, "msg": "Service is in unknown state", "status": {}} #9 47.50 #9 47.50 RUNNING HANDLER [geerlingguy.postfix : restart postfix] ************************ #9 47.50 #9 47.50 PLAY RECAP ********************************************************************* #9 47.50 localhost : ok=16 changed=5 unreachable=0 failed=1 skipped=41 rescued=0 ignored=0 #9 47.50 ------ executor failed running [/bin/sh -c ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/bin/python3" && systemctl enable php7.4-fpm.service]: exit code: 2 ERROR: Service 'drupal-vm' failed to build mike.freeman[cira-docker] $ docker-compose kill mike.freeman[cira-docker] $ docker-compose up -d Building drupal-vm [+] Building 49.1s (9/9) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 127B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/geerlingguy/docker-debian10-ansible:latest 0.4s => [internal] load build context 3.1s => => transferring context: 3.21MB 3.0s => CACHED [1/5] FROM docker.io/geerlingguy/docker-debian10-ansible:latest@sha256:90a3a892265d677f408d45a687b938cd65e39847a75 0.0s => [2/5] COPY ./ /etc/ansible/drupal-vm 4.7s => [3/5] COPY ./provisioning/docker/vars/docker-hub-overrides.yml /etc/ansible/drupal-vm/local.config.yml 0.0s => [4/5] COPY ./provisioning/docker/bin/* /usr/local/bin 0.0s => ERROR [5/5] RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/ 40.7s ------ > [5/5] RUN ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/bin/python3" && systemctl enable php7.4-fpm.service: #9 1.597 #9 1.597 PLAY [all] ********************************************************************* #9 1.734 #9 1.734 TASK [Gathering Facts] ********************************************************* #9 2.530 ok: [localhost] #9 2.546 #9 2.546 TASK [Include OS-specific variables.] ****************************************** #9 2.578 ok: [localhost] #9 2.593 #9 2.593 TASK [Define config_dir.] ****************************************************** #9 2.630 ok: [localhost] #9 2.646 #9 2.646 TASK [Include optional configuration files.] *********************************** #9 2.700 ok: [localhost] => (item=/etc/ansible/drupal-vm/config.yml) #9 2.704 ok: [localhost] => (item=/etc/ansible/drupal-vm/local.config.yml) #9 2.719 #9 2.719 TASK [Configure toggle vars for Debian/Ubuntu.] ******************************** #9 2.756 ok: [localhost] #9 2.771 #9 2.771 TASK [Configure toggle vars for CentOS.] *************************************** #9 2.802 skipping: [localhost] #9 2.817 #9 2.817 TASK [Ensure Apache is stopped and disabled if Nginx is used.] ***************** #9 2.847 skipping: [localhost] #9 2.862 #9 2.862 TASK [Ensure Nginx is stopped and disabled if Apache is used.] ***************** #9 3.464 ok: [localhost] #9 3.479 #9 3.479 TASK [Ensure MySQL is stopped and disabled if Postgres is used.] *************** #9 3.511 skipping: [localhost] #9 3.525 #9 3.525 TASK [Ensure Postgres is stopped and disabled if MySQL is used.] *************** #9 3.805 ok: [localhost] #9 3.818 #9 3.818 TASK [nginx_hosts shim] ******************************************************** #9 3.904 ok: [localhost] #9 3.940 #9 3.940 TASK [include_tasks] *********************************************************** #9 3.992 included: /etc/ansible/drupal-vm/provisioning/tasks/init-Debian.yml for localhost #9 4.013 #9 4.013 TASK [Update apt cache if needed.] ********************************************* #9 9.580 [WARNING]: Updating cache and auto-installing missing dependency: python3-apt #9 9.580 ok: [localhost] #9 9.597 #9 9.597 TASK [Install required dependencies.] ****************************************** #9 18.42 changed: [localhost] #9 18.44 #9 18.44 TASK [Add repository for Apache 2.4.9+ (Ubuntu 12/14).] ************************ #9 18.47 skipping: [localhost] #9 18.49 #9 18.49 TASK [Define php_xhprof_html_dir.] ********************************************* #9 18.52 skipping: [localhost] #9 18.54 #9 18.54 TASK [Run configured pre-provision shell scripts.] ***************************** #9 18.58 #9 18.58 TASK [Run configured pre-provision ansible task files.] ************************ #9 18.64 #9 18.64 TASK [Set the PHP webserver daemon correctly when nginx is in use.] ************ #9 18.67 skipping: [localhost] #9 18.68 #9 18.68 TASK [Ensure PHP version-specific workspace directory exists.] ***************** #9 19.09 changed: [localhost] #9 19.12 #9 19.12 TASK [geerlingguy.repo-epel : Check if EPEL repo is already configured.] ******* #9 19.15 skipping: [localhost] #9 19.16 #9 19.16 TASK [geerlingguy.repo-epel : Import EPEL GPG key.] **************************** #9 19.20 skipping: [localhost] #9 19.21 #9 19.21 TASK [geerlingguy.repo-epel : Install EPEL repo.] ****************************** #9 19.24 skipping: [localhost] #9 19.26 #9 19.26 TASK [geerlingguy.repo-epel : Disable Main EPEL repo.] ************************* #9 19.29 skipping: [localhost] #9 19.30 #9 19.30 TASK [geerlingguy.repo-remi : Import remi GPG key.] **************************** #9 19.34 skipping: [localhost] #9 19.36 #9 19.36 TASK [geerlingguy.repo-remi : Install remi repo.] ****************************** #9 19.39 skipping: [localhost] #9 19.41 #9 19.41 TASK [drupalvm.hostname : Configure /etc/mailname (Debian).] ******************* #9 19.44 skipping: [localhost] #9 19.45 #9 19.45 TASK [drupalvm.hostname : Add hostname to /etc/hosts.] ************************* #9 19.49 skipping: [localhost] #9 19.50 #9 19.50 TASK [drupalvm.hostname : Configure hostname.] ********************************* #9 19.53 skipping: [localhost] #9 19.55 #9 19.55 TASK [drupalvm.hostname : Set the hostname for current session.] *************** #9 19.58 skipping: [localhost] #9 19.60 #9 19.60 TASK [geerlingguy.firewall : Ensure iptables is present.] ********************** #9 19.63 skipping: [localhost] #9 19.64 #9 19.64 TASK [geerlingguy.firewall : Flush iptables the first time playbook runs.] ***** #9 19.68 skipping: [localhost] #9 19.69 #9 19.69 TASK [geerlingguy.firewall : Copy firewall script into place.] ***************** #9 19.73 skipping: [localhost] #9 19.74 #9 19.74 TASK [geerlingguy.firewall : Copy firewall init script into place.] ************ #9 19.78 skipping: [localhost] #9 19.79 #9 19.79 TASK [geerlingguy.firewall : Copy firewall systemd unit file into place (for systemd systems).] *** #9 19.82 skipping: [localhost] #9 19.84 #9 19.84 TASK [geerlingguy.firewall : Configure the firewall service.] ****************** #9 19.87 skipping: [localhost] #9 19.89 #9 19.89 TASK [geerlingguy.firewall : Check if firewalld package is installed (on RHEL).] *** #9 19.92 skipping: [localhost] #9 19.93 #9 19.93 TASK [geerlingguy.firewall : Disable the firewalld service (on RHEL, if configured).] *** #9 19.97 skipping: [localhost] #9 19.98 #9 19.98 TASK [geerlingguy.firewall : Check if ufw package is installed (on Ubuntu).] *** #9 20.02 skipping: [localhost] #9 20.03 #9 20.03 TASK [geerlingguy.firewall : Disable the ufw firewall (on Ubuntu, if configured).] *** #9 20.07 skipping: [localhost] #9 20.08 #9 20.08 TASK [geerlingguy.firewall : Check if ufw package is installed (on Archlinux).] *** #9 20.12 skipping: [localhost] #9 20.13 #9 20.13 TASK [geerlingguy.firewall : Disable the ufw firewall (on Archlinux, if configured).] *** #9 20.16 skipping: [localhost] #9 20.18 #9 20.18 TASK [geerlingguy.git : Ensure git is installed (RedHat).] ********************* #9 20.21 skipping: [localhost] #9 20.23 #9 20.23 TASK [geerlingguy.git : Update apt cache (Debian).] **************************** #9 21.31 ok: [localhost] #9 21.33 #9 21.33 TASK [geerlingguy.git : Ensure git is installed (Debian).] ********************* #9 27.49 changed: [localhost] #9 27.51 #9 27.51 TASK [geerlingguy.git : Include OS-specific variables (RedHat).] *************** #9 27.54 skipping: [localhost] #9 27.56 #9 27.56 TASK [geerlingguy.git : Include OS-specific variables (Fedora).] *************** #9 27.59 skipping: [localhost] #9 27.61 #9 27.61 TASK [geerlingguy.git : Include OS-specific variables (Debian).] *************** #9 27.64 skipping: [localhost] #9 27.65 #9 27.65 TASK [geerlingguy.git : Define git_install_from_source_dependencies.] ********** #9 27.69 skipping: [localhost] #9 27.70 #9 27.70 TASK [geerlingguy.git : Ensure git's dependencies are installed.] ************** #9 27.73 skipping: [localhost] #9 27.75 #9 27.75 TASK [geerlingguy.git : Get installed version.] ******************************** #9 27.78 skipping: [localhost] #9 27.80 #9 27.80 TASK [geerlingguy.git : Force git install if the version numbers do not match.] *** #9 27.83 skipping: [localhost] #9 27.85 #9 27.85 TASK [geerlingguy.git : Download git.] ***************************************** #9 27.88 skipping: [localhost] #9 27.90 #9 27.90 TASK [geerlingguy.git : Expand git archive.] *********************************** #9 27.93 skipping: [localhost] #9 27.94 #9 27.94 TASK [geerlingguy.git : Build git.] ******************************************** #9 28.02 skipping: [localhost] => (item=all) #9 28.03 skipping: [localhost] => (item=install) #9 28.04 #9 28.04 TASK [geerlingguy.postfix : Ensure postfix is installed.] ********************** #9 39.53 changed: [localhost] #9 39.55 #9 39.55 TASK [geerlingguy.postfix : Update Postfix configuration.] ********************* #9 39.93 changed: [localhost] => (item={'name': 'inet_interfaces', 'value': 'localhost'}) #9 40.09 ok: [localhost] => (item={'name': 'inet_protocols', 'value': 'all'}) #9 40.11 #9 40.11 TASK [geerlingguy.postfix : Ensure postfix is started and enabled at boot.] **** #9 40.44 fatal: [localhost]: FAILED! => {"changed": false, "msg": "Service is in unknown state", "status": {}} #9 40.44 #9 40.44 RUNNING HANDLER [geerlingguy.postfix : restart postfix] ************************ #9 40.45 #9 40.45 PLAY RECAP ********************************************************************* #9 40.45 localhost : ok=16 changed=5 unreachable=0 failed=1 skipped=41 rescued=0 ignored=0 #9 40.45 ------ executor failed running [/bin/sh -c ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/bin/python3" && systemctl enable php7.4-fpm.service]: exit code: 2 ERROR: Service 'drupal-vm' failed to builde. -->
I get the following error when I run docker-composer up -d
docker-composer up -d
#9 40.45 ------ executor failed running [/bin/sh -c ansible-playbook /etc/ansible/drupal-vm/provisioning/playbook.yml -e "ansible_python_interpreter=/usr/bin/python3" && systemctl enable php7.4-fpm.service]: exit code: 2 ERROR: Service 'drupal-vm' failed to build
The only change that has been made to the docker-composer.yml is changing the port from 80:80 to 8888:8888.
This is currently a known issue and may be related to a bug in Ansible: https://github.com/geerlingguy/drupal-vm/issues/2090
Issue Type
Your Environment
Your OS
Full console output
Summary
I get the following error when I run
docker-composer up -d
The only change that has been made to the docker-composer.yml is changing the port from 80:80 to 8888:8888.