grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.49k stars 288 forks source link

Can't get Oncall to reliably modify Slack UserGroups #945

Open mothershipper opened 1 year ago

mothershipper commented 1 year ago

Hey there -- we're having extreme difficultly getting Grafana Oncall to manage slack user groups.

The plugin seems to suggest we need to allow all users to manage user groups, but the slack API documentation and code seem to suggest the bot scopes usergroups.write should be sufficient.

We've tried a bunch of different combinations of workspace settings and OAuth scopes (bot + user tokens), and can't reliably get Oncall to modify the slack user group for a particular oncall schedule.

We're using the 1.1.5 release / plugin.

To clarify we've done the following:

mothershipper commented 1 year ago

Might be related or not, celery seems to crash every 30 minutes with:

Error: No nodes replied within time constraint
Matvey-Kuk commented 1 year ago

Slack user group change happens here: https://github.com/grafana/oncall/blob/f5fd3dd76bc82bb9d105bcdd3c70f2f188af7a5c/engine/apps/slack/tasks.py#L648 Could you please try to get logs related to this task from the celery worker?