Can not install nodejs agent on Ubuntu 18.04

Hello

I am trying to install the newrelic agent for node js on our Ubuntu servers but facing with error:

curl -Ls https://raw.githubusercontent.com/newrelic/newrelic-cli/master/scripts/install.sh | bash && sudo NEW_RELIC_API_KEY=$OUR_GUID_LICENSE_KEY NEW_RELIC_ACCOUNT_ID=$ACCOUNT_ID NEW_RELIC_REGION=EU /usr/local/bin/newrelic install -n node-agent-installer

No Node processes found running on the host
==> Installing node-agent-installer…failed.

Another option just use standard install.
run “npm install newrelic --save”
Add to the app:
“require(‘newrelic’);”
Download newrelic.js
Restart app.
But in this case it just do not send the metrycs. Just greyed out icon in Newrelic APM.

Our os version is:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

We are using PM2 .

I have tried to do it on 5 different hosts with different running nodejs appications and only one of them shows green status in APM, but all of them are in green status in hosts. How it can be? :confused:

So, please advise what i am doing wrong. Are there some limitations in APM usage on a free tier?

Hi, @kostyantyn: There are not limitations on the free tier. If you have not already done so, you might try the troubleshooting steps here: Troubleshoot your Node.js installation | New Relic Documentation.