So it actually worked and solved the postgresql issue, I’ve been able to restore peertube!!
But synapse is still failing to restore
I guess the problem occur when starting synapse:
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for '\''synapse.app.homeserver'\'' (ModuleNotFoundError: No module named '\''synapse'\'')
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,657: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
But I don’t really understand what this means.
More complete log:
...
2020-09-19 19:15:35,443: DEBUG - + set -o xtrace
2020-09-19 19:15:35,443: DEBUG - + ynh_systemd_action --service_name=coturn-synapse.service --action=restart
2020-09-19 19:15:35,443: DEBUG - + local legacy_args=nalpte
2020-09-19 19:15:35,443: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-09-19 19:15:35,443: DEBUG - + local -A args_array
2020-09-19 19:15:35,444: DEBUG - + local service_name
2020-09-19 19:15:35,444: DEBUG - + local action
2020-09-19 19:15:35,444: DEBUG - + local line_match
2020-09-19 19:15:35,444: DEBUG - + local length
2020-09-19 19:15:35,444: DEBUG - + local log_path
2020-09-19 19:15:35,444: DEBUG - + local timeout
2020-09-19 19:15:35,444: DEBUG - + ynh_handle_getopts_args --service_name=coturn-synapse.service --action=restart
2020-09-19 19:15:35,444: DEBUG - + set +o xtrace
2020-09-19 19:15:35,444: DEBUG - + service_name=coturn-synapse.service
2020-09-19 19:15:35,444: DEBUG - + action=restart
2020-09-19 19:15:35,444: DEBUG - + line_match=
2020-09-19 19:15:35,445: DEBUG - + length=20
2020-09-19 19:15:35,445: DEBUG - + log_path=/var/log/coturn-synapse.service/coturn-synapse.service.log
2020-09-19 19:15:35,445: DEBUG - + timeout=300
2020-09-19 19:15:35,445: DEBUG - + [[ -n '' ]]
2020-09-19 19:15:35,445: DEBUG - + '[' restart == reload ']'
2020-09-19 19:15:35,445: DEBUG - + systemctl restart coturn-synapse.service
2020-09-19 19:15:35,545: DEBUG - + [[ -n '' ]]
2020-09-19 19:15:35,545: INFO - [###################.] > Restarting synapse services...
2020-09-19 19:15:35,546: DEBUG - + ynh_systemd_action --service_name=matrix-synapse --action=restart '--line_match=Synapse now listening on TCP port 8448' --log_path=/var/log/matrix-synapse/homeserver.log --timeout=300
2020-09-19 19:15:35,546: DEBUG - + local legacy_args=nalpte
2020-09-19 19:15:35,546: DEBUG - + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
2020-09-19 19:15:35,546: DEBUG - + local -A args_array
2020-09-19 19:15:35,546: DEBUG - + local service_name
2020-09-19 19:15:35,546: DEBUG - + local action
2020-09-19 19:15:35,546: DEBUG - + local line_match
2020-09-19 19:15:35,546: DEBUG - + local length
2020-09-19 19:15:35,546: DEBUG - + local log_path
2020-09-19 19:15:35,546: DEBUG - + local timeout
2020-09-19 19:15:35,546: DEBUG - + ynh_handle_getopts_args --service_name=matrix-synapse --action=restart '--line_match=Synapse now listening on TCP port 8448' --log_path=/var/log/matrix-synapse/homeserver.log --timeout=300
2020-09-19 19:15:35,546: DEBUG - + set +o xtrace
2020-09-19 19:15:35,649: DEBUG - + service_name=matrix-synapse
2020-09-19 19:15:35,649: WARNING - Job for matrix-synapse.service failed because the control process exited with error code.
2020-09-19 19:15:35,649: DEBUG - + action=restart
2020-09-19 19:15:35,649: WARNING - See "systemctl status matrix-synapse.service" and "journalctl -xe" for details.
2020-09-19 19:15:35,649: DEBUG - + line_match='Synapse now listening on TCP port 8448'
2020-09-19 19:15:35,650: WARNING - [Error] Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,650: DEBUG - + length=20
2020-09-19 19:15:35,650: WARNING - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,650: DEBUG - + log_path=/var/log/matrix-synapse/homeserver.log
2020-09-19 19:15:35,650: WARNING - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,650: DEBUG - + timeout=300
2020-09-19 19:15:35,650: WARNING - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,650: DEBUG - + [[ -n Synapse now listening on TCP port 8448 ]]
2020-09-19 19:15:35,650: WARNING - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,650: DEBUG - ++ mktemp
2020-09-19 19:15:35,650: WARNING - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + local templog=/tmp/tmp.n18N8lbXQN
2020-09-19 19:15:35,651: WARNING - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + '[' /var/log/matrix-synapse/homeserver.log == systemd ']'
2020-09-19 19:15:35,651: WARNING - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + local pid_tail=345
2020-09-19 19:15:35,651: WARNING - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + '[' restart == reload ']'
2020-09-19 19:15:35,651: WARNING - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + systemctl restart matrix-synapse
2020-09-19 19:15:35,651: WARNING - Sep 19 19:15:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,651: DEBUG - + tail --follow=name --retry --lines=0 /var/log/matrix-synapse/homeserver.log
2020-09-19 19:15:35,651: WARNING - Sep 19 19:15:16 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,652: DEBUG - + ynh_exec_err journalctl --quiet --no-hostname --no-pager --lines=20 --unit=matrix-synapse
2020-09-19 19:15:35,652: WARNING - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,652: DEBUG - ++ eval journalctl --quiet --no-hostname --no-pager --lines=20 --unit=matrix-synapse
2020-09-19 19:15:35,652: WARNING - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for 'synapse.app.homeserver' (ModuleNotFoundError: No module named 'synapse')
2020-09-19 19:15:35,652: DEBUG - +++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=matrix-synapse
2020-09-19 19:15:35,652: WARNING - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,652: DEBUG - + ynh_print_err 'Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,652: WARNING - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
2020-09-19 19:15:35,652: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,652: WARNING - Sep 19 19:15:35 systemd[1]: Failed to start Synapse Matrix homeserver.
2020-09-19 19:15:35,653: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: WARNING - [Error] --
2020-09-19 19:15:35,653: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 19:15:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 19:15:16 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,653: DEBUG - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,653: DEBUG - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for '\''synapse.app.homeserver'\'' (ModuleNotFoundError: No module named '\''synapse'\'')
2020-09-19 19:15:35,653: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,654: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
2020-09-19 19:15:35,654: DEBUG - Sep 19 19:15:35 systemd[1]: Failed to start Synapse Matrix homeserver.'
2020-09-19 19:15:35,654: DEBUG - + local legacy_args=m
2020-09-19 19:15:35,654: DEBUG - + args_array=([m]=message=)
2020-09-19 19:15:35,654: DEBUG - + local -A args_array
2020-09-19 19:15:35,654: DEBUG - + local message
2020-09-19 19:15:35,654: DEBUG - + ynh_handle_getopts_args 'Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,654: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:16 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for '\''synapse.app.homeserver'\'' (ModuleNotFoundError: No module named '\''synapse'\'')
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
2020-09-19 19:15:35,655: DEBUG - Sep 19 19:15:35 systemd[1]: Failed to start Synapse Matrix homeserver.'
2020-09-19 19:15:35,655: DEBUG - + set +o xtrace
2020-09-19 19:15:35,655: DEBUG - + echo '! Helper used in legacy mode !'
2020-09-19 19:15:35,655: DEBUG - + set +x
2020-09-19 19:15:35,655: DEBUG - + ynh_print_log '[Error] Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,655: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:16 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for '\''synapse.app.homeserver'\'' (ModuleNotFoundError: No module named '\''synapse'\'')
2020-09-19 19:15:35,656: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,657: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
2020-09-19 19:15:35,657: DEBUG - Sep 19 19:15:35 systemd[1]: Failed to start Synapse Matrix homeserver.'
2020-09-19 19:15:35,657: DEBUG - + echo -e '[Error] Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 08:59:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:11:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 09:22:57 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,657: DEBUG - Sep 19 19:15:15 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:16 systemd[1]: /etc/systemd/system/matrix-synapse.service:13: RuntimeDirectory= path is not normalized, ignoring:
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:35 systemd[1]: Starting Synapse Matrix homeserver...
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:35 python[348]: /opt/yunohost/matrix-synapse/bin/python: Error while finding module specification for '\''synapse.app.homeserver'\'' (ModuleNotFoundError: No module named '\''synapse'\'')
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Control process exited, code=exited, status=1/FAILURE
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:35 systemd[1]: matrix-synapse.service: Failed with result '\''exit-code'\''.
2020-09-19 19:15:35,658: DEBUG - Sep 19 19:15:35 systemd[1]: Failed to start Synapse Matrix homeserver.'
2020-09-19 19:15:35,658: DEBUG - + '[' -e /var/log/matrix-synapse/homeserver.log ']'
2020-09-19 19:15:35,658: DEBUG - + ynh_print_err --message=--
2020-09-19 19:15:35,658: DEBUG - + local legacy_args=m
2020-09-19 19:15:35,658: DEBUG - + args_array=([m]=message=)
2020-09-19 19:15:35,658: DEBUG - + local -A args_array
2020-09-19 19:15:35,658: DEBUG - + local message
2020-09-19 19:15:35,658: DEBUG - + ynh_handle_getopts_args --message=--
2020-09-19 19:15:35,658: DEBUG - + set +o xtrace
2020-09-19 19:15:35,658: DEBUG - + ynh_print_log '[Error] --'
2020-09-19 19:15:35,659: DEBUG - + echo -e '[Error] --'
2020-09-19 19:15:35,659: DEBUG - + ynh_exec_err tail --lines=20 /var/log/matrix-synapse/homeserver.log
2020-09-19 19:15:35,659: DEBUG - ++ eval tail --lines=20 /var/log/matrix-synapse/homeserver.log
2020-09-19 19:15:35,659: DEBUG - +++ tail --lines=20 /var/log/matrix-synapse/homeserver.log
...
2020-09-19 19:15:35,776: DEBUG - + ynh_die
2020-09-19 19:15:35,776: DEBUG - + local legacy_args=mc
2020-09-19 19:15:35,776: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2020-09-19 19:15:35,776: DEBUG - + local -A args_array
2020-09-19 19:15:35,777: DEBUG - + local message
2020-09-19 19:15:35,777: DEBUG - + local ret_code
2020-09-19 19:15:35,777: DEBUG - + ynh_handle_getopts_args
2020-09-19 19:15:35,777: DEBUG - + set +o xtrace
2020-09-19 19:15:35,777: DEBUG - + ret_code=1
2020-09-19 19:15:35,777: DEBUG - ++ ynh_exit_properly
2020-09-19 19:15:35,777: DEBUG - ++ local exit_code=1
2020-09-19 19:15:35,777: DEBUG - ++ '[' 1 -eq 0 ']'
2020-09-19 19:15:35,777: DEBUG - ++ trap '' EXIT
2020-09-19 19:15:35,777: DEBUG - ++ set +o errexit
2020-09-19 19:15:35,777: DEBUG - ++ set +o nounset
2020-09-19 19:15:35,777: DEBUG - ++ sleep 0.5
2020-09-19 19:15:36,178: DEBUG - ++ type -t ynh_clean_setup
2020-09-19 19:15:36,178: DEBUG - ++ ynh_clean_setup
2020-09-19 19:15:36,179: DEBUG - ++ ynh_clean_check_starting
2020-09-19 19:15:36,179: DEBUG - ++ '[' -n 345 ']'
2020-09-19 19:15:36,179: DEBUG - ++ kill -SIGTERM 345
2020-09-19 19:15:36,179: DEBUG - ++ '[' -n /tmp/tmp.n18N8lbXQN ']'
2020-09-19 19:15:36,179: DEBUG - ++ ynh_secure_remove /tmp/tmp.n18N8lbXQN
2020-09-19 19:15:36,179: DEBUG - ++ local legacy_args=f
2020-09-19 19:15:36,180: DEBUG - ++ args_array=([f]=file=)
2020-09-19 19:15:36,180: DEBUG - ++ local -A args_array
2020-09-19 19:15:36,180: DEBUG - ++ local file
2020-09-19 19:15:36,180: DEBUG - ++ ynh_handle_getopts_args /tmp/tmp.n18N8lbXQN
2020-09-19 19:15:36,180: DEBUG - ++ set +o xtrace
2020-09-19 19:15:36,281: DEBUG - ++ echo '! Helper used in legacy mode !'
2020-09-19 19:15:36,281: DEBUG - ++ set +x
2020-09-19 19:15:36,281: DEBUG - ++ local 'forbidden_path= /var/www /home/yunohost.app'
2020-09-19 19:15:36,281: DEBUG - ++ '[' 1 -ge 2 ']'
2020-09-19 19:15:36,281: DEBUG - ++ [[ -z /tmp/tmp.n18N8lbXQN ]]
2020-09-19 19:15:36,281: DEBUG - ++ [[ /var/www /home/yunohost.app =~ /tmp/tmp\.n18N8lbXQN ]]
2020-09-19 19:15:36,282: DEBUG - ++ [[ /tmp/tmp.n18N8lbXQN =~ ^/[[:alnum:]]+$ ]]
2020-09-19 19:15:36,282: DEBUG - ++ [[ N = \/ ]]
2020-09-19 19:15:36,282: DEBUG - ++ '[' -e /tmp/tmp.n18N8lbXQN ']'
2020-09-19 19:15:36,282: DEBUG - ++ rm --recursive /tmp/tmp.n18N8lbXQN
2020-09-19 19:15:36,282: DEBUG - ++ exit 1
2020-09-19 19:15:36,322: ERROR - Could not restore synapse
edit: It seems to be related to this issue which says that the fix is available, but maybe only in testing.