Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack message never updated #17

Open
Mongey opened this issue Apr 12, 2019 · 0 comments · May be fixed by #18
Open

Slack message never updated #17

Mongey opened this issue Apr 12, 2019 · 0 comments · May be fixed by #18

Comments

@Mongey
Copy link
Contributor

Mongey commented Apr 12, 2019

When a deployment changes, the slack message isn't getting updated.

Screenshot 2019-04-12 at 12 43 12

{"level":"debug","ts":"1555037765.003300","id":"1c28efbe-a585-8293-c887-3090cd02a22e","time":"2019-04-12T02:56:05.633264596Z","message":"adding new entry into notifier state tracking"}
{"level":"info","channel":"monitoring","channel-id":"C0PB0KCJY","time":"2019-04-12T02:56:05.633310764Z","message":"successfully sent new Slack notification"}
{"level":"debug","time":"2019-04-12T02:56:23.122385767Z","message":"deployments index has changed"}
{"level":"info","job":"nginx","time":"2019-04-12T02:56:23.122415727Z","message":"job deployment index has changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122502500Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122510966Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122516675Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122521775Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122526552Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122531275Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122536018Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122540788Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122545551Z","message":"job deployment index has not changed"}
{"level":"debug","job":"nginx","time":"2019-04-12T02:56:23.122550310Z","message":"job deployment index has not changed"}
{"level":"error","error":"channel_not_found","channel":"monitoring","txt":"","channel-id":"","time":"2019-04-12T02:56:23.246392723Z","message":"failed to send update Slack notification"}
{"level":"debug","ts":"","id":"1c28efbe-a585-8293-c887-3090cd02a22e","time":"2019-04-12T02:56:23.246494282Z","message":"adding update into notifier state tracking"}
{"level":"info","channel":"monitoring","channel-id":"","time":"2019-04-12T02:56:23.246512445Z","message":"successfully sent new Slack notification"}

The error is "channel_not_found".
It does send the initial message, and then later claims the message was sent successfully, but it doesn't seem to update slack. I added some more information to the logs to try debug, (splitting channel id and channel).

Mongey added a commit to Mongey/nomad-toast that referenced this issue Apr 14, 2019
The underlying library API is pretty confusing, and it appears that
`SendMessage` needs the channel ID, rather than the channel name when
sending an update.

Fixes jrasell#17.
@Mongey Mongey linked a pull request Apr 14, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant