microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.43k stars 29.34k forks source link

Database connection issue. #207585

Closed megaminekohime closed 8 months ago

megaminekohime commented 8 months ago

Hello,

I am having an issue getting the databases to connect even though I did not have this issue from this machine until yesterday. The connection is failing when I try to attach the screenshot. This issue started happening yesterday and it is happening in all instances I try to connect to, even past instances that I have completed from this PC.

The terminal says: Use Cmd/Ctrl + Shift + P -> View Creation Log to see full logs ✔ Finishing up... ✖ Running postStartCommand... ✔ Done Finished configuring codespace. Press any key to exit.

The creation log says this: 2024-03-13 13:17:23.641Z: sudo service mysql start 2024-03-13 13:17:25.364Z: * Starting MySQL database server mysqld 2024-03-13 13:17:25.367Z: 2024-03-13 13:17:25.368Z: 2024-03-13 13:17:25.692Z: su: warning: cannot change directory to /nonexistent: No such file or directory 2024-03-13 13:17:25.960Z: /opt/conda/bin/xz 2024-03-13 13:17:57.937Z: 2024-03-13 13:17:57.943Z: [2024-03-13 13:17:57.943Z: 2024-03-13 13:17:57.943Z: fail2024-03-13 13:17:57.943Z: ] 2024-03-13 13:17:57.961Z: postStartCommand failed with exit code 1. Skipping any further user-provided commands.

2024-03-13 13:17:57.961Z: Error: Command failed: /bin/sh -c sudo service mysql start 2024-03-13 13:17:57.961Z: at wY (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:235:130) 2024-03-13 13:17:57.961Z: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-03-13 13:17:57.961Z: at async nl (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:4393) 2024-03-13 13:17:57.961Z: at async DY (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3910) 2024-03-13 13:17:57.961Z: at async rl (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:3102) 2024-03-13 13:17:57.961Z: at async fs (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:227:2386) 2024-03-13 13:17:57.961Z: at async q$ (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:464:1488) 2024-03-13 13:17:57.961Z: at async iK (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:464:960) 2024-03-13 13:17:57.961Z: at async gAA (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:3660) 2024-03-13 13:17:57.961Z: at async BC (/.codespaces/agent/bin/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:481:4775) 2024-03-13 13:17:57.965Z: {"outcome":"error","message":"Command failed: /bin/sh -c sudo service mysql start","description":"The postStartCommand in the devcontainer.json failed.","containerId":"66ec40dca15d076671c560e734285dd27b759780cdc72915f2b683d09f3c2242"} 2024-03-13 13:17:57.971Z: devcontainer process exited with exit code 1

================================================================================= 2024-03-13 13:17:58.359Z: Finished configuring codespace.

Version: 1.85.2 Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Embedder: codespaces

vscodenpa commented 8 months ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!

megaminekohime commented 8 months ago

This is the automated start up process that the lab does on it's own, not my own code.