Coder.comC
Coder.com3y ago
68 replies
bpmct

Agent error: ./coder: 2: Syntax error: newline unexpected

Copying message from No Access

Just got coder installed on our k8s cluster 😎 . I wanted to try a workspace quickly so I deployed the starter "Develop in Kubernetes" template. The pod for this spins up, but quickly fails with the following error:
$ kubectl logs coder-redacted-xxx-ws
trap waitonexit EXIT
mktemp -d -t coder.XXXXXX
BINARY_DIR=/tmp/coder.S4qZTl
BINARY_NAME=coder
BINARY_URL=https://coder.k8s-dev.redacted.com/bin/coder-linux-amd64
cd /tmp/coder. S4qZTL
status=
command -V curl
curl -fsSL -compressed https://coder.k8s-dev.redacted.com/bin/coder-linux-amd64 -o coder
break
chmod +x coder
export CODER_AGENT_AUTH=token
export CODER_AGENT_URL=https://coder.k8s-dev.redacted.com/
exec . /coder agent
./coder: 2: Syntax error: newline unexpected


Seems like an error it the binary it goes to execute?
Was this page helpful?