Infrastructure agent unsupported, no recipes were installed

Hello everyone, I’m trying to install New Relic to my Ubuntu 20.04 system.

Following the installation, I ran the command curl -Ls https://download.newrelic.com/install/newrelic-cli/scripts/install.sh | bash && sudo NEW_RELIC_API_KEY=*MYKEY* NEW_RELIC_ACCOUNT_ID=*MYID* NEW_RELIC_REGION=EU /usr/local/bin/newrelic install

It tells me that the Infrastructure Agent is unsupported, and no recipes were installed.

So I tried to follow the “Install the infrastructure monitoring agent for Linux”

I followed each instructions step by step, but the 4th step “Add the infrastructure monitoring agent repository:” tells me to type :
printf "deb https://download.newrelic.com/infrastructure_agent/linux/apt focal main" | sudo tee -a /etc/apt/sources.list.d/newrelic-infra.list

It seems to do nothing and my issue is still there

Update: after the end of the step by step install, I receive this message :

Setting up newrelic-infra (1.29.1) ...
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
dpkg: error processing package newrelic-infra (--configure):
 installed newrelic-infra package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 newrelic-infra
E: Sub-process /usr/bin/dpkg returned an error code (1)

What can I do?

Hi, @mhunmael: How do you have Ubuntu 20.04 without systemd? Are you running inside the Windows Subsystem for Linux (WSL)? Or did you upgrade from a previous version of Ubuntu?

I’m running Ubuntu inside WSL indeed, just for my Symfony projects

The Infrastructure installer expects systemd to be present on Linux systems. You may be able to manually configure the newrelic-infra service to run under WSL, but it is not supported. There are several options listed here: https://askubuntu.com/a/1379567.

Alright your link made me move forward.

So for my project I managed to install a PHP agent, with success, but it tells me that the infrastructure agent is unsupported. image

But on my New Relic main page, i can see 3 services and 2 hosts. I guess it’s because of my many attempts to install everything. image

I also tried the command newrelic-infra. It finds my agent plugins, but also returning a lot of errors:

ERRO[0006] cannot read dmi sys vendor                    component=HostInfoPlugin error="cannot open file /sys/devices/virtual/dmi/id/sys_vendor, err: open /sys/devices/virtual/dmi/id/sys_vendor: no such file or directory"
ERRO[0006] cannot read dmi product name                  component=HostInfoPlugin error="cannot open file /sys/devices/virtual/dmi/id/product_name, err: open /sys/devices/virtual/dmi/id/product_name: no such file or directory"
ERRO[0006] unable to get systemd service status          error="exit status 1" plugin=Systemd
INFO[0006] connect got id                                agent-guid=MzYzMDgyNnxJTkZSQXxOQXw3MzY0NjExMDkxMjIwMjgwNDM2 agent-id=7364611091220280436 component=IdentityConnectService
ERRO[0036] unable to get systemd service status          error="exit status 1" plugin=Systemd
ERRO[0066] unable to get systemd service status          error="exit status 1" plugin=Systemd

Is New Relic working? I’m not even sure about what I have to do

Are you still trying to install on WSL? As I stated in my previous reply, this is not supported, because the Infrastructure agent requires systemd.

Can I use Docker or I have to set my project into Windows 10?

You should be able to use Docker. There is an Infrastructure Docker container: https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/linux-installation/docker-container-infrastructure-monitoring/