Closed kucrut closed 5 years ago
I just noticed that I had phpcs
in the extensions
dir but didn't have it in the config. Removing the dir allows Chassis to provision correctly.
Spoke to soon. It's stopped with:
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: PHP Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns:
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 249
==> default:
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: PHP Warning: Invalid argument supplied for foreach() in /usr/share/php/PEAR/Command.php on line 249
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: XML Extension not found
==> default: Error: /bin/echo '/opt/libv8-6.6
==> default: ' | /usr/bin/pecl install v8js returned 1 instead of one of [0]
==> default: Error: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: change from notrun to 0 failed: /bin/echo '/opt/libv8-6.6
==> default: ' | /usr/bin/pecl install v8js returned 1 instead of one of [0]
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.1/mods-available/v8js.ini]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.1/mods-available/v8js.ini]: Skipping because of failed dependencies
Oohh. Looking at that you might have php: 7.1
in your custom config as well yeah?
Correct.
@BronsonQuick, As requested, I'm confirming that the bug still exists, both in php 7.1 & 7.2. See logs.
Thanks for the logs! I can replicate this now and I think I might know what it is:
default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: XML Extension not found
I think I need to require the PHP xml package to be installed before we run some of the other commands. I'll try and get a PR up for this soon seeing I know this has been a blocker for an internal project of yours!
@kucrut Sorry for not getting to this yesterday as I took the day off! I think I've fixed this for you now based on a fair bit of testing.
I have a config.local.yaml
with the following content:
extensions:
- chassis/cavalcade
- chassis/mailhog
- chassis/memcache
- chassis/sequelpro
- chassis/tester
- chassis/v8js
- chassis/xdebug
- chassis/phpcs
- javorszky/chassis-openssl
php: 7.1
I can successfully provision now. I've added two changes to chassis/v8js
and chassis/phpcs
so I'd probably recommend that you delete both of those folders so that Chassis pulls in the latest versions for you automatically or you can manually update those submodules. Please feel free to reopen this issue if it doesn't work for you!
I'm reopening this as I didn't test this properly on PHP 7.2+
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-xml]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl channel-update pecl.php.net]/returns: executed successfully
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: downloading v8js-2.1.0.tgz ...
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: Starting to download v8js-2.1.0.tgz (101,553 bytes)
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: .....................done: 101,553 bytes
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: PHP Fatal error: Cannot use result of built-in function in write context in /usr/share/php/Archive/Tar.php on line 639
==> default: Error: /bin/echo '/opt/libv8-6.6
==> default: ' | /usr/bin/pecl install v8js returned 255 instead of one of [0]
==> default: Error: /Stage[main]/V8js::Extension/Exec[pecl install v8js]/returns: change from notrun to 0 failed: /bin/echo '/opt/libv8-6.6
==> default: ' | /usr/bin/pecl install v8js returned 255 instead of one of [0]
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-fpm]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/Xdebug/Package[php-xdebug]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/Xdebug/File[/etc/php/7.2/cli/conf.d/xdebug.ini]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/File[/etc/php/7.2/cli/php.ini]/content: content changed '{md5}153daf7e9d8e8e44483907735d12d737' to '{md5}fb4bf295133e2f2eae161b64117150be'
==> default: Notice: /Stage[main]/Mailhog::Php/File[/etc/php/7.2/fpm/conf.d/mailhog.ini]/ensure: defined content as '{md5}b9781fee952b2b688c38aec3e17d1757'
==> default: Notice: /Stage[main]/Chassis::Php/File[/etc/php/7.2/fpm/php.ini]/content: content changed '{md5}aab37f92da1b522a9d3ee89c27522a35' to '{md5}fb4bf295133e2f2eae161b64117150be'
==> default: Notice: /Stage[main]/Xdebug/File[/etc/php/7.2/fpm/conf.d/xdebug.ini]/ensure: created
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.2/mods-available/v8js.ini]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.2/mods-available/v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.2/cli/conf.d/99-v8js.ini]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.2/cli/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.2/fpm/conf.d/99-v8js.ini]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.2/fpm/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Apt::Pin[php7.2-mysql]/Apt::Setting[pref-php7.2-mysql]/File[/etc/apt/preferences.d/php7.2-mysql.pref]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-mysql]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-gd]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-curl]/ensure: ensure changed 'purged' to 'latest'
==> default: Notice: /Stage[main]/Chassis::Php/File[/etc/php/7.2/fpm/pool.d/www.conf]/content: content changed '{md5}52cec63f9f266ef995a94cdaf493ade5' to '{md5}c04b6a20c51ee8cf714d9e60536f0bc2'
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.2-fpm]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis::Php/Service[php7.2-fpm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.2-fpm]: Triggered 'refresh' from 10 events
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/home/vagrant/.wp-cli]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/home/vagrant/.wp-cli]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/local-config-db.php]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/local-config-db.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/index.php]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/index.php]: Skipping because of failed dependencies
==> default: Notice: /Package[nginx]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Package[nginx]: Skipping because of failed dependencies
==> default: Notice: /Package[sendmail]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Package[sendmail]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/home/vagrant/.wp-cli/config.yml]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/home/vagrant/.wp-cli/config.yml]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/vagrant/wp]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/vagrant/wp]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Wp::Site[/vagrant/wp]/Exec[wp install /vagrant/wp]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/Wp::Site[/vagrant/wp]/Exec[wp install /vagrant/wp]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/local-config-extensions.php]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/File[/vagrant/local-config-extensions.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-available/gutenblocks-react-ssr.local.d]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-available/gutenblocks-react-ssr.local.d]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-available/gutenblocks-react-ssr.local]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-available/gutenblocks-react-ssr.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-enabled/gutenblocks-react-ssr.local]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[gutenblocks-react-ssr.local]/Chassis::Site[gutenblocks-react-ssr.local]/File[/etc/nginx/sites-enabled/gutenblocks-react-ssr.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Service[nginx]: Dependency Exec[pecl install v8js] has failures: true
==> default: Warning: /Stage[main]/Chassis/Service[nginx]: Skipping because of failed dependencies
==> default: Notice: Finished catalog run in 277.87 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Getting the same thing here, originally it was when going from PHP 7.0
-> 7.2
, but I didn't record the provisioning log.
In between then, I went to PHP 7.1. The error wasn't witnessed in PHP 7.1 on provision.
However, switching back to PHP 7.2, the following happens:
==> default: Error: Could not find command 'pear' ==> default: Error: /Stage[main]/V8js::Extension/Exec[install archive tar]/returns: change from notrun to 0 failed: Could not find command 'pear'
full provisioning log
==> default: Running provisioner: shell...
default: Running: /var/folders/ht/fbpddqwn1rgdpxhcsmh3cmr80000gn/T/vagrant-shell20181203-48358-13rocdd.sh
==> default: Running provisioner: puppet...
==> default: Running Puppet with development.pp...
==> default: Notice: Compiled catalog for clientname.local in environment production in 7.40 seconds
==> default: Notice: /Stage[main]/Tester::Config/Exec[load_tester_envs]/returns: executed successfully
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/owner: owner changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/group: group changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/mode: mode changed '0777' to '0644'
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-fpm]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-common]/ensure: removed
==> default: Error: Could not find command 'pear'
==> default: Error: /Stage[main]/V8js::Extension/Exec[install archive tar]/returns: change from notrun to 0 failed: Could not find command 'pear'
==> default: Notice: /Stage[main]/V8js::Extension/Package[php7.2-dev]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-cli]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-zip]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-mbstring]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-cli]/ensure: created
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl channel-update pecl.php.net]/returns: executed successfully
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-fpm]/ensure: created
==> default: Notice: /Stage[main]/Xdebug/Package[php-xdebug]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-mysql]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-gd]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.2-curl]/ensure: created
==> default: Notice: /Stage[main]/Memcache/Package[php-memcached]/ensure: created
==> default: Notice: /Stage[main]/Memcache/Package[php-memcache]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.2-fpm]: Triggered 'refresh' from 8 events
==> default: Notice: Finished catalog run in 43.79 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
config.local.yaml
paths:
base: ..
content: content
wp: wordpress
hosts:
- clientname.local
database:
name: wordpress
user: wordpress
password: vagrantpassword
prefix: wp_
apt_mirror: Yes
multisite: Yes
php: 7.2
# Define the extensions we want
extensions:
- chassis/cavalcade
- chassis/mailhog
- chassis/memcache
- chassis/sequelpro
- chassis/tester
- chassis/v8js
- chassis/xdebug
- chassis/elasticsearch
- roborourke/chassis-openssl
elasticsearch:
repo_version: '5.x'
plugins:
- 'analysis-icu'
host: '0.0.0.0'
port: 9200
timeout: 10
instances:
- 'es'
Installation paths:
site_root_folder
site_root_folder\chassis
site_root_folder\content
To add to the carnage, I went from PHP 7.2 to PHP 7.0 and got the following log:
==> default: Running provisioner: shell...
default: Running: /var/folders/ht/fbpddqwn1rgdpxhcsmh3cmr80000gn/T/vagrant-shell20181203-51993-o8z9nh.sh
==> default: Running provisioner: puppet...
==> default: Running Puppet with development.pp...
==> default: Notice: Compiled catalog for clientname.local in environment production in 8.12 seconds
==> default: Notice: /Stage[main]/Tester::Config/Exec[load_tester_envs]/returns: executed successfully
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/owner: owner changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/group: group changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/mode: mode changed '0777' to '0644'
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.2]/Package[php7.2-common]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.2]/Package[php7.2-cli]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.2]/Package[php7.2-fpm]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-xml]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-common]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-fpm]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-cli]/ensure: created
==> default: Error: Could not find command 'pecl'
==> default: Error: /Stage[main]/V8js::Extension/Exec[pecl channel-update pecl.php.net]/returns: change from notrun to 0 failed: Could not find command 'pecl'
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-zip]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-mbstring]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-gd]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-curl]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-mysql]/ensure: created
==> default: Notice: /Stage[main]/V8js::Extension/Package[php7.0-dev]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/Exec[pecl install v8js]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/mods-available/v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/mods-available/v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/cli/conf.d/99-v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/cli/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/fpm/conf.d/99-v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/fpm/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Triggered 'refresh' from 7 events
==> default: Notice: /Package[nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Package[nginx]: Skipping because of failed dependencies
==> default: Notice: /Package[sendmail]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Package[sendmail]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-db.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-db.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/index.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/index.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli/config.yml]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli/config.yml]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/chassis/wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/chassis/wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Wp::Site[/chassis/wordpress]/Exec[wp install /chassis/wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Wp::Site[/chassis/wordpress]/Exec[wp install /chassis/wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-extensions.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-extensions.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-available/clientname.local]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-available/clientname.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-enabled/clientname.local]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-enabled/clientname.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d/ssl]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d/ssl]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Service[nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/Service[nginx]: Skipping because of failed dependencies
==> default: Notice: Finished catalog run in 44.19 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
For good measure, I also did the following:
==> default: Running provisioner: shell...
default: Running: /var/folders/ht/fbpddqwn1rgdpxhcsmh3cmr80000gn/T/vagrant-shell20181203-53406-1pdfp4q.sh
==> default: Running provisioner: puppet...
==> default: Running Puppet with development.pp...
==> default: Notice: Compiled catalog for clientname.local in environment production in 6.61 seconds
==> default: Notice: /Stage[main]/Tester::Config/Exec[load_tester_envs]/returns: executed successfully
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/owner: owner changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/group: group changed 'vagrant' to 'root'
==> default: Notice: /Stage[main]/Main/File[/vagrant/clientname.local.cert]/mode: mode changed '0777' to '0644'
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.2]/Package[php7.2-common]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-fpm]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-common]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Chassis::Php::Remove_php_fpm[7.1]/Package[php7.1-cli]/ensure: removed
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-xml]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-common]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-fpm]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-cli]/ensure: created
==> default: Error: Could not find command 'pecl'
==> default: Error: /Stage[main]/V8js::Extension/Exec[pecl channel-update pecl.php.net]/returns: change from notrun to 0 failed: Could not find command 'pecl'
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-zip]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-mbstring]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-gd]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-curl]/ensure: created
==> default: Notice: /Stage[main]/Chassis::Php/Package[php7.0-mysql]/ensure: created
==> default: Notice: /Stage[main]/V8js::Extension/Package[php7.0-dev]/ensure: ensure changed 'purged' to 'present'
==> default: Notice: /Stage[main]/V8js::Extension/Exec[pecl install v8js]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/mods-available/v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/cli/conf.d/99-v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/Exec[pecl install v8js]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/mods-available/v8js.ini]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/cli/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/V8js::Extension/File[/etc/php/7.0/fpm/conf.d/99-v8js.ini]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/V8js::Extension/File[/etc/php/7.0/fpm/conf.d/99-v8js.ini]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis::Php/Service[php7.0-fpm]: Triggered 'refresh' from 8 events
==> default: Notice: /Package[nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Package[nginx]: Skipping because of failed dependencies
==> default: Notice: /Package[sendmail]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Package[sendmail]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/Exec[systemctl-daemon-reload]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-db.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-db.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/index.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/index.php]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli/config.yml]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/home/vagrant/.wp-cli/config.yml]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/chassis/wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/chassis/wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_user[wordpress@localhost]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_database[wordpress]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default:
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Wp::Site[/chassis/wordpress]/Exec[wp install /chassis/wordpress]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-extensions.php]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Mysql::Db[wordpress]/Mysql_grant[wordpress@localhost/wordpress.*]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/Wp::Site[/chassis/wordpress]/Exec[wp install /chassis/wordpress]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/File[/vagrant/local-config-extensions.php]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx]: Skipping because of failed dependencies
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/nginx.conf]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-enabled]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/File[/etc/nginx/sites-available]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-available/clientname.local]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-available/clientname.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-enabled/clientname.local]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Main/Chassis::Wp[clientname.local]/Chassis::Network[clientname.local]/File[/etc/nginx/sites-enabled/clientname.local]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d/ssl]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Openssl-nginx/File[/etc/nginx/sites-available/clientname.local.d/ssl]: Skipping because of failed dependencies
==> default: Notice: /Stage[main]/Chassis/Service[nginx]: Dependency Exec[pecl channel-update pecl.php.net] has failures: true
==> default: Warning: /Stage[main]/Chassis/Service[nginx]: Skipping because of failed dependencies
==> default: Notice: Finished catalog run in 39.18 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
Looks like the issue might be:
==> default: Error: Could not find command 'pecl'
I wonder if PHP 7.2 no longer bundles pecl?
I successfully provisioned a new box with this config:
php: 7.2
extensions:
- chassis/v8js
So I think PECL is still bundled?
What operating system do you use? MacOS
What version of Vagrant are you running? 2.0.2
Are you using VirtualBox or VMWare and which version are you using? Virtualbox 5.2.8
Do you have a custom YAML file? If so, what does it contain? (Please paste in your
chassis.local.yaml
file)When reprovisioning after adding/removing an extensions, I'm getting this error:
Note that I was trying to add/remove other extension, not
v8js
.