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;
(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/9Cwi7UqR2 Replies
ok i narrowed down the problem to this docker volume i added in the
docker_container
terraform resource:
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 thingMarked the thread as resolved.