Caddy update script - install_go command not found #1699

Closed
opened 2026-02-05 01:59:20 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @zekaptain on GitHub (Sep 30, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

caddy.sh

📂 What was the exact command used to execute the script?

update

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

pve-manager/8.4.14/b502d23c55afcba1 (running kernel: 6.8.12-15-pve)

📝 Provide a clear and concise description of the issue.

When running the update script in my Caddy LXC, the install_go command on line 36 fails to execute because the shell cannot find the command. I have not been able to trace the install_go shell command in either the ProxmoxVE build.func script sourced at the beginning of the caddy.sh shell script, nor inside the community-scripts/ProxmoxVE git repo, nor inside the Caddy & xCaddy repos.

🔄 Steps to reproduce the issue.

Step 1: Install Caddy LXC via bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/caddy.sh)" in the main ProxmoxVE node shell.
Step 1a: Install xCaddy via above shell script install prompt
Step 2: Update Caddy using update command (same issue occurs when running the command from Step 1 within the Caddy LXC).

Paste the full error output (if available).

Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 https://pkgs.tailscale.com/stable/debian bookworm InRelease 
Get:5 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [14.8 kB]
Get:6 https://dl.cloudsmith.io/public/caddy/xcaddy/deb/debian any-version InRelease [7,518 B]
Fetched 84.4 kB in 0s (188 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  ✔️   Updated Caddy LXC
environment: line 36: install_go: command not found

[ERROR] in line 36: exit code 0: while executing command install_go

🖼️ Additional context (optional).

My Go environment:

root@caddy:~# go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3965825091=/tmp/go-build -gno-record-gcc-switches'
Originally created by @zekaptain on GitHub (Sep 30, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? caddy.sh ### 📂 What was the exact command used to execute the script? update ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? pve-manager/8.4.14/b502d23c55afcba1 (running kernel: 6.8.12-15-pve) ### 📝 Provide a clear and concise description of the issue. When running the update script in my Caddy LXC, the `install_go` command on line 36 fails to execute because the shell cannot find the command. I have not been able to trace the `install_go` shell command in either the ProxmoxVE `build.func` script sourced at the beginning of the `caddy.sh` shell script, nor inside the community-scripts/ProxmoxVE git repo, nor inside the Caddy & xCaddy repos. ### 🔄 Steps to reproduce the issue. Step 1: Install Caddy LXC via `bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/caddy.sh)"` in the main ProxmoxVE node shell. Step 1a: Install xCaddy via above shell script install prompt Step 2: Update Caddy using `update` command (same issue occurs when running the command from Step 1 within the Caddy LXC). ### ❌ Paste the full error output (if available). ``` Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://security.debian.org bookworm-security InRelease Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:4 https://pkgs.tailscale.com/stable/debian bookworm InRelease Get:5 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [14.8 kB] Get:6 https://dl.cloudsmith.io/public/caddy/xcaddy/deb/debian any-version InRelease [7,518 B] Fetched 84.4 kB in 0s (188 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ✔️ Updated Caddy LXC environment: line 36: install_go: command not found [ERROR] in line 36: exit code 0: while executing command install_go ``` ### 🖼️ Additional context (optional). My Go environment: ``` root@caddy:~# go env GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/root/.cache/go-build' GOENV='/root/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/root/go/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/root/go' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/usr/local/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64' GOVCS='' GOVERSION='go1.23.4' GODEBUG='' GOTELEMETRY='local' GOTELEMETRYDIR='/root/.config/go/telemetry' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='0' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3965825091=/tmp/go-build -gno-record-gcc-switches' ```
OVERLORD added the bug label 2026-02-05 01:59:20 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1699