SSH connection hangs up forever

Hey! i've got quite a problem 🄲 Whenever I spin up a docker-based workspace, its connections info (code-server, ssh, terminal, etc) on the are loading for ever (see image below). Same goes for the ssh CLI;
~ āžœ ssh coder.tscord

> Don't panic, your workspace is booting up!

ā¢Žā”€ Waiting for connection from main ...
~ āžœ ssh coder.tscord

> Don't panic, your workspace is booting up!

ā¢Žā”€ Waiting for connection from main ...
(like this since 20min now) But even if it doesn't seems to work, the workspace is indeed turned on and i can access it through docker I don't really understand why i get this... - coder version: Coder v0.13.6+cfd02d9 - my template terraform config: https://pastebin.com/3sB3gFuG - in my template config i use a base image that i have locally on my machine, which is like that: https://pastebin.com/9Cwi7UqR
No description
2 Replies
TikTok Rizz Party
TikTok Rizz PartyOP•3y ago
ok i narrowed down the problem to this docker volume i added in the docker_container terraform resource:
volumes {
container_path = "/home/coder/.local/share/pnpm"
host_path = "/home/bartho/.local/share/pnpm"
read_only = false
}
volumes {
container_path = "/home/coder/.local/share/pnpm"
host_path = "/home/bartho/.local/share/pnpm"
read_only = false
}
any idea of what could cause the prblm? (once again, the container itself run without any problem, i can indeed access my pnpm host store, etc) i also noticed that if I : 1. comment this thing 2. push the template 3. create a workspace 4. the workspace works 5. uncomment the code 6. re-push the template 7. update the workspace 8. it'll still work (i can connect over ssh, code-server, etc) and will have my volume mounted rly strange šŸ¤” ================= [RESOLVED] ok i found the problem; when mounting volumes, docker will override the permission of the folders in the path (except the last one) with root:root, so in my container the .local and .local/share folder were chowned by root, but the code-server (and maybe other things the agent install?) needs to be installed in this path so it was breaking up all the thing
Codercord
Codercord•3y ago
Marked the thread as resolved.

Did you find this page helpful?