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

Grafana OnCall - Slack Integration | Slack Channels Not Found #3633

Open
Ernesto777 opened this issue Jan 8, 2024 · 0 comments
Open

Grafana OnCall - Slack Integration | Slack Channels Not Found #3633

Ernesto777 opened this issue Jan 8, 2024 · 0 comments

Comments

@Ernesto777
Copy link

Ernesto777 commented Jan 8, 2024

What went wrong?

What happened:
-I can not see the slack channels on grafana oncall,
on celery logs I can see this error

2024-01-08 22:38:01,179 source=engine:celery worker=ForkPoolWorker-2 task_id=8a3a148d-67b6-4178-ab5a-488900039560 task_name=apps.slack.tasks.populate_slack_channels_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] retry: Retry in 2s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:03,243 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] received
2024-01-08 22:38:03,245 source=engine:celery worker=ForkPoolWorker-2 task_id=8a3a148d-67b6-4178-ab5a-488900039560 task_name=apps.slack.tasks.populate_slack_channels_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] retry: Retry in 7s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:09,240 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:09,242 source=engine:celery worker=ForkPoolWorker-2 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 1s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:10,337 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] received
2024-01-08 22:38:10,339 source=engine:celery worker=ForkPoolWorker-4 task_id=8a3a148d-67b6-4178-ab5a-488900039560 task_name=apps.slack.tasks.populate_slack_channels_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] retry: Retry in 1s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:10,341 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:10,342 source=engine:celery worker=ForkPoolWorker-2 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 1s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:11,438 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:11,439 source=engine:celery worker=ForkPoolWorker-4 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 4s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:11,442 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] received
2024-01-08 22:38:11,444 source=engine:celery worker=ForkPoolWorker-2 task_id=8a3a148d-67b6-4178-ab5a-488900039560 task_name=apps.slack.tasks.populate_slack_channels_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] retry: Retry in 5s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:15,506 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:15,507 source=engine:celery worker=ForkPoolWorker-2 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 6s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:16,509 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] received
2024-01-08 22:38:16,510 source=engine:celery worker=ForkPoolWorker-2 task_id=8a3a148d-67b6-4178-ab5a-488900039560 task_name=apps.slack.tasks.populate_slack_channels_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_channels_for_team[8a3a148d-67b6-4178-ab5a-488900039560] retry: Retry in 51s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:21,622 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.grafana_plugin.tasks.sync.plugin_sync_organization_async[7045b712-9f24-408c-b585-04d0aa396e70] received
2024-01-08 22:38:21,625 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=apps.grafana_plugin.tasks.sync level=INFO Start sync Organization 1
2024-01-08 22:38:21,824 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:21,825 source=engine:celery worker=ForkPoolWorker-2 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 1s: DoesNotExist('SlackTeamIdentity matching query does not exist.')
2024-01-08 22:38:21,833 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=apps.grafana_plugin.helpers.client level=WARNING Error connecting to api instance HTTPConnectionPool(host='localhost', port=3000): Max retries exceeded with url: /api/access-control/users/permissions/search?actionPrefix=grafana-oncall-app (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9fb5388a50>: Failed to establish a new connection: [Errno 111] Connection refused'))
2024-01-08 22:38:21,833 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=root level=INFO outbound latency=0.0030516963452100754 status=503 method=HEAD url=http://localhost:3000/api/access-control/users/permissions/search?actionPrefix=grafana-oncall-app slow=0 
2024-01-08 22:38:21,835 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=apps.grafana_plugin.helpers.client level=WARNING Error connecting to api instance HTTPConnectionPool(host='localhost', port=3000): Max retries exceeded with url: /api/org (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9fb53f1a90>: Failed to establish a new connection: [Errno 111] Connection refused'))
2024-01-08 22:38:21,835 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=root level=INFO outbound latency=0.001334361732006073 status=503 method=HEAD url=http://localhost:3000/api/org slow=0 
2024-01-08 22:38:21,933 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=apps.grafana_plugin.tasks.sync level=INFO Finish sync Organization 1
2024-01-08 22:38:21,933 source=engine:celery worker=ForkPoolWorker-4 task_id=7045b712-9f24-408c-b585-04d0aa396e70 task_name=apps.grafana_plugin.tasks.sync.plugin_sync_organization_async name=celery.app.trace level=INFO Task apps.grafana_plugin.tasks.sync.plugin_sync_organization_async[7045b712-9f24-408c-b585-04d0aa396e70] succeeded in 0.308441961184144s: None
2024-01-08 22:38:22,662 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.schedules.tasks.drop_cached_ical.drop_cached_ical_for_custom_events_for_organization[67301d88-6e9e-4cd9-ba68-86e5fe3ad261] received
2024-01-08 22:38:22,877 source=engine:celery worker=ForkPoolWorker-2 task_id=67301d88-6e9e-4cd9-ba68-86e5fe3ad261 task_name=apps.schedules.tasks.drop_cached_ical.drop_cached_ical_for_custom_events_for_organization name=apps.schedules.tasks.drop_cached_ical level=INFO drop cached ica for org_id 1
2024-01-08 22:38:22,878 source=engine:celery worker=ForkPoolWorker-2 task_id=67301d88-6e9e-4cd9-ba68-86e5fe3ad261 task_name=apps.schedules.tasks.drop_cached_ical.drop_cached_ical_for_custom_events_for_organization name=celery.app.trace level=INFO Task apps.schedules.tasks.drop_cached_ical.drop_cached_ical_for_custom_events_for_organization[67301d88-6e9e-4cd9-ba68-86e5fe3ad261] succeeded in 0.21310062520205975s: None
2024-01-08 22:38:23,006 source=engine:celery worker=MainProcess task_id=??? task_name=??? name=celery.worker.strategy level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] received
2024-01-08 22:38:23,008 source=engine:celery worker=ForkPoolWorker-4 task_id=02bdbaa8-1446-4a49-b569-c3280901e473 task_name=apps.slack.tasks.populate_slack_usergroups_for_team name=celery.app.trace level=INFO Task apps.slack.tasks.populate_slack_usergroups_for_team[02bdbaa8-1446-4a49-b569-c3280901e473] retry: Retry in 19s: DoesNotExist('SlackTeamIdentity matching query does not exist.')

image

What did you expect to happen:
-see the slack channels

How do we reproduce it?

  1. Open Grafana OnCall and go to settings
  2. then Chat Ops tab and click on Default channel for Slack notifications on Slack App settings
  3. Wait for the browser to crash. Error message says: "Not found"

Grafana OnCall Version

1.3.25

Product Area

Alert Flow & Configuration, Chatops, Other

Grafana OnCall Platform?

Docker

User's Browser?

No response

Anything else to add?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants