Bug Report
Current Behavior
- Open MongoDB for VS Code
- Click "Add mongodb connection"
- In the guide page, click "Connect with Connection String", input connection string, like: "mongodb://username:password@localhost:27017".
- Press Enter to connect.
- The extension shows error message:
Unable to load connection: listen EACCES: permission denied /run/user/1000/mongodbvscode_932484_ipc_13_9524.sock
Code/Gist
No code.
Expected Behavior/Code
Connect to database is succeed, and the connection is saved to the sidebar of the extension. You can navigate databses via this connection.
Environment
Possible Solution
To avoid the file permission error, create the socket file under the user's home path like $HOME/.cache/mongodbvscode/ or under the /tmp directory, instead of /run/user/1000, which may not exist and need be created with administrator priviledge.
Additional Context/Screenshots
No.
Bug Report
Current Behavior
Unable to load connection: listen EACCES: permission denied /run/user/1000/mongodbvscode_932484_ipc_13_9524.sockCode/Gist
No code.
Expected Behavior/Code
Connect to database is succeed, and the connection is saved to the sidebar of the extension. You can navigate databses via this connection.
Environment
node.js / npm versions:extension version: 1.14.6
OS: Ubuntu 22.04.5 LTS/6.6.87.2-microsoft-standard-WSL2
VS Code version:
Possible Solution
To avoid the file permission error, create the socket file under the user's home path like
$HOME/.cache/mongodbvscode/or under the/tmpdirectory, instead of/run/user/1000, which may not exist and need be created with administrator priviledge.Additional Context/Screenshots
No.