sabibo
October 7, 2022, 9:17pm
1
Anyone use the Slack Notifications plugin? I got it hooked up today and it’s giving me a weird behavior. It works every other time I use it. Even the Test Connection button in the Configure System section. Press it once and it fails with “peer not authenticated”. Press it again and it works.
Any idea what could cause that?
saper
(Marcin Cieślak)
October 9, 2022, 2:28pm
2
Looks like this one to me
opened 11:28PM - 04 Aug 22 UTC
closed 07:59PM - 05 Aug 22 UTC
bug
### Jenkins and plugins versions report
<details>
<summary>Environment</su… mmary>
Slack plugin version: 616.v03b_1e98d13dd
Jenkins version: 2.346.2 (LTS)
- Controller: 1
- Agents: 5
- Pipelines type: declarative Jenkinsfiles
</details>
### What Operating System are you using (both controller, and any agents involved in the problem)?
Controller and Agents instance information:
- OS: Windows Server 2019 Datacenter (fully up to date)
- Java: openJDK 11.0.2
- Hosting: AWS EC2
### Reproduction steps
In our self-hosted instance of Jenkins, a Jenkins core upgrade (from 2.346.1) was performed, along with a handful of plugin updates (list not available, apologies). The day afterwards, pipelines began to fail intermittently on the `slackSend()` plugin command, with the following error message appearing in the jenkins.err logs:
```
WARNING j.p.slack.StandardSlackService#postToSlack: Error posting to Slack
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
```
Pipelines with multiple `slackSend()` commands whose errors are caught, alternatingly work as expected. Error / Send / Error / Send.
Rollbacks to the previous stage did not restore functionality.
Additionally, in the 'Configure System` screen, 'Slack' panel:
- the 'Test Connection' button if repeatedly pressed generates alternating `Success` / `Failure` / `Success` / `Failure` / `Success` / `Failure` responses.
- if 'Custom slack app bot user' is selected and the 'Test Connection' button is repeatedly pressed, it generates the following response sequence: `Failure` / `Failure: {"ok":false,"error":"invalid_auth"}` / `Failure` / `Failure: {"ok":false,"error":"invalid_auth"}`.
We have disabled Slack messages until we can figure out root cause, but it's a core feature we heavily rely upon (and accordingly appreciate all the work that goes into developing / maintaining this plugin).
Please advise!
### Expected Results
Plugin would not error on sending Slack messages.
### Actual Results
Plugin errors on sending Slack messages.
### Anything else?
_No response_
1 Like
sabibo
October 10, 2022, 4:29pm
3
yes it does look like that! will see if I can update my java, thanks!
1 Like