GithubHelp home page GithubHelp logo

chef-statsd's People

Contributors

adamvduke avatar awestendorf avatar gansbrest avatar hectcastro avatar jamesonjlee avatar jtescher avatar kami avatar mbell697 avatar mconigliaro avatar nelsonjchen avatar pschultz avatar rafaelmagu avatar ralphm avatar russellcardullo avatar seuros avatar stonith avatar tacchino avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chef-statsd's Issues

sv error

I've ran out of options, I have no idea what is wrong, my node is

Ubuntu Server 12.04 LTS

Cheffile has

cookbook "chef-statsd",       git: "https://github.com/hectcastro/chef-statsd",     ref: "v1.1.10"

I provision the vagrant box but when it arrives at statsd installation, all hell breaks lose

[2014-10-14T14:20:57+00:00] DEBUG: Checking status of service statsd

================================================================================
Error executing action `start` on resource 'runit_service[statsd]'
================================================================================

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/statsd ----
STDOUT: timeout: down: /etc/service/statsd: 0s, normally up, want up
STDERR:
---- End output of /usr/bin/sv start /etc/service/statsd ----
Ran /usr/bin/sv start /etc/service/statsd returned 1
Cookbook Trace:
---------------
/tmp/vagrant-chef-2/chef-solo-1/cookbooks/runit/libraries/provider_runit_service.rb:183:in `start_service' ==> vagranteu3_1204_193p0:
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-2/chef-solo-1/cookbooks/chef-statsd/recipes/default.rb
 58: runit_service "statsd" do
 59:   action [:enable, :start]
 60:   default_logger true
 61:   options ({
 62:     :user => node['statsd']['username'],
 63:     :statsd_dir => node['statsd']['dir'],
 64:     :conf_dir => node['statsd']['conf_dir'],
 65:     :nodejs_bin => node['statsd']['nodejs_bin']
 66:   })
 67: end
Compiled Resource:

------------------
# Declared in /tmp/vagrant-chef-2/chef-solo-1/cookbooks/chef-statsd/recipes/default.rb:58:in `from_file'

runit_service("statsd") do
  provider Chef::Provider::Service::Runit
  action [:enable, :start]
  updated true
  supports {:restart=>true, :reload=>true, :status=>true}
  retries 0
  retry_delay 2
  guard_interpreter :default
  service_name "statsd"
  enabled true
  pattern "statsd"
  status_command "/usr/bin/sv status /etc/service"
  sv_bin "/usr/bin/sv"
  sv_dir "/etc/sv"
  service_dir "/etc/service"
  lsb_init_dir "/etc/init.d"
  options {:user=>"statsd", :statsd_dir=>"/usr/share/statsd", :conf_dir=>"/etc/statsd", :nodejs_bin=>"/bin/node"}
  log true
  default_logger true
  restart_on_update true
  run_template_name "statsd"
  log_template_name "statsd"
  check_script_template_name "statsd"
  finish_script_template_name "statsd"
  sv_templates true
  service_mirror # Declared in

service("statsd") do
  provider Chef::Provider::Service::Simple
  action [:nothing]
  supports {:restart=>true, :reload=>true, :status=>true}
  retries 0
  retry_delay 2
  guard_interpreter :default
  service_name "statsd"
  pattern "statsd"
  start_command "/usr/bin/sv start /etc/service/statsd"
  stop_command "/usr/bin/sv stop /etc/service/statsd"
  status_command "/usr/bin/sv status /etc/service/statsd"
  restart_command "/usr/bin/sv restart /etc/service/statsd"
end

  cookbook_name :"chef-statsd"
  recipe_name "default"
end
[2014-10-14T14:21:05+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-10-14T14:21:05+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - runit_service[statsd] (chef-statsd::default line 58) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/statsd ----
STDOUT: timeout: down: /etc/service/statsd: 0s, normally up, want up
STDERR:
---- End output of /usr/bin/sv start /etc/service/statsd ----
Ran /usr/bin/sv start /etc/service/statsd returned 1
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:272:in `invalid!' ==> vagranteu3_1204_193p0:   /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:259:in `error!' ==> vagranteu3_1204_193p0:   /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/shell_out.rb:43:in `shell_out!'
  /tmp/vagrant-chef-2/chef-solo-1/cookbooks/runit/libraries/provider_runit_service.rb:183:in `start_service'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider/service.rb:90:in `block in action_start'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/why_run.rb:52:in `call'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/why_run.rb:52:in `add_action'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider.rb:156:in `converge_by'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider/service.rb:89:in `action_start'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider.rb:121:in `run_action'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource.rb:648:in `run_action'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:49:in `run_action'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `block (2 levels) in converge'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `each'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `block in converge'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection.rb:96:in `execute_each_resource'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:80:in `converge'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:345:in `converge'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:431:in `do_run'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:213:in `block in run'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:207:in `fork'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:207:in `run'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application.rb:236:in `run_chef_client'

  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:226:in `block in run_application'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:218:in `loop'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:218:in `run_application'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application.rb:55:in `run'
  /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/bin/chef-solo:25:in `<top (required)>'
  /opt/ruby/1.9.3-p0/bin/chef-solo:19:in `load'
  /opt/ruby/1.9.3-p0/bin/chef-solo:19:in `<main>'
[2014-10-14T14:21:05+00:00] ERROR: Running exception handlers
[2014-10-14T14:21:05+00:00] ERROR: Exception handlers complete
[2014-10-14T14:21:05+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-10-14T14:21:05+00:00] DEBUG: Mixlib::ShellOut::ShellCommandFailed: runit_service[statsd] (chef-statsd::default line 58) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/statsd ----
STDOUT: timeout: down: /etc/service/statsd: 0s, normally up, want up
STDERR:
---- End output of /usr/bin/sv start /etc/service/statsd ----
Ran /usr/bin/sv start /etc/service/statsd returned 1
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:272:in `invalid!' ==> vagranteu3_1204_193p0: /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mixlib-shellout-1.6.0/lib/mixlib/shellout.rb:259:in `error!'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/shell_out.rb:43:in `shell_out!'
/tmp/vagrant-chef-2/chef-solo-1/cookbooks/runit/libraries/provider_runit_service.rb:183:in `start_service' ==> vagranteu3_1204_193p0: /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider/service.rb:90:in `block in action_start'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/why_run.rb:52:in `call'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/mixin/why_run.rb:52:in `add_action'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider.rb:156:in `converge_by'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider/service.rb:89:in `action_start' ==> vagranteu3_1204_193p0: /opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/provider.rb:121:in `run_action'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource.rb:648:in `run_action'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:49:in `run_action'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `each'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:81:in `block in converge'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection.rb:98:in `block in execute_each_resource'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/resource_collection.rb:96:in `execute_each_resource'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/runner.rb:80:in `converge'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:345:in `converge'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:431:in `do_run'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:213:in `block in run'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:207:in `fork'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/client.rb:207:in `run'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application.rb:236:in `run_chef_client'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:226:in `block in run_application'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:218:in `loop'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application/solo.rb:218:in `run_application'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/lib/chef/application.rb:55:in `run'
/opt/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/gems/chef-11.16.2/bin/chef-solo:25:in `<top (required)>'
/opt/ruby/1.9.3-p0/bin/chef-solo:19:in `load'
/opt/ruby/1.9.3-p0/bin/chef-solo:19:in `<main>'
[2014-10-14T14:21:05+00:00] ERROR: runit_service[statsd] (chef-statsd::default line 58) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/bin/sv start /etc/service/statsd ----
STDOUT: timeout: down: /etc/service/statsd: 0s, normally up, want up
STDERR:
---- End output of /usr/bin/sv start /etc/service/statsd ----
Ran /usr/bin/sv start /etc/service/statsd returned 1
[2014-10-14T14:21:05+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

/etc/init.d/statsd restart broken on CentOS

# /etc/init.d/statsd restart Stopping statsd daemon: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] [FAILED]

It looks like this is being caused by the "pid=" line in the "stop" function:

pid=$(ps aux | grep stats.js | grep nodejs | awk '{print $2}')

That grep nodejs doesn't match anything. Are you trying to match on the username? If so, that should be grep statsd.

Incompatibility with node.js installed by package

When using chef-statsd to install statsd, the runit script always references /usr/local/bin.

However, when the user has elected to install node.js by package (at least on Ubuntu), using override['nodejs']['install_method'] = 'package', the node binary is installed to /usr/bin, causing the chef run to fail when starting the service.

It appears that chpst (as used in the runit script) uses a sane path, so it should be possible to change the relevant line from chpst /usr/local/bin/node ... to simply chpst node ...

Error executing action `run` on resource 'bash[compile node.js (on 8 cpu)]'

This is on 12.10. Its happened the same way on 3 different machines.

Here is the relevant dump: (FYI I removed a bunch of similar lines in the areas indicated because the text was too large for github to post an issue)


Recipe: nodejs::install_from_source
  * package[libssl-dev] action install (up to date)
  * remote_file[/usr/local/src/node-v0.10.2.tar.gz] action create_if_missing
    - copy file downloaded from [] into /usr/local/src/node-v0.10.2.tar.gz
        (file sizes exceed 10000000 bytes, diff output suppressed)
    - change mode from '' to '0644'

  * execute[tar --no-same-owner -zxf node-v0.10.2.tar.gz] action run
    - execute tar --no-same-owner -zxf node-v0.10.2.tar.gz

  * bash[compile node.js (on 8 cpu)] action run
================================================================================
Error executing action `run` on resource 'bash[compile node.js (on 8 cpu)]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of "bash"  "/tmp/chef-script20130503-20241-1ttfn22" ----
STDOUT: { 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'clang': 0,
                 'gcc_version': 47,
                 'host_arch': 'x64',
                 'node_install_npm': 'true',
                 'node_prefix': '/usr/local',
                 'node_shared_cares': 'false',
                 'node_shared_http_parser': 'false',
                 'node_shared_libuv': 'false',
                 'node_shared_openssl': 'false',
                 'node_shared_v8': 'false',
                 'node_shared_zlib': 'false',
                 'node_tag': '',
                 'node_unsafe_optimizations': 0,
                 'node_use_dtrace': 'false',
                 'node_use_etw': 'false',
                 'node_use_openssl': 'true',
                 'node_use_perfctr': 'false',
                 'node_use_systemtap': 'false',
                 'python': '/usr/bin/python',
                 'target_arch': 'x64',
                 'v8_enable_gdbjit': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_use_snapshot': 'true'}}
creating  ./config.gypi
creating  ./config.mk
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/usr/local/src/node-v0.10.2/out'
  cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DHAVE_CONFIG_H' '-DCARES_STATICLIB' -I../deps/cares/include -I../deps/cares/src -I../deps/cares/config/linux  -Wall -Wextra -Wno-unused-parameter -pthread -m64 -g --std=gnu89 -pedantic -Wall -Wextra -Wno-unused-parameter -O2 -fno-strict-aliasing -fno-tree-vrp  -MMD -MF /usr/local/src/node-v0.10.2/out/Release/.deps//usr/local/src/node-v0.10.2/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o.d.raw  -c -o /usr/local/src/node-v0.10.2/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o ../deps/cares/src/ares_cancel.c


******* REMOVED A BUNCH OF SIMILAR LINES TO THE ONE ABOVE BECAUSE GITHUB DOENST LIKE AN ISSUE BODY THAT IS THAT BIG ********


make[1]: Leaving directory `/usr/local/src/node-v0.10.2/out'
STDERR: ../deps/cares/src/ares_options.c: In function 'ares_set_servers_csv':
../deps/cares/src/ares_options.c:187:9: warning: ignoring return value of 'strtol', declared with attribute warn_unused_result [-Wunused-result]
../deps/cares/src/ares_process.c: In function 'read_udp_packets':
../deps/cares/src/ares_process.c:481:35: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:251:0,
                 from ../deps/cares/src/ares_process.c:21:
/usr/include/x86_64-linux-gnu/bits/socket2.h:65:1: note: expected 'socklen_t * __restrict__' but argument is of type 'ares_socklen_t *'
../deps/uv/src/unix/core.c:69:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:70:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:72:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:74:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:74:1: warning: ISO C90 forbids array 'static_assert_failed' whose size can't be evaluated [-Wvla]
../deps/uv/src/unix/core.c:76:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:76:1: warning: ISO C90 forbids array 'static_assert_failed' whose size can't be evaluated [-Wvla]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[1]: *** [/usr/local/src/node-v0.10.2/out/Release/obj.target/v8_base/deps/v8/src/hydrogen.o] Error 4
make[1]: *** Waiting for unfinished jobs....
make: *** [node] Error 2
---- End output of "bash"  "/tmp/chef-script20130503-20241-1ttfn22" ----
Ran "bash"  "/tmp/chef-script20130503-20241-1ttfn22" returned 2


Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/nodejs/recipes/install_from_source.rb

 52: bash "compile node.js (on #{node['nodejs']['make_threads']} cpu)" do
 53:   # OSX doesn't have the attribute so arbitrarily default 2
 54:   cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
 55:   code <<-EOH
 56:     PATH="/usr/local/bin:$PATH"
 57:     ./configure --prefix=#{node['nodejs']['dir']} && \
 58:     make -j #{node['nodejs']['make_threads']}
 59:   EOH
 60:   creates "/usr/local/src/node-v#{node['nodejs']['version']}/node"
 61: end
 62:
 63: execute "nodejs make install" do
 64:   environment({"PATH" => "/usr/local/bin:/usr/bin:/bin:$PATH"})
 65:   command "make install"
 66:   cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
 67:   not_if {File.exists?("#{node['nodejs']['dir']}/bin/node") && `#{node['nodejs']['dir']}/bin/node --version`.chomp == "v#{node['nodejs']['version']}" }
 68: end



Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/nodejs/recipes/install_from_source.rb:52:in `from_file'

bash("compile node.js (on 8 cpu)") do
  action "run"
  retries 0
  retry_delay 2
  command "\"bash\"  \"/tmp/chef-script20130503-20241-1ttfn22\""
  backup 5
  creates "/usr/local/src/node-v0.10.2/node"
  cwd "/usr/local/src/node-v0.10.2"
  returns 0
  code "    PATH=\"/usr/local/bin:$PATH\"\n    ./configure --prefix=/usr/local &&     make -j 8\n"
  interpreter "bash"
  cookbook_name "nodejs"
  recipe_name "install_from_source"
end



[2013-05-03T19:07:20+00:00] ERROR: Running exception handlers
[2013-05-03T19:07:20+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-05-03T19:07:20+00:00] ERROR: Exception handlers complete
Chef Client failed. 20 resources updated
[2013-05-03T19:07:20+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-05-03T19:07:20+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[compile node.js (on 8 cpu)] (nodejs::install_from_source line 52) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of "bash"  "/tmp/chef-script20130503-20241-1ttfn22" ----
STDOUT: { 'target_defaults': { 'cflags': [],
                       'default_configuration': 'Release',
                       'defines': [],
                       'include_dirs': [],
                       'libraries': []},
  'variables': { 'clang': 0,
                 'gcc_version': 47,
                 'host_arch': 'x64',
                 'node_install_npm': 'true',
                 'node_prefix': '/usr/local',
                 'node_shared_cares': 'false',
                 'node_shared_http_parser': 'false',
                 'node_shared_libuv': 'false',
                 'node_shared_openssl': 'false',
                 'node_shared_v8': 'false',
                 'node_shared_zlib': 'false',
                 'node_tag': '',
                 'node_unsafe_optimizations': 0,
                 'node_use_dtrace': 'false',
                 'node_use_etw': 'false',
                 'node_use_openssl': 'true',
                 'node_use_perfctr': 'false',
                 'node_use_systemtap': 'false',
                 'python': '/usr/bin/python',
                 'target_arch': 'x64',
                 'v8_enable_gdbjit': 0,
                 'v8_no_strict_aliasing': 1,
                 'v8_use_snapshot': 'true'}}
creating  ./config.gypi
creating  ./config.mk
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/usr/local/src/node-v0.10.2/out'
  cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DHAVE_CONFIG_H' '-DCARES_STATICLIB' -I../deps/cares/include -I../deps/cares/src -I../deps/cares/config/linux  -Wall -Wextra -Wno-unused-parameter -pthread -m64 -g --std=gnu89 -pedantic -Wall -Wextra -Wno-unused-parameter -O2 -fno-strict-aliasing -fno-tree-vrp  -MMD -MF /usr/local/src/node-v0.10.2/out/Release/.deps//usr/local/src/node-v0.10.2/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o.d.raw  -c -o /usr/local/src/node-v0.10.2/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o ../deps/cares/src/ares_cancel.c

  ******* REMOVED A BUNCH OF SIMILAR LINES TO THE ONE ABOVE BECAUSE GITHUB DOENST LIKE AN ISSUE BODY THAT IS THAT BIG ********


make[1]: Leaving directory `/usr/local/src/node-v0.10.2/out'
STDERR: ../deps/cares/src/ares_options.c: In function 'ares_set_servers_csv':
../deps/cares/src/ares_options.c:187:9: warning: ignoring return value of 'strtol', declared with attribute warn_unused_result [-Wunused-result]
../deps/cares/src/ares_process.c: In function 'read_udp_packets':
../deps/cares/src/ares_process.c:481:35: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign]
In file included from /usr/include/x86_64-linux-gnu/sys/socket.h:251:0,
                 from ../deps/cares/src/ares_process.c:21:
/usr/include/x86_64-linux-gnu/bits/socket2.h:65:1: note: expected 'socklen_t * __restrict__' but argument is of type 'ares_socklen_t *'
../deps/uv/src/unix/core.c:69:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:70:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:72:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:74:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:74:1: warning: ISO C90 forbids array 'static_assert_failed' whose size can't be evaluated [-Wvla]
../deps/uv/src/unix/core.c:76:1: warning: ISO C forbids zero-size array 'static_assert_failed' [-pedantic]
../deps/uv/src/unix/core.c:76:1: warning: ISO C90 forbids array 'static_assert_failed' whose size can't be evaluated [-Wvla]
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
make[1]: *** [/usr/local/src/node-v0.10.2/out/Release/obj.target/v8_base/deps/v8/src/hydrogen.o] Error 4
make[1]: *** Waiting for unfinished jobs....
make: *** [node] Error 2
---- End output of "bash"  "/tmp/chef-script20130503-20241-1ttfn22" ----
Ran "bash"  "/tmp/chef-script20130503-20241-1ttfn22" returned 2

ResourceNotFound on runit_service notification

@rafaelmagu states:

While I support the use of runit, it seems the current implementation of the runit service in this cookbook is broken. I'm getting the following error when trying to include statsd in my recipe:

[2013-06-17T23:06:56+00:00] FATAL: Chef::Exceptions::ResourceNotFound: resource git[/usr/share/statsd] is configured to notify resource runit_service[statsd] with action restart, but runit_service[statsd] cannot be found in the resource collection. git[/usr/share/statsd] is defined in /var/cache/chef/cookbooks/statsd/recipes/default.rb:5:in from_file'`

I have already verified that I have depends "runit" in my own metadata and even tried forking this cookbook and moving the order of the statements around to define the service before the notify statement, all to no avail.

Running Chef 10.24.0 on Ubuntu Precise (12.04).

Any clues? The guys on #chef could not figure it out either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.