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

Panel Not Found Error #204

Closed
stevendaniel1 opened this issue Dec 16, 2024 · 15 comments
Closed

Panel Not Found Error #204

stevendaniel1 opened this issue Dec 16, 2024 · 15 comments
Labels

Comments

@stevendaniel1
Copy link

Hi, i enabled all the settings marked by the guide , but the reporter gave me this error
111
2222

this is the link what am using in the dashboard gui
localhost:3000/api/plugins/mahendrapaipuri-dashboardreporter-app/resources/report?dashUid=de1d1gog0c0zke

@stevendaniel1
Copy link
Author

And they had all permision in the api, the dashboard and the service account

@mahendrapaipuri
Copy link
Owner

Hello @stevendaniel1

Which version of plugin and Grafana are you using? Which OS?

Could you also please share the Grafana logs?

Cheers

@stevendaniel1
Copy link
Author

stevendaniel1 commented Dec 16, 2024

Hello @stevendaniel1

Which version of plugin and Grafana are you using? Which OS?

Could you also please share the Grafana logs?

grafana.log

Cheers

Hi, i am using grafana 11.03 and Windows, plugin version 1.6.3

@stevendaniel1
Copy link
Author

Hello, greetings. I have attached everything you need in your response.

@mahendrapaipuri
Copy link
Owner

Related to #137

This behaviour is noticed only on Windows. Must be some incompatibility between of chromium and chromedp on Windows. Unfortunately I do not have access to a Windows machine to be able to debug the issue.

@stevendaniel1
Copy link
Author

I'm going to try it on my Ubuntu system and try it

Cheers

@stevendaniel1
Copy link
Author

Hi
image

The same error persist, am using ubuntu 24.10, and the same version of plugin
this is my log

help ):

grafana log.txt

@mahendrapaipuri
Copy link
Owner

Thanks @stevendaniel1 for the tests and logs

This is helpful, at least I will able to reproduce it. Which version of Grafana are you using? 11.0.3 or 11.3.0? And how did you install chromium? From apt or snap?

@stevendaniel1
Copy link
Author

Grafana 11.03.1

I am using cromium 131.0.6778 official build snap 64 bits

@mahendrapaipuri
Copy link
Owner

Ok, thanks for the details.

I might have found something. The plugin uses the chromium shipped by grafana-image-renderer when found. But that chrome is a standalone packaged version which still needs a lot of runtime dependencies. The docs states which dependencies are needed for different distros. If you visit the status page of the plugin at <Grafana HOST>/a/mahendrapaipuri-dashboardreporter-app/status you should see the errors about missing dependencies. Once I installed the dependencies, the plugin started as expected. Here are the list of dependencies that I installed:

apt-get install libx11-6 libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrender1 libxtst6 libglib2.0-0 libnss3 libcups2  libdbus-1-3 libxss1 libxrandr2 libgtk-3-0 libasound2t64 libxcb-dri3-0 libgbm1 libxshmfence1

Could you try it and see if it works? If it is indeed the case, we should improve the error handling and show it on server logs.

@stevendaniel1
Copy link
Author

Captura desde 2024-12-16 11-38-08

well, this is my console and they had all the dependences upgraded, updated and installed

and this is my plugin check panel

Captura desde 2024-12-16 11-38-19

@mahendrapaipuri
Copy link
Owner

Ok, the plugin works for you then!

Could you try upgrading the plugin to nightly version? If it is possible, upgrade your Grafana to v11.4.0.

After the upgrade of plugin, please set log level of Grafana server to debug and restart the Grafana server. Now attempt to generate a report and if problem persists, please post the logs here.

Thanks

@stevendaniel1
Copy link
Author

Good News!

image

I installed the nightly version and i set all in the grafana.ini, and works

thanks for your support!

Now one last question, I want to install this plugin in balena os, what do you personally recommend, that I use the docker version or can I directly enter the grafana-cli and install it directly there, modifying all the files?

I listen to your recommendation

@mahendrapaipuri
Copy link
Owner

I installed the nightly version and i set all in the grafana.ini, and works

Thats awesome news. I ll cut a release out of main soon.

Now one last question, I want to install this plugin in balena os, what do you personally recommend, that I use the docker version or can I directly enter the grafana-cli and install it directly there, modifying all the files?

I dont have any experience with Balena but I understand the OS is optimized for Docker containers. If you are going to deploy Grafana in docker container, I guess the only option is to include plugin artifacts with a bind mount, isnt it? Because even if you install plugin inside Grafana container using grafana-cli, I think you will need to restart Grafana process after plugin installation which you cant as it is going to be PID 1. Installng a plugin is nothing but extracting plugin artifacts at /var/lib/grafana/plugins/<plugin_name>. So, you can download the plugin artifacts on the host and bind mount that directory to /var/lib/grafana/plugins/mahendrapaipuri-dashboardreporter-app.

Maybe there are better ways to do it but this is what I can think of.

@stevendaniel1
Copy link
Author

I installed the nightly version and i set all in the grafana.ini, and works

Thats awesome news. I ll cut a release out of main soon.

Now one last question, I want to install this plugin in balena os, what do you personally recommend, that I use the docker version or can I directly enter the grafana-cli and install it directly there, modifying all the files?

I dont have any experience with Balena but I understand the OS is optimized for Docker containers. If you are going to deploy Grafana in docker container, I guess the only option is to include plugin artifacts with a bind mount, isnt it? Because even if you install plugin inside Grafana container using grafana-cli, I think you will need to restart Grafana process after plugin installation which you cant as it is going to be PID 1. Installng a plugin is nothing but extracting plugin artifacts at /var/lib/grafana/plugins/<plugin_name>. So, you can download the plugin artifacts on the host and bind mount that directory to /var/lib/grafana/plugins/mahendrapaipuri-dashboardreporter-app.

Maybe there are better ways to do it but this is what I can think of.

Thanks for your support! great project and very helpfull

ill try your suggestions

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

2 participants