Varying-Vagrant-Vagrants / VVV

An open source Vagrant configuration for developing with WordPress
https://varyingvagrantvagrants.org
MIT License
4.54k stars 848 forks source link

Site Provision on Multisite Faililing #2025

Closed benleeth closed 4 years ago

benleeth commented 4 years ago

Updated the vagrant box and pulled the VVV repo for update this morning. Provisioning now fails with multiple hosts listed.

Expected Behavior

Normal VVV operations

Current Behavior

Receiving error "Job for nginx.service failed because the control process exited with error code." and VVV not working. Removing any and all subdirectory or subdomain multisites, things work correctly.

Possible Solution

I don't know what the solution is but I can see what is going wrong. Under normal provisioning of the nginx.conf file, it would be something like server_name vvv vvv.dev vvv.local vvv.localhost;. But, the vvv-auto-bone-dry-provision-5044fd9a0ee0c5b29ca4f7d5c3b16d0a.conf file has server_name {vvv_hosts};.

Your Environment

OS: OS X 10.15.1 VirtualBox: 6.0 VVV: 3.3.0-develop

Logs

provision:

``` ==> default: Checking if box 'ubuntu/bionic64' version '20191205.0.0' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat default: Adapter 2: hostonly ==> default: Forwarding ports... default: 22 (guest) => 2222 (host) (adapter 1) ==> default: Running 'pre-boot' VM customizations... ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key ==> default: Machine booted and ready! ==> default: Checking for guest additions in VM... default: The guest additions on this VM do not match the installed version of default: VirtualBox! In most cases this is fine, but in rare cases it can default: prevent things such as shared folders from working properly. If you see default: shared folder errors, please make sure the guest additions within the default: virtual machine match the version of VirtualBox you have installed on default: your host and reload your VM. default: default: Guest Additions Version: 5.2.8_KernelUbuntu r120774 default: VirtualBox Version: 6.0 ==> default: [vagrant-hostsupdater] Checking for host entries ==> default: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts) ==> default: [vagrant-hostsupdater] 192.168.50.4 vvv # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 vvv.test # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/cincinnati # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/columbus # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/fort-wayne # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/indianapolis # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/lafayette # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/lexington # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/louisville # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/nashville # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] 192.168.50.4 bonedry.test/st-louis # VAGRANT: a2fb5aab054a98511b935d7a376a75b1 (default) / 3a069b05-4104-4ae4-bd3a-97e31cbe31ca ==> default: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file. ==> default: Setting hostname... ==> default: Configuring and enabling network interfaces... ==> default: Mounting shared folders... default: /srv/www => /Users/bleeth/vagrant-local/www default: /srv/config => /Users/bleeth/vagrant-local/config default: /var/log/php => /Users/bleeth/vagrant-local/log/php default: /srv/database => /Users/bleeth/vagrant-local/database/sql default: /var/log/nginx => /Users/bleeth/vagrant-local/log/nginx default: /srv/provision => /Users/bleeth/vagrant-local/provision default: /srv/certificates => /Users/bleeth/vagrant-local/certificates default: /var/log/memcached => /Users/bleeth/vagrant-local/log/memcached default: /var/log/provisioners => /Users/bleeth/vagrant-local/log/provisioners ==> default: Running provisioner: file... default: /Users/bleeth/vagrant-local/version => /home/vagrant/version ==> default: Running provisioner: default (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1ipl38.sh default: * Beginning Main VVV Provisioner, if this is the first provision this may take a few minutes default: * Testing network connection default: * Succesful Network connection to ppa.launchpad.net detected... default: * Bash profile setup and directories. default: * Setting ownership of files in /home/vagrant to vagrant default: * Copying /srv/config/bash_profile to /home/vagrant/.bash_profile default: * Copying /srv/config/bash_aliases to /home/vagrant/.bash_aliases default: * Copying /srv/config/vimrc to /home/vagrant/.vimrc default: * Copying /srv/config/subversion-servers to /home/vagrant/.subversion/servers default: * Copying /srv/config/subversion-config to /home/vagrant/.subversion/config default: * Copying /srv/config/ssh_known_hosts to /etc/ssh/ssh_known_hosts default: * Copying /srv/config/sshd_config to /etc/ssh/sshd_config default: * Reloading SSH Daemon default: * Testing network connection default: * Succesful Network connection to ppa.launchpad.net detected... default: default: * Main packages check and install. default: * git-core/ppa already present, skipping default: default: * Setting up MySQL configuration file links... default: * mysql group exists default: * mysql user present and has uid 9001 default: uid=9001(mysql) gid=9001(mysql) groups=9001(mysql),115(vboxsf) default: * Copying /srv/config/mysql-config/vvv-core.cnf to /etc/mysql/conf.d/vvv-core.cnf default: * Copying custom apt sources default: * Checking Apt Keys default: * Running apt-get update... default: Hit:1 https://deb.nodesource.com/node_10.x bionic InRelease default: Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease default: Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease default: Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease default: Hit:6 http://ppa.launchpad.net/varying-vagrant-vagrants/php/ubuntu bionic InRelease default: Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease default: Hit:8 https://nginx.org/packages/mainline/ubuntu bionic InRelease default: Get:9 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] default: Hit:5 https://packagecloud.io/github/git-lfs/ubuntu bionic InRelease default: Hit:10 https://mirror.herrbischoff.com/mariadb/repo/10.3/ubuntu bionic InRelease default: Fetched 74.6 kB in 1s (74.4 kB/s) default: Reading package lists... default: * Installing apt-get packages... default: Reading package lists... default: Building dependency tree... default: Reading state information... default: make is already the newest version (4.1-9.1ubuntu1). default: unzip is already the newest version (6.0-21ubuntu1). default: zip is already the newest version (3.0-11build1). default: colordiff is already the newest version (1.0.18-1). default: dos2unix is already the newest version (7.3.4-3). default: graphviz is already the newest version (2.40.1-2). default: ngrep is already the newest version (1.47+ds1-1). default: subversion is already the newest version (1.9.7-4ubuntu1). default: curl is already the newest version (7.58.0-2ubuntu3.8). default: g++ is already the newest version (4:7.4.0-1ubuntu2.3). default: gettext is already the newest version (0.19.8.1-6ubuntu0.3). default: git is already the newest version (1:2.17.1-1ubuntu0.4). default: imagemagick is already the newest version (8:6.9.7.4+dfsg-16ubuntu6.8). default: memcached is already the newest version (1.5.6-0ubuntu1.2). default: postfix is already the newest version (3.3.0-1ubuntu0.2). default: software-properties-common is already the newest version (0.96.24.32.11). default: vim is already the newest version (2:8.0.1453-1ubuntu1.1). default: git-svn is already the newest version (1:2.17.1-1ubuntu0.4). default: ntp is already the newest version (1:4.2.8p10+dfsg-5ubuntu7.1). default: ntpdate is already the newest version (1:4.2.8p10+dfsg-5ubuntu7.1). default: python-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1). default: nginx is already the newest version (1.17.6-1~bionic). default: php-imagick is already the newest version (3.4.4-1+ubuntu18.04.1+deb.sury.org+20191129). default: php-memcache is already the newest version (3.0.9~20170802.e702b5f-3+ubuntu18.04.1+deb.sury.org+20191129). default: php-memcached is already the newest version (3.1.4+2.2.0-1+ubuntu18.04.1+deb.sury.org+20191129). default: php-pear is already the newest version (1:1.10.8+submodules+notgz-1+ubuntu18.04.1+deb.sury.org+1). default: php-ssh2 is already the newest version (1.1.2+0.13-5+ubuntu18.04.1+deb.sury.org+20191129). default: php-xdebug is already the newest version (2.8.1+2.5.5-1+ubuntu18.04.1+deb.sury.org+1). default: php-yaml is already the newest version (2.0.4+1.3.2-1+ubuntu18.04.1+deb.sury.org+20191129). default: php7.2-bcmath is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-cli is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-common is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-curl is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-dev is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-fpm is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-gd is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-imap is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-json is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-mbstring is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-mysql is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-soap is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-xml is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: php7.2-zip is already the newest version (7.2.25-1+ubuntu18.04.1+deb.sury.org+1). default: mariadb-server is already the newest version (1:10.3.20+maria~bionic). default: nodejs is already the newest version (10.17.0-1nodesource1). default: git-lfs is already the newest version (2.9.1). default: 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. default: * Removing unnecessary packages... default: Reading package lists... default: Building dependency tree... default: default: Reading state information... default: 0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. default: * Cleaning apt caches... default: * Running tools_install default: Disabling XDebug if it's present default: Enabling tideways_xhprof and xhgui if installed default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.4/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.4/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.3/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.3/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.2/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.2/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.0/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/7.0/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/5.6/mods-available default: WARNING: Module tideways_xhprof ini file doesn't exist under /etc/php/5.6/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.4/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.4/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.3/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.3/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.2/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.2/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.0/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/7.0/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/5.6/mods-available default: WARNING: Module xhgui ini file doesn't exist under /etc/php/5.6/mods-available default: Restarting PHP FPM's default: XDebug is turned off default: * Checking for NVM default: * Installing/updating npm... default: /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js default: /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js default: + npm@6.13.2 default: updated 1 package in 6.837s default: * Installing/updating npm-check-updates... default: /usr/bin/npm-check-updates -> /usr/lib/node_modules/npm-check-updates/bin/npm-check-updates default: /usr/bin/ncu -> /usr/lib/node_modules/npm-check-updates/bin/ncu default: + npm-check-updates@3.2.2 default: updated 1 package in 6.465s default: * ack-grep already installed default: * Making sure the composer cache is not owned by root default: * Checking for Composer default: * Updating Composer... default: Changed current directory to /usr/local/src/composer default: You are already using composer version 1.9.1 (stable channel). default: Changed current directory to /usr/local/src/composer default: ./composer.json has been updated default: Changed current directory to /usr/local/src/composer default: Loading composer repositories with package information default: Updating dependencies (including require-dev) default: Nothing to install or update default: Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested. default: Generating autoload files default: * Updating Grunt CLI default: * Updated Grunt CLI default: * Adding graphviz symlink for Webgrind... default: * Installing Shyaml for bash provisioning.. default: Requirement already satisfied: shyaml in /usr/local/lib/python2.7/dist-packages default: Requirement already satisfied: pyyaml in /usr/local/lib/python2.7/dist-packages (from shyaml) default: * Setup configuration files... default: * Copying /srv/config/init/vvv-start.conf to /etc/init/vvv-start.conf default: * Copying /srv/config/nginx-config/nginx.conf to /etc/nginx/nginx.conf default: * Copying /srv/config/nginx-config/nginx-wp-common.conf to /etc/nginx/nginx-wp-common.conf default: * Copying /srv/config/nginx-config/php7.2-upstream.conf to /etc/nginx/upstreams/php72.conf default: * Rsync'ing /srv/config/nginx-config/sites/ to /etc/nginx/custom-sites default: sending incremental file list default: deleting vvv-auto-trainual-provision-9803e3249d5cae6ea76c0edb36dab119.conf default: deleting vvv-auto-design-pickle-provision-c750e186faa95e08c6b57f29d7e02bb4.conf default: deleting vvv-auto-bone-dry-provision-5044fd9a0ee0c5b29ca4f7d5c3b16d0a.conf default: default.conf default: local-nginx-example.conf-sample default: sent 1.90K bytes received 266 bytes 4.33K bytes/sec default: total size is 4.08K speedup is 1.88 default: * Making sure the Nginx log files and folder exist default: * Starting MailHog default: * Copying /srv/config/php-config/php7.2-fpm.conf to /etc/php/7.2/fpm/php-fpm.conf default: * Copying /srv/config/php-config/php7.2-www.conf to /etc/php/7.2/fpm/pool.d/www.conf default: * Copying /srv/config/php-config/php7.2-custom.ini to /etc/php/7.2/fpm/conf.d/php-custom.ini default: * Copying /srv/config/php-config/opcache.ini to /etc/php/7.2/fpm/conf.d/opcache.ini default: * Copying /srv/config/php-config/xdebug.ini to /etc/php/7.2/mods-available/xdebug.ini default: * Copying /srv/config/php-config/mailhog.ini to /etc/php/7.2/mods-available/mailhog.ini default: * Copying /srv/config/memcached-config/memcached.conf to /etc/memcached.conf and /etc/memcached_default.conf default: * Restarting services... default: default: * Setup MySQL configuration file links... default: * Copied /srv/config/mysql-config/my.cnf to /etc/mysql/my.cnf default: * Copied /srv/config/mysql-config/root-my.cnf to /home/vagrant/.my.cnf default: * service mysql restart default: default: * No custom MySQL scripting found in database/init-custom.sql, skipping... default: * Initial MySQL prep... default: * Starting MariaDB Database Import default: * Creating the `axiomport` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `axiomport` - tables exist default: * Creating the `blumlux` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `blumlux` - tables exist default: * Creating the `bone-dry` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `bone-dry` - tables exist default: * Creating the `cornerstone-autism` database if it doesn't already exist, and granting the wp user access default: mysql -u root -proot "cornerstone-autism" < "cornerstone-autism.sql" default: * Import of `cornerstone-autism` successful default: * Creating the `cryotherapy-indy` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `cryotherapy-indy` - tables exist default: * Creating the `design-pickle` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `design-pickle` - tables exist default: * Creating the `emplify` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `emplify` - tables exist default: * Creating the `hc1` database if it doesn't already exist, and granting the wp user access default: mysql -u root -proot "hc1" < "hc1.sql" default: * Import of `hc1` successful default: * Creating the `hc1ag` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `hc1ag` - tables exist default: * Creating the `ihca` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `ihca` - tables exist default: * Creating the `lgces2019` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `lgces2019` - tables exist default: * Creating the `lgces2020` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `lgces2020` - tables exist default: * Creating the `trainual` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `trainual` - tables exist default: * Creating the `wordpress-one` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `wordpress-one` - tables exist default: * Creating the `wordpress-two` database if it doesn't already exist, and granting the wp user access default: * Skipped import of `wordpress-two` - tables exist default: * Databases imported default: * Testing network connection default: * Succesful Network connection to ppa.launchpad.net detected... default: default: * Installing/updating wp-cli and debugging tools default: * Updating wp-cli... default: Downloading from https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar... default: md5 hash verified: 2a9834f6bba6341eb0db4f95aa8b9ede default: New version works. Proceeding to replace. default: Success: Updated WP-CLI to the latest nightly release. default: default: * Install/Update PHP_CodeSniffer (phpcs), see https://github.com/squizlabs/PHP_CodeSniffer default: default: * Install/Update WordPress-Coding-Standards, sniffs for PHP_CodeSniffer, see https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards default: Loading composer repositories with package information default: Updating dependencies (including require-dev) default: Nothing to install or update default: Using config file: /srv/www/phpcs/CodeSniffer.conf default: default: Config value "installed_paths" updated successfully; old value was "./CodeSniffer/Standards/WordPress/,./CodeSniffer/Standards/VIP-Coding-Standards/,./CodeSniffer/Standards/PHPCompatibility/,./CodeSniffer/Standards/PHPCompatibilityParagonie/,./CodeSniffer/Standards/PHPCompatibilityWP/" default: Using config file: /srv/www/phpcs/CodeSniffer.conf default: default: Config value "default_standard" updated successfully; old value was "WordPress-Core" default: The installed coding standards are PEAR, Zend, PSR2, MySource, Squiz, PSR1, PSR12, WordPress, WordPress-Extra, WordPress-Docs, WordPress-Core, WordPressVIPMinimum, WordPress-VIP-Go, PHPCompatibility, PHPCompatibilityParagonieRandomCompat, PHPCompatibilityParagonieSodiumCompat and PHPCompatibilityWP default: * Testing network connection default: * Succesful Network connection to ppa.launchpad.net detected... default: default: * Searching for SVN repositories that need upgrading default: default: * Cleaning up Nginx configs default: * Cleaning the virtual machine's /etc/hosts file... default: ----------------------------- default: * Provisioning complete in 47 seconds default: * For further setup instructions, visit http://vvv.test ==> default: Running provisioner: dashboard (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-9yjg9f.sh default: * Updating dashboard on the 'master' branch... ==> default: Running provisioner: utility-source-core (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-10zsblf.sh default: * Updating the "core" utility on the "master" branch... ==> default: Running provisioner: utility-core-tls-ca (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1k5e4uo.sh default: * Running utility provisioner for 'core/tls-ca' default: * The 'core/tls-ca' provisioner completed in 5 seconds ==> default: Running provisioner: utility-core-phpmyadmin (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1hd5gpu.sh default: * Running utility provisioner for 'core/phpmyadmin' default: * The 'core/phpmyadmin' provisioner completed in 0 seconds ==> default: Running provisioner: utility-core-memcached-admin (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1xssm9s.sh default: * Running utility provisioner for 'core/memcached-admin' default: * The 'core/memcached-admin' provisioner completed in 0 seconds ==> default: Running provisioner: utility-core-opcache-status (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1oaf9sn.sh default: * Running utility provisioner for 'core/opcache-status' default: From https://github.com/rlerdorf/opcache-status default: * branch master -> FETCH_HEAD default: * The 'core/opcache-status' provisioner completed in 2 seconds ==> default: Running provisioner: utility-core-webgrind (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-14n1j3o.sh default: * Running utility provisioner for 'core/webgrind' default: Loading composer repositories with package information default: Updating dependencies (including require-dev) default: Nothing to install or update default: * The 'core/webgrind' provisioner completed in 1 seconds ==> default: Running provisioner: utility-core-php56 (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-s3nfik.sh default: * Running utility provisioner for 'core/php56' default: * The 'core/php56' provisioner completed in 3 seconds ==> default: Running provisioner: utility-core-php70 (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1fo6jmh.sh default: * Running utility provisioner for 'core/php70' default: * The 'core/php70' provisioner completed in 3 seconds ==> default: Running provisioner: utility-core-php72 (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-yvjd06.sh default: * Running utility provisioner for 'core/php72' default: * The 'core/php72' provisioner completed in 3 seconds ==> default: Running provisioner: utility-core-php73 (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-1x9ydy8.sh default: * Running utility provisioner for 'core/php73' default: * The 'core/php73' provisioner completed in 3 seconds ==> default: Running provisioner: utility-core-php74 (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-pr1cbi.sh default: * Running utility provisioner for 'core/php74' default: * The 'core/php74' provisioner completed in 3 seconds ==> default: Running provisioner: site-bone-dry (shell)... default: Running: /var/folders/dz/rhmpy1lj0kbf9njqtm0lxrp00000gp/T/vagrant-shell20191209-70895-18gq6kh.sh default: * Running provisioner for site bone-dry default: * Updating bone-dry in /srv/www/bone-dry... default: * Searching for a site template provisioner, vvv-init.sh default: * Found vvv-init.sh at /srv/www/bone-dry/provision/vvv-init.sh default: * Script output will be logged to: log/provisioners/20191209-140350/provisioner-site-bone-dry.log default: Warning: simple-history: Plugin already installed. default: Warning: Plugin 'simple-history' is already active. default: * Site provisioner script finished successfully default: sed: -e expression #1, char 26: unterminated `s' command default: * Adding domains to the virtual machine's /etc/hosts file... default: * Adding hosts from the VVV config entry default: - Added bonedry.test from /vagrant/config.yml default: - Added bonedry.test/cincinnati from /vagrant/config.yml default: - Added bonedry.test/columbus from /vagrant/config.yml default: - Added bonedry.test/fort-wayne from /vagrant/config.yml default: - Added bonedry.test/indianapolis from /vagrant/config.yml default: - Added bonedry.test/lafayette from /vagrant/config.yml default: - Added bonedry.test/lexington from /vagrant/config.yml default: - Added bonedry.test/louisville from /vagrant/config.yml default: - Added bonedry.test/nashville from /vagrant/config.yml default: - Added bonedry.test/st-louis from /vagrant/config.yml default: * Reloading Nginx default: * bone-dry provisioning finished in 4 seconds ==> default: Running action triggers after reload ... ==> default: Running trigger: VVV Post-Reload... default: Running: inline script default: Post Vagrant up script default: Restarting Nginx and MySQL default: Job for nginx.service failed because the control process exited with error code. default: See "systemctl status nginx.service" and "journalctl -xe" for details. default: default: yay default: ▄▀▀▀▄▄▄▄▄▄▄▀▀▀▄ __ __ __ __ default: █▒▒░░░░░░░░░▒▒█ Thanks for \ V\ V\ V / default: █░░█░░░░░█░░█ using \_/\_/\_/ default: ▄▄ █░░░▀█▀░░░█ ▄▄ default: █░░█ ▀▄░░░░░░░▄▀ █░░█ Vagrant Up has finished! Visit http://vvv.test default: ```

config.yml file:

---

sites:

  bone-dry:
    description: "Local install of bonedry.com"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    nginx_upstream: php73
    hosts:
      - bonedry.test
      - bonedry.test/cincinnati
      - bonedry.test/columbus
      - bonedry.test/fort-wayne
      - bonedry.test/indianapolis
      - bonedry.test/lafayette
      - bonedry.test/lexington
      - bonedry.test/louisville
      - bonedry.test/nashville
      - bonedry.test/st-louis
    custom:
      wp_type: subdirectory
      wpconfig_constants:
        WP_DEBUG: false
        WP_DEBUG_LOG: false
        SCRIPT_DEBUG: false
        WP_DISABLE_FATAL_ERROR_HANDLER: true
      delete_default_plugins: true
      install_plugins:
        - simple-history
      live_url: http://bonedrystage.wpengine.com

utilities:
  core:
    - tls-ca
    - phpmyadmin
    - memcached-admin
    - opcache-status
    - webgrind
    #- mongodb
    #- tideways
    - php56
    - php70
    - php72
    - php73
    - php74

vm_config:
  memory: 2048
  cores: 2

general:
  db_backup: true
  db_restore: true
  db_share_type: false
Mte90 commented 4 years ago

hosts parameter doesn't support as I know folder, hosts if only the host, for domains with folder is something that you need to do manually on creating a new site inside the multisite.

tomjn commented 4 years ago

hosts parameter doesn't support as I know folder, hosts if only the host, for domains with folder is something that you need to do manually on creating a new site inside the multisite.

+1, these need to be hostnames, not URLs, e.g. domain names.

This is what it should be instead:

    hosts:
      - bonedry.test

The hosts section is used for Nginx and the hosts file, so subdirectories and files aren't relevant to this section

benleeth commented 4 years ago

I'm getting the same error message when just having this provision too -

    description: "Local install of cornerstoneautismcenter.com"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    nginx_upstream: php73
    hosts:
      - cornerstoneautismcenter.test
      - cornerstoneautismfoundation.test
    custom:
      wp_type: subdomain

And the vvv-auto-cornerstone-autism-provision-48b8dd21037ebb245480d88f43cc4ed1.conf file has server_name {vvv_hosts};.

Just weird because they both worked fine until the updates I ran this morning.

tomjn commented 4 years ago

I tried to reproduce using this:

  cornerstone-autism:
    description: "Local install of cornerstoneautismcenter.com"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    nginx_upstream: php73
    hosts:
      - cornerstoneautismcenter.test
      - cornerstoneautismfoundation.test
    custom:
      wp_type: subdomain

Looking at the log for the provision gives:

 * Configuring WordPress
WordPress is present but isn't installed to the database, checking for SQL dumps in wp-content/database.sql or the main backup folder.
 * Installing WordPress Stable...
 * Using multisite subdomain type install
Error: The site you have requested is not installed.
Run `wp core install` to create database tables.
---------------------------------------------

! Site provisioner failed! Check the full log for more details

---------------------------------------------

This implies the wp core multisite-install failed, and so the provisioner script aborted before it could get to the Nginx config part


As a sidenote this:

utilities:
  core:
    - tls-ca
    - phpmyadmin
    - memcached-admin
    - opcache-status
    - webgrind
    #- mongodb
    #- tideways
    - php56
    - php70
    - php72
    - php73
    - php74

can be replaced with this:

utilities:
  core:
    - tls-ca
    - phpmyadmin
    - memcached-admin
    - opcache-status
    - webgrind
    - php
benleeth commented 4 years ago

Thanks for the knowledge on everything, @tomjn and @Mte90 !! I have everything back up and running smoothly!! Just to let you know, I did have an error with:

install_plugins:
        - simple-history

Said the directory already existed then failed out. Seemed a pretty extreme reason to abort but wanted to let you know. Again, thanks for the assistance!

tomjn commented 4 years ago

I've been trying to debug why mine doesn't want to work, the core multisite-install step fails, though it succeeds if I manually run it. I've some adjustments to the site provisioner to try and improve things

tomjn commented 4 years ago

A combination of #2023 and https://github.com/Varying-Vagrant-Vagrants/custom-site-template/pull/33 resolve the issue successfully here

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.