Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

invalid target_session_attrs value: ""read-write"" in "cybertec/pgwatch2-webui:latest". #674

Closed
pashagolub opened this issue Aug 18, 2023 · 0 comments · Fixed by #675
Closed
Assignees

Comments

@pashagolub
Copy link
Collaborator

webui_1                      | 2023-08-16 15:40:04,927 ERROR 1 failed to execute "select 1 as x" on datastore
webui_1                      | Traceback (most recent call last):
webui_1                      |   File "/pgwatch2/webpy/datadb.py", line 45, in execute
webui_1                      |     conn = getConnection(connection_string_metrics) if on_metric_store else getConnection(conn_str)
webui_1                      |   File "/pgwatch2/webpy/datadb.py", line 35, in getConnection
webui_1                      |     conn = psycopg2.connect(conn_str if conn_str else connection_string)    # default to configDB
webui_1                      |   File "/usr/local/lib/python3.10/dist-packages/psycopg2/init.py", line 122, in connect
webui_1                      |     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
webui_1                      | psycopg2.OperationalError: invalid target_session_attrs value: ""read-write""
webui_1                      |
webui_1                      | 2023-08-16 15:40:04,927 WARNING 1 config DB connection test failed: invalid target_session_attrs value: ""read-write""
@pashagolub pashagolub changed the title error when starting a Docker container "cybertec/pgwatch2-webui:latest". invalid target_session_attrs value: ""read-write"" in "cybertec/pgwatch2-webui:latest". Aug 18, 2023
@pashagolub pashagolub self-assigned this Aug 18, 2023
@github-project-automation github-project-automation bot moved this to Todo in pgwatch2 Aug 18, 2023
pashagolub added a commit that referenced this issue Aug 18, 2023
…ession-attrs-webui

[-] fix invalid `target_session_attrs` value in WebUI URI, fixes #674
@github-project-automation github-project-automation bot moved this from Todo to Done in pgwatch2 Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant