Open iongion opened 10 years ago
It looks like runit
is having difficulty starting the statsd
service. The template for the script that it executes is here:
https://github.com/hectcastro/chef-statsd/blob/develop/templates/default/sv-statsd-run.erb
You may want to take a look at how it is rendered on your machine to see if the paths for things like the Node.js binary and statsd
configuration files look OK. The rendered template should be in /etc/service/statsd
.
I'm seeing the same problem. In my case, the error is caused by node (nodejs) being installed to /usr/bin/node
instead of /usr/local/bin/node
.
Sorry guys for not coming with a reply earlier, yes, as PaulOstazeski says, this is the issue, nodejs being located in a wrong path
Since this commit in April, node["nodejs"]["dir"]
has been removed. If the node executable is in the user's PATH
variable, does it matter what the full path is?
Support for node["statsd"]["nodejs_bin"]
has been added to this cookbook since https://github.com/hectcastro/chef-statsd/commit/5452a1a59474c3411e1eff3ae1d67eaeb555b2c8. Are you able to override that to make things work?
Yes, overriding that attribute works.
I would think that the upstream node cookbook would publish an attribute defining the path to node (the executable) (I think that the path varies depending on if a user chooses a package install or a source install), but it does not publish such an attribute so far as I can see.
I've ran out of options, I have no idea what is wrong, my node is
Ubuntu Server 12.04 LTS
Cheffile has
I provision the vagrant box but when it arrives at statsd installation, all hell breaks lose