Skip to content

Instantly share code, notes, and snippets.

@brianwat
Created January 6, 2021 18:39
Show Gist options
  • Save brianwat/c5491a16c8ee203c042beeff3f8e9aa7 to your computer and use it in GitHub Desktop.
Save brianwat/c5491a16c8ee203c042beeff3f8e9aa7 to your computer and use it in GitHub Desktop.
IT-0469:chef-repo bwatanabe$ kitchen converge planningapi-ubuntu-1804
-----> Starting Kitchen (v2.3.3)
-----> Converging <planningapi-ubuntu-1804>...
Preparing files for transfer
Preparing dna.json
Preparing cookbooks from project directory
Removing non-cookbook files before transfer
Preparing data_bags
Preparing environments
Preparing roles
Preparing validation.pem
Preparing client.rb
chef installation detected
install_strategy set to 'once'
Nothing to install
Transferring files to <planningapi-ubuntu-1804>
Starting Chef Client, version 14.14.29
resolving cookbooks for run list: ["apt", "ohai", "ntp", "chef-client::delete_validation", "chef-client::config", "chef-client::service", "logrotate", "common-utils", "common-utils::s3cmd", "common-utils::awscli-testkitchen", "dpkg_autostart", "times-ssl", "times-ssl::rabbitmq", "chef_nginx::default", "chef_nginx::http_ssl_module", "chef_nginx::http_stub_status_module", "rc.local::planning-api", "nodejs", "times-mongo", "times-mongo::tmp_files", "rabbitmq", "times-rabbitmq::rabbitmq-no-cluster", "times-rabbitmq::mobileapi-users", "times-rabbitmq::vendorapi-users", "times-rabbitmq::wordpress-users", "times-rabbitmq::contentchanges-users", "times-rabbitmq::management-plugin", "planning-api::deps", "planning-api::conf", "content-changes-api::deps", "content-changes-api::conf"]
Synchronizing Cookbooks:
- ntp (3.3.1)
- apt (6.0.0)
- ohai (5.2.5)
- dpkg_autostart (0.4.1)
- logrotate (2.1.0)
- common-utils (1.0.0)
- chef-client (7.1.0)
- rc.local (0.0.1)
- chef_nginx (5.0.6)
- nodejs (6.0.0)
- times-ssl (0.1.0)
- content-changes-api (0.1.0)
- times-rabbitmq (0.1.0)
- planning-api (1.0.0)
- times-mongo (1.0.0)
- rabbitmq (5.6.1)
- aws (4.1.3)
- cron (3.0.0)
- chef-vault (3.1.1)
- build-essential (8.2.1)
- yum-epel (3.3.0)
- runit (3.0.5)
- zypper (0.3.0)
- compat_resource (12.16.3)
- windows (5.2.0)
- erlang (7.0.0)
- times-newrelic (0.0.1)
- ark (4.0.0)
- poise-python (1.7.0)
- seven_zip (3.1.0)
- poise (2.8.2)
- packagecloud (0.2.5)
- mingw (2.1.0)
- sc-mongodb (2.0.1)
- poise-archive (1.3.0)
- poise-languages (2.1.2)
- yum-erlang_solutions (1.0.3)
Installing Cookbook Gems:
Compiling Cookbooks...
[2021-01-06T18:35:29+00:00] WARN: Provider apt_preference from the client is overriding the provider from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2021-01-06T18:35:29+00:00] WARN: Resource apt_preference from the client is overriding the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
/tmp/kitchen/cache/cookbooks/cron/resources/d.rb:32: warning: constant ::Fixnum is deprecated
/tmp/kitchen/cache/cookbooks/cron/resources/d.rb:51: warning: constant ::Fixnum is deprecated
/tmp/kitchen/cache/cookbooks/cron/resources/d.rb:65: warning: constant ::Fixnum is deprecated
[2021-01-06T18:35:29+00:00] WARN: Resource cron_d from the client is overriding the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
/tmp/kitchen/cache/cookbooks/packagecloud/resources/repo.rb:10: warning: constant ::Fixnum is deprecated
[2021-01-06T18:35:29+00:00] WARN: Resource zypper_repo from the client is overriding the resource from a cookbook. Please upgrade your cookbook or remove the cookbook from your run_list.
[2021-01-06T18:35:29+00:00] WARN: The Ohai cookbook default recipe has no content as of the 4.0 release. See the readme for instructions on using the custom resources.
Recipe: chef_nginx::ohai_plugin
* ohai_plugin[nginx] action create[2021-01-06T18:35:29+00:00] WARN: The Ohai plugin_path does not include /tmp/kitchen/ohai/plugins. Ohai will reload on each chef-client run in order to add this directory to the path unless you modify your client.rb configuration to add this directory to plugin_path. The plugin_path can be set via the chef-client::config recipe. See 'Ohai Settings' at https://docs.chef.io/config_rb_client.html#ohai-settings for more details.
[2021-01-06T18:35:29+00:00] WARN: Adding /tmp/kitchen/ohai/plugins to the Ohai plugin path for this chef-client run only
* directory[/tmp/kitchen/ohai/plugins] action create (skipped due to not_if)
* template[/tmp/kitchen/ohai/plugins/nginx.rb] action create (up to date)
* ohai[nginx] action reload
- re-run ohai and merge results into node attributes
Recipe: sc-mongodb::mongo_gem
* apt_package[gcc] action install (skipped due to only_if)
* apt_package[libsasl2-dev] action install (up to date)
[2021-01-06T18:35:30+00:00] WARN: The default aws recipe does nothing. See the readme for information on using the aws resources
Converging 221 resources
Recipe: apt::default
* file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)
* apt_update[periodic] action periodic (up to date)
* execute[apt-get update] action nothing (skipped due to action :nothing)
* execute[apt-get autoremove] action nothing (skipped due to action :nothing)
* execute[apt-get autoclean] action nothing (skipped due to action :nothing)
* directory[/var/cache/local] action create (up to date)
* directory[/var/cache/local/preseeding] action create (up to date)
* template[/etc/apt/apt.conf.d/10dpkg-options] action create (up to date)
* template[/etc/apt/apt.conf.d/10recommends] action create (up to date)
* apt_package[apt-transport-https] action install (up to date)
Recipe: ntp::default
* apt_package[ntp] action install (up to date)
* apt_package[Remove ntpdate] action remove (up to date)
* directory[/var/lib/ntp] action create (up to date)
* directory[/var/log/ntpstats/] action create (up to date)
* cookbook_file[/etc/ntp.leapseconds] action create (up to date)
Recipe: ntp::apparmor
* service[apparmor] action nothing (skipped due to action :nothing)
* cookbook_file[/etc/apparmor.d/usr.sbin.ntpd] action create (up to date)
Recipe: ntp::default
* template[/etc/ntp.conf] action create (up to date)
* execute[Force sync hardware clock with system clock] action run (skipped due to only_if)
* service[ntp] action enable (up to date)
* service[ntp] action start (up to date)
Recipe: chef-client::delete_validation
* file[/tmp/kitchen/validation.pem] action delete
- delete file /tmp/kitchen/validation.pem
Recipe: chef-client::config
* logrotate_app[chef-client] action enable
* directory[/etc/logrotate.d] action create (up to date)
* template[/etc/logrotate.d/chef-client] action create (up to date)
(up to date)
* directory[/var/run/chef] action create (up to date)
* directory[/var/cache/chef] action create (up to date)
* directory[/var/lib/chef] action create (up to date)
* directory[/var/log/chef] action create (up to date)
* directory[/etc/chef] action create (up to date)
* file[/var/log/chef/client.log] action create (up to date)
* template[/etc/chef/client.rb] action create (up to date)
* directory[/etc/chef/client.d] action create (up to date)
* ruby_block[reload_client_config] action nothing (skipped due to action :nothing)
Recipe: chef-client::init_service
* template[/etc/init.d/chef-client] action create (up to date)
* template[/etc/default/chef-client] action create (up to date)
* service[chef-client] action enable (up to date)
* service[chef-client] action start (up to date)
Recipe: logrotate::default
* apt_package[logrotate] action upgrade (up to date)
* directory[/etc/logrotate.d] action create (up to date)
Recipe: common-utils::default
* apt_package[python-setuptools] action install (up to date)
Recipe: poise-python::default
* python_runtime[2] action install
* poise_languages_system[python2.7] action install
(up to date)
* apt_package[python2.7, python2.7-dev] action nothing (skipped due to action :nothing)
(up to date)
* python_runtime_pip[2] action install (up to date)
* python_package[setuptools] action install (up to date)
* python_package[wheel] action install (up to date)
* python_package[virtualenv] action install[2021-01-06T18:35:38+00:00] WARN: python_package[virtualenv] virtualenv has installed version 16.7.7, which is newer than available version 16.2.0. Skipping...)
(up to date)
(up to date)
Recipe: common-utils::default
* python_runtime[2] action install
* poise_languages_system[python2.7] action install
(up to date)
* apt_package[python2.7, python2.7-dev] action nothing (skipped due to action :nothing)
(up to date)
* python_runtime_pip[2] action install (up to date)
* python_package[setuptools] action install (up to date)
* python_package[wheel] action install (up to date)
* python_package[virtualenv] action install[2021-01-06T18:35:46+00:00] WARN: python_package[virtualenv] virtualenv has installed version 16.7.7, which is newer than available version 16.2.0. Skipping...)
(up to date)
(up to date)
* python_package[pip] action install (up to date)
* python_package[virtualenv] action install[2021-01-06T18:35:51+00:00] WARN: python_package[virtualenv] virtualenv has installed version 16.7.7, which is newer than available version 16.2.0. Skipping...)
(up to date)
* apt_package[Install wget] action install (up to date)
* apt_package[Install vim] action install (up to date)
* apt_package[Install telnet] action install (up to date)
* apt_package[Install lsof] action install (up to date)
* apt_package[Install curl] action install (up to date)
* python_package[s3cmd] action install (up to date)
* cron[Restart Push Jobs Client] action create (up to date)
* cron[Clean up old packages] action create (up to date)
* template[/etc/systemd/journald.conf] action create (up to date)
* execute[reload-systemd] action nothing (skipped due to action :nothing)
* service[systemd-journald] action enable (up to date)
* service[systemd-journald] action start (up to date)
Recipe: common-utils::s3cmd
* chef_gem[chef-vault] action install (up to date)
* template[/root/.s3cfg] action create (up to date)
* template[/home/vagrant/.s3cfg] action create (up to date)
Recipe: common-utils::awscli-testkitchen
* chef_gem[chef-vault] action install (up to date)
* directory[/root/.aws] action create (up to date)
* template[/root/.aws/credentials] action create (up to date)
* directory[/home/vagrant/.aws] action create (up to date)
* template[/home/vagrant/.aws/credentials] action create (up to date)
Recipe: <Dynamically Defined Resource>
* dpkg_autostart[bin_file] action create
* template[dpkg_autostart_file] action create (up to date)
(up to date)
Recipe: dpkg_autostart::default
* dpkg_autostart[attribute_loader] action nothing (skipped due to action :nothing)
Recipe: times-ssl::default
* chef_gem[chef-vault] action install (up to date)
* directory[/etc/ssl/times] action create (up to date)
* template[/etc/ssl/times/ssl.pem] action create (up to date)
* template[/etc/ssl/times/ssl_chained.pem] action create (up to date)
* template[/etc/ssl/times/ssl.key] action create (up to date)
* template[/etc/ssl/times/ssl_cacert.pem] action create (up to date)
Recipe: times-ssl::rabbitmq
* chef_gem[chef-vault] action install (up to date)
* directory[/etc/ssl/times/rabbit] action create (up to date)
* template[/etc/ssl/times/rabbit/rabbit_server.pem] action create (up to date)
* template[/etc/ssl/times/rabbit/rabbit_cacert.pem] action create (up to date)
* template[/etc/ssl/times/rabbit/rabbit_server.key] action create (up to date)
* template[/etc/ssl/times/rabbit/rabbit_client.pem] action create (up to date)
* template[/etc/ssl/times/rabbit/rabbit_client.key] action create (up to date)
Recipe: chef_nginx::ohai_plugin
* ohai[reload_nginx] action nothing (skipped due to action :nothing)
* ohai_plugin[nginx] action create
* directory[/tmp/kitchen/ohai/plugins] action create (skipped due to not_if)
* template[/tmp/kitchen/ohai/plugins/nginx.rb] action create (up to date)
* ohai[nginx] action nothing (skipped due to action :nothing)
(up to date)
Recipe: chef_nginx::repo
* apt_repository[nginx] action add
* remote_file[/tmp/kitchen/cache/http___nginx_org_keys_nginx_signing_key] action create (up to date)
* execute[apt-key add /tmp/kitchen/cache/http___nginx_org_keys_nginx_signing_key] action run (skipped due to not_if)
* execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
* apt_update[nginx] action nothing (skipped due to action :nothing)
* file[/etc/apt/sources.list.d/nginx.list] action create (up to date)
(up to date)
Recipe: chef_nginx::package
* apt_package[nginx] action install (up to date)
* service[nginx] action start (up to date)
* service[nginx] action enable (up to date)
Recipe: chef_nginx::commons_dir
* directory[/etc/nginx] action create (up to date)
* directory[/var/log/nginx] action create (up to date)
* directory[pid file directory] action create (up to date)
* directory[/etc/nginx/sites-available] action create (up to date)
* directory[/etc/nginx/sites-enabled] action create (up to date)
* directory[/etc/nginx/conf.d] action create (up to date)
Recipe: chef_nginx::commons_script
* template[/usr/sbin/nxensite] action create (up to date)
* template[/usr/sbin/nxdissite] action create (up to date)
Recipe: chef_nginx::commons_conf
* template[nginx.conf] action create (up to date)
* template[/etc/nginx/sites-available/default] action create (up to date)
* chef_nginx_site[default] action disable
* execute[nxdissite default] action run (skipped due to only_if)
(up to date)
Recipe: chef_nginx::authorized_ips
* template[authorized_ip] action create (up to date)
Recipe: chef_nginx::http_stub_status_module
* template[nginx_status] action create (up to date)
* chef_nginx_site[nginx_status] action enable
* template[/etc/nginx/sites-available/nginx_status] action create (skipped due to only_if)
* execute[nxensite nginx_status] action run (skipped due to not_if)
(up to date)
Recipe: rc.local::planning-api
* template[/etc/rc.local] action create (up to date)
Recipe: nodejs::nodejs_from_binary
* ark[nodejs-binary] action install
* directory[/usr/local/nodejs-binary-10.16.3] action create (up to date)
* remote_file[/tmp/kitchen/cache/nodejs-binary-10.16.3.tar.gz] action create (up to date)
* execute[unpack /tmp/kitchen/cache/nodejs-binary-10.16.3.tar.gz] action nothing (skipped due to action :nothing)
* execute[set owner on /usr/local/nodejs-binary-10.16.3] action nothing (skipped due to action :nothing)
* link[/usr/local/bin/node] action create (up to date)
* link[/usr/local/bin/npm] action create (up to date)
* link[/usr/local/nodejs-binary] action create (up to date)
* template[/etc/profile.d/nodejs-binary.sh] action create (skipped due to only_if)
* ruby_block[adding '/usr/local/nodejs-binary-10.16.3/bin' to chef-client ENV['PATH']] action run (skipped due to only_if)
(up to date)
Recipe: sc-mongodb::mongodb_org_repo
* apt_repository[mongodb] action add
* remote_file[/tmp/kitchen/cache/https___www_mongodb_org_static_pgp_server-4_0_asc] action create (up to date)
* execute[apt-key add /tmp/kitchen/cache/https___www_mongodb_org_static_pgp_server-4_0_asc] action run (skipped due to not_if)
* execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
* apt_update[mongodb] action nothing (skipped due to action :nothing)
* file[/etc/apt/sources.list.d/mongodb.list] action create (up to date)
(up to date)
Recipe: sc-mongodb::install
* build_essential[build-tools] action install
* apt_package[autoconf, binutils-doc, bison, build-essential, flex, gettext, ncurses-dev] action install (up to date)
(up to date)
* file[/etc/default/mongodb install] action create_if_missing (up to date)
* apt_package[netcat] action install (up to date)
* template[/etc/init.d/mongod install] action create_if_missing (up to date)
* service[mongod] action enable (up to date)
* apt_package[mongodb-org] action install (up to date)
* apt_package[mongodb-org-server, mongodb-org-shell, mongodb-org-tools, mongodb-org-mongos] action install (up to date)
* file[/etc/mongo.key] action create (up to date)
* template[/etc/mongod.conf install] action create_if_missing (up to date)
* directory[/var/run/mongodb] action create (up to date)
Recipe: sc-mongodb::default
* template[/etc/default/mongodb] action create (up to date)
* template[/etc/mongod.conf] action create (up to date)
* directory[/var/log/mongodb] action create (up to date)
* directory[/var/lib/mongodb] action create (up to date)
* execute[mongodb-systemctl-daemon-reload-mongod] action nothing (skipped due to action :nothing)
* template[/etc/init.d/mongod] action create (up to date)
* service[mongod] action enable (up to date)
* service[mongod] action start (up to date)
Recipe: sc-mongodb::mongo_gem
* apt_package[gcc] action nothing (skipped due to action :nothing)
* apt_package[libsasl2-dev] action nothing (skipped due to action :nothing)
* chef_gem[mongo] action install (up to date)
* chef_gem[bson_ext] action install (up to date)
Recipe: sc-mongodb::user_management
* sc_mongodb_user[root] action add (up to date)
* sc_mongodb_user[planning-api] action add (up to date)
* sc_mongodb_user[analytics] action add (up to date)
* sc_mongodb_user[analytics] action add (up to date)
* sc_mongodb_user[analytics] action add (up to date)
* sc_mongodb_user[analytics] action add (up to date)
* sc_mongodb_user[contentchanges] action add (up to date)
Recipe: times-mongo::default
* template[/usr/lib/tmpfiles.d/mongod.conf] action create (up to date)
* bash[Hold mongodb packages, to prevent upgrading it] action run
- execute "bash" "/tmp/chef-script20210106-8078-1xtte2q"
* ruby_block[Hulk smash mongodb attributes!] action run
- execute the ruby block Hulk smash mongodb attributes!
* service[mongod] action enable (up to date)
* service[mongod] action start (up to date)
Recipe: times-mongo::tmp_files
* template[/usr/lib/tmpfiles.d/mongod.conf] action create (up to date)
* directory[/run/mongodb] action create (up to date)
* template[/usr/lib/tmpfiles.d/sshd.conf] action create (up to date)
* directory[/run/sshd] action create (up to date)
Recipe: erlang::esl
* apt_package[apt-transport-https] action install (up to date)
* apt_repository[erlang_solutions_repo] action add
* remote_file[/tmp/kitchen/cache/https___packages_erlang-solutions_com_debian_erlang_solutions_asc] action create (up to date)
* execute[apt-key add /tmp/kitchen/cache/https___packages_erlang-solutions_com_debian_erlang_solutions_asc] action run (skipped due to not_if)
* execute[apt-cache gencaches] action nothing (skipped due to action :nothing)
* apt_update[erlang_solutions_repo] action nothing (skipped due to action :nothing)
* file[/etc/apt/sources.list.d/erlang_solutions_repo.list] action create (up to date)
(up to date)
* apt_preference[erlang_solutions_repo] action add
* directory[/etc/apt/preferences.d] action create (up to date)
* file[/etc/apt/preferences.d/esl-erlang.pref] action create (up to date)
(up to date)
* apt_package[esl-erlang] action install (up to date)
Recipe: rabbitmq::default
* directory[/etc/rabbitmq] action create (up to date)
* template[/etc/apt/apt.conf.d/90forceyes] action create (up to date)
* apt_package[logrotate] action install (up to date)
* apt_package[socat] action install (up to date)
* dpkg_autostart[rabbitmq-server] action nothing (skipped due to action :nothing)
* remote_file[/tmp/kitchen/cache/rabbitmq-server_3.7.14-1_all.deb] action create_if_missing (up to date)
* dpkg_package[rabbitmq-server] action upgrade (up to date)
* directory[/var/lib/rabbitmq/mnesia] action create (up to date)
* template[/etc/rabbitmq/rabbitmq-env.conf] action create (up to date)
* template[/etc/rabbitmq/rabbitmq.config] action create (up to date)
* template[/etc/default/rabbitmq-server] action create (up to date)
* service[rabbitmq-server] action enable (up to date)
* service[rabbitmq-server] action start (up to date)
Recipe: times-rabbitmq::rabbitmq-no-cluster
* chef_gem[chef-vault] action install (up to date)
* execute[set locale to utf8] action run (skipped due to not_if)
* rabbitmq_plugin[rabbitmq_management] action enable (up to date)
* rabbitmq_plugin[rabbitmq_tracing] action enable (up to date)
* rabbitmq_plugin[rabbitmq_stomp] action enable (up to date)
* rabbitmq_plugin[rabbitmq_auth_mechanism_ssl] action enable (up to date)
* rabbitmq_user[guest] action delete (up to date)
* rabbitmq_user[mobile-rabbit] action add (up to date)
* rabbitmq_user[mobile-rabbit] action set_permissions (up to date)
* rabbitmq_user[ro] action add (up to date)
* rabbitmq_user[ro] action set_permissions (up to date)
Recipe: times-rabbitmq::mobileapi-users
* chef_gem[chef-vault] action install (up to date)
* rabbitmq_user[guest] action delete (up to date)
* rabbitmq_user[mobile-rabbit] action add (up to date)
* rabbitmq_user[mobile-rabbit] action set_permissions (up to date)
* rabbitmq_user[mobile-rabbit] action set_tags (up to date)
Recipe: times-rabbitmq::vendorapi-users
* chef_gem[chef-vault] action install (up to date)
* rabbitmq_user[guest] action delete (up to date)
* rabbitmq_user[vendor-rabbit] action add (up to date)
* rabbitmq_user[vendor-rabbit] action set_permissions (up to date)
Recipe: times-rabbitmq::wordpress-users
* chef_gem[chef-vault] action install (up to date)
* rabbitmq_user[wordpress-rabbitmq] action add (up to date)
* rabbitmq_user[wordpress-rabbitmq] action set_permissions (up to date)
Recipe: times-rabbitmq::contentchanges-users
* chef_gem[chef-vault] action install (up to date)
* rabbitmq_user[contentchanges-rabbitmq] action add (up to date)
* rabbitmq_user[contentchanges-rabbitmq] action set_permissions (up to date)
Recipe: times-rabbitmq::management-plugin
* chef_gem[chef-vault] action install (up to date)
* rabbitmq_plugin[rabbitmq_management] action enable (up to date)
* rabbitmq_plugin[rabbitmq_management_visualiser] action enable (up to date)
* rabbitmq_user[admin] action add (up to date)
* rabbitmq_user[admin] action set_permissions (up to date)
* rabbitmq_user[admin] action set_tags
* execute[rabbitmqctl set_user_tags admin test, administrator] action run
- execute rabbitmqctl set_user_tags admin test, administrator
* rabbitmq_plugin[rabbitmq_top] action enable (up to date)
Recipe: planning-api::deps
* apt_package[ruby, ruby-dev, rpm, git, fabric] action install (up to date)
* python_package[pip] action install (up to date)
* python_package[boto] action install (up to date)
* bash[Hulk smash node_modules!] action run
- execute "bash" "/tmp/chef-script20210106-8078-1rpf3w1"
* bash[Install fpm gem for package building] action run
- execute "bash" "/tmp/chef-script20210106-8078-1o3g7wb"
* directory[/opt/node_modules] action create (up to date)
* link[/opt/planning-api/node_modules] action create
- create symlink at /opt/planning-api/node_modules to /opt/node_modules
* directory[/root/.ssh] action create (up to date)
* template[/root/.ssh/id_rsa] action create (up to date)
* directory[/home/vagrant/.ssh] action create (up to date)
* template[/home/vagrant/.ssh/id_rsa] action create (up to date)
* bash[add github.com to known_hosts] action run
- execute "bash" "/tmp/chef-script20210106-8078-163we9s"
* bash[install node deps] action run
================================================================================
Error executing action `run` on resource 'bash[install node deps]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '243'
---- Begin output of "bash" "/tmp/chef-script20210106-8078-9gtvib" ----
STDOUT:
STDERR: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN checkPermissions Missing write access to /opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path /opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi'
npm ERR! { [Error: EACCES: permission denied, access '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
---- End output of "bash" "/tmp/chef-script20210106-8078-9gtvib" ----
Ran "bash" "/tmp/chef-script20210106-8078-9gtvib" returned 243
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/planning-api/recipes/deps.rb
123: bash "install node deps" do
124: cwd "/opt/planning-api"
125: user "vagrant"
126: group "vagrant"
127: code <<-EOF
128: /usr/local/bin/npm install
129: EOF
130: end
131: end
Compiled Resource:
------------------
# Declared in /tmp/kitchen/cache/cookbooks/planning-api/recipes/deps.rb:123:in `from_file'
bash("install node deps") do
action [:run]
default_guard_interpreter :default
command nil
backup 5
interpreter "bash"
declared_type :bash
cookbook_name "planning-api"
recipe_name "deps"
cwd "/opt/planning-api"
code " /usr/local/bin/npm install\n"
domain nil
user "vagrant"
group "vagrant"
end
System Info:
------------
chef_version=14.14.29
platform=ubuntu
platform_version=18.04
ruby=ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-linux]
program_name=/opt/chef/bin/chef-client
executable=/opt/chef/bin/chef-client
Running handlers:
[2021-01-06T18:36:55+00:00] ERROR: Running exception handlers
Running handlers complete
[2021-01-06T18:36:55+00:00] ERROR: Exception handlers complete
Chef Client failed. 11 resources updated in 01 minutes 34 seconds
[2021-01-06T18:36:55+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2021-01-06T18:36:55+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-01-06T18:36:55+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[install node deps] (planning-api::deps line 123) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '243'
---- Begin output of "bash" "/tmp/chef-script20210106-8078-9gtvib" ----
STDOUT:
STDERR: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN checkPermissions Missing write access to /opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! path /opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi'
npm ERR! { [Error: EACCES: permission denied, access '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi']
npm ERR! stack:
npm ERR! 'Error: EACCES: permission denied, access \'/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/opt/planning-api/node_modules/@hapi/joi/node_modules/@hapi' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
---- End output of "bash" "/tmp/chef-script20210106-8078-9gtvib" ----
Ran "bash" "/tmp/chef-script20210106-8078-9gtvib" returned 243
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <planningapi-ubuntu-1804>. Please see .kitchen/logs/planningapi-ubuntu-1804.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
IT-0469:chef-repo bwatanabe$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment