Synapse failing to install on fresh yunohost

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 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```

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

1 Like

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

Excellent! Thank you. Hopefully your PR gets merged soon

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