• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Newrelic PHP-Agent not reporting data ( EOENT on /tmp/.newrelic.sock )

nilsringersma_nl

Basic Pleskian
Dear users,

After running into some problems with installing Newrelic on Pleks Onyx operating on CentOS7 we've ran into some problems. We solved the problems with this thread. I've decided to share them with you, maybe helping someone in the future.

Problem:
After installing the newrelic-daemon and the PHP agent ( for whatever version of PHP ), the data is not showing up in Newrelic. Also the php-agent.log show the error: "warning: daemon connect(fd=6 uds=/tmp/.newrelic.sock) returned -1 errno=ENOENT".

Solution:
The error message ENOENT indicates the agent or its worker daemon are being denied entry to /tmp/.newrelic.sock. This file is a Unix Domain Socket, which the agent and daemon use to communicate by default. This error is often related to permissions and security issues.

The error message ECONNREFUSED indicates that the agent cannot detect its worker daemon. This might be because the daemon is not running, or because the agent and daemon are communicating in different ways, or because the daemon does not have permission to edit the current UDS at /tmp/.newrelic.sock.

Resolution
To resolve both of these issues, you can perform the following.

Delete the current file at /tmp/.newrelic.sock.
If it exists, delete the file at /etc/newrelic/newrelic.cfg or simply rename it, for example as newrelic.cfg.bak.
Change the communication method of the agent and daemon by setting the below in the newrelic.ini file:
newrelic.daemon.port= "@newrelic-daemon"
Kill the agent and daemon by running this command: killall newrelic-daemon
Restart the web server to redeploy the agent, which will restart/respawn the daemon.
 
Back
Top