et voilà le log complet de l’opération :" Installer l’application ‘syncthing’"
args:
app: syncthing
args: domain=maindomain.tld&path=%2Fsyncthing&admin=ys
force: false
label: Syncthing
no_remove_on_failure: false
interface: api
operation: app_install
parent: null
related_to:
- - app
- syncthing
started_at: 2021-12-26 12:27:28.090685
yunohost_version: 4.3.4.2
============
2021-12-26 13:27:28,101: INFO - Installation de syncthing...
2021-12-26 13:27:28,173: DEBUG - Nothing to update in LDAP
2021-12-26 13:27:28,174: DEBUG - Permission 'syncthing.main' mise à jour
2021-12-26 13:27:28,209: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20211226-122728-permission_url-syncthing" style="text-decoration:underline"> Mise à jour de l'URL associée à l'autorisation 'syncthing' </a>'
2021-12-26 13:27:28,292: DEBUG - The permission database has been resynchronized
2021-12-26 13:27:28,342: DEBUG - La configuration de SSOwat a été regénérée
2021-12-26 13:27:28,394: DEBUG - Permission 'syncthing.main' créée
2021-12-26 13:27:28,395: DEBUG - Journal complet de cette opération : '<a href="#/tools/logs/20211226-122728-permission_create-syncthing" style="text-decoration:underline"> Créer permission 'syncthing' </a>'
2021-12-26 13:27:28,415: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install" 7>&1']'
2021-12-26 13:27:28,427: DEBUG - + source _common.sh
2021-12-26 13:27:28,428: DEBUG - ++ pkg_dependencies=
2021-12-26 13:27:28,428: DEBUG - + source /usr/share/yunohost/helpers
2021-12-26 13:27:28,429: DEBUG - +++ set +o
2021-12-26 13:27:28,429: DEBUG - +++ grep xtrace
2021-12-26 13:27:28,430: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-12-26 13:27:28,430: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2021-12-26 13:27:28,472: DEBUG - + ynh_abort_if_errors
2021-12-26 13:27:28,473: DEBUG - + trap ynh_exit_properly EXIT
2021-12-26 13:27:28,473: DEBUG - + domain=maindomain.tld
2021-12-26 13:27:28,473: DEBUG - + path_url=/syncthing
2021-12-26 13:27:28,473: DEBUG - + admin=ys
2021-12-26 13:27:28,473: DEBUG - + architecture=amd64
2021-12-26 13:27:28,474: DEBUG - + app=syncthing
2021-12-26 13:27:28,546: INFO - [+...................] > Validating installation parameters...
2021-12-26 13:27:28,548: DEBUG - + final_path=/var/www/syncthing
2021-12-26 13:27:28,548: DEBUG - + test '!' -e /var/www/syncthing
2021-12-26 13:27:28,548: DEBUG - + ynh_webpath_register --app=syncthing --domain=maindomain.tld --path_url=/syncthing
2021-12-26 13:27:28,658: DEBUG - + yunohost app register-url syncthing maindomain.tld /syncthing
2021-12-26 13:27:29,603: INFO - [#+..................] > Storing installation settings...
2021-12-26 13:27:29,604: DEBUG - + ynh_app_setting_set --app=syncthing --key=domain --value=maindomain.tld
2021-12-26 13:27:29,604: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:29,705: DEBUG - + app=syncthing
2021-12-26 13:27:29,705: DEBUG - + [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:29,705: DEBUG - + ynh_app_setting set syncthing domain maindomain.tld
2021-12-26 13:27:29,774: DEBUG - + ynh_app_setting_set --app=syncthing --key=path --value=/syncthing
2021-12-26 13:27:29,774: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:29,865: DEBUG - + app=syncthing
2021-12-26 13:27:29,865: DEBUG - + [[ path =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:29,865: DEBUG - + ynh_app_setting set syncthing path /syncthing
2021-12-26 13:27:29,935: DEBUG - + ynh_app_setting_set --app=syncthing --key=admin --value=ys
2021-12-26 13:27:29,935: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:30,029: DEBUG - + app=syncthing
2021-12-26 13:27:30,030: DEBUG - + [[ admin =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:30,030: DEBUG - + ynh_app_setting set syncthing admin ys
2021-12-26 13:27:30,168: INFO - [##+.................] > Finding an available port...
2021-12-26 13:27:30,168: DEBUG - ++ ynh_find_port --port=8384
2021-12-26 13:27:30,185: DEBUG - ++ test -n 8384
2021-12-26 13:27:30,185: DEBUG - ++ ynh_port_available --port=8384
2021-12-26 13:27:30,204: DEBUG - ++ ss --numeric --listening --tcp --udp
2021-12-26 13:27:30,205: DEBUG - ++ awk '{print$5}'
2021-12-26 13:27:30,205: DEBUG - ++ grep --quiet --extended-regexp ':8384$'
2021-12-26 13:27:30,223: DEBUG - ++ grep -q 'port: '\''8384'\''' /etc/yunohost/apps/netdata/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/redirect/settings.yml /etc/yunohost/apps/syncthing/settings.yml
2021-12-26 13:27:30,225: DEBUG - ++ return 0
2021-12-26 13:27:30,225: DEBUG - ++ echo 8384
2021-12-26 13:27:30,225: DEBUG - + gui_port=8384
2021-12-26 13:27:30,225: DEBUG - + ynh_app_setting_set --app=syncthing --key=gui_port --value=8384
2021-12-26 13:27:30,226: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:30,342: DEBUG - + app=syncthing
2021-12-26 13:27:30,343: DEBUG - + [[ gui_port =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:30,343: DEBUG - + ynh_app_setting set syncthing gui_port 8384
2021-12-26 13:27:30,413: DEBUG - ++ ynh_find_port --port=22000
2021-12-26 13:27:30,425: DEBUG - ++ test -n 22000
2021-12-26 13:27:30,426: DEBUG - ++ ynh_port_available --port=22000
2021-12-26 13:27:30,441: DEBUG - ++ ss --numeric --listening --tcp --udp
2021-12-26 13:27:30,442: DEBUG - ++ awk '{print$5}'
2021-12-26 13:27:30,442: DEBUG - ++ grep --quiet --extended-regexp ':22000$'
2021-12-26 13:27:30,447: DEBUG - ++ grep -q 'port: '\''22000'\''' /etc/yunohost/apps/netdata/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/redirect/settings.yml /etc/yunohost/apps/syncthing/settings.yml
2021-12-26 13:27:30,449: DEBUG - ++ return 0
2021-12-26 13:27:30,450: DEBUG - ++ echo 22000
2021-12-26 13:27:30,450: DEBUG - + sync_port=22000
2021-12-26 13:27:30,450: DEBUG - + ynh_app_setting_set --app=syncthing --key=sync_port --value=22000
2021-12-26 13:27:30,451: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:30,550: DEBUG - + app=syncthing
2021-12-26 13:27:30,550: DEBUG - + [[ sync_port =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:30,551: DEBUG - + ynh_app_setting set syncthing sync_port 22000
2021-12-26 13:27:30,686: INFO - [###++...............] > Configuring firewall...
2021-12-26 13:27:30,687: DEBUG - + ynh_exec_warn_less yunohost firewall allow TCP 22000
2021-12-26 13:27:30,687: DEBUG - + [[ 5 -eq 1 ]]
2021-12-26 13:27:30,687: DEBUG - + yunohost firewall allow TCP 22000
2021-12-26 13:27:31,513: DEBUG - Pare-feu rechargé
2021-12-26 13:27:31,521: DEBUG - opened_ports:
2021-12-26 13:27:31,522: DEBUG - - 22
2021-12-26 13:27:31,522: DEBUG - - 25
2021-12-26 13:27:31,522: DEBUG - - 80
2021-12-26 13:27:31,522: DEBUG - - 443
2021-12-26 13:27:31,522: DEBUG - - 587
2021-12-26 13:27:31,522: DEBUG - - 993
2021-12-26 13:27:31,523: DEBUG - - 1194
2021-12-26 13:27:31,523: DEBUG - - 5222
2021-12-26 13:27:31,523: DEBUG - - 5269
2021-12-26 13:27:31,523: DEBUG - - 22000
2021-12-26 13:27:31,648: INFO - [#####+..............] > Configuring system user...
2021-12-26 13:27:31,649: DEBUG - + ynh_system_user_create --username=syncthing --home_dir=/var/www/syncthing
2021-12-26 13:27:31,752: DEBUG - + use_shell=0
2021-12-26 13:27:31,752: DEBUG - + home_dir=/var/www/syncthing
2021-12-26 13:27:31,752: DEBUG - + groups=
2021-12-26 13:27:31,753: DEBUG - + ynh_system_user_exists syncthing
2021-12-26 13:27:31,768: DEBUG - + getent passwd syncthing
2021-12-26 13:27:31,775: DEBUG - + '[' -n /var/www/syncthing ']'
2021-12-26 13:27:31,776: DEBUG - + local 'user_home_dir=--home-dir /var/www/syncthing'
2021-12-26 13:27:31,776: DEBUG - + local 'shell=--shell /usr/sbin/nologin'
2021-12-26 13:27:31,776: DEBUG - + useradd --home-dir /var/www/syncthing --system --user-group syncthing --shell /usr/sbin/nologin
2021-12-26 13:27:31,900: INFO - [######+.............] > Setting up source files...
2021-12-26 13:27:31,901: DEBUG - + ynh_app_setting_set --app=syncthing --key=final_path --value=/var/www/syncthing
2021-12-26 13:27:31,901: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:32,008: DEBUG - + app=syncthing
2021-12-26 13:27:32,008: DEBUG - + [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:32,008: DEBUG - + ynh_app_setting set syncthing final_path /var/www/syncthing
2021-12-26 13:27:32,076: DEBUG - + ynh_setup_source --dest_dir=/var/www/syncthing --source_id=amd64
2021-12-26 13:27:32,139: DEBUG - + source_id=amd64
2021-12-26 13:27:32,139: DEBUG - + keep=
2021-12-26 13:27:32,140: DEBUG - + local src_file_path=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,141: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,141: DEBUG - ++ grep SOURCE_URL= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,145: DEBUG - + local src_url=https://github.com/syncthing/syncthing/releases/download/v1.18.4/syncthing-linux-amd64-v1.18.4.tar.gz
2021-12-26 13:27:32,146: DEBUG - ++ grep SOURCE_SUM= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,147: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,150: DEBUG - + local src_sum=bc43dfb1ab62222933c564822b892515fc724cdddf789a3eebc9ecd902f515df
2021-12-26 13:27:32,152: DEBUG - ++ grep SOURCE_SUM_PRG= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,152: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,155: DEBUG - + local src_sumprg=sha256sum
2021-12-26 13:27:32,156: DEBUG - ++ grep SOURCE_FORMAT= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,157: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,159: DEBUG - + local src_format=tar.gz
2021-12-26 13:27:32,160: DEBUG - ++ grep SOURCE_EXTRACT= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,161: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,163: DEBUG - + local src_extract=
2021-12-26 13:27:32,164: DEBUG - ++ grep SOURCE_IN_SUBDIR= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,165: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,167: DEBUG - + local src_in_subdir=true
2021-12-26 13:27:32,169: DEBUG - ++ grep SOURCE_FILENAME= /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/amd64.src
2021-12-26 13:27:32,169: DEBUG - ++ cut --delimiter== --fields=2-
2021-12-26 13:27:32,172: DEBUG - + local src_filename=
2021-12-26 13:27:32,172: DEBUG - + src_sumprg=sha256sum
2021-12-26 13:27:32,173: DEBUG - + src_in_subdir=true
2021-12-26 13:27:32,173: DEBUG - + src_format=tar.gz
2021-12-26 13:27:32,173: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2021-12-26 13:27:32,174: DEBUG - ++ echo tar.gz
2021-12-26 13:27:32,176: DEBUG - + src_format=tar.gz
2021-12-26 13:27:32,176: DEBUG - + src_extract=true
2021-12-26 13:27:32,176: DEBUG - + '[' '' = '' ']'
2021-12-26 13:27:32,177: DEBUG - + src_filename=amd64.tar.gz
2021-12-26 13:27:32,177: DEBUG - + local local_src=/opt/yunohost-apps-src/syncthing/amd64.tar.gz
2021-12-26 13:27:32,177: DEBUG - + mkdir -p /var/cache/yunohost/download/syncthing/
2021-12-26 13:27:32,179: DEBUG - + src_filename=/var/cache/yunohost/download/syncthing/amd64.tar.gz
2021-12-26 13:27:32,179: DEBUG - + test -e /opt/yunohost-apps-src/syncthing/amd64.tar.gz
2021-12-26 13:27:32,179: DEBUG - + '[' -n https://github.com/syncthing/syncthing/releases/download/v1.18.4/syncthing-linux-amd64-v1.18.4.tar.gz ']'
2021-12-26 13:27:32,180: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=/var/cache/yunohost/download/syncthing/amd64.tar.gz https://github.com/syncthing/syncthing/releases/download/v1.18.4/syncthing-linux-amd64-v1.18.4.tar.gz
2021-12-26 13:27:33,565: DEBUG - + out='2021-12-26 13:27:33 URL:https://objects.githubusercontent.com/github-production-release-asset-2e65be/14712850/8a5970c3-7771-42e0-8d73-62dd5b2e85f0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20211226%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20211226T122732Z&X-Amz-Expires=300&X-Amz-Signature=0c155d6512c8e9ba34c0366a1f7a54ad9f24a2de1b6c6d77120d97ae76990fc8&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=14712850&response-content-disposition=attachment%3B%20filename%3Dsyncthing-linux-amd64-v1.18.4.tar.gz&response-content-type=application%2Foctet-stream [9705759/9705759] -> "/var/cache/yunohost/download/syncthing/amd64.tar.gz" [1]'
2021-12-26 13:27:33,566: DEBUG - + sha256sum --check --status
2021-12-26 13:27:33,653: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-12-26 13:27:33,654: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:33,654: DEBUG - + mkdir --parents /var/www/syncthing
2021-12-26 13:27:33,656: DEBUG - + '[' -n /var/www/syncthing ']'
2021-12-26 13:27:33,656: DEBUG - + '[' /var/www/syncthing == /var/www/syncthing ']'
2021-12-26 13:27:33,656: DEBUG - + _ynh_apply_default_permissions /var/www/syncthing
2021-12-26 13:27:33,657: DEBUG - + local target=/var/www/syncthing
2021-12-26 13:27:33,657: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/manifest.json
2021-12-26 13:27:33,657: DEBUG - ++ tr -d '>= '
2021-12-26 13:27:33,663: DEBUG - + local ynh_requirement=4.3.0
2021-12-26 13:27:33,664: DEBUG - + '[' -z 4.3.0 ']'
2021-12-26 13:27:33,664: DEBUG - + '[' 4.3.0 == null ']'
2021-12-26 13:27:33,664: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2021-12-26 13:27:33,667: DEBUG - + chmod o-rwx /var/www/syncthing
2021-12-26 13:27:33,668: DEBUG - + chmod g-w /var/www/syncthing
2021-12-26 13:27:33,669: DEBUG - + chown -R root:root /var/www/syncthing
2021-12-26 13:27:33,673: DEBUG - + ynh_system_user_exists syncthing
2021-12-26 13:27:33,686: DEBUG - + getent passwd syncthing
2021-12-26 13:27:33,692: DEBUG - + chown syncthing:syncthing /var/www/syncthing
2021-12-26 13:27:33,697: DEBUG - + true
2021-12-26 13:27:33,697: DEBUG - + '[' tar.gz = zip ']'
2021-12-26 13:27:33,697: DEBUG - + local strip=
2021-12-26 13:27:33,698: DEBUG - + '[' true '!=' false ']'
2021-12-26 13:27:33,698: DEBUG - + '[' true == true ']'
2021-12-26 13:27:33,698: DEBUG - + local sub_dirs=1
2021-12-26 13:27:33,698: DEBUG - + strip='--strip-components 1'
2021-12-26 13:27:33,698: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2021-12-26 13:27:33,699: DEBUG - + tar --extract --file=/var/cache/yunohost/download/syncthing/amd64.tar.gz --directory=/var/www/syncthing --strip-components 1
2021-12-26 13:27:33,929: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/syncthing/amd64.tar.gz
2021-12-26 13:27:33,957: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/sources/patches/ ']'
2021-12-26 13:27:33,958: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/sources/extra_files/amd64
2021-12-26 13:27:33,958: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:33,958: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2021-12-26 13:27:33,959: DEBUG - + chmod 750 /var/www/syncthing
2021-12-26 13:27:33,960: DEBUG - + chmod -R o-rwx /var/www/syncthing
2021-12-26 13:27:33,962: DEBUG - + chown -R syncthing:syncthing /var/www/syncthing
2021-12-26 13:27:34,048: INFO - [#######+............] > Configuring NGINX web server...
2021-12-26 13:27:34,049: DEBUG - + ynh_add_nginx_config
2021-12-26 13:27:34,049: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,049: DEBUG - + '[' /syncthing '!=' / ']'
2021-12-26 13:27:34,050: DEBUG - + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf
2021-12-26 13:27:34,174: DEBUG - + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf
2021-12-26 13:27:34,178: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf --destination=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,230: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf//var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf ']'
2021-12-26 13:27:34,230: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf ']'
2021-12-26 13:27:34,231: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf
2021-12-26 13:27:34,231: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,247: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf
2021-12-26 13:27:34,248: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf
2021-12-26 13:27:34,249: DEBUG - ++ local _globalapp=syncthing
2021-12-26 13:27:34,301: DEBUG - ++ app=syncthing
2021-12-26 13:27:34,302: DEBUG - ++ [[ checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:34,302: DEBUG - ++ ynh_app_setting get syncthing checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf
2021-12-26 13:27:34,367: DEBUG - + local checksum_value=
2021-12-26 13:27:34,367: DEBUG - + backup_file_checksum=
2021-12-26 13:27:34,368: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:34,368: DEBUG - + touch /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,369: DEBUG - + chown root:root /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,370: DEBUG - + chmod 640 /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,371: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/nginx.conf /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,373: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,374: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,375: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/manifest.json
2021-12-26 13:27:34,375: DEBUG - ++ tr -d '>= '
2021-12-26 13:27:34,381: DEBUG - + local ynh_requirement=4.3.0
2021-12-26 13:27:34,381: DEBUG - + '[' -z 4.3.0 ']'
2021-12-26 13:27:34,382: DEBUG - + '[' 4.3.0 == null ']'
2021-12-26 13:27:34,382: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2021-12-26 13:27:34,385: DEBUG - + chmod o-rwx /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,386: DEBUG - + chmod g-w /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,388: DEBUG - + chown -R root:root /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,389: DEBUG - + ynh_system_user_exists syncthing
2021-12-26 13:27:34,406: DEBUG - + getent passwd syncthing
2021-12-26 13:27:34,408: DEBUG - + chown syncthing:syncthing /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,410: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,426: DEBUG - + test -n /syncthing
2021-12-26 13:27:34,427: DEBUG - + local path_url_slash_less=/syncthing
2021-12-26 13:27:34,427: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/syncthing/ --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,546: DEBUG - + sed --in-place s@__PATH__/@/syncthing/@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,549: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/syncthing --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,671: DEBUG - + sed --in-place s@__PATH__@/syncthing@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,675: DEBUG - + test -n syncthing
2021-12-26 13:27:34,676: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=syncthing --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,792: DEBUG - + sed --in-place s@__NAME__@syncthing@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,795: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=syncthing --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,915: DEBUG - + sed --in-place s@__NAMETOCHANGE__@syncthing@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:34,917: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=syncthing --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,028: DEBUG - + sed --in-place s@__USER__@syncthing@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,031: DEBUG - + test -n /var/www/syncthing
2021-12-26 13:27:35,031: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/syncthing --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,161: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/syncthing@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,164: DEBUG - + test -n 7.3
2021-12-26 13:27:35,164: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,278: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,281: DEBUG - + test -n ''
2021-12-26 13:27:35,281: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g"))
2021-12-26 13:27:35,282: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,283: DEBUG - ++ sort --unique
2021-12-26 13:27:35,283: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-12-26 13:27:35,287: DEBUG - + local delimit=@
2021-12-26 13:27:35,287: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-12-26 13:27:35,287: DEBUG - + [[ -v gui_port ]]
2021-12-26 13:27:35,288: DEBUG - + match_string=__GUI_PORT__
2021-12-26 13:27:35,288: DEBUG - + match_string=__GUI_PORT__
2021-12-26 13:27:35,288: DEBUG - + replace_string=8384
2021-12-26 13:27:35,288: DEBUG - + replace_string=8384
2021-12-26 13:27:35,288: DEBUG - + replace_string=8384
2021-12-26 13:27:35,288: DEBUG - + sed --in-place s@__GUI_PORT__@8384@g /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,289: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,291: DEBUG - + update_only=0
2021-12-26 13:27:35,318: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf
2021-12-26 13:27:35,320: DEBUG - ++ md5sum /etc/nginx/conf.d/maindomain.tld.d/syncthing.conf
2021-12-26 13:27:35,320: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-12-26 13:27:35,323: DEBUG - + ynh_app_setting_set --app=syncthing --key=checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf --value=91050425d525def6b6c5cbbfb94f5723
2021-12-26 13:27:35,323: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:35,433: DEBUG - + app=syncthing
2021-12-26 13:27:35,434: DEBUG - + [[ checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:35,434: DEBUG - + ynh_app_setting set syncthing checksum__etc_nginx_conf.d_maindomain.tld.d_syncthing.conf 91050425d525def6b6c5cbbfb94f5723
2021-12-26 13:27:35,503: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:35,503: DEBUG - + unset backup_file_checksum
2021-12-26 13:27:35,503: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2021-12-26 13:27:35,638: DEBUG - + service_name=nginx
2021-12-26 13:27:35,639: DEBUG - + action=reload
2021-12-26 13:27:35,639: DEBUG - + line_match=
2021-12-26 13:27:35,639: DEBUG - + length=20
2021-12-26 13:27:35,640: DEBUG - + log_path=/var/log/nginx/nginx.log
2021-12-26 13:27:35,640: DEBUG - + timeout=300
2021-12-26 13:27:35,640: DEBUG - + '[' reload == stop ']'
2021-12-26 13:27:35,641: DEBUG - + '[' reload == reload ']'
2021-12-26 13:27:35,641: DEBUG - + action=reload-or-restart
2021-12-26 13:27:35,641: DEBUG - + systemctl reload-or-restart nginx
2021-12-26 13:27:35,808: INFO - [########++..........] > Creating sync directory...
2021-12-26 13:27:35,809: DEBUG - + sync_home=/home/yunohost.app/syncthing
2021-12-26 13:27:35,809: DEBUG - + ynh_app_setting_set --app=syncthing --key=sync_home --value=/home/yunohost.app/syncthing
2021-12-26 13:27:35,809: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:35,916: DEBUG - + app=syncthing
2021-12-26 13:27:35,917: DEBUG - + [[ sync_home =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:35,917: DEBUG - + ynh_app_setting set syncthing sync_home /home/yunohost.app/syncthing
2021-12-26 13:27:35,984: DEBUG - + mkdir -p /home/yunohost.app/syncthing
2021-12-26 13:27:35,986: DEBUG - + chmod 750 /home/yunohost.app/syncthing
2021-12-26 13:27:35,988: DEBUG - + chmod -R o-rwx /home/yunohost.app/syncthing
2021-12-26 13:27:35,989: DEBUG - + chown -R syncthing:syncthing /home/yunohost.app/syncthing
2021-12-26 13:27:36,061: INFO - [##########+.........] > Adding a config file...
2021-12-26 13:27:36,062: DEBUG - + mkdir -p /var/www/syncthing/.config/syncthing
2021-12-26 13:27:36,063: DEBUG - + config_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,063: DEBUG - + ynh_add_config --template=../conf/config.xml --destination=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,123: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/../conf/config.xml ']'
2021-12-26 13:27:36,123: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/../conf/config.xml
2021-12-26 13:27:36,123: DEBUG - + ynh_backup_if_checksum_is_different --file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,139: DEBUG - + local checksum_setting_name=checksum__var_www_syncthing_.config_syncthing_config.xml
2021-12-26 13:27:36,139: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=checksum__var_www_syncthing_.config_syncthing_config.xml
2021-12-26 13:27:36,140: DEBUG - ++ local _globalapp=syncthing
2021-12-26 13:27:36,204: DEBUG - ++ app=syncthing
2021-12-26 13:27:36,204: DEBUG - ++ [[ checksum__var_www_syncthing_.config_syncthing_config.xml =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:36,205: DEBUG - ++ ynh_app_setting get syncthing checksum__var_www_syncthing_.config_syncthing_config.xml
2021-12-26 13:27:36,274: DEBUG - + local checksum_value=
2021-12-26 13:27:36,275: DEBUG - + backup_file_checksum=
2021-12-26 13:27:36,275: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:36,275: DEBUG - + touch /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,276: DEBUG - + chown root:root /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,277: DEBUG - + chmod 640 /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,279: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/../conf/config.xml /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,281: DEBUG - + _ynh_apply_default_permissions /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,281: DEBUG - + local target=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,282: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/manifest.json
2021-12-26 13:27:36,282: DEBUG - ++ tr -d '>= '
2021-12-26 13:27:36,287: DEBUG - + local ynh_requirement=4.3.0
2021-12-26 13:27:36,288: DEBUG - + '[' -z 4.3.0 ']'
2021-12-26 13:27:36,288: DEBUG - + '[' 4.3.0 == null ']'
2021-12-26 13:27:36,288: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2021-12-26 13:27:36,291: DEBUG - + chmod o-rwx /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,292: DEBUG - + chmod g-w /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,293: DEBUG - + chown -R root:root /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,295: DEBUG - + ynh_system_user_exists syncthing
2021-12-26 13:27:36,310: DEBUG - + getent passwd syncthing
2021-12-26 13:27:36,312: DEBUG - + chown syncthing:syncthing /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,313: DEBUG - + ynh_replace_vars --file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,332: DEBUG - + test -n /syncthing
2021-12-26 13:27:36,333: DEBUG - + local path_url_slash_less=/syncthing
2021-12-26 13:27:36,333: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/syncthing/ --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,440: DEBUG - + sed --in-place s@__PATH__/@/syncthing/@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,443: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/syncthing --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,556: DEBUG - + sed --in-place s@__PATH__@/syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,559: DEBUG - + test -n syncthing
2021-12-26 13:27:36,559: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=syncthing --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,691: DEBUG - + sed --in-place s@__NAME__@syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,694: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=syncthing --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,804: DEBUG - + sed --in-place s@__NAMETOCHANGE__@syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,806: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=syncthing --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,906: DEBUG - + sed --in-place s@__USER__@syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:36,908: DEBUG - + test -n /var/www/syncthing
2021-12-26 13:27:36,908: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/syncthing --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,014: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,016: DEBUG - + test -n 7.3
2021-12-26 13:27:37,016: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,137: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,139: DEBUG - + test -n ''
2021-12-26 13:27:37,139: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g"))
2021-12-26 13:27:37,141: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,141: DEBUG - ++ sort --unique
2021-12-26 13:27:37,142: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-12-26 13:27:37,147: DEBUG - + local delimit=@
2021-12-26 13:27:37,147: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-12-26 13:27:37,147: DEBUG - + [[ -v gui_port ]]
2021-12-26 13:27:37,148: DEBUG - + match_string=__GUI_PORT__
2021-12-26 13:27:37,148: DEBUG - + match_string=__GUI_PORT__
2021-12-26 13:27:37,148: DEBUG - + replace_string=8384
2021-12-26 13:27:37,148: DEBUG - + replace_string=8384
2021-12-26 13:27:37,148: DEBUG - + replace_string=8384
2021-12-26 13:27:37,149: DEBUG - + sed --in-place s@__GUI_PORT__@8384@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,150: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-12-26 13:27:37,150: DEBUG - + [[ -v sync_home ]]
2021-12-26 13:27:37,150: DEBUG - + match_string=__SYNC_HOME__
2021-12-26 13:27:37,151: DEBUG - + match_string=__SYNC_HOME__
2021-12-26 13:27:37,151: DEBUG - + replace_string=/home/yunohost.app/syncthing
2021-12-26 13:27:37,151: DEBUG - + replace_string=/home/yunohost.app/syncthing
2021-12-26 13:27:37,151: DEBUG - + replace_string=/home/yunohost.app/syncthing
2021-12-26 13:27:37,151: DEBUG - + sed --in-place s@__SYNC_HOME__@/home/yunohost.app/syncthing@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,153: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-12-26 13:27:37,153: DEBUG - + [[ -v sync_port ]]
2021-12-26 13:27:37,154: DEBUG - + match_string=__SYNC_PORT__
2021-12-26 13:27:37,154: DEBUG - + match_string=__SYNC_PORT__
2021-12-26 13:27:37,154: DEBUG - + replace_string=22000
2021-12-26 13:27:37,154: DEBUG - + replace_string=22000
2021-12-26 13:27:37,154: DEBUG - + replace_string=22000
2021-12-26 13:27:37,154: DEBUG - + sed --in-place s@__SYNC_PORT__@22000@g /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,156: DEBUG - + ynh_store_file_checksum --file=/var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,157: DEBUG - + update_only=0
2021-12-26 13:27:37,185: DEBUG - + local checksum_setting_name=checksum__var_www_syncthing_.config_syncthing_config.xml
2021-12-26 13:27:37,186: DEBUG - ++ md5sum /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,186: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-12-26 13:27:37,189: DEBUG - + ynh_app_setting_set --app=syncthing --key=checksum__var_www_syncthing_.config_syncthing_config.xml --value=2f195e442a7925779644e054d94b76f7
2021-12-26 13:27:37,190: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:37,294: DEBUG - + app=syncthing
2021-12-26 13:27:37,294: DEBUG - + [[ checksum__var_www_syncthing_.config_syncthing_config.xml =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:37,294: DEBUG - + ynh_app_setting set syncthing checksum__var_www_syncthing_.config_syncthing_config.xml 2f195e442a7925779644e054d94b76f7
2021-12-26 13:27:37,362: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:37,362: DEBUG - + unset backup_file_checksum
2021-12-26 13:27:37,362: DEBUG - + chmod 400 /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,363: DEBUG - + chown syncthing:syncthing /var/www/syncthing/.config/syncthing/config.xml
2021-12-26 13:27:37,442: DEBUG - + ynh_add_systemd_config
2021-12-26 13:27:37,445: DEBUG - + service=syncthing
2021-12-26 13:27:37,445: DEBUG - + template=systemd.service
2021-12-26 13:27:37,445: DEBUG - + others_var=
2021-12-26 13:27:37,446: DEBUG - + [[ -z '' ]]
2021-12-26 13:27:37,446: DEBUG - + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/systemd.service --destination=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,449: INFO - [###########+........] > Configuring a systemd service...
2021-12-26 13:27:37,490: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf//var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/systemd.service ']'
2021-12-26 13:27:37,491: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/systemd.service ']'
2021-12-26 13:27:37,491: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/systemd.service
2021-12-26 13:27:37,491: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,510: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_syncthing.service
2021-12-26 13:27:37,510: DEBUG - ++ ynh_app_setting_get --app=syncthing --key=checksum__etc_systemd_system_syncthing.service
2021-12-26 13:27:37,511: DEBUG - ++ local _globalapp=syncthing
2021-12-26 13:27:37,565: DEBUG - ++ app=syncthing
2021-12-26 13:27:37,566: DEBUG - ++ [[ checksum__etc_systemd_system_syncthing.service =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:37,566: DEBUG - ++ ynh_app_setting get syncthing checksum__etc_systemd_system_syncthing.service
2021-12-26 13:27:37,635: DEBUG - + local checksum_value=
2021-12-26 13:27:37,636: DEBUG - + backup_file_checksum=
2021-12-26 13:27:37,636: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:37,636: DEBUG - + touch /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,637: DEBUG - + chown root:root /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,638: DEBUG - + chmod 640 /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,640: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/conf/systemd.service /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,642: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,642: DEBUG - + local target=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,643: DEBUG - ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_0apoxp1s/manifest.json
2021-12-26 13:27:37,643: DEBUG - ++ tr -d '>= '
2021-12-26 13:27:37,648: DEBUG - + local ynh_requirement=4.3.0
2021-12-26 13:27:37,649: DEBUG - + '[' -z 4.3.0 ']'
2021-12-26 13:27:37,649: DEBUG - + '[' 4.3.0 == null ']'
2021-12-26 13:27:37,649: DEBUG - + dpkg --compare-versions 4.3.0 ge 4.2
2021-12-26 13:27:37,652: DEBUG - + chmod o-rwx /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,654: DEBUG - + chmod g-w /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,655: DEBUG - + chown -R root:root /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,657: DEBUG - + ynh_system_user_exists syncthing
2021-12-26 13:27:37,671: DEBUG - + getent passwd syncthing
2021-12-26 13:27:37,673: DEBUG - + chown syncthing:syncthing /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,676: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,693: DEBUG - + test -n /syncthing
2021-12-26 13:27:37,694: DEBUG - + local path_url_slash_less=/syncthing
2021-12-26 13:27:37,694: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/syncthing/ --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,811: DEBUG - + sed --in-place s@__PATH__/@/syncthing/@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,815: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/syncthing --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:37,920: DEBUG - + sed --in-place s@__PATH__@/syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:37,922: DEBUG - + test -n syncthing
2021-12-26 13:27:37,922: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=syncthing --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,031: DEBUG - + sed --in-place s@__NAME__@syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,034: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=syncthing --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,154: DEBUG - + sed --in-place s@__NAMETOCHANGE__@syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,156: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=syncthing --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,268: DEBUG - + sed --in-place s@__USER__@syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,271: DEBUG - + test -n /var/www/syncthing
2021-12-26 13:27:38,271: DEBUG - + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/var/www/syncthing --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,381: DEBUG - + sed --in-place s@__FINALPATH__@/var/www/syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,385: DEBUG - + test -n 7.3
2021-12-26 13:27:38,385: DEBUG - + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,508: DEBUG - + sed --in-place s@__PHPVERSION__@7.3@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,511: DEBUG - + test -n ''
2021-12-26 13:27:38,512: DEBUG - + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g"))
2021-12-26 13:27:38,513: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,514: DEBUG - ++ sort --unique
2021-12-26 13:27:38,514: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2021-12-26 13:27:38,519: DEBUG - + local delimit=@
2021-12-26 13:27:38,519: DEBUG - + for one_var in "${uniques_vars[@]}"
2021-12-26 13:27:38,520: DEBUG - + [[ -v app ]]
2021-12-26 13:27:38,520: DEBUG - + match_string=__APP__
2021-12-26 13:27:38,520: DEBUG - + match_string=__APP__
2021-12-26 13:27:38,520: DEBUG - + replace_string=syncthing
2021-12-26 13:27:38,521: DEBUG - + replace_string=syncthing
2021-12-26 13:27:38,521: DEBUG - + replace_string=syncthing
2021-12-26 13:27:38,521: DEBUG - + sed --in-place s@__APP__@syncthing@g /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,522: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/syncthing.service
2021-12-26 13:27:38,524: DEBUG - + update_only=0
2021-12-26 13:27:38,552: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_syncthing.service
2021-12-26 13:27:38,553: DEBUG - ++ md5sum /etc/systemd/system/syncthing.service
2021-12-26 13:27:38,554: DEBUG - ++ cut '--delimiter= ' --fields=1
2021-12-26 13:27:38,557: DEBUG - + ynh_app_setting_set --app=syncthing --key=checksum__etc_systemd_system_syncthing.service --value=c20088e7591afd1676a19aae4e23f318
2021-12-26 13:27:38,558: DEBUG - + local _globalapp=syncthing
2021-12-26 13:27:38,680: DEBUG - + app=syncthing
2021-12-26 13:27:38,681: DEBUG - + [[ checksum__etc_systemd_system_syncthing.service =~ (unprotected|protected|skipped)_ ]]
2021-12-26 13:27:38,681: DEBUG - + ynh_app_setting set syncthing checksum__etc_systemd_system_syncthing.service c20088e7591afd1676a19aae4e23f318
2021-12-26 13:27:38,751: DEBUG - + '[' -n '' ']'
2021-12-26 13:27:38,751: DEBUG - + unset backup_file_checksum
2021-12-26 13:27:38,752: DEBUG - + systemctl enable syncthing --quiet
2021-12-26 13:27:39,054: DEBUG - + systemctl daemon-reload
2021-12-26 13:27:39,438: INFO - [############+.......] > Fixing listening service...
2021-12-26 13:27:39,438: DEBUG - + chown -R syncthing: /var/www/syncthing
2021-12-26 13:27:39,443: DEBUG - + ynh_systemd_action --service_name=syncthing --action=start --log_path=systemd '--line_match=Access the GUI via the following URL'
2021-12-26 13:27:39,708: DEBUG - + service_name=syncthing
2021-12-26 13:27:39,709: DEBUG - + action=start
2021-12-26 13:27:39,709: DEBUG - + line_match='Access the GUI via the following URL'
2021-12-26 13:27:39,709: DEBUG - + length=20
2021-12-26 13:27:39,709: DEBUG - + log_path=systemd
2021-12-26 13:27:39,709: DEBUG - + timeout=300
2021-12-26 13:27:39,710: DEBUG - + '[' start == stop ']'
2021-12-26 13:27:39,710: DEBUG - + [[ -n Access the GUI via the following URL ]]
2021-12-26 13:27:39,710: DEBUG - ++ mktemp
2021-12-26 13:27:39,710: DEBUG - + local templog=/tmp/tmp.BLAb7Yvnqn
2021-12-26 13:27:39,711: DEBUG - + '[' systemd == systemd ']'
2021-12-26 13:27:39,711: DEBUG - + local pid_tail=7613
2021-12-26 13:27:39,711: DEBUG - + journalctl --unit=syncthing --follow --since=-0 --quiet
2021-12-26 13:27:39,712: DEBUG - + '[' start == reload ']'
2021-12-26 13:27:39,712: DEBUG - + systemctl start syncthing
2021-12-26 14:33:27,660: WARNING - Job for syncthing.service canceled.
2021-12-26 14:33:27,661: DEBUG - + ynh_exec_err journalctl --quiet --no-hostname --no-pager --lines=20 --unit=syncthing
2021-12-26 14:33:27,661: DEBUG - + [[ 6 -eq 1 ]]
2021-12-26 14:33:27,661: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=syncthing
2021-12-26 14:33:27,672: DEBUG - + ynh_print_err 'déc. 26 13:25:45 systemd[1]: Failed to start syncthing.service.'
2021-12-26 14:33:27,697: DEBUG - + ynh_print_log '[Error] déc. 26 13:25:45 systemd[1]: Failed to start syncthing.service.'
2021-12-26 14:33:27,698: DEBUG - + echo -e '[Error] déc. 26 13:25:45 systemd[1]: Failed to start syncthing.service.'
2021-12-26 14:33:27,698: DEBUG - + '[' -e systemd ']'
2021-12-26 14:33:27,699: DEBUG - + ynh_clean_check_starting
2021-12-26 14:33:27,699: DEBUG - + '[' -n 7613 ']'
2021-12-26 14:33:27,699: DEBUG - + kill -SIGTERM 7613
2021-12-26 14:33:27,699: DEBUG - + '[' -n /tmp/tmp.BLAb7Yvnqn ']'
2021-12-26 14:33:27,700: DEBUG - + ynh_secure_remove --file=/tmp/tmp.BLAb7Yvnqn
2021-12-26 14:33:27,701: WARNING - [Error] déc. 26 13:25:45 systemd[1]: Failed to start syncthing.service.