Slack Notifications stop working after updating GitLab
Summary
Slack Notifications stop working after updating GitLab.
I am using GitLab Community Edition (Omnibus Package) on Ubuntu 16.04. I had set up a project with Slack Notifications, and with each push, a message was posted to a Slack channel. After upgrading GitLab (from 12.6.0 to 12.9.0), Slack Notifications for all projects stopped working.
I had to manually "kickstart" the Slack notifications by pushing the green "test settings and save changes" button on each project's Slack Notifications settings page, without changing any settings. This method fixes Slack Notifications one repo at a time. However, with over 100+ repos in our private Gitlab instance, this method is not practical.
I believe this is reproducible with most GitLab updates, as I have encountered this issue previously when I updated to GitLab 12.6.
Steps to reproduce
- Enable a Slack Notification integration on a Gitlab project so that push events post messages to a Slack channel.
- Update GitLab version (in my case, from 12.6.0 to 12.9.0).
- Try pushing new commits to the Gitlab project that has Slack notifications enabled. No messages will post to Slack.
- Open the project's Slack Notifications integration settings page. Do not change any settings. Click the green "Test settings and save changes" button at the bottom of the page. A test message will post to slack.
- Push more commits to the Gitlab repo. Messages will now post to the Slack channel.
Example Project
NA
What is the current bug behavior?
Slack notification stop working for all projects after upgrading GitLab.
What is the expected correct behavior?
Slack notifications should continue to work for all projects after upgrading GitLab.
Relevant logs and/or screenshots
NA
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.6.5p114 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.7 Git Version: 2.24.1 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.9.0 Revision: 9a382ff2c82 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: OMITTED HTTP Clone URL: OMITTED SSH Clone URL: OMITTED Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 12.0.0 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 12.0.0 ? ... OK (12.0.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) User output sanitized. Found 14 users of 100 limit.
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 10/1 ... yes 10/2 ... yes 10/3 ... yes 10/4 ... yes 10/5 ... yes 10/6 ... yes 10/7 ... yes 10/8 ... yes 10/9 ... yes 10/10 ... yes 10/11 ... yes 10/12 ... yes 10/13 ... yes 10/14 ... yes 10/15 ... yes 23/16 ... yes 11/17 ... yes 10/18 ... yes 10/19 ... yes 10/20 ... yes 11/21 ... yes 10/22 ... yes 10/23 ... yes 11/24 ... yes 10/25 ... yes 10/26 ... yes 10/27 ... yes 10/28 ... yes 11/29 ... yes 11/30 ... yes 10/31 ... yes 2/32 ... yes 10/33 ... yes 10/34 ... yes 10/35 ... yes 10/36 ... yes 2/37 ... yes 10/38 ... yes 11/39 ... yes 10/40 ... yes 10/41 ... yes 10/42 ... yes 10/43 ... yes 10/44 ... yes 10/45 ... yes 11/46 ... yes 10/47 ... yes 10/48 ... yes 10/49 ... yes 10/50 ... yes 2/51 ... yes 10/52 ... yes 2/53 ... yes 2/54 ... yes 10/55 ... yes 10/56 ... yes 11/57 ... yes 2/58 ... yes 13/59 ... yes 10/60 ... yes 10/61 ... yes 11/62 ... yes 10/63 ... yes 10/65 ... yes 10/66 ... yes 10/67 ... yes 10/68 ... yes 10/69 ... yes 2/70 ... yes 10/71 ... yes 10/72 ... yes 10/73 ... yes 10/75 ... yes 10/76 ... yes 10/78 ... yes 11/79 ... yes 11/80 ... yes 10/81 ... yes 2/82 ... yes 11/83 ... yes 10/84 ... yes 10/85 ... yes 10/86 ... yes 10/87 ... yes 11/88 ... yes 10/89 ... yes 10/90 ... yes 11/91 ... yes 11/92 ... yes 10/94 ... yes 11/95 ... yes 10/96 ... yes 11/97 ... yes 10/98 ... yes 10/99 ... yes 10/100 ... yes 11/101 ... yes 10/102 ... yes 10/103 ... yes 10/104 ... yes 10/105 ... yes 11/106 ... yes 10/107 ... yes 10/108 ... yes 10/109 ... yes 10/110 ... yes 10/111 ... yes 10/112 ... yes 10/113 ... yes 10/114 ... yes 10/115 ... yes 11/116 ... yes 10/117 ... yes 10/118 ... yes 10/119 ... yes 10/120 ... yes 10/121 ... yes 11/122 ... yes 10/123 ... yes 10/124 ... yes 10/125 ... yes 11/126 ... yes 10/127 ... yes 10/128 ... yes 23/129 ... yes 10/130 ... yes 11/131 ... yes 10/132 ... yes 10/133 ... yes 18/134 ... yes 10/135 ... yes 10/136 ... yes 10/137 ... yes 10/138 ... yes 10/139 ... yes 10/140 ... yes 10/141 ... yes 10/142 ... yes 10/143 ... yes 11/144 ... yes 11/145 ... yes 10/146 ... yes 10/147 ... yes 10/148 ... yes 10/149 ... yes 10/150 ... yes 10/151 ... yes 10/152 ... yes 10/153 ... yes 10/154 ... yes 10/155 ... yes 10/156 ... yes 2/157 ... yes 10/158 ... yes 10/159 ... yes 10/160 ... yes 10/161 ... yes 10/162 ... yes 2/163 ... yes 10/164 ... yes 10/159 ... yes 10/160 ... yes 10/161 ... yes 10/162 ... yes 2/163 ... yes 10/164 ... yes 10/168 ... yes 11/169 ... yes 10/170 ... yes 10/171 ... yes 10/172 ... yes 25/175 ... yes 11/176 ... yes 11/177 ... yes 11/178 ... yes 10/179 ... yes 10/180 ... yes 10/181 ... yes 10/182 ... yes 18/183 ... yes 17/184 ... yes 2/185 ... yes 10/186 ... yes 10/187 ... yes 10/188 ... yes 10/189 ... yes 10/190 ... yes 2/191 ... yes 10/193 ... yes 10/194 ... yes 10/196 ... yes 10/197 ... yes 10/198 ... yes 31/199 ... yes 31/200 ... yes 10/201 ... yes 25/202 ... yes 29/204 ... yes 10/205 ... yes 10/206 ... yes 2/207 ... yes 18/208 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.5) Git version >= 2.22.0 ? ... yes (2.24.1) Git user has default SSH configuration? ... yes Active users: ... 15 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
NA