pm2-slack icon indicating copy to clipboard operation
pm2-slack copied to clipboard

Not getting anything into my slack channel and I'm not sure where to start debugging

Open GusRuss89 opened this issue 6 years ago • 5 comments

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...

GusRuss89 avatar Apr 02 '18 01:04 GusRuss89

I have this problem too. I can not see my log

wilian746 avatar May 07 '18 23:05 wilian746

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.

TheMrugraj avatar May 21 '19 08:05 TheMrugraj

Have the same

sefabaser avatar Jul 09 '19 11:07 sefabaser

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 :)

joshtronic avatar Aug 25 '19 19:08 joshtronic

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.

randommr3 avatar Jan 30 '20 15:01 randommr3