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

Error fetching CSV #137

Open
mahendrapaipuri opened this issue Oct 17, 2024 · 19 comments · May be fixed by #236
Open

Error fetching CSV #137

mahendrapaipuri opened this issue Oct 17, 2024 · 19 comments · May be fixed by #236
Labels

Comments

@mahendrapaipuri
Copy link
Owner

mahendrapaipuri commented Oct 17, 2024

I tried the updated version. i am getting the following error:


logger=plugin.mahendrapaipuri-dashboardreporter-app t=2024-10-08T11:32:27.5646438+05:30 level=error msg="error generating report" pluginID=mahendrapaipuri-dashboardreporter-app endpoint=callResource err="error rendering CSVs in parallel for dashboard LL_EM1: error rendering CSV: error getting CSV for panel $Gateway: error waiting for download CSV button: context deadline exceeded"


I also found another problem when using variables in Grafana. The report prints only the first value of the variable. In both Grid and Simple mode. This was not happenning earlier. Earlier, when i chose multiple variable values, it would print all the panels with different values, adjacent to each other.

Best regards
Vikas

Moved from here

@mahendrapaipuri
Copy link
Owner Author

Thanks @vkhemani for testing it out.

I will take a look at it issue of variables, probably it is a regression.

Regarding the CSV, seems like plugin app is not able to download CSV data. Which version of Grafana are you using? Would it be possible to share your dashboard model? I would suggest you to try with a simple dashboard and see if it works.

@vkhemani
Copy link

vkhemani commented Oct 17, 2024 via email

@mahendrapaipuri
Copy link
Owner Author

Cheers for the test. What is the version of chromium and which distro you are using? I will try to reproduce it in a containerized environment. Seems like this is an issue from the chromium.

@vkhemani
Copy link

vkhemani commented Oct 17, 2024 via email

@mahendrapaipuri
Copy link
Owner Author

Hey @vkhemani, I made few tests and I cannot reproduce the issue. Both repeated panels and panel CSV data rendering is working as expected. I tried with the chromium 129.

I guess the issue must be due to Windows 11. Both issues you are facing involve chromium so maybe there is some incompatbility with Windows. Unfortunately I do not have access to a Windows machine to try to reproduce the issue.

If your environment allows running containers, maybe you can try running a headless chromium in a container and use remoteChromeUrl. I hope that will work.

@mahendrapaipuri
Copy link
Owner Author

@vkhemani Could you try the latest 1.7.0 version? I fixed few bugs related to table generation as well.

Cheers!!

@vkhemani
Copy link

vkhemani commented Nov 8, 2024 via email

@primozpit
Copy link

Hi,

any update on the issue? I am seeing the same error message in the log "unhandled page event %T" when I include includePanelDataID parameter to have table data in the report and not all records are displayed in the report but only a subset (5 out of 8).

My Grafana setup is running on Rocky Linux release 9.4 here are my installed versions of software:
Grafana: 11.2.3
Grafana Image Renderer: 3.11.6
chrome-headless-shell(included with image renderer): 132.0.6781.0
Grafana Dashboard Reporter: 1.7.0

@mahendrapaipuri
Copy link
Owner Author

Hey @primozpit, The error you mentioned is non fatal. Could you please post the logs in debug mode? If it fails, it should fail for all panels. If it fails only for few panels, I assume we might be hitting timeouts. Logs will help me to figure out what is happening!

Cheers

@vkhemani
Copy link

vkhemani commented Jan 10, 2025

Hi @mahendrapaipuri
I tested the new 1.7.0 version and the table is being printed in a new page after the panels' pages. This is good!

I wanted to have only the table and no panels. I tried excludePanelID=1 and includePanelDataID=1 so as to get only the table. But, it doesnt work. Is it possible, that the panel is excluded but the table stays?

Thanks
Vikas

@mahendrapaipuri
Copy link
Owner Author

Hello @vkhemani

Thanks for testing. It should work and you did it correct. You need to pass excludePanelID=1&includePanelDataID=1 which should exclude panel PNG and include its data in the report. Could you share the logs in debug mode?

Cheers!

@vkhemani
Copy link

Hello @mahendrapaipuri
Following is the log using ver 1.7.0 (Note I am not able to print reports with ver 1.7.2 at all. Will share the logs later)

INFO [01-11|11:22:25] new instance of plugin app created logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
INFO [01-11|11:22:25] starting plugin with initial config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: ; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: none Included Data for Panel IDs: none logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
INFO [01-11|11:22:26] generate report using config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: ; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: 1 Included Data for Panel IDs: 1 logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
INFO [01-11|11:22:26] generate report using local chrome logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
WARN [01-11|11:22:27] Could not create user agent logger=base.plugin.context error="invalid user agent format"
INFO [01-11|11:22:27] Sending alerts to local notifier logger=ngalert.sender.router rule_uid=fdwy32u2vb400e org_id=1 count=1
INFO [01-11|11:22:28] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-11|11:22:28] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=8 duration=8.5434ms size=123 referer= handler=/api/live/ws status_source=server
ERROR[01-11|11:22:28] unhandled page event %T logger=plugin.mahendrapaipuri-dashboardreporter-app subsystem=chromium EXTRA_VALUE_AT_END=map[frameId:907687BFA1C6D3CD43AB90916A6DD965] endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
ERROR[01-11|11:22:28] unhandled page event %T logger=plugin.mahendrapaipuri-dashboardreporter-app EXTRA_VALUE_AT_END=map[frameId:52C8347DBB85CC0470C3E916F0CCEFDA] endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app subsystem=chromium
INFO [01-11|11:22:29] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-11|11:22:29] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=2 duration=2.2787ms size=123 referer= handler=/api/live/ws status_source=server
WARN [01-11|11:22:29] Could not create user agent logger=base.plugin.context error="invalid user agent format"
WARN [01-11|11:22:29] Could not create user agent logger=base.plugin.context error="invalid user agent format"
INFO [01-11|11:22:30] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-11|11:22:30] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=1 duration=1.816ms size=123 referer= handler=/api/live/ws status_source=server
WARN [01-11|11:22:30] error fetching dashboard from browser, falling back to API logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource error="error fetching dashboard from browser: javascript did not return any dashboard data" pluginId=mahendrapaipuri-dashboardreporter-app
WARN [01-11|11:22:30] failed to get panels from browser data logger=plugin.mahendrapaipuri-dashboardreporter-app pluginId=mahendrapaipuri-dashboardreporter-app endpoint=callResource error="browser: no dashboard data found"
INFO [01-11|11:22:30] Rendering logger=rendering renderer=plugin path="d-solo/ce9fvzn904mpsc/?from=now-3h&height=144&panelId=2&theme=light&to=now&var-Interval=10m&width=500" userID=3
INFO [01-11|11:22:30] Rendering logger=rendering renderer=plugin path="d-solo/ce9fvzn904mpsc/
?from=now-3h&height=180&panelId=3&theme=light&to=now&var-Interval=10m&width=300" userID=3
INFO [01-11|11:22:34] Request Completed logger=context userId=3 orgId=5 uname=sa-5-vk method=GET path=/api/live/ws status=-1 remote_addr=[::1] time_ms=8 duration=8.7015ms size=0
referer= handler=/api/live/ws status_source=server
INFO [01-11|11:22:34] Request Completed logger=context userId=3 orgId=5 uname=sa-5-vk method=GET path=/api/live/ws status=-1 remote_addr=[::1] time_ms=18 duration=18.6668ms size=0 referer= handler=/api/live/ws status_source=server
WARN [01-11|11:22:36] Could not create user agent logger=base.plugin.context error="invalid user agent format"
INFO [01-11|11:22:38] report generated logger=plugin.mahendrapaipuri-dashboardreporter-app dash_uid=ce9fvzn904mpsc endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app user=admin
INFO [01-11|11:22:38] Plugin Request Completed logger=plugin.mahendrapaipuri-dashboardreporter-app pluginId=mahendrapaipuri-dashboardreporter-app status=ok statusSource=plugin duration=12.3

@mahendrapaipuri
Copy link
Owner Author

@vkhemani I fixed few critical bugs in 1.7.0. Please post the logs from 1.7.2. Cheers!

@vkhemani
Copy link

@mahendrapaipuri Following log for ver 1.7.2

INFO [01-13|09:45:04] new instance of plugin app created logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
INFO [01-13|09:45:04] starting plugin with initial config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: Local; Time Format: Mon Jan _2 15:04:05 MST 2006; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: none Included Data for Panel IDs: none; Native Renderer: false; Client Timeout: 30 logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
WARN [01-13|09:45:05] Could not create user agent logger=base.plugin.context error="invalid user agent format"
INFO [01-13|09:45:05] Sending alerts to local notifier logger=ngalert.sender.router rule_uid=fe5p9i0ffc1z4c org_id=1 count=1
INFO [01-13|09:45:05] generate report using config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: Local; Time Format: Mon Jan _2 15:04:05 MST 2006; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: none Included Data for Panel IDs: 1; Native Renderer: false; Client Timeout: 30 logger=plugin.mahendrapaipuri-dashboardreporter-app pluginId=mahendrapaipuri-dashboardreporter-app user=admin dash_uid=ce9fvzn904mpsc endpoint=callResource
INFO [01-13|09:45:05] generate report using local chrome logger=plugin.mahendrapaipuri-dashboardreporter-app dash_uid=ce9fvzn904mpsc endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app user=admin
INFO [01-13|09:45:06] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-13|09:45:06] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=4 duration=4.198ms size=123 referer= handler=/api/live/ws status_source=server
INFO [01-13|09:45:07] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-13|09:45:07] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=3 duration=3.0821ms size=123 referer= handler=/api/live/ws status_source=server
WARN [01-13|09:45:08] Could not create user agent logger=base.plugin.context error="invalid user agent format"
WARN [01-13|09:45:08] Could not create user agent logger=base.plugin.context error="invalid user agent format"
INFO [01-13|09:45:08] logger=context userId=0 orgId=0 uname= error="[auth.unauthorized] cannot authenticate request" remote_addr=[::1] traceID=
INFO [01-13|09:45:08] Request Completed logger=context userId=0 orgId=0 uname= method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=2 duration=2.5114ms size=123 referer= handler=/api/live/ws status_source=server
ERROR[01-13|09:45:09] error collecting panels from browser logger=plugin.mahendrapaipuri-dashboardreporter-app user=admin dash_uid=ce9fvzn904mpsc endpoint=callResource error="failed to get dashboard data from browser: javascript did not return any dashboard data" pluginId=mahendrapaipuri-dashboardreporter-app
ERROR[01-13|09:45:09] error generating report logger=plugin.mahendrapaipuri-dashboardreporter-app dash_uid=ce9fvzn904mpsc endpoint=callResource err="failed to get dashboard data: error collecting panels from browser: failed to get dashboard data from browser: javascript did not return any dashboard data" pluginId=mahendrapaipuri-dashboardreporter-app user=admin
INFO [01-13|09:45:09] Plugin Request Completed logger=plugin.mahendrapaipuri-dashboardreporter-app duration=4.451778s endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app status=ok statusSource=plugin
ERROR[01-13|09:45:09] Request Completed logger=context userId=1 orgId=5 uname=admin method=GET path=/api/plugins/mahendrapaipuri-dashboardreporter-app/resources/report status=500 remote_addr=[::1] time_ms=4468 duration=4.4680135s size=24 referer= handler=/api/plugins/:pluginId/resources/* status_source=downstream
INFO [01-13|09:45:09] disposing chromium from old plugin app instance logger=plugin.mahendrapaipuri-dashboardreporter-app endpoint=checkHealth pluginId=mahendrapaipuri-dashboardreporter-app

@mahendrapaipuri
Copy link
Owner Author

Do you have multiple Organizations on Grafana instance? Could you turn on debug logging and share the logs please?

@vkhemani
Copy link

yes, i have multiple orgs.

but it works with the version 1.7.0 with the same settings. Somehow it is not picking the org id, user id etc...

below is the log:

logger=base.plugin.context t=2025-01-13T15:58:51.566665+05:30 level=warn msg="Could not create user agent" error="invalid user agent format"
logger=base.plugin.context t=2025-01-13T15:59:00.0130504+05:30 level=warn msg="Could not create user agent" error="invalid user agent format"
logger=ngalert.sender.router rule_uid=ce5oxxxbzxd6of org_id=1 t=2025-01-13T15:59:00.0879983+05:30 level=info msg="Sending alerts to local notifier" count=1
logger=base.plugin.context t=2025-01-13T15:59:00.2911763+05:30 level=warn msg="Could not create user agent" error="invalid user agent format"
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:00.4169657+05:30 level=info msg="new instance of plugin app created" endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:00.4412473+05:30 level=info msg="starting plugin with initial config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: Local; Time Format: Mon Jan _2 15:04:05 MST 2006; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: none Included Data for Panel IDs: none; Native Renderer: false; Client Timeout: 30" pluginId=mahendrapaipuri-dashboardreporter-app endpoint=callResource
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:01.2016692+05:30 level=info msg="generate report using config: Theme: light; Orientation: portrait; Layout: grid; Dashboard Mode: default; Time Zone: Local; Time Format: Mon Jan _2 15:04:05 MST 2006; Encoded Logo: [truncated]; Max Renderer Workers: 2; Max Browser Workers: 2; Remote Chrome Addr: ; App URL: unset; TLS Skip verify: false; Included Panel IDs: all; Excluded Panel IDs: none Included Data for Panel IDs: 1; Native Renderer: false; Client Timeout: 30" dash_uid=ce9fvzn904mpsc endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app user=admin
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:01.3966375+05:30 level=info msg="generate report using local chrome" dash_uid=ce9fvzn904mpsc endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app user=admin
logger=context userId=0 orgId=0 uname= t=2025-01-13T15:59:03.2320689+05:30 level=info msg="Request Completed" method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=8 duration=8.0861ms size=123 referer= handler=/api/live/ws status_source=server errorReason=Unauthorized errorMessageID=auth.unauthorized error="cannot authenticate request"
logger=context userId=0 orgId=0 uname= t=2025-01-13T15:59:03.8605198+05:30 level=info msg="Request Completed" method=GET path=/api/live/ws status=401 remote_addr=[::1] time_ms=1 duration=1.2424ms size=123 referer= handler=/api/live/ws status_source=server errorReason=Unauthorized errorMessageID=auth.unauthorized error="cannot authenticate request"
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:04.9192152+05:30 level=error msg="error collecting panels from browser" pluginId=mahendrapaipuri-dashboardreporter-app user=admin dash_uid=ce9fvzn904mpsc endpoint=callResource error="failed to get dashboard data from browser: javascript did not return any dashboard data"
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:04.9197659+05:30 level=error msg="error generating report" endpoint=callResource err="failed to get dashboard data: error collecting panels from browser: failed to get dashboard data from browser: javascript did not return any dashboard data" pluginId=mahendrapaipuri-dashboardreporter-app user=admin dash_uid=ce9fvzn904mpsc
logger=plugin.mahendrapaipuri-dashboardreporter-app t=2025-01-13T15:59:04.9226286+05:30 level=info msg="Plugin Request Completed" endpoint=callResource pluginId=mahendrapaipuri-dashboardreporter-app status=ok statusSource=plugin duration=4.5084373s
logger=context userId=1 orgId=5 uname=admin t=2025-01-13T15:59:04.9361293+05:30 level=error msg="Request Completed" method=GET path=/api/plugins/mahendrapaipuri-dashboardreporter-app/resources/report status=500 remote_addr=[::1] time_ms=4682 duration=4.6820914s size=24 referer= handler=/api/plugins/:pluginId/resources/* status_source=downstream
logger=base.plugin.context t=2025-01-13T15:59:05.0077595+05:30 level=warn msg="Could not create user agent" error="invalid user agent format"
logger=ngalert.sender.router rule_uid=fe5p9i0ffc1z4c org_id=1 t=2025-01-13T15:59:05.0727033+05:30 level=info msg="Sending alerts to local notifier" count=1
logger=context userId=0 orgId=0 uname= t=2025-01-13T15:59:05.2077638+05:30 level=info msg="Request Completed" method=GET path=/favicon.ico status=302 remote_addr=[::1] time_ms=1 duration=1.6973ms size=45 referer= handler=public-assets status_source=server
logger=context userId=0 orgId=0 uname= t=2025-01-13T15:59:05.2597103+05:30 level=error msg="Request error" error="Context.HTML - Error rendering template: index. You may need to build frontend assets \n write tcp [::1]:3004->[::1]:58926: wsasend: An established connection was aborted by the software in your host machine." stack="github.com/grafana/grafana/pkg/web/context.go:112 (0x22b2d24)\ngithub.com/grafana/grafana/pkg/api/login.go:150 (0x4f2ff4e)\ngithub.com/grafana/grafana/pkg/api/response/web_hack.go:40 (0x22c58cf)\nnet/http/server.go:2220 (0x22b3e78)\ngithub.com/grafana/grafana/pkg/web/macaron.go:131 (0x22b3e35)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/validate_action_url.go:51 (0x292ffda)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/services/contexthandler/contexthandler.go:147 (0x4f545aa)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/render.go:51 (0x22b49a9)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/subpath_redirect.go:23 (0x4f29705)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/macaron.go:137 (0x22b3f14)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/csrf/csrf.go:66 (0x439572f)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/recovery.go:180 (0x4f29beb)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/loggermw/logger.go:72 (0x43966be)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/request_metrics.go:82 (0x292ea38)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/request_tracing.go:102 (0x4f2ab1c)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/middleware/requestmeta/request_metadata.go:66 (0x4f52bc1)\nnet/http/server.go:2220 (0xe18788)\ngithub.com/grafana/grafana/pkg/web/context.go:52 (0x22b26ba)\ngithub.com/grafana/grafana/pkg/web/router.go:155 (0x22b61ed)\ngithub.com/grafana/grafana/pkg/web/router.go:211 (0x22b6d14)\ngithub.com/grafana/grafana/pkg/web/macaron.go:174 (0x22b435c)\nnet/http/server.go:3210 (0xe38ced)\nnet/http/server.go:2092 (0xe1712f)\nruntime/asm_amd64.s:1700 (0xa80a60)\n"
logger=searchIndex t=2025-01-13T15:59:47.7639975+05:30 level=info msg="Start re-indexing"

@mahendrapaipuri
Copy link
Owner Author

@vkhemani A good test would be to generate a report of a dashboard in Main Org. with 1.7.2. You can use a very simple dashboard like this one to eliminate few variables. Could you please try it?

@vkhemani
Copy link

@mahendrapaipuri I tried with the dashboard you provided. Results are i am not able to print with ver1.7.2 at all.
With ver1.7.0, i am able to print your dashboard and all others also in all orgs. But, i am not able to print the tables using "&includePanelDataID=1" feature at all. i was able to do this earlier with ver 1.7.0!

@mahendrapaipuri
Copy link
Owner Author

Cheers @vkhemani for all this testing from you. I managed to spin up a Windows VM to be able to reproduce it. I think I found the issue and opened a PR #236 that attempts to fix it. I tested it on my VM and it works. If you can please test this patch with following approach:

  • Stop Grafana instance
  • First remove mahendrapaipuri-dashboardreporter-app and grafana-image-renderer plugins on your Grfaana instance
  • Now reinstall grafana-image-renderer plugin
  • Download plugin artifacts from here and extract zip folder to GRAFANA_DATA_DIR/plugins/mahendrapaipuri-dashboardreporter-app. On my test Windows VM, the path is C:Program Files\GrafanaLabs\grafana\data\plugins\mahendrapaipuri-dashboardreporter-app.
  • Now start Grafana instance

Now try to generate report for this test dashboard

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