Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apm-php unsupported un ubuntu 20.04 #1119

Open
burner1024 opened this issue Sep 20, 2024 · 0 comments
Open

apm-php unsupported un ubuntu 20.04 #1119

burner1024 opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@burner1024
Copy link

burner1024 commented Sep 20, 2024

apm-php unsupported un ubuntu 20.04

Description

! Installing php-agent-installer
   Failed 

  New Relic installation complete 

  --------------------
  Installation Summary

  ✔  Infrastructure Agent  (installed)  
  ✔  Logs Integration  (installed)  
  !  PHP Agent  (incomplete)

Steps to Reproduce

sudo NEW_RELIC_API_KEY=NRAK-XXX NEW_RELIC_ACCOUNT_ID=YYY /usr/local/bin/newrelic install -n php-agent-installer

Expected Behavior

Installed php agent.

Relevant Logs / Console output

 _   _                 ____      _ _
| \ | | _____      __ |  _ \ ___| (_) ___
|  \| |/ _ \ \ /\ / / | |_) / _ | | |/ __|
| |\  |  __/\ V  V /  |  _ |  __| | | (__
|_| \_|\___| \_/\_/   |_| \_\___|_|_|\___|

Welcome to New Relic. Let's set up full stack observability for your environment.
Our Data Privacy Notice: https://newrelic.com/termsandconditions/services-notices
	
✔ Connecting to New Relic Platform
   Connected 


Installing New Relic PHP Agent

==> Installing Infrastructure Agent
Detecting available SSL ciphers...
 - SSLv3
 - TLSv1
 - TLSv1.2
 - TLSv1.3
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
Hit:6 https://download.newrelic.com/infrastructure_agent/linux/apt focal InRelease
Get:7 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
Ign:4 https://apt.newrelic.com/debian newrelic InRelease
Hit:8 https://apt.newrelic.com/debian newrelic Release
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/tiagohillebrandt/wp-cli/ubuntu focal InRelease
Fetched 4583 B in 2s (3030 B/s)
Reading package lists...
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 https://download.docker.com/linux/ubuntu focal InRelease
Hit:6 https://download.newrelic.com/infrastructure_agent/linux/apt focal InRelease
Get:7 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
Ign:1 https://apt.newrelic.com/debian newrelic InRelease
Hit:8 https://apt.newrelic.com/debian newrelic Release
Hit:9 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/tiagohillebrandt/wp-cli/ubuntu focal InRelease
Fetched 4583 B in 2s (2719 B/s)
Reading package lists...
Running agent status check attempt...
Agent status check ok.
Infra key: i-0f1ea3215388a62e8
✔ Installing Infrastructure Agent
   Installed 

==> Installing Logs Integration
✔ Installing Logs Integration
   Installed 

==> Installing PHP Agent
PHP Warning:  Module "newrelic" is already loaded in Unknown on line 0
What is the name of your PHP application? (Double-quote (") is not a valid character in the name) app1
Restart the PHP web service after PHP agent installation? Selecting 'y' will automatically restart php-fpm, nginx, or apache depending on the service that is detected. Selecting 'n' will require you to manually restart the process when prompted. (y/n)y
Confirmation:  The following options were selected.  If you wish to change an option, please select 'n' at the prompt and restart the installation.
* The following application name was selected: app1
* Automatic process restart was selected.  This installation will restart the php-fpm or nginx process depending on the application architecture detected.

Note: If you are hosting your PHP application on something other than apache, nginx, or php-fpm, please select 'n' and check out our other installation options:
https://docs.newrelic.com/docs/agents/php-agent/installation/php-agent-installation-overview/

Do you want to install the PHP Agent Y/N (default: Y)? 

===> Detecting services
Found service: php8.2-fpm
Found service: nginx
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:6 https://download.docker.com/linux/ubuntu focal InRelease
Hit:7 https://download.newrelic.com/infrastructure_agent/linux/apt focal InRelease
Ign:1 https://apt.newrelic.com/debian newrelic InRelease
Hit:8 https://apt.newrelic.com/debian newrelic Release
Get:9 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:11 http://ppa.launchpad.net/tiagohillebrandt/wp-cli/ubuntu focal InRelease
Fetched 4583 B in 1s (3259 B/s)
Reading package lists...
deb http://apt.newrelic.com/debian/ newrelic non-free
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
Hit:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 https://download.newrelic.com/infrastructure_agent/linux/apt focal InRelease
Hit:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:6 https://download.docker.com/linux/ubuntu focal InRelease
Ign:1 https://apt.newrelic.com/debian newrelic InRelease
Hit:7 https://apt.newrelic.com/debian newrelic Release
Get:8 https://deb.nodesource.com/node_14.x focal InRelease [4583 B]
Hit:9 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:10 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:11 http://ppa.launchpad.net/tiagohillebrandt/wp-cli/ubuntu focal InRelease
Fetched 4583 B in 1s (3546 B/s)
Reading package lists...
===> Installing New Relic PHP Agent package
===> Installing New Relic PHP Agent
Downloading newest PHP Agent Release
AGENT VERSION: 11.1.0.14
Found agent version: 11.1.0.14
Running PHP Agent installer
===> Configuring New Relic PHP Agent
nrinstall-20240920-083108-3846560.log
nrinstall-20240920-083108-3846560.sysinfo

===> Restarting the services, as needed
This step causes the changes to newrelic.ini to be picked up.
Restarting php8.2-fpm as privileged user root
Sleeping for 10 seconds to give process time to recover.
===> Send queryable transactions
! Installing php-agent-installer
   Failed 

  New Relic installation complete 

  --------------------
  Installation Summary

  ✔  Infrastructure Agent  (installed)  
  ✔  Logs Integration  (installed)  
  !  PHP Agent  (incomplete)  

  Installation was successful overall, however, one or more installations could not be completed.
  Follow the instructions at the URL below to complete the installation process. 

  ⮕  https://onenr.io/0Bj33b3eGjX

  View your logs at the link below:
  ⮕  https://onenr.io/0LwGmqmppj6

  --------------------

Your Environment

  • Ubuntu 20.04

Additional context

I have spent a day debugging ansible role, then newrelic-cli, then finally this.

Debug logs have no relevant debug.

Links provided by the cli to docs and logs are useless.

I see similar issues ignored for years.

At this point, I'm wondering whether NewRelic needs clients at all.
I'm considering switching our monitoring to another solution.

@burner1024 burner1024 added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant