# Synapse failing to install on fresh yunohost

**URL:** https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345
**Category:** Support
**Tags:** bug, english
**Created:** [November 25, 2023, 7:08pm UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345 "2023-11-25T19:08:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Iammee](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/a8b319/32.png) [@Iammee](https://forum.yunohost.org/u/Iammee)
#### Post date: [November 25, 2023, 7:08pm UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345/1 "2023-11-25T19:08:37Z")

</div>

Hello! Im new here and encountering an issue with synapse

### My YunoHost server

**Hardware:** VPS bought online (contabo)  
**YunoHost version:** 11.2.6  
**I have access to my server :** Through SSH  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

Fresh install of Debian 11 and yunohost and I can’t install synapse without getting an error from fail2ban.

The green buttons aren’t working for me on my phone so I’m copying/pasting.

````2023-11-25
2023-11-25 12:57:35,984: DEBUG - + uniques_vars=()
2023-11-25 12:57:35,984: DEBUG - + local delimit=@
2023-11-25 12:57:35,984: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/filter.d/synapse.conf
2023-11-25 12:57:35,985: DEBUG - + update_only=0
2023-11-25 12:57:35,996: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_synapse.conf
2023-11-25 12:57:35,996: DEBUG - ++ md5sum /etc/fail2ban/filter.d/synapse.conf
2023-11-25 12:57:35,996: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-11-25 12:57:35,999: DEBUG - + ynh_app_setting_set --app=synapse --key=checksum__etc_fail2ban_filter.d_synapse.conf --value=1c55d648327a502ddddaa64c4430feba
2023-11-25 12:57:35,999: DEBUG - + local _globalapp=synapse
2023-11-25 12:57:36,059: DEBUG - + app=synapse
2023-11-25 12:57:36,059: DEBUG - + [[checksum__etc_fail2ban_filter.d_synapse.conf =~ (unprotected|protected|skipped)_]]
2023-11-25 12:57:36,059: DEBUG - + ynh_app_setting set synapse checksum__etc_fail2ban_filter.d_synapse.conf 1c55d648327a502ddddaa64c4430feba
2023-11-25 12:57:36,114: DEBUG - + '[' -n '' ']'
2023-11-25 12:57:36,114: DEBUG - + unset backup_file_checksum
2023-11-25 12:57:36,115: DEBUG - + mkdir -p /var/log/synapse
2023-11-25 12:57:36,116: WARNING - /usr/share/yunohost/helpers.d/fail2ban: line 106: logpath: unbound variable
2023-11-25 12:57:36,116: DEBUG - ++ ynh_exit_properly
2023-11-25 12:57:36,117: DEBUG - ++ [[install =~ ^install$|^upgrade$|^restore$]]
2023-11-25 12:57:36,618: DEBUG - ++ ynh_clean_setup
2023-11-25 12:57:36,618: DEBUG - ++ ynh_clean_check_starting
2023-11-25 12:57:36,618: DEBUG - ++ '[' -n '' ']'
2023-11-25 12:57:36,619: DEBUG - ++ '[' -n '' ']'
2023-11-25 12:57:36,619: DEBUG - ++ exit 1
2023-11-25 12:57:37,621: ERROR - Unable to install synapse: An error occurred inside the app installation script```
````

---

<div class="post-metadata">

### Author: ![kjanek](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/k/85e7bf/32.png) [@kjanek](https://forum.yunohost.org/u/kjanek)
#### Post date: [November 26, 2023, 10:39am UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345/2 "2023-11-26T10:39:31Z")

</div>

Update behaves the same way. BTW that update also crashes Fail2Ban service so better check if it’s running after installation/update.

---

<div class="post-metadata">

### Author: ![OniriCorpe](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oniricorpe/32/3356_2.png) [@OniriCorpe](https://forum.yunohost.org/u/OniriCorpe)
#### Post date: [November 26, 2023, 8:39pm UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345/3 "2023-11-26T20:39:38Z")

</div>

It’s a core bug, nor a package bug ^^"

I try to patch it here: [fix the fail2ban helper when using using --use\_template arg by OniriCorpe · Pull Request #1743 · YunoHost/yunohost · GitHub](https://github.com/YunoHost/yunohost/pull/1743)

---

<div class="post-metadata">

### Author: ![Iammee](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/a8b319/32.png) [@Iammee](https://forum.yunohost.org/u/Iammee)
#### Post date: [November 27, 2023, 12:15am UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345/4 "2023-11-27T00:15:35Z")

</div>

Excellent! Thank you. Hopefully your PR gets merged soon

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [December 27, 2023, 12:16am UTC](https://forum.yunohost.org/t/synapse-failing-to-install-on-fresh-yunohost/27345/5 "2023-12-27T00:16:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
