ajenti-v icon indicating copy to clipboard operation
ajenti-v copied to clipboard

Ajenti-v on Ubuntu wrong Node executable on supervisord.conf

Open luisvsilva opened this issue 9 years ago • 3 comments

Currently Ajenti-v is setting the executable on supervisord.conf as:

"node"

On Debian systems should be "nodejs"

This is breaking the start of the node app obviously.

I think the problem is in this:

node_bin = 'node'
        try:
            subprocess.call(['which', 'node'])
        except:
            node_bin = 'nodejs'

"which node" is not throwing any error when I run on the CLI I just get nothing on STDout.

luisvsilva avatar Jan 11 '16 04:01 luisvsilva

Have you tried to install the nodejs-legacy package ?

Xefir avatar Jan 11 '16 09:01 Xefir

Sorry don't understand the question. I just:

apt-get install nodejs

Which i find interesting, because shouldnt "ajenti-v-nodejs" have a dependency on nodejs?

Should I had installed the package you mentioned? And why would I want to install a legacy package?

Thanks

luisvsilva avatar Jan 11 '16 11:01 luisvsilva

OK, I just read the details of the package, and yeah it makes sense (it basically creates a symlink for nodejs)., Problem is Ajenti-v-node tries to detect the system where it is running (debian or other) and failing, so that needs to be fixed, or removed and added the respective dependencies to ajenti-v-nodejs, or am I missing something?

luisvsilva avatar Jan 11 '16 11:01 luisvsilva