-
Notifications
You must be signed in to change notification settings - Fork 411
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
ERROR: Slack notification failed. See Jenkins logs for details. After Recent Update #525
Comments
could you check the jenkins logs please |
Here is what the jenkins logs are returning:
|
is your jenkins credential saved at the GLOBAL level? there's an option issue where it only looks at that level |
yes it is. |
I think it may have something to do with a firewall we just implemented. I am working with our IT guy to see if that is the problem. Will let you know. |
This is how we send -- this was working until Tuesday.
Now we get the exact failures above, and no notifications to the channel. |
That is when it started happening to us as well. |
Actually -- we have NOT updated the plugin. This behavior exists in 2.15 I will try upgrading to 2.18, but, given that it seems to be version agnostic, this could be a slack thing. I'm asking the dev4slack teams if there was an API change Tuesday evening, and holding off on updating. |
Does it log the response from the Slack API call? |
404 with no body -- trying to figure out the url -- upping logging |
URL is sending |
What probably happened is there was a bug in 2.15 that meant if you were previously using the 'integration token text' in your global config, it didn't save the credential when it was migrated, it was only there in memory and lost on a restart, its easy to fix by creating a new credential and updating your config. the migration issue was fixed in 2.17 |
But, I had the behavior in 2.15 first. I upgraded to 2.18 to try to mitigate the failure. The slack creds DID disappear from my configuration, so I know how to fix my install now, but, I'm still concerned that I was seeing identical behavior in 2.15. And that behavior started Tuesday evening. Did anything else happen to things Tuesday evening? |
2.15 is where the problem is. Upgrading doesn't fix it, its too late the token is gone You need to re setup the credential Anyone new who upgrades from 2.14 to >2.16 is fine |
Confirmed. Re-adding the token fixes the integration. |
@CodeMonk Sorry, I am not following, Is it just re-adding the token in jenkins or recreate the token and then re-adding in jenkins ? |
I re-copied the token from the slack integration, and then added it as a Secret Text, per the instructions. |
After re-setup of the credential, the slack notifications are working again for me. |
Thanks, closing, the issue is fixed with 2.17, but if you migrated to 2.15 or 16 there's no fix other than recreating the credential |
Has anyone seem this where it works sometimes? For example, we notify slack at the start and end of the job. |
I updated to latest version of the plugin last week, and ever since then, no notifications are going through to our slack channel.
Anyone else having this issue?
Here is the error I am seeing in my job log.
The text was updated successfully, but these errors were encountered: