GithubHelp home page GithubHelp logo

sv error about chef-statsd HOT 7 OPEN

iongion avatar iongion commented on July 30, 2024
sv error

from chef-statsd.

Comments (7)

hectcastro avatar hectcastro commented on July 30, 2024

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.

from chef-statsd.

PaulOstazeski avatar PaulOstazeski commented on July 30, 2024

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.

from chef-statsd.

iongion avatar iongion commented on July 30, 2024

Sorry guys for not coming with a reply earlier, yes, as PaulOstazeski says, this is the issue, nodejs being located in a wrong path

from chef-statsd.

PaulOstazeski avatar PaulOstazeski commented on July 30, 2024

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?

from chef-statsd.

hectcastro avatar hectcastro commented on July 30, 2024

Support for node["statsd"]["nodejs_bin"] has been added to this cookbook since 5452a1a. Are you able to override that to make things work?

from chef-statsd.

PaulOstazeski avatar PaulOstazeski commented on July 30, 2024

Yes, overriding that attribute works.

from chef-statsd.

PaulOstazeski avatar PaulOstazeski commented on July 30, 2024

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.

from chef-statsd.

Related Issues (8)

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.