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

oncall plugin broken after upgrade to 1.13.3: token already exists #5290

Open
bpedersen2 opened this issue Nov 22, 2024 · 1 comment
Open
Labels

Comments

@bpedersen2
Copy link

What went wrong?

What happened:
Upgrade oncall plugin from 1.12.1 to 1.13.3 (after upgrading oncall to the same version)

plugin gets disabled by grafana:

logger=plugin.installer t=2024-11-22T09:02:55.5291324Z level=info msg="Installing plugin" pluginId=grafana-oncall-app version=1.13.3
logger=installer.fs t=2024-11-22T09:02:56.677728374Z level=info msg="Downloaded and extracted grafana-oncall-app v1.13.3 zip successfully to /var/lib/grafana/plugins/grafana-oncall-app"
logger=serviceauth.extsvcaccounts t=2024-11-22T09:02:57.114809775Z level=info msg="Generate new service account token" service=grafana-oncall-app orgID=1
logger=serviceauth.extsvcaccounts t=2024-11-22T09:02:57.124431175Z level=error msg="Could not get the external svc token" service=grafana-oncall-app saID=38 error="[serviceaccounts.ErrTokenAlreadyExists] service account token with name extsvc-token-grafana-oncall-app already exists in the organization"
logger=plugins.external.registration t=2024-11-22T09:02:57.124588762Z level=error msg="Could not register an external service. Initialization skipped" pluginId=grafana-oncall-app error="[serviceaccounts.ErrTokenAlreadyExists] service account token with name extsvc-token-grafana-oncall-app already exists in the organization"
logger=plugins.initialization t=2024-11-22T09:02:57.124602983Z level=error msg="Could not initialize plugin" pluginId=grafana-oncall-app error="[serviceaccounts.ErrTokenAlreadyExists] service account token with name extsvc-token-grafana-oncall-app already exists in the organization"

Downgrading again does result in the same error.

grafana: Grafana v11.4.0-209360 (c63305a700) with ext service account feature flag active

feature_toggles:
accessControlOnCall: false
enable: publicDashboards,publicDashboardsEmailSharing,lokiQuerySplitting,externalServiceAccounts,autoMigrateOldPanels,alertingCentralAlertHistory,grafanaManagedRecordingRules

How do we reproduce it?

  1. Open Grafana OnCall and upgrade oncall plugin
  2. Observe plugin gets disabled immediatly

Grafana OnCall Version

Grafana v11.4.0-209360

Product Area

Other

Grafana OnCall Platform?

Kubernetes

User's Browser?

No response

Anything else to add?

No response

@bpedersen2 bpedersen2 added the bug Something isn't working label Nov 22, 2024
@bpedersen2
Copy link
Author

I could resolve it by:

  1. uninstall oncall plugin
  2. set ( grafana.ini)
[auth]
managed_service_accounts_enabled = false
  1. restart grafana
  2. delete old service account
  3. set
[auth]
managed_service_accounts_enabled = true

again
6. restart grafana
7. install plugin
8. reconnect to oncall

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

No branches or pull requests

1 participant