-
Notifications
You must be signed in to change notification settings - Fork 591
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
Panic during Risingwave integration with Grafana #8345
Comments
I don't get it, the logs seem to contain no information from Please confirm the cause of |
I have found nothing in the Risingwave logs, this seems the problem from Grafana. |
reopen because @wugouzi reproduced the bug |
This is my error message:
|
|
And just in case, It needs to be set before starting Risingwave. |
@tabVersion Please take a look? |
oh I missed the issue, will look into it. |
This issue has been open for 60 days with no activity. If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the You can also confidently close this issue as not planned to keep our backlog clean. |
close as no activity |
Describe the bug
Panic during Risingwave Integration with grafana [https://github.com/risingwavelabs/risingwave-test/issues/174].
To Reproduce
I have followed the steps from this guide
https://www.risingwave.dev/docs/current/grafana-integration/
Step 1:- Install Grafana
Step 2:-Install Risingwave (I installed using docker)
Step 3:-Add new user in Risingwave
CREATE USER grafanareader WITH PASSWORD 'password';
Step 4:- Add Risingwave as datasource in grafana
After this step we should have established the connection with the Risingwave.
Here are the logs from Grafana
logger=context userId=1 orgId=1 uname=admin t=2023-03-06T10:07:49.337638492+05:30 level=error msg="Request error" error="runtime error: invalid memory address or nil pointer dereference" stack="/usr/local/go/src/runtime/panic.go:260 (0x45a695)\n/usr/local/go/src/runtime/signal_unix.go:835 (0x45a665)\n/opt/drone/gomodcache/github.com/lib/[email protected]/conn.go:1525 (0x11639af)\n/opt/drone/gomodcache/github.com/lib/[email protected]/conn_go18.go:98 (0x1168889)\n/usr/local/go/src/database/sql/sql.go:837 (0xa53992)\n/usr/local/go/src/database/sql/sql.go:3439 (0xa60f0b)\n/usr/local/go/src/database/sql/sql.go:836 (0xa538e4)\n/usr/local/go/src/database/sql/sql.go:864 (0xa53b0b)\n/opt/drone/gomodcache/github.com/grafana/[email protected]/session_schema.go:22 (0x111a90c)\n/opt/drone/gomodcache/github.com/grafana/[email protected]/engine.go:362 (0x10dac57)\n/drone/src/pkg/tsdb/sqleng/sql_engine.go:177 (0x34fec24)\n/drone/src/pkg/tsdb/postgres/postgres.go:206 (0x34fec13)\n/drone/src/pkg/plugins/backendplugin/coreplugin/core_plugin.go:77 (0x3511170)\n/drone/src/pkg/plugins/plugins.go:301 (0x12116d4)\n/drone/src/pkg/plugins/manager/client/client.go:158 (0x3536cb1)\n/drone/src/pkg/plugins/backendplugin/instrumentation/instrumentation.go:42 (0x353499e)\n/drone/src/pkg/plugins/backendplugin/instrumentation/instrumentation.go:93 (0x3536ab8)\n/drone/src/pkg/plugins/manager/client/client.go:154 (0x3536a93)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/httpclient_middleware.go:91 (0x353b07e)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/cookies_middleware.go:116 (0x353a3fb)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/oauthtoken_middleware.go:126 (0x353bd7c)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/clear_auth_headers_middleware.go:68 (0x353984a)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/tracing_header_middleware.go:66 (0x353c3aa)\n/drone/src/pkg/plugins/manager/client/decorator.go:66 (0x3537728)\n/drone/src/pkg/api/datasources.go:825 (0x2d8ab47)\n/drone/src/pkg/api/datasources.go:792 (0x2d8a71e)\n/drone/src/pkg/api/routing/routing.go:17 (0x190ca21)\n/drone/src/pkg/api/response/web_hack.go:40 (0x11da175)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:134 (0x11ced54)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/services/contexthandler/contexthandler.go:221 (0x18f9f39)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/render.go:44 (0x11cf915)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/csrf/csrf.go:64 (0x20a87a5)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/recovery.go:171 (0x19073a1)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/logger.go:42 (0x1904b01)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/request_metrics.go:59 (0x19081c9)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/request_tracing.go:88 (0x190991a)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/context.go:49 (0x11cd6bd)\n/drone/src/pkg/web/router.go:155 (0x11d0e8d)\n/drone/src/pkg/web/router.go:221 (0x11d1ad1)\n/drone/src/pkg/web/macaron.go:166 (0x11cf270)\n/usr/local/go/src/net/http/server.go:2947 (0x7b180b)\n/usr/local/go/src/net/http/server.go:1991 (0x7acee6)\n/usr/local/go/src/runtime/asm_amd64.s:1594 (0x4783c0)\n" logger=context userId=1 orgId=1 uname=admin t=2023-03-06T10:07:49.338155382+05:30 level=error msg="Request Completed" method=GET path=/api/datasources/1/health status=500 remote_addr=127.0.0.1 time_ms=29 duration=29.658734ms size=123 referer=http://localhost:3000/datasources/edit/Usvdx-bVk handler=/api/datasources/:id/health logger=context userId=1 orgId=1 uname=admin t=2023-03-06T10:07:52.195947683+05:30 level=error msg="Request error" error="runtime error: invalid memory address or nil pointer dereference" stack="/usr/local/go/src/runtime/panic.go:260 (0x45a695)\n/usr/local/go/src/runtime/signal_unix.go:835 (0x45a665)\n/opt/drone/gomodcache/github.com/lib/[email protected]/conn.go:1525 (0x11639af)\n/opt/drone/gomodcache/github.com/lib/[email protected]/conn_go18.go:98 (0x1168889)\n/usr/local/go/src/database/sql/sql.go:837 (0xa53992)\n/usr/local/go/src/database/sql/sql.go:3439 (0xa60f0b)\n/usr/local/go/src/database/sql/sql.go:836 (0xa538e4)\n/usr/local/go/src/database/sql/sql.go:864 (0xa53b0b)\n/opt/drone/gomodcache/github.com/grafana/[email protected]/session_schema.go:22 (0x111a90c)\n/opt/drone/gomodcache/github.com/grafana/[email protected]/engine.go:362 (0x10dac57)\n/drone/src/pkg/tsdb/sqleng/sql_engine.go:177 (0x34fec24)\n/drone/src/pkg/tsdb/postgres/postgres.go:206 (0x34fec13)\n/drone/src/pkg/plugins/backendplugin/coreplugin/core_plugin.go:77 (0x3511170)\n/drone/src/pkg/plugins/plugins.go:301 (0x12116d4)\n/drone/src/pkg/plugins/manager/client/client.go:158 (0x3536cb1)\n/drone/src/pkg/plugins/backendplugin/instrumentation/instrumentation.go:42 (0x353499e)\n/drone/src/pkg/plugins/backendplugin/instrumentation/instrumentation.go:93 (0x3536ab8)\n/drone/src/pkg/plugins/manager/client/client.go:154 (0x3536a93)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/httpclient_middleware.go:91 (0x353b07e)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/cookies_middleware.go:116 (0x353a3fb)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/oauthtoken_middleware.go:126 (0x353bd7c)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/clear_auth_headers_middleware.go:68 (0x353984a)\n/drone/src/pkg/services/pluginsintegration/clientmiddleware/tracing_header_middleware.go:66 (0x353c3aa)\n/drone/src/pkg/plugins/manager/client/decorator.go:66 (0x3537728)\n/drone/src/pkg/api/datasources.go:825 (0x2d8ab47)\n/drone/src/pkg/api/datasources.go:792 (0x2d8a71e)\n/drone/src/pkg/api/routing/routing.go:17 (0x190ca21)\n/drone/src/pkg/api/response/web_hack.go:40 (0x11da175)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:134 (0x11ced54)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/services/contexthandler/contexthandler.go:221 (0x18f9f39)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/render.go:44 (0x11cf915)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/macaron.go:140 (0x11cedfb)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/csrf/csrf.go:64 (0x20a87a5)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/recovery.go:171 (0x19073a1)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/logger.go:42 (0x1904b01)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/request_metrics.go:59 (0x19081c9)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/middleware/request_tracing.go:88 (0x190991a)\n/usr/local/go/src/net/http/server.go:2109 (0x7ae40e)\n/drone/src/pkg/web/context.go:49 (0x11cd6bd)\n/drone/src/pkg/web/router.go:155 (0x11d0e8d)\n/drone/src/pkg/web/router.go:221 (0x11d1ad1)\n/drone/src/pkg/web/macaron.go:166 (0x11cf270)\n/usr/local/go/src/net/http/server.go:2947 (0x7b180b)\n/usr/local/go/src/net/http/server.go:1991 (0x7acee6)\n/usr/local/go/src/runtime/asm_amd64.s:1594 (0x4783c0)\n" logger=context userId=1 orgId=1 uname=admin t=2023-03-06T10:07:52.196363467+05:30 level=error msg="Request Completed" method=GET path=/api/datasources/1/health status=500 remote_addr=127.0.0.1 time_ms=30 duration=30.752766ms size=123 referer=http://localhost:3000/datasources/edit/Usvdx-bVk handler=/api/datasources/:id/health
Expected behavior
It should have successfully established the connection.
Additional context
No response
The text was updated successfully, but these errors were encountered: