8000 Agent hangs on 'connecting' when deploying using local docker · Issue #3513 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
Agent hangs on 'connecting' when deploying using local docker #3513
Closed
@AadamZ5

Description

@AadamZ5

When deploying with the docker template, it seems the container can not download the required dependencies.

Container log:

+ trap waitonexit EXIT
+ mktemp -d -t coder.XXXXXX
+ BINARY_DIR=/tmp/coder.riHRwV
+ BINARY_NAME=coder
+ BINARY_URL=http://127.0.0.1:3000/bin/coder-linux-amd64
+ cd /tmp/coder.riHRwV
+ :
+ status=
+ command -v curl
+ curl -fsSL --compressed http://127.0.0.1:3000/bin/coder-linux-amd64 -o coder
curl: (7) Failed to connect to 127.0.0.1 port 3000: Connection refused
+ status=7
error: failed to download coder agent
       command returned: 7
Trying again in 30 seconds...
+ echo error: failed to download coder agent
+ echo        command returned: 7
+ echo Trying again in 30 seconds...
+ sleep 30

This repeats and it can never reach the host network. Running on linux x86_64

I can reach the host address from outside of the container (on the host itself) and the url path gives me a file to download. Seems like the container can't reach host.

> coder version
Coder v0.8.5+95f26f7 Wed Aug 10 16:30:46 UTC 2022
https://github.com/coder/coder/commit/95f26f74b6ff6be1ffe42fceb21f70219889dc99

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0