Element Synapse LXC script should restart the service after sed #498

Closed
opened 2026-02-04 19:17:34 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @sidick on GitHub (Feb 13, 2025).

Originally assigned to: @tremor021 on GitHub.

Have you read and understood the above guidelines?

yes

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

elementsynapse

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

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/elementsynapse.sh)"

📝 Provide a clear and concise description of the issue.

After installation the service comes up listening on localhost as it starts before the sed lines get run. This would likely be simplest to fix by auto restarting the service afterwards.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

  1. bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/elementsynapse.sh)"
  2. Connect to :8008 gives connection refused
  3. systemctl restart matrix-synapse
  4. Connection now works

Paste the full error output (if available).

Connection refused

🖼️ Additional context (optional).

No response

Originally created by @sidick on GitHub (Feb 13, 2025). Originally assigned to: @tremor021 on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? elementsynapse ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/elementsynapse.sh)" ### 📝 Provide a clear and concise description of the issue. After installation the service comes up listening on localhost as it starts before the sed lines get run. This would likely be simplest to fix by auto restarting the service afterwards. ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. 1. bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/elementsynapse.sh)" 2. Connect to <ip>:8008 gives connection refused 3. systemctl restart matrix-synapse 4. Connection now works ### ❌ Paste the full error output (if available). Connection refused ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-04 19:17:34 +03:00
Author
Owner

@tremor021 commented on GitHub (Feb 13, 2025):

thats not the problem. i've tracked it down. fix is underway

@tremor021 commented on GitHub (Feb 13, 2025): thats not the problem. i've tracked it down. fix is underway
Author
Owner

@michelroegl-brunner commented on GitHub (Feb 13, 2025):

sed -i 's/127.0.0.1/0.0.0.0/g' /etc/matrix-synapse/homeserver.yaml
sed -i 's/'\''::1'\'', //g' /etc/matrix-synapse/homeserver.yaml
systemctl enable -q --now matrix-synapse

the sed happens befor the service even gets started?

@michelroegl-brunner commented on GitHub (Feb 13, 2025): ```bash sed -i 's/127.0.0.1/0.0.0.0/g' /etc/matrix-synapse/homeserver.yaml sed -i 's/'\''::1'\'', //g' /etc/matrix-synapse/homeserver.yaml systemctl enable -q --now matrix-synapse ``` the sed happens befor the service even gets started?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#498