chef-server-ctl reconfigure fails on *action `run` on resource 'execute[sysctl]'*
Description
Chef Server install Version 12.4.1-1.el6.x86_64 fails when executing action run on resource 'execute[sysctl]'.
Chef Version
chef-server-core-12.4.1-1.el6.x86_64.rpm
Platform Version
Red Hat Enterprise Linux Server release 6.7
Replication Case
Install rpm -ivh chef-server-core-12.4.1-1.el6.x86_64.rpm execute /opt/opscode/bin/chef-server-ctl reconfigure
Stacktrace
Starting Chef Client, version 12.7.0
resolving cookbooks for run list: ["private-chef::default"]
Synchronizing Cookbooks:
private-chef (0.1.0)
enterprise (0.5.1)
apt (2.7.0)
yum (3.6.0)
openssl (4.4.0)
runit (1.6.0)
chef-sugar (3.1.1)
packagecloud (0.0.18) Compiling Cookbooks... /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/libraries/preflight_checks.rb:139: warning: already initialized constant PreflightChecks::LINE_SEP /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/libraries/preflight_checks.rb:139: warning: previous definition of LINE_SEP was here Recipe: private-chef::default
directory[/etc/opscode] action create (up to date)
directory[/etc/opscode/logrotate.d] action create
create new directory /etc/opscode/logrotate.d
change mode from '' to '0755'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context [2016-04-07T06:13:47-04:00] WARN: Cloning resource attributes for runit_service[redis_lb] from prior resource (CHEF-3694) [2016-04-07T06:13:47-04:00] WARN: Previous runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/cache/cookbooks/enterprise/definitions/component_runit_service.rb:37:in block in from_file' [2016-04-07T06:13:47-04:00] WARN: Current runit_service[redis_lb]: /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/redis_lb.rb:83:infrom_file' [2016-04-07T06:13:47-04:00] WARN: Cloning resource attributes for directory[/var/opt/opscode/nginx/etc/addon.d] from prior resource (CHEF-3694) [2016-04-07T06:13:47-04:00] WARN: Previous directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/oc_id.rb:173:in from_file' [2016-04-07T06:13:47-04:00] WARN: Current directory[/var/opt/opscode/nginx/etc/addon.d]: /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/nginx.rb:35:inblock in from_file' Converging 278 resources
link[/usr/bin/private-chef-ctl] action create (up to date)
link[/usr/bin/chef-server-ctl] action create (up to date)
directory[/etc/opscode] action nothing (skipped due to action :nothing)
directory[/etc/opscode/logrotate.d] action nothing (skipped due to action :nothing)
log[opscode_webui deprecation notice] action write (skipped due to only_if) Recipe: private-chef::users
user[opscode] action create
create user opscode
group[opscode] action create
alter group opscode
replace group members with new list of members Recipe: private-chef::default
file[/etc/opscode/dark_launch_features.json] action create
create new file /etc/opscode/dark_launch_features.json
update content in file /etc/opscode/dark_launch_features.json from none to 05b75f --- /etc/opscode/dark_launch_features.json 2016-04-07 06:13:48.994132060 -0400 +++ /etc/opscode/.dark_launch_features.json20160407-42742-1b7oie2 2016-04-07 06:13:48.993132064 -0400 @@ -1 +1,17 @@ +{
"quick_start": false,
"new_theme": true,
"private-chef": true,
"sql_users": true,
"add_type_and_bag_to_items": true,
"reporting": true,
"actions": true,
"503_mode": false,
"couchdb_containers": false,
"couchdb_groups": false,
"couchdb_acls": false,
"couchdb_association_requests": false,
"couchdb_organizations": false,
"couchdb_associations": false +}
change mode from '' to '0644'
change owner from '' to 'opscode'
change group from '' to 'root'
restore selinux security context
file[/etc/opscode/webui_pub.pem] action create
create new file /etc/opscode/webui_pub.pem
update content in file /etc/opscode/webui_pub.pem from none to ddd32a --- /etc/opscode/webui_pub.pem 2016-04-07 06:13:49.243131046 -0400 +++ /etc/opscode/.webui_pub.pem20160407-42742-yt5my 2016-04-07 06:13:49.242131050 -0400 @@ -1 +1,10 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyvLQuM9J7fjJSfJA5q2u +MK4Yc+G0lR4nHIj94AQwpWLppsWdN2u4WiXG/OuQRmatraW2tCev8HAvRJH+dxsX +ddddwwkPoR8C9iWpfLnxtsLVuDkoWEd05vroNCpuvTdSDRHIJLqWGQTfhAEdPz+IR6l/ +72P1xsI/1QT/JqhUFIn/0PUjHM4GEZmQUb+/1IR5Ag9c1v0WnaB7TsCqC+Zwd0+m +i8tULo6Ba5GybjCqgIV9GotXURiKSNJ8yMgGSoGIfCUK93A4/zgLZO5OEzmf+DS4 +IoE9ynEsECRN8GrwTX18isHLLLbvq+w5lVaodNIOvpjLTdnPbrFvIzW6QSFOHC6W +2wIDAQAB +-----END PUBLIC KEY-----
change mode from '' to '0644'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context
file[/etc/opscode/webui_priv.pem] action create
create new file /etc/opscode/webui_priv.pem
update content in file /etc/opscode/webui_priv.pem from none to 4cabf2 --- /etc/opscode/webui_priv.pem 2016-04-07 06:13:49.551129791 -0400 +++ /etc/opscode/.webui_priv.pem20160407-42742-1x5gsv4 2016-04-07 06:13:49.550129795 -0400 @@ -1 +1,28 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEAyvLQuM9J7fjJSfJA5q2uMK4Yc+G0lR4nHIj94AQwpWLppsWd +N2u4WiXG/OuQRmatraW2tCev8HAvRJH+dxsXwwkPoR8C9iWpfLnxtsLVuDkoWEd0 +ddddd5vroNCpuvTdSDRHIJLqWGQTfhAEdPz+IR6l/72P1xsI/1QT/JqhUFIn/0PUjHM4G +EZmQUb+/1IR5Ag9c1v0WnaB7TsCqC+Zwd0+mi8tULo6Ba5GybjCqgIV9GotXURiK +SNJ8yMgGSoGIfCUK93A4/zgLZO5OEzmf+DS4IoE9ynEsECRN8GrwTX18isHLLLbv +q+w5lVaodNIOvpjLTdnPbrFvIzW6QSFOHC6W2wIDAQABAoIBAHnIscVk5ok99JRC +If4LFO8zWYsYUwP0nyW5cxcdjI+CRpGEHi6mnm7CIqGdPetxLCF6wqNi+Wn/9+1e +6mNQx7aK1m0qLd3FhepJrqmsSxGMgxBOePEueW7sU52J99vN4ttfeDi1Oud8v683 +kbDnHtVpl4/Y+vL6V547/pCAqxkZHk8NczsLXvt1TTVqGGSFTqFJLFQSvnDmgTiN +Kw/GqOY7qgqwVuhO9ffapy5TMOvWry49YwbAqYZPUgB+ywqej3zcRIpLeIDtXypT +wwrhQJK7ao3oym25I4HMogjLuKUVcjc4wOrmvtrDt/nYYuUJVoDabxHc9E5vKRe/ +7CXfg/kCgYEA+v1r50kk9jyHJbleL6lFvuwsVBCsMdGYSURpM9gSB/XRouUx8VuD +OvkqlaO8TUdj91TEZJ/LBSsccJRxyRMJTrhqy5T342dNetwtyzAykJoG3v28bPrl +/4QaLtqOX7xdgYWdH2g2AAl0+tkg/C5qvN5iDeTjge2SmLdR5Yz7+GcCgYEAzv/l +9le4Oqkxl+hd5gvrJydV9dgS2+Pv2uXE22pq8N3tjpao4GLRxsvgU3b0euR3Fyau +tl21ol02xqGmI+U4s7dJRgddR/gsjtCejaxwTJKJCM6FG4cjBf+hrTbuS8RmJ2vb +nTgU3KBMVp/PUu7hAZPvPsySigPPcBoyo+hztW0CgYEA2uKbca7mXx/WNN39987F +loVc+0s3AJNrHapdnOr4fpywYEFFVtmaDpoxuyJ6G2MBGTeBtsdsRGued8fdm5/Q +ZCiMalLWBCmY9maCQUsdLeJFz760zs3YOwe31dighXk+irA9oKA/R7T3obQuAf9w +8pl2JevRRQQs7qYg8/IJ5E0CgYEAnaD8ixTNc843t8f5CR92WIB50xZRdiUjF3v0 +5mkpOnalWfmcbBKUUGAcWTKyhYrIrVaFoNXHZPa6qZObIqaBAUnHgI5HGHEB7Vcs +BhKUCZtkwtIRRp8nqn+5rF+yIvxSFh7qQ9Ta/g8LUsOrayoBKeRvQVEjHfo80s8A +VRTEWBkCgYA/DGPg/KHEdsgz1swBQRCd46PDUr98U8ND3J5CNKnTdak/KuPhcsfn +Ke5dta4mMe9V82atE4SR314zpftnWKP0jDSSfbeKecjSI3CCMFV7GvX+QXN1sDR+ +ojCIZIq29bYwyhaxjUmlUM+bS5SySDd/FzVvdBOdnbQhklwuIKZclw== +-----END RSA PRIVATE KEY-----
change mode from '' to '0600'
change owner from '' to 'opscode'
change group from '' to 'root'
restore selinux security context
directory[/etc/chef] action create
create new directory /etc/chef
change mode from '' to '0775'
change owner from '' to 'root'
change group from '' to 'opscode'
restore selinux security context
directory[/var/opt/opscode] action create (up to date)
directory[/var/log/opscode] action create
create new directory /var/log/opscode
change mode from '' to '0755'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
private_chef_keepalived_safemode[warmfuzzy] action create (skipped due to only_if) Recipe: enterprise::runit_upstart
execute[initctl stop opscode-runsvdir] action run (skipped due to only_if)
file[/etc/init/opscode-runsvdir.conf] action delete (up to date)
template[/etc/init/private-chef-runsvdir.conf] action create
create new file /etc/init/private-chef-runsvdir.conf
update content in file /etc/init/private-chef-runsvdir.conf from none to ce8cd3 --- /etc/init/private-chef-runsvdir.conf 2016-04-07 06:13:50.586125577 -0400 +++ /etc/init/.private-chef-runsvdir.conf20160407-42742-19kw1rh 2016-04-07 06:13:50.585125582 -0400 @@ -1 +1,17 @@ +start on runlevel [2345] +stop on shutdown +respawn +pre-stop script
# To avoid Enterprise Chef service processes from being orphaned,
# we need to ensure everything is stopped before we kill our
# runsvdir process.
/usr/bin/private-chef-ctl stop +end script +post-stop script
# To avoid stomping on runsv's owned by a different runsvdir
# process, kill any runsv process that has been orphaned, and is
# now owned by init (process 1).
pkill -HUP -P 1 runsv$ +end script +exec /opt/opscode/embedded/bin/runsvdir-start
change mode from '' to '0644'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context
execute[initctl status private-chef-runsvdir] action run
execute initctl status private-chef-runsvdir
execute[initctl start private-chef-runsvdir] action run
execute initctl start private-chef-runsvdir Recipe: private-chef::sysctl-updates
execute[sysctl-reload] action nothing (skipped due to action :nothing)
bash[dual ip4/ip6 portbind] action run (skipped due to only_if) Recipe: private-chef::plugin_chef_run
chef_run[recipe[chef-ha-drbd::disable]] action run[2016-04-07T06:13:51-04:00] WARN: Class Chef::Provider::ChefRun does not declare 'provides :chef_run'.
[2016-04-07T06:13:51-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL.
Compiling Cookbooks...
Converging 0 resources
Running chef-run with run list recipe[chef-ha-drbd::disable] Recipe: private-chef::rabbitmq
directory[/var/opt/opscode/rabbitmq] action create
create new directory /var/opt/opscode/rabbitmq
change mode from '' to '0750'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
directory[/var/opt/opscode/rabbitmq/etc] action create
create new directory /var/opt/opscode/rabbitmq/etc
change mode from '' to '0750'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
directory[/var/opt/opscode/rabbitmq/db] action create
create new directory /var/opt/opscode/rabbitmq/db
change mode from '' to '0750'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
directory[/var/log/opscode/rabbitmq] action create
create new directory /var/log/opscode/rabbitmq
change mode from '' to '0750'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
link[/var/opt/opscode/rabbitmq/db] action create (skipped due to not_if)
link[/opt/opscode/embedded/bin/rabbitmqctl] action create (up to date)
link[/opt/opscode/embedded/bin/rabbitmq-defaults] action create
create symlink at /opt/opscode/embedded/bin/rabbitmq-defaults to /opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-defaults
link[/opt/opscode/embedded/bin/rabbitmq-env] action create (up to date)
link[/opt/opscode/embedded/bin/rabbitmq-plugins] action create
create symlink at /opt/opscode/embedded/bin/rabbitmq-plugins to /opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-plugins
link[/opt/opscode/embedded/bin/rabbitmq-server] action create (up to date)
template[/opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-defaults] action create
update content in file /opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-defaults from 4bcf8e to 2463be
--- /opt/opscode/embedded/service/rabbitmq/sbin/rabbitmq-defaults 2016-02-03 19:43:54.000000000 -0500
+++ /opt/opscode/embedded/service/rabbitmq/sbin/.rabbitmq-defaults20160407-42742-rna2c8 2016-04-07 06:13:52.169119132 -0400
@@ -16,7 +16,7 @@
##
next line potentially updated in package install steps
-SYS_PREFIX=${RABBITMQ_HOME}
+SYS_PREFIX=/var/opt/opscode/rabbitmq
next line will be updated when generating a standalone release
ERL_DIR=
@@ -26,12 +26,12 @@
Set default values
-CONFIG_FILE=${SYS_PREFIX}/etc/rabbitmq/rabbitmq
-LOG_BASE=${SYS_PREFIX}/var/log/rabbitmq
-MNESIA_BASE=${SYS_PREFIX}/var/lib/rabbitmq/mnesia
-ENABLED_PLUGINS_FILE=${SYS_PREFIX}/etc/rabbitmq/enabled_plugins
+CONFIG_FILE=${SYS_PREFIX}/etc/rabbitmq
+LOG_BASE=${SYS_PREFIX}/log
+MNESIA_BASE=${SYS_PREFIX}/db
+ENABLED_PLUGINS_FILE=${SYS_PREFIX}/etc/enabled_plugins
PLUGINS_DIR="${RABBITMQ_HOME}/plugins"
-CONF_ENV_FILE=${SYS_PREFIX}/etc/rabbitmq/rabbitmq-env.conf
+CONF_ENV_FILE=/var/opt/opscode/rabbitmq/etc/rabbitmq.conf
restore selinux security context
template[/var/opt/opscode/rabbitmq/etc/rabbitmq.conf] action create
create new file /var/opt/opscode/rabbitmq/etc/rabbitmq.conf
update content in file /var/opt/opscode/rabbitmq/etc/rabbitmq.conf from none to 40477a --- /var/opt/opscode/rabbitmq/etc/rabbitmq.conf 2016-04-07 06:13:52.326118494 -0400 +++ /var/opt/opscode/rabbitmq/etc/.rabbitmq.conf20160407-42742-gc122c 2016-04-07 06:13:52.325118498 -0400 @@ -1 +1,7 @@ +HOME="/var/opt/opscode/rabbitmq" +RABBITMQ_MNESIA_BASE="/var/opt/opscode/rabbitmq/db" +RABBITMQ_LOG_BASE="/var/opt/opscode/rabbitmq/log" +RABBITMQ_NODE_IP_ADDRESS="127.0.0.1" +RABBITMQ_NODE_PORT="5672" +NODENAME="rabbit@localhost"
change mode from '' to '0644'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context
template[/var/opt/opscode/rabbitmq/etc/rabbitmq.config] action create
create new file /var/opt/opscode/rabbitmq/etc/rabbitmq.config
update content in file /var/opt/opscode/rabbitmq/etc/rabbitmq.config from none to 19e6f7 --- /var/opt/opscode/rabbitmq/etc/rabbitmq.config 2016-04-07 06:13:52.497117798 -0400 +++ /var/opt/opscode/rabbitmq/etc/.rabbitmq.config20160407-42742-1jinr 2016-04-07 06:13:52.497117798 -0400 @@ -1 +1,19 @@ +[
{ssl, [{versions, ['tlsv1.2','tlsv1.1']}]},
{rabbit, [{tcp_listeners, [5672]},
{ssl_options,
[{certfile, "/var/opt/opscode/nginx/ca/myserver.domain.com.crt"},
{keyfile, "/var/opt/opscode/nginx/ca/myserver.domain.com.key"},
{versions, ['tlsv1.2','tlsv1.1']}]}
]},
{rabbitmq_management,
[{listener, [
{ip, "127.0.0.1"},
{port, 15672 },
{ssl, true}
% The Rabbit Management Plugin will use the global Rabbit SSL Config
]}
]} +]. +
change mode from '' to '0755'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context
execute[restart_rabbitmq_log_service] action nothing (skipped due to action :nothing)
template[/var/log/opscode/rabbitmq/config] action create
create new file /var/log/opscode/rabbitmq/config
update content in file /var/log/opscode/rabbitmq/config from none to c52569 --- /var/log/opscode/rabbitmq/config 2016-04-07 06:13:52.668117102 -0400 +++ /var/log/opscode/rabbitmq/.config20160407-42742-1d7200v 2016-04-07 06:13:52.668117102 -0400 @@ -1 +1,4 @@ +# svlogd configuration +S104857600 +n10
change mode from '' to '0644'
change owner from '' to 'root'
change group from '' to 'root'
restore selinux security context Recipe:
service[rabbitmq] action nothing (skipped due to action :nothing) Recipe: private-chef::rabbitmq
runit_service[rabbitmq] action enable Recipe:
- directory[/opt/opscode/sv/rabbitmq] action create
- create new directory /opt/opscode/sv/rabbitmq
- change mode from '' to '0755'
- restore selinux security context
- template[/opt/opscode/sv/rabbitmq/run] action create
- create new file /opt/opscode/sv/rabbitmq/run
- update content in file /opt/opscode/sv/rabbitmq/run from none to c7603d
--- /opt/opscode/sv/rabbitmq/run 2016-04-07 06:13:53.022115660 -0400
+++ /opt/opscode/sv/rabbitmq/.run20160407-42742-1skglp3 2016-04-07 06:13:53.021115664 -0400
@@ -1 +1,5 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -P -u opscode -U opscode /usr/bin/env HOME=/var/opt/opscode/rabbitmq /opt/opscode/embedded/bin/rabbitmq-server
+
- change mode from '' to '0755'
- restore selinux security context
- directory[/opt/opscode/sv/rabbitmq/log] action create
- create new directory /opt/opscode/sv/rabbitmq/log
- change mode from '' to '0755'
- restore selinux security context
- directory[/opt/opscode/sv/rabbitmq/log/main] action create
- create new directory /opt/opscode/sv/rabbitmq/log/main
- change mode from '' to '0755'
- restore selinux security context
- template[/opt/opscode/sv/rabbitmq/log/run] action create
- create new file /opt/opscode/sv/rabbitmq/log/run
- update content in file /opt/opscode/sv/rabbitmq/log/run from none to 0e09b8
--- /opt/opscode/sv/rabbitmq/log/run 2016-04-07 06:13:53.492113746 -0400
+++ /opt/opscode/sv/rabbitmq/log/.run20160407-42742-147lhqs 2016-04-07 06:13:53.492113746 -0400
@@ -1 +1,4 @@
+#!/bin/sh
+exec chpst -U opscode -u opscode \
- svlogd -tt /var/log/opscode/rabbitmq
- change mode from '' to '0755'
- restore selinux security context
- template[/opt/opscode/sv/rabbitmq/log/config] action create
- create new file /opt/opscode/sv/rabbitmq/log/config
- update content in file /opt/opscode/sv/rabbitmq/log/config from none to e3b0c4
(no diff)
- change mode from '' to '0644'
- restore selinux security context
- link[/opt/opscode/init/rabbitmq] action create
- create symlink at /opt/opscode/init/rabbitmq to /opt/opscode/embedded/bin/sv
- link[/opt/opscode/service/rabbitmq] action create
- create symlink at /opt/opscode/service/rabbitmq to /opt/opscode/sv/rabbitmq
Recipe: private-chef::rabbitmq
execute[/opt/opscode/bin/private-chef-ctl start rabbitmq] action run
execute /opt/opscode/bin/private-chef-ctl start rabbitmq
execute[/opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/[email protected]] action run
execute /opt/opscode/embedded/bin/chpst -u opscode -U opscode /opt/opscode/embedded/bin/rabbitmqctl wait /var/opt/opscode/rabbitmq/db/[email protected]
execute[/opt/opscode/embedded/bin/rabbitmqctl add_vhost /chef] action run
execute /opt/opscode/embedded/bin/rabbitmqctl add_vhost /chef
execute[/opt/opscode/embedded/bin/rabbitmqctl add_vhost /analytics] action run
execute /opt/opscode/embedded/bin/rabbitmqctl add_vhost /analytics
execute[/opt/opscode/embedded/bin/rabbitmqctl add_user chef 8f60972551aa77df199c741e120b354ec620ee957e628c9fa2a1c21b35a99cd7a6d41b0f9b71b6b553f2ffbdb0445139ffc6] action run
execute /opt/opscode/embedded/bin/rabbitmqctl add_user chef 8f60972551aa77df199c741e120b354ec620ee957e628c9fa2a1c21b35a99cd7a6d41b0f9b71b6b553f2ffbdb0445139ffc6
execute[/opt/opscode/embedded/bin/rabbitmqctl add_user actions b0b0fdf16dcdd900d0787e7346618fe7b5d2c3328ca4080d659077ee8842219b87331f13b4f0e029576302808426a64366ed] action run
execute /opt/opscode/embedded/bin/rabbitmqctl add_user actions b0b0fdf16dcdd900d0787e7346618fe7b5d2c3328ca4080d659077ee8842219b87331f13b4f0e029576302808426a64366ed
execute[/opt/opscode/embedded/bin/rabbitmqctl add_user rabbitmgmt 9ec5013ac4a5f887ea5b5c03354667654fc85c2ed1f9c4bee0e20ff99b3c1e6c84fc3e5bed8ba0f27583e19eaed3011d5866] action run
execute /opt/opscode/embedded/bin/rabbitmqctl add_user rabbitmgmt 9ec5013ac4a5f887ea5b5c03354667654fc85c2ed1f9c4bee0e20ff99b3c1e6c84fc3e5bed8ba0f27583e19eaed3011d5866
execute[/opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /chef chef "." "." "._"] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /chef chef "." "." "._"
execute[/opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics chef "." "." "._"] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics chef "." "." "._"
execute[/opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics actions "." "." "._"] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics actions "." "." "._"
execute[/opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics rabbitmgmt "." "." "._"] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_permissions -p /analytics rabbitmgmt "." "." "._"
execute[/opt/opscode/embedded/bin/rabbitmqctl set_permissions -p / rabbitmgmt "." "." "._"] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_permissions -p / rabbitmgmt "." "." "._"
execute[/opt/opscode/embedded/bin/rabbitmq-plugins enable rabbitmq_management] action run
execute /opt/opscode/embedded/bin/rabbitmq-plugins enable rabbitmq_management
execute[/opt/opscode/embedded/bin/rabbitmqctl set_user_tags rabbitmgmt administrator] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_user_tags rabbitmgmt administrator
execute[/opt/opscode/embedded/bin/rabbitmqctl set_policy -p /analytics max_length '(erchef|alaska|notifier.notifications|notifier_config)' '{"max-length":10000}' --apply-to queues] action run
execute /opt/opscode/embedded/bin/rabbitmqctl set_policy -p /analytics max_length '(erchef|alaska|notifier.notifications|notifier_config)' '{"max-length":10000}' --apply-to queues
execute[/opt/opscode/embedded/bin/rabbitmqctl clear_policy -p /analytics max_length] action run (skipped due to not_if) Recipe: private-chef::postgresql
user[opscode-pgsql] action create
create user opscode-pgsql
directory[/var/opt/opscode/postgresql] action create
create new directory /var/opt/opscode/postgresql
change mode from '' to '0750'
change owner from '' to 'opscode-pgsql'
restore selinux security context
file[/var/opt/opscode/postgresql/.profile] action create
create new file /var/opt/opscode/postgresql/.profile
update content in file /var/opt/opscode/postgresql/.profile from none to 856113 --- /var/opt/opscode/postgresql/.profile 2016-04-07 06:14:26.100980980 -0400 +++ /var/opt/opscode/postgresql/..profile20160407-42742-vyqlij 2016-04-07 06:14:26.099980984 -0400 @@ -1 +1,2 @@
PATH=/opt/opscode/embedded/bin:/opt/opscode/bin:$PATH
change mode from '' to '0644'
change owner from '' to 'opscode-pgsql'
restore selinux security context
directory[/var/log/opscode/postgresql/9.2] action create
create new directory /var/log/opscode/postgresql/9.2
change mode from '' to '0750'
change owner from '' to 'opscode'
change group from '' to 'opscode'
restore selinux security context
directory[/var/opt/opscode/postgresql/9.2] action create
create new directory /var/opt/opscode/postgresql/9.2
change mode from '' to '0750'
change owner from '' to 'opscode-pgsql'
restore selinux security context
execute[sysctl] action nothing (skipped due to action :nothing)
bash[add shm settings] action run
execute "bash" "/tmp/chef-script20160407-42742-7urpgh"
execute[sysctl] action run
Error executing action run on resource 'execute[sysctl]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '255'
---- Begin output of /sbin/sysctl -p /etc/sysctl.conf ----
STDOUT: net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.ip_forward = 0
net.ipv4.route.flush = 1
net.ipv4.tcp_syncookies = 1
kernel.sysrq = 1
kernel.panic_on_unrecovered_nmi = 1
kernel.sysrq = 1
kernel.panic_on_unrecovered_nmi = 1
kernel.shmmax = 17179869184
kernel.shmall = 4194304
STDERR: error: "net.ipv6.conf.all.accept_ra" is an unknown key
error: "net.ipv6.conf.all.accept_redirect" is an unknown key
error: "net.ipv6.conf.all.accept_redirects" is an unknown key
error: "net.ipv6.conf.default.accept_ra" is an unknown key
error: "net.ipv6.conf.default.accept_redirect" is an unknown key
error: "net.ipv6.conf.default.accept_redirects" is an unknown key
---- End output of /sbin/sysctl -p /etc/sysctl.conf ----
Ran /sbin/sysctl -p /etc/sysctl.conf returned 255
Resource Declaration:
In /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/postgresql.rb
82: execute "sysctl" do
83: command "/sbin/sysctl -p /etc/sysctl.conf"
84: action :nothing
85: end
86:
Compiled Resource:
Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/postgresql.rb:82:in `from_file'
execute("sysctl") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "/sbin/sysctl -p /etc/sysctl.conf"
backup 5
returns 0
declared_type :execute
cookbook_name "private-chef"
recipe_name "postgresql"
end
Recipe: private-chef::rabbitmq
execute[restart_rabbitmq_log_service] action run
execute /opt/opscode/embedded/bin/sv restart /opt/opscode/sv/rabbitmq/log
runit_service[rabbitmq] action restart
restart service runit_service[rabbitmq]
Running handlers:
[2016-04-07T06:14:28-04:00] ERROR: Running exception handlers
Running handlers complete
[2016-04-07T06:14:28-04:00] ERROR: Exception handlers complete
Chef Client failed. 54 resources updated in 53 seconds
[2016-04-07T06:14:28-04:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
[2016-04-07T06:14:28-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-04-07T06:14:28-04:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: executesysctl had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
---- Begin output of /sbin/sysctl -p /etc/sysctl.conf ----
STDOUT: net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.default.log_martians = 1
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.secure_redirects = 0
net.ipv4.conf.default.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
net.ipv4.ip_forward = 0
net.ipv4.route.flush = 1
net.ipv4.tcp_syncookies = 1
kernel.sysrq = 1
kernel.panic_on_unrecovered_nmi = 1
kernel.sysrq = 1
kernel.panic_on_unrecovered_nmi = 1
kernel.shmmax = 17179869184
kernel.shmall = 4194304
STDERR: error: "net.ipv6.conf.all.accept_ra" is an unknown key
error: "net.ipv6.conf.all.accept_redirect" is an unknown key
error: "net.ipv6.conf.all.accept_redirects" is an unknown key
error: "net.ipv6.conf.default.accept_ra" is an unknown key
error: "net.ipv6.conf.default.accept_redirect" is an unknown key
error: "net.ipv6.conf.default.accept_redirects" is an unknown key
---- End output of /sbin/sysctl -p /etc/sysctl.conf ----
Ran /sbin/sysctl -p /etc/sysctl.conf returned 255
I just had this issue on CentOS 7 and was able to temporarily fix it using:
sed -i -e"s@sysctl -p@sysctl -e -p@g" /opt/opscode/embedded/cookbooks/private-chef/recipes/sysctl-updates.rb
Thanks for this @littleairmada , we'll make this update in the 9.2 release.
Thanks Blair for the information.
regards, Arun
On Tue, Sep 27, 2016 at 9:47 PM, Blair Gillam [email protected] wrote:
I had this issue on CentOS 7 and was able to temporarily fix it using:
sed -i -e"s@sysctl -p@sysctl -e -p@g" /opt/opscode/embedded/ cookbooks/private-chef/recipes/sysctl-updates.rb
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chef/chef-server/issues/802#issuecomment-249916117, or mute the thread https://github.com/notifications/unsubscribe-auth/ARZWJXUqMllZbXNZTtVQ4u14zLbszpeJks5quUGwgaJpZM4ICwn- .
@marcparadise Has this bug been fixed? I just ran into it on chef 12
This error would come up if you had a kernel without ipv6 support, you disabled ipv6 in the kernel, or ipv6 is in a kernel module which isn't loaded yet for some reason.
If anyone runs into this issue please check your GRUB_CMDLINE_LINUX* lines in /etc/default/grub or the equivalent for a setting like ipv6.disable=1. If you knowingly have ipv6 disabled, please explain why. Please comment with your platform and kernel, e.g. include the output of the uname -a and lsb_release -a commands as well as your version of Infra Server.
Closing due to no further/current reports. In addition, RabbitMQ is not shipped in current versions of Chef Infra Server