Coder agent infinite connecting loop using certificate

hi, on fresh install inside a 22.04 LTS ubuntu server updated, coder agent is not working. (using deb package, latest version)
status:
⦿ Connecting
os:
Linux
version:
(unknown)
status:
⦿ Connecting
os:
Linux
version:
(unknown)
Config file here
CODER_TUNNEL=false

# Option 2) Set an access URL
# e.g. https://coder.example.com
CODER_ACCESS_URL=https://server-paris.synology.me:443

CODER_ADDRESS=0.0.0.0:443
CODER_PG_CONNECTION_URL=
CODER_TLS_CERT_FILE=/etc/coder.d/cert/cert.pem
CODER_TLS_ENABLE=true
CODER_TLS_KEY_FILE=/etc/coder.d/cert/privkey.pem
CODER_TUNNEL=false

# Option 2) Set an access URL
# e.g. https://coder.example.com
CODER_ACCESS_URL=https://server-paris.synology.me:443

CODER_ADDRESS=0.0.0.0:443
CODER_PG_CONNECTION_URL=
CODER_TLS_CERT_FILE=/etc/coder.d/cert/cert.pem
CODER_TLS_ENABLE=true
CODER_TLS_KEY_FILE=/etc/coder.d/cert/privkey.pem
It seems to be a network issue, any ideas ?
4 Replies
kyle
kyle2y ago
Are you certain the workspace can dial https://server-paris.synology.me:443? This typically happens when it cannot.
auré
auré2y ago
Yes, everything is accessible online, without proxy There is a way to see agent log in coder ? Moreover, when i try to ssh inside the container using coder.[workspace] the system ask for a password (and this password is not my account password) Ok there is some news about it : using
docker logs [containername]
docker logs [containername]
i have an error with curl
+ curl -fsSL --compressed https://server-paris.synology.me:443/bin/coder-linux-amd64 -o coder
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
+ status=60
error: failed to download coder agent
command returned: 60
Trying again in 30 seconds...
+ echo error: failed to download coder agent
+ echo command returned: 60
+ echo Trying again in 30 seconds...
+ sleep 30
+ curl -fsSL --compressed https://server-paris.synology.me:443/bin/coder-linux-amd64 -o coder
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
+ status=60
error: failed to download coder agent
command returned: 60
Trying again in 30 seconds...
+ echo error: failed to download coder agent
+ echo command returned: 60
+ echo Trying again in 30 seconds...
+ sleep 30
Update : Certificate file was incomplete, i fix this and now everything is working!
kyle
kyle2y ago
Awesome!
Phorcys
Phorcys2y ago
great ! marking this as resolved
Want results from more Discord servers?
Add your server