Alpine syncthing fails to modify config on setup #1430

Closed
opened 2026-02-05 00:47:31 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @GamerHun1238 on GitHub (Aug 10, 2025).

Have you read and understood the above guidelines?

yes

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

Syncthing

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Alpine

📝 Provide a clear and concise description of the issue.

The error occurs due to the config file only being generated the first time Syncthing is ran, which it isn't before the script attempts to modify the config.

🔄 Steps to reproduce the issue.

Step 1: attempt to install with default settings

Paste the full error output (if available).

  ⏳   Setup Syncthingsed: /var/lib/syncthing/.local/state/syncthing/config.xml: No such file or directory

[ERROR] in line 18: exit code 1: while executing command sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml


[ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)"

🖼️ Additional context (optional).

msg_info "Setup Syncthing"
$STD apk add --no-cache syncthing
sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml
msg_ok "Setup Syncthing"

i suppose it could be something like

msg_info "Setup Syncthing"
$STD apk add --no-cache syncthing
rc-service syncthing start
sleep 5
rc-service syncthing stop
sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml
msg_ok "Setup Syncthing"
Originally created by @GamerHun1238 on GitHub (Aug 10, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Syncthing ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/alpine-syncthing.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Alpine ### 📝 Provide a clear and concise description of the issue. The error occurs due to the config file only being generated the first time Syncthing is ran, which it isn't before the script attempts to modify the config. ### 🔄 Steps to reproduce the issue. Step 1: attempt to install with default settings ### ❌ Paste the full error output (if available). ``` ⏳ Setup Syncthingsed: /var/lib/syncthing/.local/state/syncthing/config.xml: No such file or directory [ERROR] in line 18: exit code 1: while executing command sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml [ERROR] in line 1353: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/${var_install}.sh)" ``` ### 🖼️ Additional context (optional). ``` msg_info "Setup Syncthing" $STD apk add --no-cache syncthing sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml msg_ok "Setup Syncthing" ``` i suppose it could be something like ``` msg_info "Setup Syncthing" $STD apk add --no-cache syncthing rc-service syncthing start sleep 5 rc-service syncthing stop sed -i "{s/127.0.0.1:8384/0.0.0.0:8384/g}" /var/lib/syncthing/.local/state/syncthing/config.xml msg_ok "Setup Syncthing" ```
OVERLORD added the bug label 2026-02-05 00:47:31 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1430