Skip to content

GitSync provisioning in v12: "get client for kind: the server could not find the requested resource" #105092

@ojsef39

Description

@ojsef39

What happened?

Since i configured and use GitSync yesterday on my self-hosted grafana i get following error when i try to edit/save a provisioned dashboard:

logger=grafana-apiserver t=2025-05-08T08:58:13.705581035Z level=error msg="Unhandled Error" err="apiserver received an error that is not an metav1.Status: &fmt.wrapError{msg:\"get client for kind: the server could not find the requested resource\", err:(*errors.StatusError)(0xc005d36dc0)}: get client for kind: the server could not find the requested resource" logger=UnhandledError

What did you expect to happen?

"Push to main" should create a new PR (PRs to main are blocked) and "Push to a new branch" should work

Did this work before?

No

How do we reproduce it?

  1. New self-hosted Grafana instance
  2. Use an Org owned GitHub pat (not sure if that makes a difference, i used an org one)
  3. try to save a dashboard in Grafana

Is the bug inside a dashboard panel?

No

Environment (with versions)?

Grafana: 12.0.0
OS: talos kubernetes
Tag: v1.9.5
SHA: d07f6daa
Built:
Go version: go1.23.7
OS/Arch: linux/amd64
Enabled: RBAC
Browser: Arc (Chrome based)

Grafana platform?

Kubernetes

Datasource(s)?

No response

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions