[GH-ISSUE #6723] Alpine syncthing fails to modify config on setup #1429

Closed
opened 2026-02-26 12:48:52 +03:00 by kerem · 0 comments
Owner

Originally created by @GamerHun1238 on GitHub (Aug 9, 2025).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/6723

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 9, 2025). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/6723 ### ✅ 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" ```
kerem 2026-02-26 12:48:52 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#1429
No description provided.