Cloudflare-DDNS LXC wrong go binary path in systemd service file #1007

Closed
opened 2026-02-04 22:31:55 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @BenjaminCottyn on GitHub (May 24, 2025).

Have you read and understood the above guidelines?

yes

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

Cloudflare-DDNS

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/cloudflare-ddns.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📝 Provide a clear and concise description of the issue.

The included systemd service file to run the Cloudflare-DDNS binary has the wrong go path.

🔄 Steps to reproduce the issue.

Install the cloudflare-DDNS LXC via the script, enter your API token and domain.
The LXC container installs successfully, but the systemd service exits immediately with an error.

Paste the full error output (if available).

Output from journalctl -xn:

May 24 12:22:29 cloudflare-ddns (go)[295]: cloudflare-ddns.service: Failed at step EXEC spawning /usr/bin/go/bin/go: No such file or directory

🖼️ Additional context (optional).

I did a manual fix to the service file after getting the go path via which go in the LXC shell:

[Unit]
Description=Cloudflare DDNS Service (Go run)
After=network.target

[Service]
Environment="CLOUDFLARE_API_TOKEN="
Environment="DOMAINS="
Environment="PROXIED=true"
Environment="IP6_PROVIDER=none"
Environment="GOPATH=/root/go"
Environment="GOCACHE=/tmp/go-build"
ExecStart=/usr/local/bin/go run github.com/favonia/cloudflare-ddns/cmd/ddns@latest
Restart=always
RestartSec=300

[Install]
WantedBy=multi-user.target
Originally created by @BenjaminCottyn on GitHub (May 24, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Cloudflare-DDNS ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/cloudflare-ddns.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📝 Provide a clear and concise description of the issue. The included systemd service file to run the Cloudflare-DDNS binary has the wrong go path. ### 🔄 Steps to reproduce the issue. Install the cloudflare-DDNS LXC via the script, enter your API token and domain. The LXC container installs successfully, but the systemd service exits immediately with an error. ### ❌ Paste the full error output (if available). Output from `journalctl -xn`: ``` May 24 12:22:29 cloudflare-ddns (go)[295]: cloudflare-ddns.service: Failed at step EXEC spawning /usr/bin/go/bin/go: No such file or directory ``` ### 🖼️ Additional context (optional). I did a manual fix to the service file after getting the go path via `which go` in the LXC shell: ``` [Unit] Description=Cloudflare DDNS Service (Go run) After=network.target [Service] Environment="CLOUDFLARE_API_TOKEN=" Environment="DOMAINS=" Environment="PROXIED=true" Environment="IP6_PROVIDER=none" Environment="GOPATH=/root/go" Environment="GOCACHE=/tmp/go-build" ExecStart=/usr/local/bin/go run github.com/favonia/cloudflare-ddns/cmd/ddns@latest Restart=always RestartSec=300 [Install] WantedBy=multi-user.target ```
OVERLORD added the bug label 2026-02-04 22:31:55 +03:00
Author
Owner

@tremor021 commented on GitHub (May 24, 2025):

Will be fixed after #4694 merges

@tremor021 commented on GitHub (May 24, 2025): Will be fixed after #4694 merges
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1007