-
Notifications
You must be signed in to change notification settings - Fork 296
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
1.9.15 cannot connect to grafana(11.1.0) - "Plugin is not connected" #4960
Comments
Getting same exact error with Grafana enterprise version and with any Grafana OnCall Version above 1.9.* |
I got into a similar issue while I was trying to install the plugin. The error in the Grafana plugin configuration was
Even though the environment variable self_hosted_install.py contains class SelfHostedInstallView(GrafanaHeadersMixin, APIView):
def post(self, _request: Request) -> Response:
"""
We've already validated that settings.GRAFANA_API_URL is set (in apps.grafana_plugin.GrafanaPluginConfig)
The user is now trying to finish plugin installation. We'll take the Grafana API url that they specified +
the token that we are provided and first verify them. If all is good, upsert the organization in the database,
and provision the plugin.
"""
stack_id = settings.SELF_HOSTED_SETTINGS["STACK_ID"]
org_id = settings.SELF_HOSTED_SETTINGS["ORG_ID"]
grafana_url = settings.SELF_HOSTED_SETTINGS["GRAFANA_API_URL"]
grafana_api_token = self.instance_context["grafana_token"]
grafana_api_client = GrafanaAPIClient(api_url=grafana_url, api_token=grafana_api_token) When I printed out to logs api_url in GrafanaAPICLient there was I just hot-fixed it for myself, by hard-coding my Grafana api URL into code and re-installed the plugin. |
Thank You solution works . Also following update in backend table pointing to correct URL working. UPDATE public.plugin_setting |
I tried this option, the logs still show localhost, the problem remains |
I am posting additional information.
Additionally, based on the previously mentioned logs:
It seems that the OnCallError object is not being serialized into JSON. |
Same problem here. Oncal Helm Release "1.9.21" |
We are encountering the same issue: unable to connect the OnCall Grafana plugin. Error DescriptionWhen attempting to connect the OnCall plugin, I encounter the following error message:
Engine Log
I conducted a series of experimentsIt seems that the token generated by Grafana's Service Account (the one created by OnCall when you click "Re-create" in the configuration tab) needs to be added to the .env file. However, there is no way to obtain this token, as it is generated automatically without an option to copy it. I tried deleting the token from the Service Account and creating one manually so that I could copy it and place it in the .env file. This way, the "Connect" button no longer displayed any errors, but the green checkmark did not appear for the second step of OnCall. Only after clicking the "Re-create" button did the green checkmark show up, and the error 403 show up again |
Recently we made some changes to the way Grafana OnCall is initialized. Use 1.9.22, there were quite a few changes along the way from 1.9.0-1.9.22 to get things working.
Grafana OnCall should now be ready to use. |
This worked for me for our self hosted Grafana OnCall via Docker Compose |
This worked for me (using helm). Thank you so much for your response. However, I have one question.Is there a way to manage the settings I updated via commands as a file? I tried to configure it in JSON format to make Grafana recognize the stackId and the Grafana oncall URL, but it didn’t work.
and mount like this
However, it did not seem to work as expected. Would it be possible for you to update the guide document and provide detailed instructions on how to configure this? |
We are also using LDAP in another Grafana instance that is self-hosted. However, despite having the same configuration across the board, a 403 error occurs, and we can't proceed any further. (gf version 11.1.0) Plugin is not connectedAfter several attempts, I was able to successfully connect Grafana and OnCall. Issue where the OnCall token wasn't being generated → Check the orgId [orgId 1 case] grafana
db
[orgId 100 case]
db
GRAFANA_API_URLAdditionally, I found the following logs from the engine: Since Grafana and the engine are in different namespaces, they should communicate using the format {svc}.{namespace}:port. However, in the actual engine logs, it appeared as {svc}:port.
Also, when I checked the job's YAML file, the Grafana URL was set as follows:
This value is templated through the following links:
Since the intended Grafana URL was not applied, I enclosed the value in double quotes to set it properly.
When the Grafana OnCall engine has an incorrect Grafana URL setting.
When the correct Grafana URL is set for the Grafana OnCall engine and the migrate job.
After this, the Grafana URL was recognized correctly, and communication began successfully. |
I think we have an issue related to this one, after upgrading the oncall isn't connected anymore. When trying to do the install from the documentation, we have this issue :
|
Also getting this error with plugin |
This resolved my issues! Thanks @daasol! |
Hi @chadhardcastle, @daasol where did you run the following query? |
It is on Grafana Database. |
Hello All, did anybody find a way to automate this step using the Grafana config files?
I was able to automate the configuration of the plugin using the grafana_plugin reloader and configmap with the described paramters and they were successfully loaded to the plugin configuraton, but without this last request, the plugin is not trying to link with the Grafana OnCall. It woudl be great if there is something in config files that coudl help to fully automate this last step without use of intermediate api reqeusts. |
Hi @dinfdsooff, I couldn't find any documentation on connecting to the Grafana database. Could you please provide the steps to access the database and query the data? Thanks in advance! |
I'm trying to set up a connection with grafana and grafana-oncall. What i see from your post that after i put settings to plugin by curl i have empty column secure_json_data (no tokens) so its clear why i got 403 forbidden. Do you have any clue why its not created? |
See #4829 (comment) |
What went wrong?
Hello,
I am currently using Grafana OSS version 11.1.0 and have deployed the Grafana OnCall plugin(1.9.15).
What happened:
grafana.log
engine log
The configuration(oncall values.yaml) is as follows, and all pods are running normally.
Here are the steps I followed to add the plugin in Grafana:
I have some additional questions: How does the Service Account created when enabling the plugin in Grafana interact with OnCall?
I believe the Service Account generated by Grafana needs to be mounted as a secret in OnCall. Which environment variable should be used to assign Grafana’s Service Account in OnCall?
And most importantly, I cannot find a way to view the actual token value of the Service Account automatically created by Grafana.
Do you know how to resolve this issue?
How do we reproduce it?
A 403 error occurs.
Grafana OnCall Version
1.9.15
Product Area
Alert Flow & Configuration
Grafana OnCall Platform?
Kubernetes
User's Browser?
chrom 128.0.6613.114
Anything else to add?
No response
The text was updated successfully, but these errors were encountered: