auré
auré
CCoder.com
Created by auré on 1/7/2023 in #help
Edit template startup script
Hi everyone, I was trying to modify the startup script of the coder agent of a template. According to the doc, i pull & decompress the template with
coder templates pull docker-code-server file.tar && tar -xf file.tar && rm file.tar
coder templates pull docker-code-server file.tar && tar -xf file.tar && rm file.tar
I have now the config files from the template, i edit the coder agent with :
startup_script = <<EOT
#!/bin/bash
# install and start code-server
code-server --auth none
sudo apt update && sudo apt upgrade -y
sudo apt install wget gcc curl -y
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
EOT
startup_script = <<EOT
#!/bin/bash
# install and start code-server
code-server --auth none
sudo apt update && sudo apt upgrade -y
sudo apt install wget gcc curl -y
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0
EOT
Finally i push everything and i recreate a new template but nothing have change. Any ideas ? thanks 🙂
7 replies
CCoder.com
Created by auré on 10/7/2022 in #help
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 ?
10 replies