This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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! (: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const AWS = require('aws-sdk'); | |
| const ssm = new AWS.SSM(); | |
| const SSM_DOCUMENT_NAME = process.env.SSM_DOCUMENT_NAME; | |
| const SNS_TARGET = process.env.SNS_TARGET; | |
| function sleep(ms) { | |
| return new Promise((resolve) => { | |
| setTimeout(resolve, ms); | |
| }); | |
| } |
OlderNewer