Connection to server got closed. Server will not be restarted.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start with the extension logs linked in the issue and reproduce the failure in PostgreSQL extension 1.16 on macOS arm64. Trace the failed pgsqltoolsservice Python shared-library load; done means the connection window loads connections and the database context menu offers “Connect in Agent Mode” without the server connection closing.
Written by the indexing model from the issue text.
Description
Describe the bug
[PYI-78957:ERROR] Failed to load Python shared library '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python': dlopen(/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python, 0x000A): tried: '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (errno=62), '/System/Volumes/Preboot/Cryptexes/OS/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (no such file), '/Users/xxx/.vscode/extensions/ms-ossdata.vscode-pgsql-1.16.0-darwin-arm64/pgsqltoolsservice/v2.4.1/OSX/pgsqltoolsservice/_internal/Python' (errno=62)
[Error - 1:13:58 PM] Connection to server got closed. Server will not be restarted.
To Reproduce
Steps to reproduce the behavior:
- Click on PostgreSQL extension 1.16
- Output tab shows error
- Getting connections, load query history etc.. are stuck
Expected behavior
Connection windows shows all connections to various servers or give an option to add server. Once connected to a server, right click on database shows "Connect in Agent Mode" option
Screenshots
VS Code version
Version: 1.109.5 (Universal)
Commit: 072586267e68ece9a47aa43f8c108e0dcbf44622
Date: 2026-02-19T19:43:32.382Z
Electron: 39.3.0
ElectronBuildId: 13313481
Chromium: 142.0.7444.265
Node.js: 22.21.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0
Extension Logs
See: https://github.com/microsoft/vscode-pgsql?tab=readme-ov-file#usage-and-feedback
Add any other context about the problem here.
- Dominant language
- No language data
- Stars
- 395
- Forks
- 33
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-pgsql
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/vscode-pgsql#190 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/vscode-pgsql#307 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
microsoft/vscode-pgsql#306 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/vscode-pgsql#305 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
microsoft/vscode-pgsql#302 ·
All issues in microsoft/vscode-pgsql
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ClickHouse/clickhouse-connect#1066 · 5 reactions ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100