pm2-slack
pm2-slack copied to clipboard
Not getting anything into my slack channel and I'm not sure where to start debugging
My settings:
slack_url: https://hooks.slack.com/services/[redacted]/[redacted]/[redacted]
buffer_seconds: 20
log: true
I tried stopping and starting pm2 but nothing...
If I do pm2 log
I can see my log files updating, but nothing gets to my slack channel. I have no idea how to debug this...
I have this problem too. I can not see my log
I am also facing the same issue. Not getting any Slack message. I tried to check the Hook URL using Postman and its working so, the issue is not with the URL.
Have the same
Ran into this as well. Initially I had installed pm2-slack as a super user (was thinking I was installing it globall), but my app is running as a normal user. Upon reinstalling / configuring pm2-slack as the non-elevated user that was in charge of my existing processes, everything started to post to slack correctly.
Hope this helps somebody :)
Hey, I don't know if this is the correct way but I also didn't see any logs from pm2-slack until I did this: Go to pm2-slack install folder, for me this was:
cd ~/.pm2/modules/pm2-slack/node_modules/pm2-slack/
Start pm2-slack as a pm2 service:
pm2 start index.js --name=pm2-slack
Now the logs started flooding in as per my pm2 set pm2-slack:...
settings.
I also did pm2 update
so that the service gets recognized as Module if you do pm2 status
.
Hope this helps.