Skip to content

Instantly share code, notes, and snippets.

@RoesWibowo
Created November 28, 2019 16:48
Show Gist options
  • Save RoesWibowo/b3513dce828b81750055fb5ca36022f3 to your computer and use it in GitHub Desktop.
Save RoesWibowo/b3513dce828b81750055fb5ca36022f3 to your computer and use it in GitHub Desktop.
[FIX] Failed to connect to the newrelic-daemon
I spent 2 hours+ and got stress about this issue: warning: daemon connect(fd=5 uds=/tmp/.newrelic.sock) returned -1 errno=ECONNREFUSED. Failed to connect to the newrelic-daemon. Please make sure that there is a properly configured newrelic-daemon running. For additional assistance, please see: https://newrelic.com/docs/php/newrelic-daemon-startup-modes
These are the steps to solve the issue:
> Check process using command: ps aux | grep newrelic
> Kill all newrelic-daemon process.
> Restart web server using command: service php-fpm restart && service nginx restart
> Newrelic daemon will automatically restart.
And, voila! (:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment