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

Panic during Risingwave integration with Grafana #8345

Closed
abhyuday26 opened this issue Mar 6, 2023 · 10 comments
Closed

Panic during Risingwave integration with Grafana #8345

abhyuday26 opened this issue Mar 6, 2023 · 10 comments
Assignees
Labels
no-issue-activity type/bug Something isn't working

Comments

@abhyuday26
Copy link

abhyuday26 commented Mar 6, 2023

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
image

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

@abhyuday26 abhyuday26 added the type/bug Something isn't working label Mar 6, 2023
@github-actions github-actions bot added this to the release-0.1.18 milestone Mar 6, 2023
@lmatz
Copy link
Contributor

lmatz commented Mar 6, 2023

I don't get it, the logs seem to contain no information from RisingWave?

Please confirm the cause of panic, e.g. check RisingWave's own logs...

@abhyuday26
Copy link
Author

I have found nothing in the Risingwave logs, this seems the problem from Grafana.

@lmatz lmatz closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2023
@tabVersion
Copy link
Contributor

reopen because @wugouzi reproduced the bug

@tabVersion tabVersion reopened this May 29, 2023
@wugouzi
Copy link
Contributor

wugouzi commented May 29, 2023

This is my error message:

logger=context userId=1 orgId=1 uname=admin t=2023-05-29T16:54:30.25944+08:00 level=error msg="Request error" error="runtime error: invalid memory address or nil pointer dereference"
stack="/opt/homebrew/Cellar/go/1.20.4/libexec/src/runtime/panic.go:260 (0x100f6d687)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/runtime/signal_unix.go:837 (0x100f86bf7)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lib/[email protected]/conn.go:1525 (0x101bbbd54)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/lib/[email protected]/conn_go18.go:98 (0x101bc0467)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/database/sql/sql.go:836 (0x10158a037)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/database/sql/sql.go:3405 (0x10159719b)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/database/sql/sql.go:835 (0x101589f97)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/database/sql/sql.go:858 (0x10158a133)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/grafana/[email protected]/session_schema.go:22 (0x101b75dff)
/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/grafana/[email protected]/engine.go:362 (0x101b3eda3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/tsdb/sqleng/sql_engine.go:189 (0x103347ebb)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/tsdb/postgres/postgres.go:217 (0x103347eac)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/backendplugin/coreplugin/core_plugin.go:78 (0x103359747)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/plugins.go:274 (0x101c5b9a7)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/manager/client/client.go:158 (0x10340bfe3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/backendplugin/instrumentation/instrumentation.go:49 (0x103409dbf)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/backendplugin/instrumentation/instrumentation.go:107 (0x10340be2b)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/manager/client/client.go:154 (0x10340be04)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/httpclient_middleware.go:91 (0x10340e83f)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/cookies_middleware.go:116 (0x10340dc67)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/oauthtoken_middleware.go:126 (0x10340f347)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/clear_auth_headers_middleware.go:68 (0x10340d2f3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/tracing_header_middleware.go:67 (0x10340f8d3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/pluginsintegration/clientmiddleware/tracing_middleware.go:101 (0x10341095b)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/plugins/manager/client/decorator.go:66 (0x10340c973)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/api/datasources.go:833 (0x102c78867)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/api/datasources.go:770 (0x102c782c3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/api/routing/routing.go:17 (0x102366797)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/api/response/web_hack.go:40 (0x101c305e7)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:134 (0x101c24d93)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/services/contexthandler/contexthandler.go:220 (0x1023559ff)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/render.go:44 (0x101c25913)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:140 (0x101c24e37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/middleware/csrf/csrf.go:64 (0x102907b5f)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/middleware/recovery.go:171 (0x1023611bb)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/middleware/loggermw/logger.go:71 (0x102908a73)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/middleware/request_metrics.go:59 (0x102361eff)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/middleware/request_tracing.go:88 (0x1023635ef)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2122 (0x10128df97)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/context.go:52 (0x101c236e3)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/router.go:155 (0x101c26d3b)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/router.go:221 (0x101c277c7)
/private/tmp/grafana-20230511-8067-ra63hz/grafana-9.5.2/pkg/web/macaron.go:166 (0x101c2526b)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:2936 (0x101290c37)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/net/http/server.go:1995 (0x10128cd7f)
/opt/homebrew/Cellar/go/1.20.4/libexec/src/runtime/asm_arm64.s:1172 (0x100fa6223)
"

@lmatz
Copy link
Contributor

lmatz commented May 29, 2023

2023-05-29T11:40:41.350829Z ERROR risingwave_frontend::session: failed to handle sql:
SELECT CAST(current_setting('server_version_num') AS INT) / 100 AS version:
    Bind error: failed to bind expression: CAST(current_setting('server_version_num') AS INT) / 100
    Caused by:
      Feature is not yet implemented: unsupported function: "current_setting"
      Tracking issue: https://github.com/risingwavelabs/risingwave/issues/112

@lmatz
Copy link
Contributor

lmatz commented May 29, 2023

And just in case,
we can export RW_QUERY_LOG_PATH in bash as an environment variable to let Risingwave log out every SQL query.

It needs to be set before starting Risingwave.

@fuyufjh
Copy link
Member

fuyufjh commented Jul 14, 2023

@tabVersion Please take a look?

@tabVersion
Copy link
Contributor

oh I missed the issue, will look into it.

@tabVersion tabVersion modified the milestones: release-1.1, release-1.2 Aug 8, 2023
@tabVersion tabVersion removed this from the release-1.2 milestone Sep 11, 2023
Copy link
Contributor

github-actions bot commented Jul 3, 2024

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 no-issue-activity label.

You can also confidently close this issue as not planned to keep our backlog clean.
Don't worry if you think the issue is still valuable to continue in the future.
It's searchable and can be reopened when it's time. 😄

@tabVersion
Copy link
Contributor

close as no activity

@tabVersion tabVersion closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants