Open tio-trom opened 3 years ago
Can you try to install from testing.
I tried here is the output:
sudo yunohost app install https://github.com/YunoHost-Apps/facilmap_ynh/tree/testing --debug
106 DEBUG initializing base actions map parser for cli
107 DEBUG loading actions map namespace 'yunohost'
109 DEBUG building parser...
119 DEBUG building parser took 0.010s
120 DEBUG acquiring lock...
128 DEBUG lock has been acquired
138 DEBUG loading python module yunohost.app took 0.010s
138 DEBUG processing action [9754.1]: yunohost.app.install with args={'app': 'https://github.com/YunoHost-Apps/facilmap_ynh/tree/testing', 'label': None, 'args': None, 'no_remove_on_failure': False, 'force': False}
DANGER! This app is not part of YunoHost's app catalog. Installing third-party apps may compromise the integrity and security of your system. You should probably NOT install it unless you know what you are doing. NO SUPPORT will be provided if this app doesn't work or breaks your system… If you are willing to take that risk anyway, type 'Yes, I understand': Yes, I understand
7153 DEBUG Downloading…
8176 DEBUG Done
8419 DEBUG Checking required packages for facilmap...
8429 DEBUG Checking that required services are up and running...
10105 DEBUG initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
Choose the domain where this app should be installed *********
Choose the path where this app should be installed (default: /example):
Should this app be exposed to anonymous visitors? [yes | no] (default: yes): yes
{'en': 'The following questions concern tokens of accounts to external services in order for facilmap to work. Some are optional and just improve the facilmap experience. You will need to subscribe to the services to create accounts in order to be able to have those tokens.', 'fr': "Les questions qui suivent concernent les tokens associés à des comptes liés à des services externes auxquels vous devriez souscrire en tant qu'administrateur de facilmap. Certains sont optionels et permettent simplement d'améliorer l'expérience de facilmap. Pour obtenir ces tokens, vous devrez créer des comptes chez les services correspondants."}
Enter value for 'ors_token'::
58697 DEBUG action [9754.1] executed in 58.559s
58698 DEBUG lock has been released
58698 ERROR Argument 'ors_token' is required
"Choose the path where this app should be installed (default: /example): " - I simply pressed enter since I wasn't sure what to add there. And the ors_token I have no idea what it is.
The token may have to do with this https://docs.facilmap.org/developers/server/config.html
So far the ors_token
and mapbox_token
arguments are marked as required, because routing in FacilMap would not work without them. I would prefer if FacilMap could be installed without providing the tokens, but as far as I'm aware YunoHost does not allow changing arugments after installing an app.
I'm not sure why the description of the argument does not show up in the install script.
And it works to install if I add random tokens:
"}
Enter value for 'ors_token':: ors
Enter value for 'mapbox_token':: ors
Enter value for 'mapzen_token':: ors
Enter value for 'maxmind_user_id':: ors
Enter value for 'maxmind_license_key':: ors
Enter value for 'user_agent':: ors
102030 INFO Installing facilmap...
102498 DEBUG Nothing to update in LDAP
102499 DEBUG Permission 'facilmap.main' updated
102903 DEBUG To view the log of the operation 'Update url related to permission 'facilmap'', use the command 'yunohost log show 20210626-210927-permission_url-facilmap20210626-210927-permission_url-facilmap'
103851 DEBUG The permission database has been resynchronized
104423 DEBUG SSOwat configuration regenerated
104935 DEBUG Permission 'facilmap.main' created
104935 DEBUG To view the log of the operation 'Create permission 'facilmap'', use the command 'yunohost log show 20210626-210927-permission_create-facilmap20210626-210927-permission_create-facilmap'
104946 DEBUG Executing command '/bin/bash -x "./install" 7>&1'
104951 DEBUG + source _common.sh
104951 DEBUG ++ pkg_dependencies=
104951 DEBUG ++ nodejs_version=14
104951 DEBUG ++ facilmap_version=3.3.0
104951 DEBUG + source /usr/share/yunohost/helpers
104952 DEBUG +++ set +o
104952 DEBUG +++ grep xtrace
104954 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
104954 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
104954 DEBUG ++ set +x
105002 DEBUG + ynh_abort_if_errors
105002 DEBUG + set -o errexit
105002 DEBUG + set -o nounset
105002 DEBUG + trap ynh_exit_properly EXIT
105002 DEBUG + domain=maps.trom.tf
105002 DEBUG + path_url=/ps
105003 DEBUG + is_public=1
105003 DEBUG + user_agent=ors
105003 DEBUG + ors_token=ors
105003 DEBUG + mapbox_token=ors
105003 DEBUG + mapzen_token=ors
105003 DEBUG + maxmind_user_id=ors
105003 DEBUG + maxmind_license_key=ors
105003 DEBUG + app=facilmap
105003 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1
105003 DEBUG + set +o xtrace
105089 DEBUG + set +o xtrace
105165 DEBUG + echo '! Helper used in legacy mode !'
105165 DEBUG + set +x
105167 DEBUG + echo '[....................] > Validating installation parameters...'
105167 DEBUG + set -o xtrace
105167 DEBUG + final_path=/opt/yunohost/facilmap
105167 DEBUG + test '!' -e /opt/yunohost/facilmap
105168 INFO [....................] > Validating installation parameters...
105169 DEBUG + ynh_webpath_register --app=facilmap --domain=maps.trom.tf --path_url=/ps
105169 DEBUG + local legacy_args=adp
105170 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=)
105170 DEBUG + local -A args_array
105170 DEBUG + local app
105170 DEBUG + local domain
105170 DEBUG + local path_url
105170 DEBUG + ynh_handle_getopts_args --app=facilmap --domain=maps.trom.tf --path_url=/ps
105171 DEBUG + set +o xtrace
105353 DEBUG + yunohost app register-url facilmap maps.trom.tf /ps
110714 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1
110716 DEBUG + set +o xtrace
110838 DEBUG + set +o xtrace
110855 DEBUG + echo '! Helper used in legacy mode !'
110855 DEBUG + set +x
110857 DEBUG + echo '[....................] > Storing installation settings...'
110858 INFO [....................] > Storing installation settings...
110858 DEBUG + set -o xtrace
110858 DEBUG + ynh_app_setting_set --app=facilmap --key=domain --value=maps.trom.tf
110858 DEBUG + local legacy_args=akv
110858 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
110859 DEBUG + local -A args_array
110859 DEBUG + local app
110859 DEBUG + local key
110859 DEBUG + local value
110859 DEBUG + ynh_handle_getopts_args --app=facilmap --key=domain --value=maps.trom.tf
110859 DEBUG + set +o xtrace
110985 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]]
110985 DEBUG + ynh_app_setting set facilmap domain maps.trom.tf
110986 DEBUG + set +o xtrace
111029 DEBUG + ynh_app_setting_set --app=facilmap --key=path --value=/ps
111029 DEBUG + local legacy_args=akv
111029 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
111029 DEBUG + local -A args_array
111029 DEBUG + local app
111029 DEBUG + local key
111030 DEBUG + local value
111030 DEBUG + ynh_handle_getopts_args --app=facilmap --key=path --value=/ps
111030 DEBUG + set +o xtrace
111134 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]]
111161 DEBUG + ynh_app_setting set facilmap path /ps
111162 DEBUG + set +o xtrace
111247 DEBUG + ynh_app_setting_set --app=facilmap --key=user_agent --value=ors
111247 DEBUG + local legacy_args=akv
111247 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
111248 DEBUG + local -A args_array
111248 DEBUG + local app
111248 DEBUG + local key
111248 DEBUG + local value
111248 DEBUG + ynh_handle_getopts_args --app=facilmap --key=user_agent --value=ors
111248 DEBUG + set +o xtrace
111367 DEBUG + [[ user_agent =~ (unprotected|protected|skipped)_ ]]
111368 DEBUG + ynh_app_setting set facilmap user_agent ors
111368 DEBUG + set +o xtrace
111424 DEBUG + ynh_app_setting_set --app=facilmap --key=ors_token --value=ors
111424 DEBUG + local legacy_args=akv
111424 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
111424 DEBUG + local -A args_array
111424 DEBUG + local app
111424 DEBUG + local key
111425 DEBUG + local value
111425 DEBUG + ynh_handle_getopts_args --app=facilmap --key=ors_token --value=ors
111425 DEBUG + set +o xtrace
111525 DEBUG + [[ ors_token =~ (unprotected|protected|skipped)_ ]]
111526 DEBUG + ynh_app_setting set facilmap ors_token ors
111526 DEBUG + set +o xtrace
111579 DEBUG + ynh_app_setting_set --app=facilmap --key=mapbox_token --value=ors
111579 DEBUG + local legacy_args=akv
111579 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
111579 DEBUG + local -A args_array
111580 DEBUG + local app
111580 DEBUG + local key
111580 DEBUG + local value
111580 DEBUG + ynh_handle_getopts_args --app=facilmap --key=mapbox_token --value=ors
111580 DEBUG + set +o xtrace
111731 DEBUG + [[ mapbox_token =~ (unprotected|protected|skipped)_ ]]
111732 DEBUG + ynh_app_setting set facilmap mapbox_token ors
111732 DEBUG + set +o xtrace
111824 DEBUG + ynh_app_setting_set --app=facilmap --key=mapzen_token --value=ors
111825 DEBUG + local legacy_args=akv
111825 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
111825 DEBUG + local -A args_array
111825 DEBUG + local app
111825 DEBUG + local key
111825 DEBUG + local value
111825 DEBUG + ynh_handle_getopts_args --app=facilmap --key=mapzen_token --value=ors
111825 DEBUG + set +o xtrace
111952 DEBUG + [[ mapzen_token =~ (unprotected|protected|skipped)_ ]]
111952 DEBUG + ynh_app_setting set facilmap mapzen_token ors
111952 DEBUG + set +o xtrace
112006 DEBUG + ynh_app_setting_set --app=facilmap --key=maxmind_user_id --value=ors
112006 DEBUG + local legacy_args=akv
112006 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
112006 DEBUG + local -A args_array
112007 DEBUG + local app
112007 DEBUG + local key
112007 DEBUG + local value
112007 DEBUG + ynh_handle_getopts_args --app=facilmap --key=maxmind_user_id --value=ors
112007 DEBUG + set +o xtrace
112200 DEBUG + [[ maxmind_user_id =~ (unprotected|protected|skipped)_ ]]
112200 DEBUG + ynh_app_setting set facilmap maxmind_user_id ors
112201 DEBUG + set +o xtrace
112266 DEBUG + ynh_app_setting_set --app=facilmap --key=maxmind_license_key --value=ors
112267 DEBUG + local legacy_args=akv
112267 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
112267 DEBUG + local -A args_array
112267 DEBUG + local app
112267 DEBUG + local key
112267 DEBUG + local value
112267 DEBUG + ynh_handle_getopts_args --app=facilmap --key=maxmind_license_key --value=ors
112268 DEBUG + set +o xtrace
112383 DEBUG + [[ maxmind_license_key =~ (unprotected|protected|skipped)_ ]]
112384 DEBUG + ynh_app_setting set facilmap maxmind_license_key ors
112384 DEBUG + set +o xtrace
112439 DEBUG + ynh_script_progression '--message=Finding an available port...' --weight=1
112439 DEBUG + set +o xtrace
112528 DEBUG + set +o xtrace
112547 DEBUG + echo '! Helper used in legacy mode !'
112547 DEBUG + set +x
112549 INFO [....................] > Finding an available port...
112550 DEBUG + echo '[....................] > Finding an available port...'
112550 DEBUG + set -o xtrace
112550 DEBUG ++ ynh_find_port --port=8080
112550 DEBUG ++ local legacy_args=p
112550 DEBUG ++ args_array=([p]=port=)
112551 DEBUG ++ local -A args_array
112551 DEBUG ++ local port
112551 DEBUG ++ ynh_handle_getopts_args --port=8080
112551 DEBUG ++ set +o xtrace
112571 DEBUG ++ test -n 8080
112571 DEBUG ++ ynh_port_available --port=8080
112572 DEBUG ++ local legacy_args=p
112573 DEBUG ++ args_array=([p]=port=)
112573 DEBUG ++ local -A args_array
112574 DEBUG ++ local port
112574 DEBUG ++ ynh_handle_getopts_args --port=8080
112574 DEBUG ++ set +o xtrace
112595 DEBUG ++ ss --numeric --listening --tcp --udp
112596 DEBUG ++ awk '{print$5}'
112597 DEBUG ++ grep --quiet --extended-regexp ':8080$'
112731 DEBUG ++ return 1
112731 DEBUG ++ port=8081
112731 DEBUG ++ ynh_port_available --port=8081
112732 DEBUG ++ local legacy_args=p
112732 DEBUG ++ args_array=([p]=port=)
112732 DEBUG ++ local -A args_array
112732 DEBUG ++ local port
112732 DEBUG ++ ynh_handle_getopts_args --port=8081
112732 DEBUG ++ set +o xtrace
112741 DEBUG ++ awk '{print$5}'
112741 DEBUG ++ grep --quiet --extended-regexp ':8081$'
112742 DEBUG ++ ss --numeric --listening --tcp --udp
112750 DEBUG ++ return 1
112750 DEBUG ++ port=8082
112750 DEBUG ++ ynh_port_available --port=8082
112750 DEBUG ++ local legacy_args=p
112750 DEBUG ++ args_array=([p]=port=)
112750 DEBUG ++ local -A args_array
112750 DEBUG ++ local port
112751 DEBUG ++ ynh_handle_getopts_args --port=8082
112751 DEBUG ++ set +o xtrace
112759 DEBUG ++ awk '{print$5}'
112759 DEBUG ++ grep --quiet --extended-regexp ':8082$'
112762 DEBUG ++ ss --numeric --listening --tcp --udp
112772 DEBUG ++ grep -q 'port: '\''8082'\''' /etc/yunohost/apps/archivist/settings.yml /etc/yunohost/apps/bibliogram/settings.yml /etc/yunohost/apps/cryptpad/settings.yml /etc/yunohost/apps/diagramsnet/settings.yml /etc/yunohost/apps/etherpad_mypads__2/settings.yml /etc/yunohost/apps/facilmap/settings.yml /etc/yunohost/apps/focalboard/settings.yml /etc/yunohost/apps/friendica/settings.yml /etc/yunohost/apps/invidious/settings.yml /etc/yunohost/apps/librespeed/settings.yml /etc/yunohost/apps/lufi/settings.yml /etc/yunohost/apps/my_webapp/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/nitter/settings.yml /etc/yunohost/apps/onlyoffice/settings.yml /etc/yunohost/apps/opensondage/settings.yml /etc/yunohost/apps/peertube/settings.yml /etc/yunohost/apps/qr/settings.yml /etc/yunohost/apps/rainloop/settings.yml /etc/yunohost/apps/redirect__10/settings.yml /etc/yunohost/apps/redirect__2/settings.yml /etc/yunohost/apps/redirect__3/settings.yml /etc/yunohost/apps/redirect__4/settings.yml /etc/yunohost/apps/redirect__5/settings.yml /etc/yunohost/apps/redirect__6/settings.yml /etc/yunohost/apps/redirect__7/settings.yml /etc/yunohost/apps/redirect__8/settings.yml /etc/yunohost/apps/redirect__9/settings.yml /etc/yunohost/apps/redirect/settings.yml /etc/yunohost/apps/rss-bridge/settings.yml /etc/yunohost/apps/searx/settings.yml /etc/yunohost/apps/wallabag2/settings.yml /etc/yunohost/apps/wemawema/settings.yml /etc/yunohost/apps/wordpress__10/settings.yml /etc/yunohost/apps/wordpress__2/settings.yml /etc/yunohost/apps/wordpress__3/settings.yml /etc/yunohost/apps/wordpress__4/settings.yml /etc/yunohost/apps/wordpress__5/settings.yml /etc/yunohost/apps/wordpress__6/settings.yml /etc/yunohost/apps/wordpress__7/settings.yml /etc/yunohost/apps/wordpress__8/settings.yml /etc/yunohost/apps/wordpress__9/settings.yml /etc/yunohost/apps/wordpress/settings.yml
112774 DEBUG ++ return 0
112774 DEBUG ++ echo 8082
112774 DEBUG + port=8082
112774 DEBUG + ynh_app_setting_set --app=facilmap --key=port --value=8082
112774 DEBUG + local legacy_args=akv
112775 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
112775 DEBUG + local -A args_array
112775 DEBUG + local app
112775 DEBUG + local key
112775 DEBUG + local value
112775 DEBUG + ynh_handle_getopts_args --app=facilmap --key=port --value=8082
112775 DEBUG + set +o xtrace
112892 DEBUG + [[ port =~ (unprotected|protected|skipped)_ ]]
112893 DEBUG + ynh_app_setting set facilmap port 8082
112893 DEBUG + set +o xtrace
112956 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=6
112956 DEBUG + set +o xtrace
113067 DEBUG + set +o xtrace
113080 DEBUG + echo '! Helper used in legacy mode !'
113081 DEBUG + set +x
113085 INFO [....................] > Installing dependencies...
113085 DEBUG + echo '[....................] > Installing dependencies...'
113086 DEBUG + set -o xtrace
113086 DEBUG + ynh_install_app_dependencies
113086 DEBUG + local dependencies=
113086 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
113086 DEBUG ++ echo ''
113087 DEBUG + dependencies=
113087 DEBUG + local dependencies=
113088 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/manifest.json
113088 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/manifest.json
113107 DEBUG + local version=3.3.0~ynh1
113107 DEBUG + '[' -z 3.3.0~ynh1 ']'
113107 DEBUG + '[' 3.3.0~ynh1 == null ']'
113107 DEBUG + local dep_app=facilmap
113107 DEBUG + [[ '' =~ [<=>] ]]
113107 DEBUG + grep --quiet php
113108 DEBUG + echo
113108 DEBUG + cat
113111 DEBUG + ynh_package_install_from_equivs /tmp/facilmap-ynh-deps.control
113111 DEBUG + local controlfile=/tmp/facilmap-ynh-deps.control
113112 DEBUG ++ grep '^Package: ' /tmp/facilmap-ynh-deps.control
113112 DEBUG ++ cut '--delimiter= ' --fields=2
113114 DEBUG + local pkgname=facilmap-ynh-deps
113115 DEBUG ++ grep '^Version: ' /tmp/facilmap-ynh-deps.control
113115 DEBUG ++ cut '--delimiter= ' --fields=2
113117 DEBUG + local pkgversion=3.3.0~ynh1
113118 DEBUG + [[ -z facilmap-ynh-deps ]]
113118 DEBUG + [[ -z 3.3.0~ynh1 ]]
113118 DEBUG + ynh_package_update
113118 DEBUG + ynh_apt update
113118 DEBUG + ynh_wait_dpkg_free
113118 DEBUG + local try
113118 DEBUG + set +o xtrace
115076 DEBUG + return 0
115076 DEBUG + LC_ALL=C
115076 DEBUG + DEBIAN_FRONTEND=noninteractive
115077 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
115402 DEBUG Hit:1 http://security.debian.org/debian-security buster/updates InRelease
115428 DEBUG Hit:2 http://asi-fs-n.contabo.net/debian buster InRelease
115429 DEBUG Hit:3 http://asi-fs-n.contabo.net/debian buster-updates InRelease
115471 DEBUG Hit:4 https://forge.yunohost.org/debian buster InRelease
115473 DEBUG Ign:5 http://packages.erlang-solutions.com/debian buster InRelease
115499 DEBUG Hit:6 http://download.onlyoffice.com/repo/debian squeeze InRelease
115523 DEBUG Hit:7 http://packages.erlang-solutions.com/debian buster Release
115598 DEBUG Hit:8 http://download.opensuse.org/repositories/devel:languages:crystal/Debian_10 InRelease
115996 DEBUG Ign:9 http://download.webmin.com/download/repository sarge InRelease
116154 DEBUG Hit:10 http://download.webmin.com/download/repository sarge Release
118511 DEBUG Reading package lists...
118582 DEBUG ++ mktemp --directory
118598 DEBUG + local TMPDIR=/tmp/tmp.HzU5XOXqKz
118601 DEBUG + echo 10
118624 DEBUG + ynh_wait_dpkg_free
118632 DEBUG + local try
118633 DEBUG + set +o xtrace
120117 DEBUG + return 0
120118 DEBUG + cp /tmp/facilmap-ynh-deps.control /tmp/tmp.HzU5XOXqKz/control
120127 DEBUG + cd /tmp/tmp.HzU5XOXqKz
120127 DEBUG + LC_ALL=C
120127 DEBUG + equivs-build ./control
122181 DEBUG + LC_ALL=C
122182 DEBUG + dpkg --force-depends --install ./facilmap-ynh-deps_3.3.0~ynh1_all.deb
122184 DEBUG + tee ./dpkg_log
122263 DEBUG Selecting previously unselected package facilmap-ynh-deps.
123548 DEBUG (Reading database ... 175366 files and directories currently installed.)
123559 DEBUG Preparing to unpack .../facilmap-ynh-deps_3.3.0~ynh1_all.deb ...
123565 DEBUG Unpacking facilmap-ynh-deps (3.3.0~ynh1) ...
123621 DEBUG Setting up facilmap-ynh-deps (3.3.0~ynh1) ...
123685 DEBUG + ynh_package_install --fix-broken
123686 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
123686 DEBUG + ynh_wait_dpkg_free
123686 DEBUG + local try
123686 DEBUG + set +o xtrace
124867 DEBUG + return 0
124867 DEBUG + LC_ALL=C
124867 DEBUG + DEBIAN_FRONTEND=noninteractive
124867 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
125143 DEBUG Reading package lists...
125485 DEBUG Building dependency tree...
125487 DEBUG Reading state information...
125838 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
125840 DEBUG + [[ -n /tmp/tmp.HzU5XOXqKz ]]
125840 DEBUG + rm --recursive --force /tmp/tmp.HzU5XOXqKz
125844 DEBUG + ynh_package_is_installed facilmap-ynh-deps
125845 DEBUG + local legacy_args=p
125845 DEBUG + args_array=([p]=package=)
125845 DEBUG + local -A args_array
125845 DEBUG + local package
125845 DEBUG + ynh_handle_getopts_args facilmap-ynh-deps
125845 DEBUG + set +o xtrace
125856 DEBUG + echo '! Helper used in legacy mode !'
125856 DEBUG + set +x
125887 DEBUG + ynh_wait_dpkg_free
125888 DEBUG + local try
125888 DEBUG + set +o xtrace
127253 DEBUG + return 0
127253 DEBUG + dpkg-query --show '--showformat=${Status}' facilmap-ynh-deps
127253 DEBUG + grep --count 'ok installed'
127275 DEBUG + rm /tmp/facilmap-ynh-deps.control
127277 DEBUG + ynh_app_setting_set --app=facilmap --key=apt_dependencies --value=
127277 DEBUG + local legacy_args=akv
127277 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
127278 DEBUG + local -A args_array
127278 DEBUG + local app
127278 DEBUG + local key
127278 DEBUG + local value
127278 DEBUG + ynh_handle_getopts_args --app=facilmap --key=apt_dependencies --value=
127278 DEBUG + set +o xtrace
127370 DEBUG + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
127370 DEBUG + ynh_app_setting set facilmap apt_dependencies ''
127370 DEBUG + set +o xtrace
127426 DEBUG + ynh_install_nodejs --nodejs_version=14
127426 DEBUG + local legacy_args=n
127426 DEBUG + args_array=([n]=nodejs_version=)
127426 DEBUG + local -A args_array
127426 DEBUG + local nodejs_version
127427 DEBUG + ynh_handle_getopts_args --nodejs_version=14
127427 DEBUG + set +o xtrace
127441 DEBUG + mkdir --parents /opt/node_n
127444 DEBUG + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
127445 DEBUG ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
127445 DEBUG ++ sed s@/usr/local/bin:@@
127448 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
127448 DEBUG + test -x /usr/bin/node
127449 DEBUG + mv /usr/bin/node /usr/bin/node_n
127456 DEBUG + test -x /usr/bin/npm
127460 DEBUG + mv /usr/bin/npm /usr/bin/npm_n
127462 DEBUG + /opt/node_n/bin/n --version
127478 DEBUG ++ /opt/node_n/bin/n --version
127486 DEBUG + dpkg --compare-versions 7.2.2 lt 7.2.2
127492 DEBUG + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
127492 DEBUG + local legacy_args=mrf
127492 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
127492 DEBUG + local -A args_array
127492 DEBUG + local match_string
127492 DEBUG + local replace_string
127493 DEBUG + local target_file
127493 DEBUG + ynh_handle_getopts_args '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
127493 DEBUG + set +o xtrace
127584 DEBUG + local delimit=@
127585 DEBUG + match_string='^N_PREFIX=${N_PREFIX-.*}$'
127585 DEBUG + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
127585 DEBUG + sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
127588 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
127588 DEBUG + test -x /usr/bin/node_n
127588 DEBUG + mv /usr/bin/node_n /usr/bin/node
127589 DEBUG + test -x /usr/bin/npm_n
127589 DEBUG + mv /usr/bin/npm_n /usr/bin/npm
127592 DEBUG ++ uname --machine
127594 DEBUG + uname=x86_64
127594 DEBUG + [[ x86_64 =~ aarch64 ]]
127594 DEBUG + [[ x86_64 =~ arm64 ]]
127594 DEBUG + n 14
133108 DEBUG installed : v14.17.1 (with npm 6.14.13)
133112 DEBUG ++ find /opt/node_n/n/versions/node/14 /opt/node_n/n/versions/node/14.15.5 /opt/node_n/n/versions/node/14.16.0 /opt/node_n/n/versions/node/14.16.1 /opt/node_n/n/versions/node/14.17.0 /opt/node_n/n/versions/node/14.17.1 -maxdepth 0
133112 DEBUG ++ sort --version-sort
133113 DEBUG ++ tail --lines=1
133119 DEBUG + real_nodejs_version=/opt/node_n/n/versions/node/14.17.1
133121 DEBUG ++ basename /opt/node_n/n/versions/node/14.17.1
133122 DEBUG + real_nodejs_version=14.17.1
133122 DEBUG + '[' '!' -e /opt/node_n/n/versions/node/14 ']'
133123 DEBUG + tee --append /opt/node_n/ynh_app_version
133123 DEBUG + echo facilmap:14
133123 DEBUG facilmap:14
133124 DEBUG + ynh_app_setting_set --app=facilmap --key=nodejs_version --value=14
133124 DEBUG + local legacy_args=akv
133125 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
133125 DEBUG + local -A args_array
133127 DEBUG + local app
133128 DEBUG + local key
133128 DEBUG + local value
133129 DEBUG + ynh_handle_getopts_args --app=facilmap --key=nodejs_version --value=14
133129 DEBUG + set +o xtrace
133213 DEBUG + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
133214 DEBUG + ynh_app_setting set facilmap nodejs_version 14
133214 DEBUG + set +o xtrace
133258 DEBUG + ynh_cron_upgrade_node
133258 DEBUG + cat
133261 DEBUG + chmod +x /opt/node_n/node_update.sh
133263 DEBUG + cat
133266 DEBUG + chmod +x /etc/cron.daily/node_update
133267 DEBUG + ynh_use_nodejs
133267 DEBUG ++ ynh_app_setting_get --app=facilmap --key=nodejs_version
133268 DEBUG ++ local legacy_args=ak
133268 DEBUG ++ args_array=([a]=app= [k]=key=)
133268 DEBUG ++ local -A args_array
133268 DEBUG ++ local app
133268 DEBUG ++ local key
133269 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=nodejs_version
133269 DEBUG ++ set +o xtrace
133309 DEBUG ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
133310 DEBUG ++ ynh_app_setting get facilmap nodejs_version
133310 DEBUG ++ set +o xtrace
133349 DEBUG + nodejs_version=14
133350 DEBUG + nodejs_path=/opt/node_n/n/versions/node/14/bin
133350 DEBUG + shopt -s expand_aliases
133350 DEBUG + ynh_node=/opt/node_n/n/versions/node/14/bin/node
133350 DEBUG + alias ynh_node=/opt/node_n/n/versions/node/14/bin/node
133350 DEBUG + ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
133350 DEBUG + alias ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
133350 DEBUG + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\4\/\b\i\n* ]]
133350 DEBUG + PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
133350 DEBUG + node_PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
133350 DEBUG + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
133351 DEBUG + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
133351 DEBUG + ynh_script_progression '--message=Creating a MySQL database...' --weight=2
133351 DEBUG + set +o xtrace
133422 DEBUG + set +o xtrace
133439 DEBUG + echo '! Helper used in legacy mode !'
133440 DEBUG + set +x
133442 DEBUG + echo '[....................] > Creating a MySQL database...'
133443 DEBUG + set -o xtrace
133443 INFO [....................] > Creating a MySQL database...
133444 DEBUG ++ ynh_sanitize_dbid --db_name=facilmap
133444 DEBUG ++ local legacy_args=n
133444 DEBUG ++ args_array=([n]=db_name=)
133444 DEBUG ++ local -A args_array
133444 DEBUG ++ local db_name
133444 DEBUG ++ ynh_handle_getopts_args --db_name=facilmap
133445 DEBUG ++ set +o xtrace
133474 DEBUG ++ echo facilmap
133475 DEBUG + db_name=facilmap
133475 DEBUG + db_user=facilmap
133476 DEBUG ++ ynh_app_setting_get --app=facilmap --key=mysqlpwd
133476 DEBUG ++ local legacy_args=ak
133476 DEBUG ++ args_array=([a]=app= [k]=key=)
133476 DEBUG ++ local -A args_array
133476 DEBUG ++ local app
133476 DEBUG ++ local key
133477 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=mysqlpwd
133477 DEBUG ++ set +o xtrace
133542 DEBUG ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
133542 DEBUG ++ ynh_app_setting get facilmap mysqlpwd
133542 DEBUG ++ set +o xtrace
133711 DEBUG + db_pwd=
133711 DEBUG + ynh_app_setting_set --app=facilmap --key=db_name --value=facilmap
133712 DEBUG + local legacy_args=akv
133712 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
133712 DEBUG + local -A args_array
133712 DEBUG + local app
133712 DEBUG + local key
133712 DEBUG + local value
133712 DEBUG + ynh_handle_getopts_args --app=facilmap --key=db_name --value=facilmap
133712 DEBUG + set +o xtrace
133853 DEBUG + [[ db_name =~ (unprotected|protected|skipped)_ ]]
133854 DEBUG + ynh_app_setting set facilmap db_name facilmap
133854 DEBUG + set +o xtrace
133943 DEBUG + ynh_mysql_setup_db --db_user=facilmap --db_name=facilmap
133944 DEBUG + local legacy_args=unp
133944 DEBUG + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
133944 DEBUG + local -A args_array
133944 DEBUG + local db_user
133944 DEBUG + local db_name
133944 DEBUG + db_pwd=
133944 DEBUG + ynh_handle_getopts_args --db_user=facilmap --db_name=facilmap
133944 DEBUG + set +o xtrace
134014 DEBUG ++ ynh_string_random
134014 DEBUG ++ local legacy_args=l
134014 DEBUG ++ args_array=([l]=length=)
134014 DEBUG ++ local -A args_array
134014 DEBUG ++ local length
134015 DEBUG ++ ynh_handle_getopts_args
134015 DEBUG ++ set +o xtrace
134015 DEBUG ++ length=24
134015 DEBUG ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
134015 DEBUG ++ tr --complement --delete A-Za-z0-9
134016 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
134026 DEBUG + local new_db_pwd=vO5FvjEcNHLhNxjOG4HyxYkt
134026 DEBUG + db_pwd=vO5FvjEcNHLhNxjOG4HyxYkt
134026 DEBUG + ynh_mysql_create_db facilmap facilmap vO5FvjEcNHLhNxjOG4HyxYkt
134026 DEBUG + local db=facilmap
134026 DEBUG + local 'sql=CREATE DATABASE facilmap;'
134027 DEBUG + [[ 3 -gt 1 ]]
134027 DEBUG + sql+=' GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'''
134027 DEBUG + [[ -n vO5FvjEcNHLhNxjOG4HyxYkt ]]
134027 DEBUG + sql+=' IDENTIFIED BY '\''vO5FvjEcNHLhNxjOG4HyxYkt'\'''
134027 DEBUG + sql+=' WITH GRANT OPTION;'
134027 DEBUG + ynh_mysql_execute_as_root '--sql=CREATE DATABASE facilmap; GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'' IDENTIFIED BY '\''vO5FvjEcNHLhNxjOG4HyxYkt'\'' WITH GRANT OPTION;'
134027 DEBUG + local legacy_args=sd
134028 DEBUG + args_array=([s]=sql= [d]=database=)
134028 DEBUG + local -A args_array
134028 DEBUG + local sql
134028 DEBUG + local database
134028 DEBUG + ynh_handle_getopts_args '--sql=CREATE DATABASE facilmap; GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'' IDENTIFIED BY '\''vO5FvjEcNHLhNxjOG4HyxYkt'\'' WITH GRANT OPTION;'
134028 DEBUG + set +o xtrace
134042 DEBUG + database=
134043 DEBUG + '[' -n '' ']'
134043 DEBUG + mysql -B ''
134105 DEBUG + ynh_app_setting_set --app=facilmap --key=mysqlpwd --value=vO5FvjEcNHLhNxjOG4HyxYkt
134106 DEBUG + local legacy_args=akv
134106 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
134106 DEBUG + local -A args_array
134106 DEBUG + local app
134106 DEBUG + local key
134106 DEBUG + local value
134106 DEBUG + ynh_handle_getopts_args --app=facilmap --key=mysqlpwd --value=vO5FvjEcNHLhNxjOG4HyxYkt
134106 DEBUG + set +o xtrace
134200 DEBUG + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
134201 DEBUG + ynh_app_setting set facilmap mysqlpwd vO5FvjEcNHLhNxjOG4HyxYkt
134201 DEBUG + set +o xtrace
134249 DEBUG + echo 'ALTER DATABASE facilmap CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci'
134249 DEBUG + ynh_mysql_connect_as --user=facilmap --password=vO5FvjEcNHLhNxjOG4HyxYkt --database=facilmap
134249 DEBUG + local legacy_args=upd
134249 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
134249 DEBUG + local -A args_array
134249 DEBUG + local user
134250 DEBUG + local password
134250 DEBUG + local database
134250 DEBUG + ynh_handle_getopts_args --user=facilmap --password=vO5FvjEcNHLhNxjOG4HyxYkt --database=facilmap
134250 DEBUG + set +o xtrace
134346 DEBUG + database=facilmap
134355 DEBUG + mysql --user=facilmap --password=vO5FvjEcNHLhNxjOG4HyxYkt --batch facilmap
134370 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1
134370 DEBUG + set +o xtrace
134611 DEBUG + set +o xtrace
134629 DEBUG + echo '! Helper used in legacy mode !'
134629 DEBUG + set +x
134631 INFO [....................] > Configuring system user...
134631 DEBUG + echo '[....................] > Configuring system user...'
134631 DEBUG + set -o xtrace
134631 DEBUG + ynh_system_user_create --username=facilmap --home_dir=/opt/yunohost/facilmap
134631 DEBUG + local legacy_args=uhs
134632 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=)
134632 DEBUG + local -A args_array
134632 DEBUG + local username
134632 DEBUG + local home_dir
134632 DEBUG + local use_shell
134632 DEBUG + local groups
134632 DEBUG + ynh_handle_getopts_args --username=facilmap --home_dir=/opt/yunohost/facilmap
134632 DEBUG + set +o xtrace
134813 DEBUG + use_shell=0
134813 DEBUG + home_dir=/opt/yunohost/facilmap
134813 DEBUG + groups=
134813 DEBUG + ynh_system_user_exists facilmap
134813 DEBUG + local legacy_args=u
134813 DEBUG + args_array=([u]=username=)
134814 DEBUG + local -A args_array
134814 DEBUG + local username
134814 DEBUG + ynh_handle_getopts_args facilmap
134814 DEBUG + set +o xtrace
134871 DEBUG + echo '! Helper used in legacy mode !'
134871 DEBUG + set +x
134871 DEBUG + getent passwd facilmap
134893 DEBUG + '[' -n /opt/yunohost/facilmap ']'
134893 DEBUG + local 'user_home_dir=--home-dir /opt/yunohost/facilmap'
134894 DEBUG + '[' 0 -eq 1 ']'
134894 DEBUG + local 'shell=--shell /usr/sbin/nologin'
134894 DEBUG + useradd --home-dir /opt/yunohost/facilmap --system --user-group facilmap --shell /usr/sbin/nologin
135098 DEBUG + local group
135098 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=100
135098 DEBUG + set +o xtrace
135188 DEBUG + set +o xtrace
135232 DEBUG + echo '! Helper used in legacy mode !'
135232 DEBUG + set +x
135235 INFO [++++++..............] > Setting up source files...
135236 DEBUG + echo '[++++++..............] > Setting up source files...'
135236 DEBUG + set -o xtrace
135236 DEBUG + ynh_app_setting_set --app=facilmap --key=final_path --value=/opt/yunohost/facilmap
135236 DEBUG + local legacy_args=akv
135236 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
135237 DEBUG + local -A args_array
135237 DEBUG + local app
135237 DEBUG + local key
135238 DEBUG + local value
135238 DEBUG + ynh_handle_getopts_args --app=facilmap --key=final_path --value=/opt/yunohost/facilmap
135238 DEBUG + set +o xtrace
135374 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]]
135375 DEBUG + ynh_app_setting set facilmap final_path /opt/yunohost/facilmap
135375 DEBUG + set +o xtrace
135438 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=2
135439 DEBUG + set +o xtrace
135562 DEBUG + set +o xtrace
135661 DEBUG + echo '! Helper used in legacy mode !'
135662 DEBUG + set +x
135664 DEBUG + echo '[######..............] > Configuring NGINX web server...'
135666 DEBUG + set -o xtrace
135666 DEBUG + ynh_add_nginx_config
135666 DEBUG + local finalnginxconf=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
135673 DEBUG + '[' /ps '!=' / ']'
135674 DEBUG + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf
135674 DEBUG + local legacy_args=mrf
135674 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
135675 DEBUG + local -A args_array
135675 DEBUG + local match_string
135676 DEBUG + local replace_string
135676 DEBUG + local target_file
135676 DEBUG + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf
135677 DEBUG + set +o xtrace
135677 INFO [######..............] > Configuring NGINX web server...
135830 DEBUG + local delimit=@
135830 DEBUG + match_string='^#sub_path_only'
135830 DEBUG + replace_string=
135830 DEBUG + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf
135835 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf --destination=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
135836 DEBUG + local legacy_args=tdv
135836 DEBUG + args_array=([t]=template= [d]=destination=)
135837 DEBUG + local -A args_array
135837 DEBUG + local template
135837 DEBUG + local destination
135837 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf --destination=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
135837 DEBUG + set +o xtrace
135900 DEBUG + local template_path
135900 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf//var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf ']'
135900 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf ']'
135900 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf
135900 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
135900 DEBUG + local legacy_args=f
135900 DEBUG + args_array=([f]=file=)
135900 DEBUG + local -A args_array
135901 DEBUG + local file
135901 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
135901 DEBUG + set +o xtrace
135926 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
135927 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
135927 DEBUG ++ local legacy_args=ak
135927 DEBUG ++ args_array=([a]=app= [k]=key=)
135927 DEBUG ++ local -A args_array
135927 DEBUG ++ local app
135927 DEBUG ++ local key
135927 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
135928 DEBUG ++ set +o xtrace
136008 DEBUG ++ [[ checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf =~ (unprotected|protected|skipped)_ ]]
136009 DEBUG ++ ynh_app_setting get facilmap checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
136009 DEBUG ++ set +o xtrace
136064 DEBUG + local checksum_value=
136064 DEBUG + backup_file_checksum=
136064 DEBUG + '[' -n '' ']'
136064 DEBUG + touch /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136065 DEBUG + chown root:root /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136081 DEBUG + chmod 640 /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136084 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/nginx.conf /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136106 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136106 DEBUG + local target=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136107 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/manifest.json
136107 DEBUG ++ tr -d '>= '
136115 DEBUG + local ynh_requirement=4.2.4
136132 DEBUG + '[' -z 4.2.4 ']'
136132 DEBUG + '[' 4.2.4 == null ']'
136132 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
136132 DEBUG + chmod o-rwx /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136134 DEBUG + chmod g-w /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136172 DEBUG + chown -R root:root /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136176 DEBUG + ynh_system_user_exists facilmap
136177 DEBUG + local legacy_args=u
136177 DEBUG + args_array=([u]=username=)
136178 DEBUG + local -A args_array
136178 DEBUG + local username
136178 DEBUG + ynh_handle_getopts_args facilmap
136178 DEBUG + set +o xtrace
136188 DEBUG + echo '! Helper used in legacy mode !'
136188 DEBUG + set +x
136191 DEBUG + getent passwd facilmap
136196 DEBUG + chown facilmap:facilmap /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136200 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136207 DEBUG + local legacy_args=f
136207 DEBUG + args_array=([f]=file=)
136208 DEBUG + local -A args_array
136208 DEBUG + local file
136208 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136208 DEBUG + set +o xtrace
136214 DEBUG + test -n /ps
136215 DEBUG + local path_url_slash_less=/ps
136215 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ps/ --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136215 DEBUG + local legacy_args=mrf
136215 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
136215 DEBUG + local -A args_array
136216 DEBUG + local match_string
136216 DEBUG + local replace_string
136216 DEBUG + local target_file
136216 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ps/ --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136216 DEBUG + set +o xtrace
136396 DEBUG + local delimit=@
136396 DEBUG + match_string=__PATH__/
136397 DEBUG + replace_string=/ps/
136397 DEBUG + sed --in-place s@__PATH__/@/ps/@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136405 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ps --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136406 DEBUG + local legacy_args=mrf
136406 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
136406 DEBUG + local -A args_array
136406 DEBUG + local match_string
136406 DEBUG + local replace_string
136407 DEBUG + local target_file
136407 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ps --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136407 DEBUG + set +o xtrace
136680 DEBUG + local delimit=@
136681 DEBUG + match_string=__PATH__
136681 DEBUG + replace_string=/ps
136681 DEBUG + sed --in-place s@__PATH__@/ps@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136693 DEBUG + test -n facilmap
136693 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136694 DEBUG + local legacy_args=mrf
136694 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
136694 DEBUG + local -A args_array
136694 DEBUG + local match_string
136694 DEBUG + local replace_string
136694 DEBUG + local target_file
136694 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
136694 DEBUG + set +o xtrace
137091 DEBUG + local delimit=@
137091 DEBUG + match_string=__NAME__
137091 DEBUG + replace_string=facilmap
137091 DEBUG + sed --in-place s@__NAME__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137096 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137096 DEBUG + local legacy_args=mrf
137096 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
137097 DEBUG + local -A args_array
137097 DEBUG + local match_string
137097 DEBUG + local replace_string
137097 DEBUG + local target_file
137097 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137097 DEBUG + set +o xtrace
137260 DEBUG + local delimit=@
137261 DEBUG + match_string=__NAMETOCHANGE__
137263 DEBUG + replace_string=facilmap
137265 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137266 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137267 DEBUG + local legacy_args=mrf
137268 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
137275 DEBUG + local -A args_array
137277 DEBUG + local match_string
137277 DEBUG + local replace_string
137278 DEBUG + local target_file
137279 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137279 DEBUG + set +o xtrace
137502 DEBUG + local delimit=@
137502 DEBUG + match_string=__USER__
137502 DEBUG + replace_string=facilmap
137503 DEBUG + sed --in-place s@__USER__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137503 DEBUG + test -n /opt/yunohost/facilmap
137504 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137504 DEBUG + local legacy_args=mrf
137505 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
137505 DEBUG + local -A args_array
137505 DEBUG + local match_string
137505 DEBUG + local replace_string
137505 DEBUG + local target_file
137505 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137509 DEBUG + set +o xtrace
137654 DEBUG + local delimit=@
137654 DEBUG + match_string=__FINALPATH__
137654 DEBUG + replace_string=/opt/yunohost/facilmap
137654 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137656 DEBUG + test -n 7.3
137657 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137657 DEBUG + local legacy_args=mrf
137657 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
137657 DEBUG + local -A args_array
137660 DEBUG + local match_string
137660 DEBUG + local replace_string
137660 DEBUG + local target_file
137660 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137660 DEBUG + set +o xtrace
137796 DEBUG + local delimit=@
137797 DEBUG + match_string=__PHPVERSION__
137797 DEBUG + replace_string=7.3
137797 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137799 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
137799 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137800 DEBUG + local legacy_args=mrf
137801 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
137803 DEBUG + local -A args_array
137803 DEBUG + local match_string
137804 DEBUG + local replace_string
137804 DEBUG + local target_file
137804 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
137804 DEBUG + set +o xtrace
138162 DEBUG + local delimit=@
138163 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
138163 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
138163 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138163 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
138182 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138182 DEBUG ++ sort --unique
138182 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
138198 DEBUG + local uniques_vars
138198 DEBUG + local delimit=@
138199 DEBUG + for one_var in "${uniques_vars[@]}"
138199 DEBUG + [[ -v port ]]
138199 DEBUG + match_string=__PORT__
138199 DEBUG + match_string=__PORT__
138199 DEBUG + replace_string=8082
138199 DEBUG + replace_string=8082
138199 DEBUG + replace_string=8082
138199 DEBUG + sed --in-place s@__PORT__@8082@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138220 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138226 DEBUG + local legacy_args=f
138226 DEBUG + args_array=([f]=file=)
138227 DEBUG + local -A args_array
138227 DEBUG + local file
138227 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138227 DEBUG + set +o xtrace
138256 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
138256 DEBUG ++ cut '--delimiter= ' --fields=1
138272 DEBUG ++ md5sum /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
138273 DEBUG + ynh_app_setting_set --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf --value=aea5a2c2afc9f8157ea99a43e69ea122
138273 DEBUG + local legacy_args=akv
138273 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
138273 DEBUG + local -A args_array
138273 DEBUG + local app
138273 DEBUG + local key
138273 DEBUG + local value
138274 DEBUG + ynh_handle_getopts_args --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf --value=aea5a2c2afc9f8157ea99a43e69ea122
138274 DEBUG + set +o xtrace
138657 DEBUG + [[ checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf =~ (unprotected|protected|skipped)_ ]]
138658 DEBUG + ynh_app_setting set facilmap checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf aea5a2c2afc9f8157ea99a43e69ea122
138658 DEBUG + set +o xtrace
138743 DEBUG + '[' -n '' ']'
138743 DEBUG + unset backup_file_checksum
138743 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
138743 DEBUG + local legacy_args=nalpte
138743 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
138743 DEBUG + local -A args_array
138743 DEBUG + local service_name
138744 DEBUG + local action
138744 DEBUG + local line_match
138744 DEBUG + local length
138744 DEBUG + local log_path
138744 DEBUG + local timeout
138744 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
138744 DEBUG + set +o xtrace
139078 DEBUG + service_name=nginx
139078 DEBUG + action=reload
139078 DEBUG + line_match=
139078 DEBUG + length=20
139078 DEBUG + log_path=/var/log/nginx/nginx.log
139079 DEBUG + timeout=300
139079 DEBUG + '[' reload == stop ']'
139079 DEBUG + [[ -n '' ]]
139079 DEBUG + '[' reload == reload ']'
139079 DEBUG + action=reload-or-restart
139079 DEBUG + systemctl reload-or-restart nginx
139718 DEBUG + [[ -n '' ]]
139721 DEBUG + ynh_script_progression '--message=Building node dependencies...' --weight=200
139721 DEBUG + set +o xtrace
140221 DEBUG + set +o xtrace
140291 DEBUG + echo '! Helper used in legacy mode !'
140296 DEBUG + set +x
140299 DEBUG + echo '[######++++++++++++..] > Building node dependencies...'
140299 DEBUG + set -o xtrace
140300 DEBUG + mkdir -p /opt/yunohost/facilmap
140300 INFO [######++++++++++++..] > Building node dependencies...
140302 DEBUG + chown -R facilmap /opt/yunohost/facilmap
140310 DEBUG + pushd /opt/yunohost/facilmap
140311 DEBUG /opt/yunohost/facilmap /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/scripts
140311 DEBUG + ynh_exec_as facilmap PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/node_n/n/versions/node/14/bin/npm install --prefix /opt/yunohost/facilmap -g facilmap-server@3.3.0
140311 DEBUG + local user=facilmap
140311 DEBUG + shift 1
140312 DEBUG ++ whoami
140345 DEBUG + [[ facilmap = root ]]
140345 DEBUG + sudo -u facilmap PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/node_n/n/versions/node/14/bin/npm install --prefix /opt/yunohost/facilmap -g facilmap-server@3.3.0
180148 DEBUG /opt/yunohost/facilmap/bin/facilmap-server -> /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/server.js
180348 DEBUG
180348 DEBUG > bootstrap-vue@2.21.2 postinstall /opt/yunohost/facilmap/lib/node_modules/facilmap-server/node_modules/bootstrap-vue
180348 DEBUG > opencollective || exit 0
180348 DEBUG
183483 DEBUG Thanks for installing bootstrap-vue
183484 DEBUG Please consider donating to our open collective
183484 DEBUG to help us maintain this package.
183484 DEBUG
183484 DEBUG
183485 DEBUG Donate: https://opencollective.com/bootstrap-vue/donate
183485 DEBUG
185615 DEBUG + facilmap-server@3.3.0
185615 DEBUG added 432 packages from 386 contributors in 44.256s
185666 DEBUG + popd
185667 DEBUG /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/scripts
185667 DEBUG + chmod 750 /opt/yunohost/facilmap
185676 DEBUG + chmod -R o-rwx /opt/yunohost/facilmap
185872 DEBUG + chown -R facilmap:www-data /opt/yunohost/facilmap
185984 DEBUG + ynh_script_progression '--message=Configuring a systemd service...' --weight=2
185984 DEBUG + set +o xtrace
186080 DEBUG + set +o xtrace
186090 DEBUG + echo '! Helper used in legacy mode !'
186090 DEBUG + set +x
186092 DEBUG + echo '[##################+.] > Configuring a systemd service...'
186092 DEBUG + set -o xtrace
186092 DEBUG + ynh_add_systemd_config
186092 DEBUG + local legacy_args=stv
186092 DEBUG + args_array=([s]=service= [t]=template= [v]=others_var=)
186093 DEBUG + local -A args_array
186093 DEBUG + local service
186093 DEBUG + local template
186093 DEBUG + local others_var
186093 DEBUG + ynh_handle_getopts_args
186093 DEBUG + set +o xtrace
186093 DEBUG + service=facilmap
186093 DEBUG + template=systemd.service
186093 DEBUG + others_var=
186093 DEBUG + [[ -z '' ]]
186093 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service --destination=/etc/systemd/system/facilmap.service
186093 DEBUG + local legacy_args=tdv
186094 DEBUG + args_array=([t]=template= [d]=destination=)
186094 DEBUG + local -A args_array
186094 DEBUG + local template
186094 DEBUG + local destination
186094 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service --destination=/etc/systemd/system/facilmap.service
186094 DEBUG + set +o xtrace
186094 INFO [##################+.] > Configuring a systemd service...
186124 DEBUG + local template_path
186124 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf//var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service ']'
186124 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service ']'
186124 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service
186125 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/facilmap.service
186125 DEBUG + local legacy_args=f
186125 DEBUG + args_array=([f]=file=)
186125 DEBUG + local -A args_array
186125 DEBUG + local file
186125 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
186125 DEBUG + set +o xtrace
186134 DEBUG + local checksum_setting_name=checksum__etc_systemd_system_facilmap.service
186138 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__etc_systemd_system_facilmap.service
186138 DEBUG ++ local legacy_args=ak
186138 DEBUG ++ args_array=([a]=app= [k]=key=)
186138 DEBUG ++ local -A args_array
186138 DEBUG ++ local app
186138 DEBUG ++ local key
186138 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__etc_systemd_system_facilmap.service
186138 DEBUG ++ set +o xtrace
186178 DEBUG ++ [[ checksum__etc_systemd_system_facilmap.service =~ (unprotected|protected|skipped)_ ]]
186179 DEBUG ++ ynh_app_setting get facilmap checksum__etc_systemd_system_facilmap.service
186179 DEBUG ++ set +o xtrace
186232 DEBUG + local checksum_value=
186233 DEBUG + backup_file_checksum=
186233 DEBUG + '[' -n '' ']'
186233 DEBUG + touch /etc/systemd/system/facilmap.service
186233 DEBUG + chown root:root /etc/systemd/system/facilmap.service
186234 DEBUG + chmod 640 /etc/systemd/system/facilmap.service
186239 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/systemd.service /etc/systemd/system/facilmap.service
186240 DEBUG + _ynh_apply_default_permissions /etc/systemd/system/facilmap.service
186240 DEBUG + local target=/etc/systemd/system/facilmap.service
186240 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/manifest.json
186241 DEBUG ++ tr -d '>= '
186245 DEBUG + local ynh_requirement=4.2.4
186245 DEBUG + '[' -z 4.2.4 ']'
186246 DEBUG + '[' 4.2.4 == null ']'
186246 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
186247 DEBUG + chmod o-rwx /etc/systemd/system/facilmap.service
186255 DEBUG + chmod g-w /etc/systemd/system/facilmap.service
186257 DEBUG + chown -R root:root /etc/systemd/system/facilmap.service
186259 DEBUG + ynh_system_user_exists facilmap
186260 DEBUG + local legacy_args=u
186261 DEBUG + args_array=([u]=username=)
186261 DEBUG + local -A args_array
186261 DEBUG + local username
186261 DEBUG + ynh_handle_getopts_args facilmap
186261 DEBUG + set +o xtrace
186276 DEBUG + echo '! Helper used in legacy mode !'
186276 DEBUG + set +x
186277 DEBUG + getent passwd facilmap
186283 DEBUG + chown facilmap:facilmap /etc/systemd/system/facilmap.service
186288 DEBUG + ynh_replace_vars --file=/etc/systemd/system/facilmap.service
186288 DEBUG + local legacy_args=f
186289 DEBUG + args_array=([f]=file=)
186289 DEBUG + local -A args_array
186289 DEBUG + local file
186290 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
186290 DEBUG + set +o xtrace
186309 DEBUG + test -n /ps
186309 DEBUG + local path_url_slash_less=/ps
186309 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ps/ --target_file=/etc/systemd/system/facilmap.service
186310 DEBUG + local legacy_args=mrf
186310 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186310 DEBUG + local -A args_array
186310 DEBUG + local match_string
186310 DEBUG + local replace_string
186310 DEBUG + local target_file
186310 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ps/ --target_file=/etc/systemd/system/facilmap.service
186310 DEBUG + set +o xtrace
186376 DEBUG + local delimit=@
186376 DEBUG + match_string=__PATH__/
186376 DEBUG + replace_string=/ps/
186376 DEBUG + sed --in-place s@__PATH__/@/ps/@g /etc/systemd/system/facilmap.service
186379 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ps --target_file=/etc/systemd/system/facilmap.service
186379 DEBUG + local legacy_args=mrf
186379 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186379 DEBUG + local -A args_array
186379 DEBUG + local match_string
186379 DEBUG + local replace_string
186379 DEBUG + local target_file
186380 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ps --target_file=/etc/systemd/system/facilmap.service
186380 DEBUG + set +o xtrace
186464 DEBUG + local delimit=@
186464 DEBUG + match_string=__PATH__
186464 DEBUG + replace_string=/ps
186465 DEBUG + sed --in-place s@__PATH__@/ps@g /etc/systemd/system/facilmap.service
186466 DEBUG + test -n facilmap
186466 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186466 DEBUG + local legacy_args=mrf
186466 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186466 DEBUG + local -A args_array
186466 DEBUG + local match_string
186467 DEBUG + local replace_string
186467 DEBUG + local target_file
186467 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186467 DEBUG + set +o xtrace
186529 DEBUG + local delimit=@
186530 DEBUG + match_string=__NAME__
186530 DEBUG + replace_string=facilmap
186530 DEBUG + sed --in-place s@__NAME__@facilmap@g /etc/systemd/system/facilmap.service
186531 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186532 DEBUG + local legacy_args=mrf
186532 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186532 DEBUG + local -A args_array
186532 DEBUG + local match_string
186532 DEBUG + local replace_string
186532 DEBUG + local target_file
186532 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186532 DEBUG + set +o xtrace
186580 DEBUG + local delimit=@
186580 DEBUG + match_string=__NAMETOCHANGE__
186580 DEBUG + replace_string=facilmap
186580 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /etc/systemd/system/facilmap.service
186582 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186582 DEBUG + local legacy_args=mrf
186582 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186582 DEBUG + local -A args_array
186582 DEBUG + local match_string
186582 DEBUG + local replace_string
186582 DEBUG + local target_file
186582 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
186582 DEBUG + set +o xtrace
186636 DEBUG + local delimit=@
186637 DEBUG + match_string=__USER__
186637 DEBUG + replace_string=facilmap
186637 DEBUG + sed --in-place s@__USER__@facilmap@g /etc/systemd/system/facilmap.service
186639 DEBUG + test -n /opt/yunohost/facilmap
186639 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/systemd/system/facilmap.service
186639 DEBUG + local legacy_args=mrf
186639 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186639 DEBUG + local -A args_array
186639 DEBUG + local match_string
186639 DEBUG + local replace_string
186639 DEBUG + local target_file
186639 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/systemd/system/facilmap.service
186639 DEBUG + set +o xtrace
186696 DEBUG + local delimit=@
186696 DEBUG + match_string=__FINALPATH__
186696 DEBUG + replace_string=/opt/yunohost/facilmap
186696 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /etc/systemd/system/facilmap.service
186698 DEBUG + test -n 7.3
186698 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/facilmap.service
186698 DEBUG + local legacy_args=mrf
186699 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186699 DEBUG + local -A args_array
186699 DEBUG + local match_string
186699 DEBUG + local replace_string
186699 DEBUG + local target_file
186699 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/facilmap.service
186699 DEBUG + set +o xtrace
186769 DEBUG + local delimit=@
186770 DEBUG + match_string=__PHPVERSION__
186770 DEBUG + replace_string=7.3
186770 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/systemd/system/facilmap.service
186772 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
186772 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/facilmap.service
186773 DEBUG + local legacy_args=mrf
186773 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
186773 DEBUG + local -A args_array
186773 DEBUG + local match_string
186773 DEBUG + local replace_string
186773 DEBUG + local target_file
186773 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/facilmap.service
186773 DEBUG + set +o xtrace
186878 DEBUG + local delimit=@
186878 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
186878 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
186878 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/systemd/system/facilmap.service
186881 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
186882 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/facilmap.service
186882 DEBUG ++ sort --unique
186882 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
186885 DEBUG + local uniques_vars
186885 DEBUG + local delimit=@
186886 DEBUG + for one_var in "${uniques_vars[@]}"
186886 DEBUG + [[ -v app ]]
186886 DEBUG + match_string=__APP__
186886 DEBUG + match_string=__APP__
186886 DEBUG + replace_string=facilmap
186886 DEBUG + replace_string=facilmap
186886 DEBUG + replace_string=facilmap
186886 DEBUG + sed --in-place s@__APP__@facilmap@g /etc/systemd/system/facilmap.service
186888 DEBUG + ynh_store_file_checksum --file=/etc/systemd/system/facilmap.service
186888 DEBUG + local legacy_args=f
186888 DEBUG + args_array=([f]=file=)
186889 DEBUG + local -A args_array
186889 DEBUG + local file
186889 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
186889 DEBUG + set +o xtrace
186903 DEBUG + local checksum_setting_name=checksum__etc_systemd_system_facilmap.service
186904 DEBUG ++ md5sum /etc/systemd/system/facilmap.service
186904 DEBUG ++ cut '--delimiter= ' --fields=1
186906 DEBUG + ynh_app_setting_set --app=facilmap --key=checksum__etc_systemd_system_facilmap.service --value=bee017d9de3bca998184be6672738eed
186907 DEBUG + local legacy_args=akv
186907 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
186907 DEBUG + local -A args_array
186907 DEBUG + local app
186908 DEBUG + local key
186908 DEBUG + local value
186908 DEBUG + ynh_handle_getopts_args --app=facilmap --key=checksum__etc_systemd_system_facilmap.service --value=bee017d9de3bca998184be6672738eed
186909 DEBUG + set +o xtrace
186999 DEBUG + [[ checksum__etc_systemd_system_facilmap.service =~ (unprotected|protected|skipped)_ ]]
186999 DEBUG + ynh_app_setting set facilmap checksum__etc_systemd_system_facilmap.service bee017d9de3bca998184be6672738eed
186999 DEBUG + set +o xtrace
187083 DEBUG + '[' -n '' ']'
187083 DEBUG + unset backup_file_checksum
187083 DEBUG + systemctl enable facilmap --quiet
187708 DEBUG + systemctl daemon-reload
187985 DEBUG + ynh_script_progression '--message=Adding configuration...' --weight=2
187985 DEBUG + set +o xtrace
188058 DEBUG + set +o xtrace
188078 DEBUG + echo '! Helper used in legacy mode !'
188078 DEBUG + set +x
188080 DEBUG + echo '[###################.] > Adding configuration...'
188080 DEBUG + set -o xtrace
188080 DEBUG + mkdir -p /opt/yunohost/facilmap/etc
188081 INFO [###################.] > Adding configuration...
188082 DEBUG + ynh_add_config --template=../conf/config.env --destination=/opt/yunohost/facilmap/etc/facilmap.env
188082 DEBUG + local legacy_args=tdv
188082 DEBUG + args_array=([t]=template= [d]=destination=)
188083 DEBUG + local -A args_array
188083 DEBUG + local template
188083 DEBUG + local destination
188083 DEBUG + ynh_handle_getopts_args --template=../conf/config.env --destination=/opt/yunohost/facilmap/etc/facilmap.env
188083 DEBUG + set +o xtrace
188115 DEBUG + local template_path
188116 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/../conf/config.env ']'
188116 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/../conf/config.env
188116 DEBUG + ynh_backup_if_checksum_is_different --file=/opt/yunohost/facilmap/etc/facilmap.env
188116 DEBUG + local legacy_args=f
188116 DEBUG + args_array=([f]=file=)
188116 DEBUG + local -A args_array
188116 DEBUG + local file
188116 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap/etc/facilmap.env
188116 DEBUG + set +o xtrace
188126 DEBUG + local checksum_setting_name=checksum__opt_yunohost_facilmap_etc_facilmap.env
188126 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env
188127 DEBUG ++ local legacy_args=ak
188127 DEBUG ++ args_array=([a]=app= [k]=key=)
188127 DEBUG ++ local -A args_array
188127 DEBUG ++ local app
188127 DEBUG ++ local key
188127 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env
188127 DEBUG ++ set +o xtrace
188154 DEBUG ++ [[ checksum__opt_yunohost_facilmap_etc_facilmap.env =~ (unprotected|protected|skipped)_ ]]
188154 DEBUG ++ ynh_app_setting get facilmap checksum__opt_yunohost_facilmap_etc_facilmap.env
188154 DEBUG ++ set +o xtrace
188197 DEBUG + local checksum_value=
188197 DEBUG + backup_file_checksum=
188198 DEBUG + '[' -n '' ']'
188198 DEBUG + touch /opt/yunohost/facilmap/etc/facilmap.env
188198 DEBUG + chown root:root /opt/yunohost/facilmap/etc/facilmap.env
188199 DEBUG + chmod 640 /opt/yunohost/facilmap/etc/facilmap.env
188200 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/conf/../conf/config.env /opt/yunohost/facilmap/etc/facilmap.env
188204 DEBUG + _ynh_apply_default_permissions /opt/yunohost/facilmap/etc/facilmap.env
188204 DEBUG + local target=/opt/yunohost/facilmap/etc/facilmap.env
188205 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_xq42778x/manifest.json
188206 DEBUG ++ tr -d '>= '
188208 DEBUG + local ynh_requirement=4.2.4
188209 DEBUG + '[' -z 4.2.4 ']'
188209 DEBUG + '[' 4.2.4 == null ']'
188209 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
188211 DEBUG + chmod o-rwx /opt/yunohost/facilmap/etc/facilmap.env
188212 DEBUG + chmod g-w /opt/yunohost/facilmap/etc/facilmap.env
188213 DEBUG + chown -R root:root /opt/yunohost/facilmap/etc/facilmap.env
188215 DEBUG + ynh_system_user_exists facilmap
188215 DEBUG + local legacy_args=u
188215 DEBUG + args_array=([u]=username=)
188215 DEBUG + local -A args_array
188215 DEBUG + local username
188215 DEBUG + ynh_handle_getopts_args facilmap
188215 DEBUG + set +o xtrace
188222 DEBUG + echo '! Helper used in legacy mode !'
188225 DEBUG + set +x
188227 DEBUG + getent passwd facilmap
188227 DEBUG + chown facilmap:facilmap /opt/yunohost/facilmap/etc/facilmap.env
188228 DEBUG + ynh_replace_vars --file=/opt/yunohost/facilmap/etc/facilmap.env
188228 DEBUG + local legacy_args=f
188228 DEBUG + args_array=([f]=file=)
188228 DEBUG + local -A args_array
188228 DEBUG + local file
188229 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap/etc/facilmap.env
188229 DEBUG + set +o xtrace
188238 DEBUG + test -n /ps
188239 DEBUG + local path_url_slash_less=/ps
188239 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/ps/ --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188239 DEBUG + local legacy_args=mrf
188239 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188239 DEBUG + local -A args_array
188239 DEBUG + local match_string
188239 DEBUG + local replace_string
188240 DEBUG + local target_file
188240 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/ps/ --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188240 DEBUG + set +o xtrace
188306 DEBUG + local delimit=@
188307 DEBUG + match_string=__PATH__/
188307 DEBUG + replace_string=/ps/
188307 DEBUG + sed --in-place s@__PATH__/@/ps/@g /opt/yunohost/facilmap/etc/facilmap.env
188308 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/ps --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188308 DEBUG + local legacy_args=mrf
188309 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188309 DEBUG + local -A args_array
188309 DEBUG + local match_string
188309 DEBUG + local replace_string
188309 DEBUG + local target_file
188309 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/ps --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188309 DEBUG + set +o xtrace
188368 DEBUG + local delimit=@
188368 DEBUG + match_string=__PATH__
188369 DEBUG + replace_string=/ps
188369 DEBUG + sed --in-place s@__PATH__@/ps@g /opt/yunohost/facilmap/etc/facilmap.env
188370 DEBUG + test -n facilmap
188370 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188371 DEBUG + local legacy_args=mrf
188371 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188371 DEBUG + local -A args_array
188371 DEBUG + local match_string
188371 DEBUG + local replace_string
188371 DEBUG + local target_file
188371 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188371 DEBUG + set +o xtrace
188434 DEBUG + local delimit=@
188434 DEBUG + match_string=__NAME__
188434 DEBUG + replace_string=facilmap
188434 DEBUG + sed --in-place s@__NAME__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188436 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188436 DEBUG + local legacy_args=mrf
188436 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188436 DEBUG + local -A args_array
188436 DEBUG + local match_string
188436 DEBUG + local replace_string
188436 DEBUG + local target_file
188437 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188437 DEBUG + set +o xtrace
188498 DEBUG + local delimit=@
188498 DEBUG + match_string=__NAMETOCHANGE__
188498 DEBUG + replace_string=facilmap
188498 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188499 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188500 DEBUG + local legacy_args=mrf
188500 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188500 DEBUG + local -A args_array
188500 DEBUG + local match_string
188500 DEBUG + local replace_string
188500 DEBUG + local target_file
188500 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188500 DEBUG + set +o xtrace
188562 DEBUG + local delimit=@
188563 DEBUG + match_string=__USER__
188563 DEBUG + replace_string=facilmap
188563 DEBUG + sed --in-place s@__USER__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188565 DEBUG + test -n /opt/yunohost/facilmap
188565 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188566 DEBUG + local legacy_args=mrf
188566 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188566 DEBUG + local -A args_array
188566 DEBUG + local match_string
188566 DEBUG + local replace_string
188566 DEBUG + local target_file
188566 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188566 DEBUG + set +o xtrace
188635 DEBUG + local delimit=@
188635 DEBUG + match_string=__FINALPATH__
188635 DEBUG + replace_string=/opt/yunohost/facilmap
188636 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188637 DEBUG + test -n 7.3
188637 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188637 DEBUG + local legacy_args=mrf
188637 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188637 DEBUG + local -A args_array
188637 DEBUG + local match_string
188637 DEBUG + local replace_string
188637 DEBUG + local target_file
188637 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188638 DEBUG + set +o xtrace
188724 DEBUG + local delimit=@
188724 DEBUG + match_string=__PHPVERSION__
188724 DEBUG + replace_string=7.3
188724 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /opt/yunohost/facilmap/etc/facilmap.env
188726 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
188726 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188726 DEBUG + local legacy_args=mrf
188726 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
188726 DEBUG + local -A args_array
188726 DEBUG + local match_string
188727 DEBUG + local replace_string
188727 DEBUG + local target_file
188727 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/opt/yunohost/facilmap/etc/facilmap.env
188727 DEBUG + set +o xtrace
188803 DEBUG + local delimit=@
188804 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
188804 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
188804 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /opt/yunohost/facilmap/etc/facilmap.env
188808 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
188809 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /opt/yunohost/facilmap/etc/facilmap.env
188809 DEBUG ++ sort --unique
188809 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
188813 DEBUG + local uniques_vars
188815 DEBUG + local delimit=@
188815 DEBUG + for one_var in "${uniques_vars[@]}"
188815 DEBUG + [[ -v db_name ]]
188815 DEBUG + match_string=__DB_NAME__
188815 DEBUG + match_string=__DB_NAME__
188815 DEBUG + replace_string=facilmap
188816 DEBUG + replace_string=facilmap
188816 DEBUG + replace_string=facilmap
188816 DEBUG + sed --in-place s@__DB_NAME__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188816 DEBUG + for one_var in "${uniques_vars[@]}"
188816 DEBUG + [[ -v db_pwd ]]
188816 DEBUG + match_string=__DB_PWD__
188816 DEBUG + match_string=__DB_PWD__
188816 DEBUG + replace_string=vO5FvjEcNHLhNxjOG4HyxYkt
188816 DEBUG + replace_string=vO5FvjEcNHLhNxjOG4HyxYkt
188816 DEBUG + replace_string=vO5FvjEcNHLhNxjOG4HyxYkt
188816 DEBUG + sed --in-place s@__DB_PWD__@vO5FvjEcNHLhNxjOG4HyxYkt@g /opt/yunohost/facilmap/etc/facilmap.env
188818 DEBUG + for one_var in "${uniques_vars[@]}"
188819 DEBUG + [[ -v db_user ]]
188819 DEBUG + match_string=__DB_USER__
188820 DEBUG + match_string=__DB_USER__
188820 DEBUG + replace_string=facilmap
188820 DEBUG + replace_string=facilmap
188820 DEBUG + replace_string=facilmap
188820 DEBUG + sed --in-place s@__DB_USER__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
188823 DEBUG + for one_var in "${uniques_vars[@]}"
188823 DEBUG + [[ -v mapbox_token ]]
188823 DEBUG + match_string=__MAPBOX_TOKEN__
188824 DEBUG + match_string=__MAPBOX_TOKEN__
188824 DEBUG + replace_string=ors
188825 DEBUG + replace_string=ors
188825 DEBUG + replace_string=ors
188825 DEBUG + sed --in-place s@__MAPBOX_TOKEN__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188825 DEBUG + for one_var in "${uniques_vars[@]}"
188825 DEBUG + [[ -v mapzen_token ]]
188826 DEBUG + match_string=__MAPZEN_TOKEN__
188827 DEBUG + match_string=__MAPZEN_TOKEN__
188828 DEBUG + replace_string=ors
188828 DEBUG + replace_string=ors
188828 DEBUG + replace_string=ors
188828 DEBUG + sed --in-place s@__MAPZEN_TOKEN__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188829 DEBUG + for one_var in "${uniques_vars[@]}"
188829 DEBUG + [[ -v maxmind_license_key ]]
188829 DEBUG + match_string=__MAXMIND_LICENSE_KEY__
188830 DEBUG + match_string=__MAXMIND_LICENSE_KEY__
188830 DEBUG + replace_string=ors
188831 DEBUG + replace_string=ors
188831 DEBUG + replace_string=ors
188832 DEBUG + sed --in-place s@__MAXMIND_LICENSE_KEY__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188832 DEBUG + for one_var in "${uniques_vars[@]}"
188832 DEBUG + [[ -v maxmind_user_id ]]
188832 DEBUG + match_string=__MAXMIND_USER_ID__
188832 DEBUG + match_string=__MAXMIND_USER_ID__
188832 DEBUG + replace_string=ors
188833 DEBUG + replace_string=ors
188833 DEBUG + replace_string=ors
188833 DEBUG + sed --in-place s@__MAXMIND_USER_ID__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188841 DEBUG + for one_var in "${uniques_vars[@]}"
188842 DEBUG + [[ -v ors_token ]]
188843 DEBUG + match_string=__ORS_TOKEN__
188843 DEBUG + match_string=__ORS_TOKEN__
188843 DEBUG + replace_string=ors
188843 DEBUG + replace_string=ors
188843 DEBUG + replace_string=ors
188843 DEBUG + sed --in-place s@__ORS_TOKEN__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188845 DEBUG + for one_var in "${uniques_vars[@]}"
188845 DEBUG + [[ -v port ]]
188845 DEBUG + match_string=__PORT__
188845 DEBUG + match_string=__PORT__
188845 DEBUG + replace_string=8082
188846 DEBUG + replace_string=8082
188846 DEBUG + replace_string=8082
188846 DEBUG + sed --in-place s@__PORT__@8082@g /opt/yunohost/facilmap/etc/facilmap.env
188847 DEBUG + for one_var in "${uniques_vars[@]}"
188847 DEBUG + [[ -v user_agent ]]
188847 DEBUG + match_string=__USER_AGENT__
188848 DEBUG + match_string=__USER_AGENT__
188848 DEBUG + replace_string=ors
188848 DEBUG + replace_string=ors
188848 DEBUG + replace_string=ors
188848 DEBUG + sed --in-place s@__USER_AGENT__@ors@g /opt/yunohost/facilmap/etc/facilmap.env
188850 DEBUG + ynh_store_file_checksum --file=/opt/yunohost/facilmap/etc/facilmap.env
188850 DEBUG + local legacy_args=f
188850 DEBUG + args_array=([f]=file=)
188850 DEBUG + local -A args_array
188851 DEBUG + local file
188851 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap/etc/facilmap.env
188851 DEBUG + set +o xtrace
188860 DEBUG + local checksum_setting_name=checksum__opt_yunohost_facilmap_etc_facilmap.env
188860 DEBUG ++ md5sum /opt/yunohost/facilmap/etc/facilmap.env
188861 DEBUG ++ cut '--delimiter= ' --fields=1
188862 DEBUG + ynh_app_setting_set --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env --value=1c96b5a60953937e197d097ca5edc267
188862 DEBUG + local legacy_args=akv
188863 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
188863 DEBUG + local -A args_array
188863 DEBUG + local app
188863 DEBUG + local key
188863 DEBUG + local value
188863 DEBUG + ynh_handle_getopts_args --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env --value=1c96b5a60953937e197d097ca5edc267
188863 DEBUG + set +o xtrace
188916 DEBUG + [[ checksum__opt_yunohost_facilmap_etc_facilmap.env =~ (unprotected|protected|skipped)_ ]]
188916 DEBUG + ynh_app_setting set facilmap checksum__opt_yunohost_facilmap_etc_facilmap.env 1c96b5a60953937e197d097ca5edc267
188916 DEBUG + set +o xtrace
188971 DEBUG + '[' -n '' ']'
188971 DEBUG + unset backup_file_checksum
188971 DEBUG + ynh_script_progression '--message=Configuring log rotation...' --weight=1
188971 DEBUG + set +o xtrace
189023 DEBUG + set +o xtrace
189033 DEBUG + echo '! Helper used in legacy mode !'
189034 DEBUG + set +x
189035 INFO [###################.] > Configuring log rotation...
189035 DEBUG + echo '[###################.] > Configuring log rotation...'
189035 DEBUG + set -o xtrace
189036 DEBUG + ynh_use_logrotate
189036 DEBUG + local legacy_args=lnuya
189036 DEBUG + args_array=([l]=logfile= [n]=nonappend [u]=specific_user= [y]=non [a]=append)
189036 DEBUG + local -A args_array
189036 DEBUG + local logfile
189036 DEBUG + local nonappend
189037 DEBUG + local specific_user
189037 DEBUG + ynh_handle_getopts_args
189037 DEBUG + set +o xtrace
189037 DEBUG + logfile=
189037 DEBUG + nonappend=0
189037 DEBUG + specific_user=
189037 DEBUG + '[' 0 -gt 0 ']'
189037 DEBUG + '[' 0 -gt 1 ']'
189037 DEBUG + '[' 0 -gt 0 ']'
189037 DEBUG + local 'customtee=tee --append'
189037 DEBUG + '[' 0 -eq 1 ']'
189038 DEBUG + '[' -n '' ']'
189038 DEBUG + logfile='/var/log/facilmap/*.log'
189038 DEBUG + local su_directive=
189038 DEBUG + [[ -n '' ]]
189038 DEBUG + cat
189039 DEBUG ++ dirname '/var/log/facilmap/*.log'
189042 DEBUG + mkdir --parents /var/log/facilmap
189045 DEBUG + cat facilmap-logrotate
189046 DEBUG + tee --append /etc/logrotate.d/facilmap
189047 DEBUG + ynh_script_progression '--message=Integrating service in YunoHost...' --weight=1
189048 DEBUG + set +o xtrace
189135 DEBUG + set +o xtrace
189148 DEBUG + echo '! Helper used in legacy mode !'
189148 DEBUG + set +x
189150 DEBUG + echo '[###################.] > Integrating service in YunoHost...'
189150 INFO [###################.] > Integrating service in YunoHost...
189150 DEBUG + set -o xtrace
189150 DEBUG + yunohost service add facilmap '--description=Collaborative maps and routing' --log=/var/log/facilmap/facilmap.log
189348 DEBUG The service 'facilmap' was added
189378 DEBUG + ynh_script_progression '--message=Starting a systemd service...' --weight=7
189379 DEBUG + set +o xtrace
189440 DEBUG + set +o xtrace
189452 DEBUG + echo '! Helper used in legacy mode !'
189452 DEBUG + set +x
189455 DEBUG + echo '[###################.] > Starting a systemd service...'
189455 DEBUG + set -o xtrace
189456 DEBUG + ynh_systemd_action --service_name=facilmap --action=start --log_path=systemd '--line_match=Server started'
189456 DEBUG + local legacy_args=nalpte
189456 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
189456 DEBUG + local -A args_array
189456 DEBUG + local service_name
189456 DEBUG + local action
189456 DEBUG + local line_match
189456 DEBUG + local length
189456 DEBUG + local log_path
189457 DEBUG + local timeout
189457 DEBUG + ynh_handle_getopts_args --service_name=facilmap --action=start --log_path=systemd '--line_match=Server started'
189457 DEBUG + set +o xtrace
189457 INFO [###################.] > Starting a systemd service...
189627 DEBUG + service_name=facilmap
189627 DEBUG + action=start
189627 DEBUG + line_match='Server started'
189628 DEBUG + length=20
189628 DEBUG + log_path=systemd
189628 DEBUG + timeout=300
189628 DEBUG + '[' start == stop ']'
189628 DEBUG + [[ -n Server started ]]
189628 DEBUG ++ mktemp
189630 DEBUG + local templog=/tmp/tmp.p5e5FBBfqb
189630 DEBUG + '[' systemd == systemd ']'
189630 DEBUG + local pid_tail=17678
189630 DEBUG + journalctl --unit=facilmap --follow --since=-0 --quiet
189630 DEBUG + '[' start == reload ']'
189630 DEBUG + systemctl start facilmap
189641 DEBUG + [[ -n Server started ]]
189641 DEBUG + set +x
192668 INFO The service facilmap has correctly executed the action start.
192669 DEBUG
192669 DEBUG + echo 'The service facilmap has correctly executed the action start.'
192669 DEBUG + break
192669 DEBUG + set -x
192669 DEBUG + '[' 4 -ge 3 ']'
192669 DEBUG + echo ''
192669 DEBUG + '[' 4 -eq 300 ']'
192670 DEBUG + ynh_clean_check_starting
192670 DEBUG + '[' -n 17678 ']'
192670 DEBUG + kill -SIGTERM 17678
192670 DEBUG + '[' -n /tmp/tmp.p5e5FBBfqb ']'
192670 DEBUG + ynh_secure_remove --file=/tmp/tmp.p5e5FBBfqb
192670 DEBUG + local legacy_args=f
192670 DEBUG + args_array=([f]=file=)
192670 DEBUG + local -A args_array
192670 DEBUG + local file
192670 DEBUG + ynh_handle_getopts_args --file=/tmp/tmp.p5e5FBBfqb
192671 DEBUG + set +o xtrace
192683 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
192684 DEBUG + '[' 1 -ge 2 ']'
192684 DEBUG + [[ -z /tmp/tmp.p5e5FBBfqb ]]
192684 DEBUG + [[ /var/www /home/yunohost.app =~ /tmp/tmp\.p5e5FBBfqb ]]
192684 DEBUG + [[ /tmp/tmp.p5e5FBBfqb =~ ^/[[:alnum:]]+$ ]]
192684 DEBUG + [[ b = \/ ]]
192684 DEBUG + '[' -e /tmp/tmp.p5e5FBBfqb ']'
192684 DEBUG + rm --recursive /tmp/tmp.p5e5FBBfqb
192685 DEBUG + ynh_script_progression '--message=Configuring app permissions...' --weight=2
192685 DEBUG + set +o xtrace
192757 DEBUG + set +o xtrace
192771 DEBUG + echo '! Helper used in legacy mode !'
192771 DEBUG + set +x
192774 DEBUG + echo '[###################.] > Configuring app permissions...'
192774 DEBUG + set -o xtrace
192774 INFO [###################.] > Configuring app permissions...
192774 DEBUG + '[' 1 -eq 1 ']'
192775 DEBUG + ynh_permission_update --permission=main --add=visitors
192775 DEBUG + local legacy_args=parltP
192775 DEBUG + args_array=([p]=permission= [a]=add= [r]=remove= [l]=label= [t]=show_tile= [P]=protected=)
192775 DEBUG + local -A args_array
192775 DEBUG + local permission
192775 DEBUG + local add
192775 DEBUG + local remove
192776 DEBUG + local label
192776 DEBUG + local show_tile
192776 DEBUG + local protected
192776 DEBUG + ynh_handle_getopts_args --permission=main --add=visitors
192776 DEBUG + set +o xtrace
192872 DEBUG + add=visitors
192872 DEBUG + remove=
192872 DEBUG + label=
192872 DEBUG + show_tile=
192873 DEBUG + protected=
192873 DEBUG + [[ -n visitors ]]
192873 DEBUG + add=',add=['\''visitors'\'']'
192873 DEBUG + [[ -n '' ]]
192873 DEBUG + [[ -n '' ]]
192873 DEBUG + [[ -n '' ]]
192873 DEBUG + [[ -n '' ]]
192873 DEBUG + yunohost tools shell -c 'from yunohost.permission import user_permission_update; user_permission_update('\''facilmap.main'\'' ,add=['\''visitors'\''] , force=True)'
195482 DEBUG + ynh_script_progression '--message=Reloading NGINX web server...' --weight=2
195482 DEBUG + set +o xtrace
195613 DEBUG + set +o xtrace
195644 DEBUG + echo '! Helper used in legacy mode !'
195644 DEBUG + set +x
195648 DEBUG + echo '[###################.] > Reloading NGINX web server...'
195649 DEBUG + set -o xtrace
195649 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
195649 DEBUG + local legacy_args=nalpte
195650 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
195650 DEBUG + local -A args_array
195650 DEBUG + local service_name
195651 DEBUG + local action
195651 DEBUG + local line_match
195651 DEBUG + local length
195652 DEBUG + local log_path
195652 DEBUG + local timeout
195652 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
195652 DEBUG + set +o xtrace
195652 INFO [###################.] > Reloading NGINX web server...
195824 DEBUG + service_name=nginx
195824 DEBUG + action=reload
195824 DEBUG + line_match=
195824 DEBUG + length=20
195824 DEBUG + log_path=/var/log/nginx/nginx.log
195824 DEBUG + timeout=300
195824 DEBUG + '[' reload == stop ']'
195824 DEBUG + [[ -n '' ]]
195824 DEBUG + '[' reload == reload ']'
195824 DEBUG + action=reload-or-restart
195825 DEBUG + systemctl reload-or-restart nginx
196201 DEBUG + [[ -n '' ]]
196201 DEBUG + ynh_script_progression '--message=Installation of facilmap completed' --last
196209 DEBUG + set +o xtrace
196339 DEBUG + set +o xtrace
196365 DEBUG + echo '! Helper used in legacy mode !'
196366 DEBUG + set +x
196366 DEBUG + echo '[####################] > Installation of facilmap completed'
196366 INFO [####################] > Installation of facilmap completed
196367 DEBUG + set -o xtrace
196367 DEBUG + ynh_exit_properly
196367 DEBUG + local exit_code=0
196367 DEBUG + rm -rf /var/cache/yunohost/download/
196375 DEBUG + '[' 0 -eq 0 ']'
196375 DEBUG + exit 0
197377 DEBUG Checking that required services are up and running...
199313 SUCCESS Installation completed
199316 DEBUG To view the log of the operation 'Install the 'facilmap' app', use the command 'yunohost log show 20210626-210927-app_install-facilmap20210626-210927-app_install-facilmap'
199325 DEBUG action [6852.1] executed in 199.195s
199326 DEBUG lock has been released
However I cannot access it at maps.trom.tf - it redirects to the main ynh domain.
Oh no it works at this url https://maps.trom.tf/ps/#3/0.00/0.00/Mpnk - no idea why the "ps" subfolder was added...
I changed it to https://maps.trom.tf/ - so now works
Ok so the question is, we have to have these tokens individually? Each admin needs to grab them in order for facilmap to properly work?
So far the
ors_token
andmapbox_token
arguments are marked as required, because routing in FacilMap would not work without them. I would prefer if FacilMap could be installed without providing the tokens, but as far as I'm aware YunoHost does not allow changing arugments after installing an app.
You can change arguments through actions
but it is a bit tedious to configure and a new mechanism is under way
I'm not sure why the description of the argument does not show up in the install script.
It may not appear in CL install... but it should thought webadmin.
Is there a way to change the tokens now after I insatlled it? I am ok with generating my own.
Ok so I found where I can replace those token values. I generated some but after I removed facilmaps I cannot install it again. Do you have any idea why?
35910 INFO Installing facilmap...
36572 DEBUG Nothing to update in LDAP
36572 DEBUG Permission 'facilmap.main' updated
37018 DEBUG To view the log of the operation 'Update url related to permission 'facilmap'', use the command 'yunohost log show 20210626-220405-permission_url-facilmap20210626-220405-permission_url-facilmap'
37866 DEBUG The permission database has been resynchronized
38500 DEBUG SSOwat configuration regenerated
38950 DEBUG Permission 'facilmap.main' created
38950 DEBUG To view the log of the operation 'Create permission 'facilmap'', use the command 'yunohost log show 20210626-220404-permission_create-facilmap20210626-220404-permission_create-facilmap'
38963 DEBUG Executing command '/bin/bash -x "./install" 7>&1'
38974 DEBUG + source _common.sh
38975 DEBUG ++ pkg_dependencies=
38975 DEBUG ++ nodejs_version=14
38975 DEBUG ++ facilmap_version=3.3.0
38975 DEBUG + source /usr/share/yunohost/helpers
38976 DEBUG +++ set +o
38976 DEBUG +++ grep xtrace
38978 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
38978 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
38978 DEBUG ++ set +x
39008 DEBUG + ynh_abort_if_errors
39008 DEBUG + set -o errexit
39008 DEBUG + set -o nounset
39009 DEBUG + trap ynh_exit_properly EXIT
39009 DEBUG + domain=maps.trom.tf
39009 DEBUG + path_url=/facilmaps
39009 DEBUG + is_public=1
39009 DEBUG + user_agent=trom
39009 DEBUG + ors_token=trom
39009 DEBUG + mapbox_token=trom
39010 DEBUG + maxmind_user_id=trom
39010 DEBUG + maxmind_license_key=trom
39010 DEBUG + app=facilmap
39010 DEBUG + ynh_script_progression '--message=Validating installation parameters...' --weight=1
39010 DEBUG + set +o xtrace
39074 DEBUG + set +o xtrace
39104 DEBUG + echo '! Helper used in legacy mode !'
39104 DEBUG + set +x
39109 DEBUG + echo '[....................] > Validating installation parameters...'
39109 INFO [....................] > Validating installation parameters...
39110 DEBUG + set -o xtrace
39110 DEBUG + final_path=/opt/yunohost/facilmap
39110 DEBUG + test '!' -e /opt/yunohost/facilmap
39110 DEBUG + ynh_webpath_register --app=facilmap --domain=maps.trom.tf --path_url=/facilmaps
39110 DEBUG + local legacy_args=adp
39110 DEBUG + args_array=([a]=app= [d]=domain= [p]=path_url=)
39110 DEBUG + local -A args_array
39110 DEBUG + local app
39110 DEBUG + local domain
39110 DEBUG + local path_url
39110 DEBUG + ynh_handle_getopts_args --app=facilmap --domain=maps.trom.tf --path_url=/facilmaps
39110 DEBUG + set +o xtrace
39186 DEBUG + yunohost app register-url facilmap maps.trom.tf /facilmaps
43905 DEBUG + ynh_script_progression '--message=Storing installation settings...' --weight=1
43906 DEBUG + set +o xtrace
43984 DEBUG + set +o xtrace
43998 DEBUG + echo '! Helper used in legacy mode !'
43998 DEBUG + set +x
44000 INFO [....................] > Storing installation settings...
44000 DEBUG + echo '[....................] > Storing installation settings...'
44000 DEBUG + set -o xtrace
44000 DEBUG + ynh_app_setting_set --app=facilmap --key=domain --value=maps.trom.tf
44000 DEBUG + local legacy_args=akv
44000 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44001 DEBUG + local -A args_array
44001 DEBUG + local app
44001 DEBUG + local key
44001 DEBUG + local value
44001 DEBUG + ynh_handle_getopts_args --app=facilmap --key=domain --value=maps.trom.tf
44001 DEBUG + set +o xtrace
44078 DEBUG + [[ domain =~ (unprotected|protected|skipped)_ ]]
44078 DEBUG + ynh_app_setting set facilmap domain maps.trom.tf
44078 DEBUG + set +o xtrace
44122 DEBUG + ynh_app_setting_set --app=facilmap --key=path --value=/facilmaps
44122 DEBUG + local legacy_args=akv
44122 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44122 DEBUG + local -A args_array
44122 DEBUG + local app
44122 DEBUG + local key
44122 DEBUG + local value
44123 DEBUG + ynh_handle_getopts_args --app=facilmap --key=path --value=/facilmaps
44123 DEBUG + set +o xtrace
44221 DEBUG + [[ path =~ (unprotected|protected|skipped)_ ]]
44221 DEBUG + ynh_app_setting set facilmap path /facilmaps
44221 DEBUG + set +o xtrace
44276 DEBUG + ynh_app_setting_set --app=facilmap --key=user_agent --value=trom
44276 DEBUG + local legacy_args=akv
44276 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44276 DEBUG + local -A args_array
44276 DEBUG + local app
44276 DEBUG + local key
44277 DEBUG + local value
44277 DEBUG + ynh_handle_getopts_args --app=facilmap --key=user_agent --value=trom
44277 DEBUG + set +o xtrace
44377 DEBUG + [[ user_agent =~ (unprotected|protected|skipped)_ ]]
44377 DEBUG + ynh_app_setting set facilmap user_agent trom
44377 DEBUG + set +o xtrace
44421 DEBUG + ynh_app_setting_set --app=facilmap --key=ors_token --value=trom
44421 DEBUG + local legacy_args=akv
44422 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44422 DEBUG + local -A args_array
44422 DEBUG + local app
44422 DEBUG + local key
44422 DEBUG + local value
44422 DEBUG + ynh_handle_getopts_args --app=facilmap --key=ors_token --value=trom
44422 DEBUG + set +o xtrace
44504 DEBUG + [[ ors_token =~ (unprotected|protected|skipped)_ ]]
44504 DEBUG + ynh_app_setting set facilmap ors_token trom
44504 DEBUG + set +o xtrace
44550 DEBUG + ynh_app_setting_set --app=facilmap --key=mapbox_token --value=trom
44550 DEBUG + local legacy_args=akv
44550 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44551 DEBUG + local -A args_array
44551 DEBUG + local app
44551 DEBUG + local key
44551 DEBUG + local value
44551 DEBUG + ynh_handle_getopts_args --app=facilmap --key=mapbox_token --value=trom
44551 DEBUG + set +o xtrace
44654 DEBUG + [[ mapbox_token =~ (unprotected|protected|skipped)_ ]]
44655 DEBUG + ynh_app_setting set facilmap mapbox_token trom
44655 DEBUG + set +o xtrace
44696 DEBUG + ynh_app_setting_set --app=facilmap --key=maxmind_user_id --value=trom
44697 DEBUG + local legacy_args=akv
44697 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44697 DEBUG + local -A args_array
44697 DEBUG + local app
44697 DEBUG + local key
44697 DEBUG + local value
44697 DEBUG + ynh_handle_getopts_args --app=facilmap --key=maxmind_user_id --value=trom
44697 DEBUG + set +o xtrace
44802 DEBUG + [[ maxmind_user_id =~ (unprotected|protected|skipped)_ ]]
44802 DEBUG + ynh_app_setting set facilmap maxmind_user_id trom
44802 DEBUG + set +o xtrace
44883 DEBUG + ynh_app_setting_set --app=facilmap --key=maxmind_license_key --value=trom
44883 DEBUG + local legacy_args=akv
44883 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
44883 DEBUG + local -A args_array
44883 DEBUG + local app
44884 DEBUG + local key
44884 DEBUG + local value
44884 DEBUG + ynh_handle_getopts_args --app=facilmap --key=maxmind_license_key --value=trom
44884 DEBUG + set +o xtrace
44970 DEBUG + [[ maxmind_license_key =~ (unprotected|protected|skipped)_ ]]
44970 DEBUG + ynh_app_setting set facilmap maxmind_license_key trom
44971 DEBUG + set +o xtrace
45026 DEBUG + ynh_script_progression '--message=Finding an available port...' --weight=1
45026 DEBUG + set +o xtrace
45107 DEBUG + set +o xtrace
45120 DEBUG + echo '! Helper used in legacy mode !'
45120 DEBUG + set +x
45122 DEBUG + echo '[....................] > Finding an available port...'
45123 DEBUG + set -o xtrace
45123 INFO [....................] > Finding an available port...
45123 DEBUG ++ ynh_find_port --port=8080
45123 DEBUG ++ local legacy_args=p
45125 DEBUG ++ args_array=([p]=port=)
45125 DEBUG ++ local -A args_array
45125 DEBUG ++ local port
45126 DEBUG ++ ynh_handle_getopts_args --port=8080
45126 DEBUG ++ set +o xtrace
45139 DEBUG ++ test -n 8080
45140 DEBUG ++ ynh_port_available --port=8080
45140 DEBUG ++ local legacy_args=p
45140 DEBUG ++ args_array=([p]=port=)
45141 DEBUG ++ local -A args_array
45141 DEBUG ++ local port
45141 DEBUG ++ ynh_handle_getopts_args --port=8080
45141 DEBUG ++ set +o xtrace
45156 DEBUG ++ grep --quiet --extended-regexp ':8080$'
45156 DEBUG ++ ss --numeric --listening --tcp --udp
45159 DEBUG ++ awk '{print$5}'
45169 DEBUG ++ return 1
45170 DEBUG ++ port=8081
45170 DEBUG ++ ynh_port_available --port=8081
45170 DEBUG ++ local legacy_args=p
45171 DEBUG ++ args_array=([p]=port=)
45171 DEBUG ++ local -A args_array
45172 DEBUG ++ local port
45172 DEBUG ++ ynh_handle_getopts_args --port=8081
45172 DEBUG ++ set +o xtrace
45227 DEBUG ++ ss --numeric --listening --tcp --udp
45228 DEBUG ++ awk '{print$5}'
45232 DEBUG ++ grep --quiet --extended-regexp ':8081$'
45239 DEBUG ++ return 1
45239 DEBUG ++ port=8082
45240 DEBUG ++ ynh_port_available --port=8082
45240 DEBUG ++ local legacy_args=p
45240 DEBUG ++ args_array=([p]=port=)
45240 DEBUG ++ local -A args_array
45240 DEBUG ++ local port
45240 DEBUG ++ ynh_handle_getopts_args --port=8082
45241 DEBUG ++ set +o xtrace
45256 DEBUG ++ ss --numeric --listening --tcp --udp
45256 DEBUG ++ awk '{print$5}'
45256 DEBUG ++ grep --quiet --extended-regexp ':8082$'
45279 DEBUG ++ grep -q 'port: '\''8082'\''' /etc/yunohost/apps/archivist/settings.yml /etc/yunohost/apps/bibliogram/settings.yml /etc/yunohost/apps/cryptpad/settings.yml /etc/yunohost/apps/diagramsnet/settings.yml /etc/yunohost/apps/etherpad_mypads__2/settings.yml /etc/yunohost/apps/facilmap/settings.yml /etc/yunohost/apps/focalboard/settings.yml /etc/yunohost/apps/friendica/settings.yml /etc/yunohost/apps/invidious/settings.yml /etc/yunohost/apps/librespeed/settings.yml /etc/yunohost/apps/lufi/settings.yml /etc/yunohost/apps/my_webapp/settings.yml /etc/yunohost/apps/nextcloud/settings.yml /etc/yunohost/apps/nitter/settings.yml /etc/yunohost/apps/onlyoffice/settings.yml /etc/yunohost/apps/opensondage/settings.yml /etc/yunohost/apps/peertube/settings.yml /etc/yunohost/apps/qr/settings.yml /etc/yunohost/apps/rainloop/settings.yml /etc/yunohost/apps/redirect__10/settings.yml /etc/yunohost/apps/redirect__2/settings.yml /etc/yunohost/apps/redirect__3/settings.yml /etc/yunohost/apps/redirect__4/settings.yml /etc/yunohost/apps/redirect__5/settings.yml /etc/yunohost/apps/redirect__6/settings.yml /etc/yunohost/apps/redirect__7/settings.yml /etc/yunohost/apps/redirect__8/settings.yml /etc/yunohost/apps/redirect__9/settings.yml /etc/yunohost/apps/redirect/settings.yml /etc/yunohost/apps/rss-bridge/settings.yml /etc/yunohost/apps/searx/settings.yml /etc/yunohost/apps/wallabag2/settings.yml /etc/yunohost/apps/wemawema/settings.yml /etc/yunohost/apps/wordpress__10/settings.yml /etc/yunohost/apps/wordpress__2/settings.yml /etc/yunohost/apps/wordpress__3/settings.yml /etc/yunohost/apps/wordpress__4/settings.yml /etc/yunohost/apps/wordpress__5/settings.yml /etc/yunohost/apps/wordpress__6/settings.yml /etc/yunohost/apps/wordpress__7/settings.yml /etc/yunohost/apps/wordpress__8/settings.yml /etc/yunohost/apps/wordpress__9/settings.yml /etc/yunohost/apps/wordpress/settings.yml
45290 DEBUG ++ return 0
45292 DEBUG ++ echo 8082
45293 DEBUG + port=8082
45293 DEBUG + ynh_app_setting_set --app=facilmap --key=port --value=8082
45293 DEBUG + local legacy_args=akv
45293 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
45294 DEBUG + local -A args_array
45294 DEBUG + local app
45294 DEBUG + local key
45294 DEBUG + local value
45294 DEBUG + ynh_handle_getopts_args --app=facilmap --key=port --value=8082
45294 DEBUG + set +o xtrace
45369 DEBUG + [[ port =~ (unprotected|protected|skipped)_ ]]
45369 DEBUG + ynh_app_setting set facilmap port 8082
45369 DEBUG + set +o xtrace
45420 DEBUG + ynh_script_progression '--message=Installing dependencies...' --weight=6
45421 DEBUG + set +o xtrace
45489 DEBUG + set +o xtrace
45501 DEBUG + echo '! Helper used in legacy mode !'
45501 DEBUG + set +x
45503 INFO [....................] > Installing dependencies...
45503 DEBUG + echo '[....................] > Installing dependencies...'
45503 DEBUG + set -o xtrace
45503 DEBUG + ynh_install_app_dependencies
45503 DEBUG + local dependencies=
45503 DEBUG ++ echo ''
45503 DEBUG ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
45507 DEBUG + dependencies=
45507 DEBUG + local dependencies=
45507 DEBUG + local manifest_path=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/manifest.json
45507 DEBUG ++ jq -r .version /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/manifest.json
45511 DEBUG + local version=3.3.0~ynh1
45511 DEBUG + '[' -z 3.3.0~ynh1 ']'
45511 DEBUG + '[' 3.3.0~ynh1 == null ']'
45512 DEBUG + local dep_app=facilmap
45512 DEBUG + [[ '' =~ [<=>] ]]
45512 DEBUG + echo
45512 DEBUG + grep --quiet php
45513 DEBUG + cat
45516 DEBUG + ynh_package_install_from_equivs /tmp/facilmap-ynh-deps.control
45517 DEBUG + local controlfile=/tmp/facilmap-ynh-deps.control
45519 DEBUG ++ grep '^Package: ' /tmp/facilmap-ynh-deps.control
45519 DEBUG ++ cut '--delimiter= ' --fields=2
45523 DEBUG + local pkgname=facilmap-ynh-deps
45524 DEBUG ++ grep '^Version: ' /tmp/facilmap-ynh-deps.control
45524 DEBUG ++ cut '--delimiter= ' --fields=2
45526 DEBUG + local pkgversion=3.3.0~ynh1
45526 DEBUG + [[ -z facilmap-ynh-deps ]]
45527 DEBUG + [[ -z 3.3.0~ynh1 ]]
45527 DEBUG + ynh_package_update
45527 DEBUG + ynh_apt update
45527 DEBUG + ynh_wait_dpkg_free
45527 DEBUG + local try
45527 DEBUG + set +o xtrace
46857 DEBUG + return 0
46858 DEBUG + LC_ALL=C
46858 DEBUG + DEBIAN_FRONTEND=noninteractive
46858 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
47066 DEBUG Hit:1 http://security.debian.org/debian-security buster/updates InRelease
47123 DEBUG Ign:2 http://packages.erlang-solutions.com/debian buster InRelease
47136 DEBUG Hit:3 http://download.onlyoffice.com/repo/debian squeeze InRelease
47140 DEBUG Hit:4 https://forge.yunohost.org/debian buster InRelease
47155 DEBUG Hit:5 http://packages.erlang-solutions.com/debian buster Release
47326 DEBUG Hit:6 http://asi-fs-n.contabo.net/debian buster InRelease
47327 DEBUG Hit:7 http://asi-fs-n.contabo.net/debian buster-updates InRelease
47386 DEBUG Hit:8 http://download.opensuse.org/repositories/devel:languages:crystal/Debian_10 InRelease
47630 DEBUG Ign:10 http://download.webmin.com/download/repository sarge InRelease
47787 DEBUG Hit:11 http://download.webmin.com/download/repository sarge Release
49323 DEBUG Reading package lists...
49350 DEBUG ++ mktemp --directory
49352 DEBUG + local TMPDIR=/tmp/tmp.9tD62BFQSV
49352 DEBUG + echo 10
49352 DEBUG + ynh_wait_dpkg_free
49352 DEBUG + local try
49352 DEBUG + set +o xtrace
50629 DEBUG + return 0
50629 DEBUG + cp /tmp/facilmap-ynh-deps.control /tmp/tmp.9tD62BFQSV/control
50631 DEBUG + cd /tmp/tmp.9tD62BFQSV
50631 DEBUG + LC_ALL=C
50631 DEBUG + equivs-build ./control
51589 DEBUG + LC_ALL=C
51590 DEBUG + tee ./dpkg_log
51590 DEBUG + dpkg --force-depends --install ./facilmap-ynh-deps_3.3.0~ynh1_all.deb
51636 DEBUG Selecting previously unselected package facilmap-ynh-deps.
51737 DEBUG (Reading database ... 175366 files and directories currently installed.)
51740 DEBUG Preparing to unpack .../facilmap-ynh-deps_3.3.0~ynh1_all.deb ...
51743 DEBUG Unpacking facilmap-ynh-deps (3.3.0~ynh1) ...
51762 DEBUG Setting up facilmap-ynh-deps (3.3.0~ynh1) ...
51791 DEBUG + ynh_package_install --fix-broken
51791 DEBUG + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
51791 DEBUG + ynh_wait_dpkg_free
51791 DEBUG + local try
51791 DEBUG + set +o xtrace
52933 DEBUG + return 0
52933 DEBUG + LC_ALL=C
52933 DEBUG + DEBIAN_FRONTEND=noninteractive
52934 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
53086 DEBUG Reading package lists...
53395 DEBUG Building dependency tree...
53397 DEBUG Reading state information...
53788 DEBUG 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
53796 DEBUG + [[ -n /tmp/tmp.9tD62BFQSV ]]
53796 DEBUG + rm --recursive --force /tmp/tmp.9tD62BFQSV
53797 DEBUG + ynh_package_is_installed facilmap-ynh-deps
53797 DEBUG + local legacy_args=p
53797 DEBUG + args_array=([p]=package=)
53797 DEBUG + local -A args_array
53797 DEBUG + local package
53797 DEBUG + ynh_handle_getopts_args facilmap-ynh-deps
53797 DEBUG + set +o xtrace
53810 DEBUG + echo '! Helper used in legacy mode !'
53811 DEBUG + set +x
53811 DEBUG + ynh_wait_dpkg_free
53811 DEBUG + local try
53811 DEBUG + set +o xtrace
55005 DEBUG + return 0
55005 DEBUG + grep --count 'ok installed'
55006 DEBUG + dpkg-query --show '--showformat=${Status}' facilmap-ynh-deps
55028 DEBUG + rm /tmp/facilmap-ynh-deps.control
55032 DEBUG + ynh_app_setting_set --app=facilmap --key=apt_dependencies --value=
55033 DEBUG + local legacy_args=akv
55033 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
55033 DEBUG + local -A args_array
55033 DEBUG + local app
55033 DEBUG + local key
55033 DEBUG + local value
55033 DEBUG + ynh_handle_getopts_args --app=facilmap --key=apt_dependencies --value=
55034 DEBUG + set +o xtrace
55127 DEBUG + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
55128 DEBUG + ynh_app_setting set facilmap apt_dependencies ''
55128 DEBUG + set +o xtrace
55179 DEBUG + ynh_install_nodejs --nodejs_version=14
55179 DEBUG + local legacy_args=n
55181 DEBUG + args_array=([n]=nodejs_version=)
55182 DEBUG + local -A args_array
55182 DEBUG + local nodejs_version
55182 DEBUG + ynh_handle_getopts_args --nodejs_version=14
55182 DEBUG + set +o xtrace
55192 DEBUG + mkdir --parents /opt/node_n
55193 DEBUG + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
55194 DEBUG ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
55194 DEBUG ++ sed s@/usr/local/bin:@@
55197 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
55198 DEBUG + test -x /usr/bin/node
55198 DEBUG + mv /usr/bin/node /usr/bin/node_n
55200 DEBUG + test -x /usr/bin/npm
55200 DEBUG + mv /usr/bin/npm /usr/bin/npm_n
55203 DEBUG + /opt/node_n/bin/n --version
55211 DEBUG ++ /opt/node_n/bin/n --version
55222 DEBUG + dpkg --compare-versions 7.2.2 lt 7.2.2
55224 DEBUG + ynh_replace_string '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
55225 DEBUG + local legacy_args=mrf
55225 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
55225 DEBUG + local -A args_array
55225 DEBUG + local match_string
55226 DEBUG + local replace_string
55226 DEBUG + local target_file
55226 DEBUG + ynh_handle_getopts_args '--match_string=^N_PREFIX=${N_PREFIX-.*}$' '--replace_string=N_PREFIX=${N_PREFIX-/opt/node_n}' --target_file=/opt/node_n/bin/n
55226 DEBUG + set +o xtrace
55311 DEBUG + local delimit=@
55312 DEBUG + match_string='^N_PREFIX=${N_PREFIX-.*}$'
55312 DEBUG + replace_string='N_PREFIX=${N_PREFIX-/opt/node_n}'
55312 DEBUG + sed --in-place 's@^N_PREFIX=${N_PREFIX-.*}$@N_PREFIX=${N_PREFIX-/opt/node_n}@g' /opt/node_n/bin/n
55315 DEBUG + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
55315 DEBUG + test -x /usr/bin/node_n
55315 DEBUG + mv /usr/bin/node_n /usr/bin/node
55317 DEBUG + test -x /usr/bin/npm_n
55317 DEBUG + mv /usr/bin/npm_n /usr/bin/npm
55319 DEBUG ++ uname --machine
55320 DEBUG + uname=x86_64
55320 DEBUG + [[ x86_64 =~ aarch64 ]]
55320 DEBUG + [[ x86_64 =~ arm64 ]]
55320 DEBUG + n 14
56194 DEBUG installed : v14.17.1 (with npm 6.14.13)
56198 DEBUG ++ sort --version-sort
56198 DEBUG ++ find /opt/node_n/n/versions/node/14 /opt/node_n/n/versions/node/14.15.5 /opt/node_n/n/versions/node/14.16.0 /opt/node_n/n/versions/node/14.16.1 /opt/node_n/n/versions/node/14.17.0 /opt/node_n/n/versions/node/14.17.1 -maxdepth 0
56198 DEBUG ++ tail --lines=1
56204 DEBUG + real_nodejs_version=/opt/node_n/n/versions/node/14.17.1
56205 DEBUG ++ basename /opt/node_n/n/versions/node/14.17.1
56208 DEBUG + real_nodejs_version=14.17.1
56208 DEBUG + '[' '!' -e /opt/node_n/n/versions/node/14 ']'
56208 DEBUG + echo facilmap:14
56209 DEBUG + tee --append /opt/node_n/ynh_app_version
56210 DEBUG facilmap:14
56211 DEBUG + ynh_app_setting_set --app=facilmap --key=nodejs_version --value=14
56211 DEBUG + local legacy_args=akv
56212 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
56212 DEBUG + local -A args_array
56212 DEBUG + local app
56212 DEBUG + local key
56212 DEBUG + local value
56212 DEBUG + ynh_handle_getopts_args --app=facilmap --key=nodejs_version --value=14
56212 DEBUG + set +o xtrace
56301 DEBUG + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
56301 DEBUG + ynh_app_setting set facilmap nodejs_version 14
56301 DEBUG + set +o xtrace
56355 DEBUG + ynh_cron_upgrade_node
56356 DEBUG + cat
56361 DEBUG + chmod +x /opt/node_n/node_update.sh
56362 DEBUG + cat
56368 DEBUG + chmod +x /etc/cron.daily/node_update
56369 DEBUG + ynh_use_nodejs
56371 DEBUG ++ ynh_app_setting_get --app=facilmap --key=nodejs_version
56372 DEBUG ++ local legacy_args=ak
56372 DEBUG ++ args_array=([a]=app= [k]=key=)
56372 DEBUG ++ local -A args_array
56372 DEBUG ++ local app
56372 DEBUG ++ local key
56372 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=nodejs_version
56372 DEBUG ++ set +o xtrace
56435 DEBUG ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
56435 DEBUG ++ ynh_app_setting get facilmap nodejs_version
56435 DEBUG ++ set +o xtrace
56498 DEBUG + nodejs_version=14
56499 DEBUG + nodejs_path=/opt/node_n/n/versions/node/14/bin
56499 DEBUG + shopt -s expand_aliases
56499 DEBUG + ynh_node=/opt/node_n/n/versions/node/14/bin/node
56499 DEBUG + alias ynh_node=/opt/node_n/n/versions/node/14/bin/node
56499 DEBUG + ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
56499 DEBUG + alias ynh_npm=/opt/node_n/n/versions/node/14/bin/npm
56499 DEBUG + [[ :/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin: != *\:\/\o\p\t\/\n\o\d\e\_\n\/\n\/\v\e\r\s\i\o\n\s\/\n\o\d\e\/\1\4\/\b\i\n* ]]
56499 DEBUG + PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
56500 DEBUG + node_PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
56500 DEBUG + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
56500 DEBUG + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
56500 DEBUG + ynh_script_progression '--message=Creating a MySQL database...' --weight=2
56500 DEBUG + set +o xtrace
56582 DEBUG + set +o xtrace
56594 DEBUG + echo '! Helper used in legacy mode !'
56594 DEBUG + set +x
56596 DEBUG + echo '[....................] > Creating a MySQL database...'
56598 DEBUG + set -o xtrace
56598 DEBUG ++ ynh_sanitize_dbid --db_name=facilmap
56598 DEBUG ++ local legacy_args=n
56599 INFO [....................] > Creating a MySQL database...
56600 DEBUG ++ args_array=([n]=db_name=)
56600 DEBUG ++ local -A args_array
56600 DEBUG ++ local db_name
56600 DEBUG ++ ynh_handle_getopts_args --db_name=facilmap
56600 DEBUG ++ set +o xtrace
56609 DEBUG ++ echo facilmap
56609 DEBUG + db_name=facilmap
56610 DEBUG + db_user=facilmap
56610 DEBUG ++ ynh_app_setting_get --app=facilmap --key=mysqlpwd
56610 DEBUG ++ local legacy_args=ak
56610 DEBUG ++ args_array=([a]=app= [k]=key=)
56610 DEBUG ++ local -A args_array
56610 DEBUG ++ local app
56610 DEBUG ++ local key
56610 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=mysqlpwd
56611 DEBUG ++ set +o xtrace
56652 DEBUG ++ [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
56652 DEBUG ++ ynh_app_setting get facilmap mysqlpwd
56653 DEBUG ++ set +o xtrace
56699 DEBUG + db_pwd=
56700 DEBUG + ynh_app_setting_set --app=facilmap --key=db_name --value=facilmap
56700 DEBUG + local legacy_args=akv
56700 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
56700 DEBUG + local -A args_array
56700 DEBUG + local app
56700 DEBUG + local key
56701 DEBUG + local value
56701 DEBUG + ynh_handle_getopts_args --app=facilmap --key=db_name --value=facilmap
56701 DEBUG + set +o xtrace
56787 DEBUG + [[ db_name =~ (unprotected|protected|skipped)_ ]]
56787 DEBUG + ynh_app_setting set facilmap db_name facilmap
56788 DEBUG + set +o xtrace
56840 DEBUG + ynh_mysql_setup_db --db_user=facilmap --db_name=facilmap
56841 DEBUG + local legacy_args=unp
56843 DEBUG + args_array=([u]=db_user= [n]=db_name= [p]=db_pwd=)
56844 DEBUG + local -A args_array
56844 DEBUG + local db_user
56844 DEBUG + local db_name
56844 DEBUG + db_pwd=
56844 DEBUG + ynh_handle_getopts_args --db_user=facilmap --db_name=facilmap
56844 DEBUG + set +o xtrace
56889 DEBUG ++ ynh_string_random
56890 DEBUG ++ local legacy_args=l
56890 DEBUG ++ args_array=([l]=length=)
56890 DEBUG ++ local -A args_array
56890 DEBUG ++ local length
56890 DEBUG ++ ynh_handle_getopts_args
56890 DEBUG ++ set +o xtrace
56891 DEBUG ++ length=24
56891 DEBUG ++ dd if=/dev/urandom bs=1 count=1000
56891 DEBUG ++ tr --complement --delete A-Za-z0-9
56891 DEBUG ++ sed --quiet 's/\(.\{24\}\).*/\1/p'
56902 DEBUG + local new_db_pwd=qoD4tQnzsSZLeZ2Gc7BAS1O4
56903 DEBUG + db_pwd=qoD4tQnzsSZLeZ2Gc7BAS1O4
56903 DEBUG + ynh_mysql_create_db facilmap facilmap qoD4tQnzsSZLeZ2Gc7BAS1O4
56903 DEBUG + local db=facilmap
56903 DEBUG + local 'sql=CREATE DATABASE facilmap;'
56903 DEBUG + [[ 3 -gt 1 ]]
56903 DEBUG + sql+=' GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'''
56903 DEBUG + [[ -n qoD4tQnzsSZLeZ2Gc7BAS1O4 ]]
56903 DEBUG + sql+=' IDENTIFIED BY '\''qoD4tQnzsSZLeZ2Gc7BAS1O4'\'''
56904 DEBUG + sql+=' WITH GRANT OPTION;'
56904 DEBUG + ynh_mysql_execute_as_root '--sql=CREATE DATABASE facilmap; GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'' IDENTIFIED BY '\''qoD4tQnzsSZLeZ2Gc7BAS1O4'\'' WITH GRANT OPTION;'
56904 DEBUG + local legacy_args=sd
56904 DEBUG + args_array=([s]=sql= [d]=database=)
56904 DEBUG + local -A args_array
56904 DEBUG + local sql
56904 DEBUG + local database
56905 DEBUG + ynh_handle_getopts_args '--sql=CREATE DATABASE facilmap; GRANT ALL PRIVILEGES ON facilmap.* TO '\''facilmap'\''@'\''localhost'\'' IDENTIFIED BY '\''qoD4tQnzsSZLeZ2Gc7BAS1O4'\'' WITH GRANT OPTION;'
56905 DEBUG + set +o xtrace
56927 DEBUG + database=
56927 DEBUG + '[' -n '' ']'
56927 DEBUG + mysql -B ''
56939 DEBUG + ynh_app_setting_set --app=facilmap --key=mysqlpwd --value=qoD4tQnzsSZLeZ2Gc7BAS1O4
56941 DEBUG + local legacy_args=akv
56941 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
56942 DEBUG + local -A args_array
56943 DEBUG + local app
56943 DEBUG + local key
56944 DEBUG + local value
56944 DEBUG + ynh_handle_getopts_args --app=facilmap --key=mysqlpwd --value=qoD4tQnzsSZLeZ2Gc7BAS1O4
56945 DEBUG + set +o xtrace
57047 DEBUG + [[ mysqlpwd =~ (unprotected|protected|skipped)_ ]]
57048 DEBUG + ynh_app_setting set facilmap mysqlpwd qoD4tQnzsSZLeZ2Gc7BAS1O4
57048 DEBUG + set +o xtrace
57096 DEBUG + echo 'ALTER DATABASE facilmap CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci'
57096 DEBUG + ynh_mysql_connect_as --user=facilmap --password=qoD4tQnzsSZLeZ2Gc7BAS1O4 --database=facilmap
57097 DEBUG + local legacy_args=upd
57097 DEBUG + args_array=([u]=user= [p]=password= [d]=database=)
57097 DEBUG + local -A args_array
57097 DEBUG + local user
57097 DEBUG + local password
57097 DEBUG + local database
57097 DEBUG + ynh_handle_getopts_args --user=facilmap --password=qoD4tQnzsSZLeZ2Gc7BAS1O4 --database=facilmap
57097 DEBUG + set +o xtrace
57172 DEBUG + database=facilmap
57173 DEBUG + mysql --user=facilmap --password=qoD4tQnzsSZLeZ2Gc7BAS1O4 --batch facilmap
57181 DEBUG + ynh_script_progression '--message=Configuring system user...' --weight=1
57181 DEBUG + set +o xtrace
57236 DEBUG + set +o xtrace
57254 DEBUG + echo '! Helper used in legacy mode !'
57254 DEBUG + set +x
57256 DEBUG + echo '[....................] > Configuring system user...'
57256 INFO [....................] > Configuring system user...
57256 DEBUG + set -o xtrace
57257 DEBUG + ynh_system_user_create --username=facilmap --home_dir=/opt/yunohost/facilmap
57257 DEBUG + local legacy_args=uhs
57257 DEBUG + args_array=([u]=username= [h]=home_dir= [s]=use_shell [g]=groups=)
57257 DEBUG + local -A args_array
57257 DEBUG + local username
57257 DEBUG + local home_dir
57257 DEBUG + local use_shell
57257 DEBUG + local groups
57257 DEBUG + ynh_handle_getopts_args --username=facilmap --home_dir=/opt/yunohost/facilmap
57258 DEBUG + set +o xtrace
57337 DEBUG + use_shell=0
57337 DEBUG + home_dir=/opt/yunohost/facilmap
57337 DEBUG + groups=
57337 DEBUG + ynh_system_user_exists facilmap
57338 DEBUG + local legacy_args=u
57338 DEBUG + args_array=([u]=username=)
57338 DEBUG + local -A args_array
57338 DEBUG + local username
57338 DEBUG + ynh_handle_getopts_args facilmap
57338 DEBUG + set +o xtrace
57346 DEBUG + echo '! Helper used in legacy mode !'
57347 DEBUG + set +x
57349 DEBUG + getent passwd facilmap
57354 DEBUG + '[' -n /opt/yunohost/facilmap ']'
57354 DEBUG + local 'user_home_dir=--home-dir /opt/yunohost/facilmap'
57354 DEBUG + '[' 0 -eq 1 ']'
57354 DEBUG + local 'shell=--shell /usr/sbin/nologin'
57354 DEBUG + useradd --home-dir /opt/yunohost/facilmap --system --user-group facilmap --shell /usr/sbin/nologin
57393 DEBUG + local group
57393 DEBUG + ynh_script_progression '--message=Setting up source files...' --weight=100
57394 DEBUG + set +o xtrace
57461 DEBUG + set +o xtrace
57476 DEBUG + echo '! Helper used in legacy mode !'
57477 DEBUG + set +x
57479 DEBUG + echo '[++++++..............] > Setting up source files...'
57479 DEBUG + set -o xtrace
57479 DEBUG + ynh_app_setting_set --app=facilmap --key=final_path --value=/opt/yunohost/facilmap
57479 DEBUG + local legacy_args=akv
57480 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
57480 DEBUG + local -A args_array
57480 DEBUG + local app
57480 DEBUG + local key
57480 DEBUG + local value
57480 DEBUG + ynh_handle_getopts_args --app=facilmap --key=final_path --value=/opt/yunohost/facilmap
57480 DEBUG + set +o xtrace
57480 INFO [++++++..............] > Setting up source files...
57569 DEBUG + [[ final_path =~ (unprotected|protected|skipped)_ ]]
57569 DEBUG + ynh_app_setting set facilmap final_path /opt/yunohost/facilmap
57570 DEBUG + set +o xtrace
57627 DEBUG + ynh_script_progression '--message=Configuring NGINX web server...' --weight=2
57627 DEBUG + set +o xtrace
57717 DEBUG + set +o xtrace
57727 DEBUG + echo '! Helper used in legacy mode !'
57727 DEBUG + set +x
57733 DEBUG + echo '[######..............] > Configuring NGINX web server...'
57733 DEBUG + set -o xtrace
57733 DEBUG + ynh_add_nginx_config
57733 DEBUG + local finalnginxconf=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57733 DEBUG + '[' /facilmaps '!=' / ']'
57733 DEBUG + ynh_replace_string '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf
57733 DEBUG + local legacy_args=mrf
57733 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
57734 DEBUG + local -A args_array
57734 DEBUG + local match_string
57734 DEBUG + local replace_string
57734 DEBUG + local target_file
57734 DEBUG + ynh_handle_getopts_args '--match_string=^#sub_path_only' --replace_string= --target_file=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf
57734 DEBUG + set +o xtrace
57734 INFO [######..............] > Configuring NGINX web server...
57800 DEBUG + local delimit=@
57801 DEBUG + match_string='^#sub_path_only'
57801 DEBUG + replace_string=
57801 DEBUG + sed --in-place 's@^#sub_path_only@@g' /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf
57803 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf --destination=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57803 DEBUG + local legacy_args=tdv
57803 DEBUG + args_array=([t]=template= [d]=destination=)
57803 DEBUG + local -A args_array
57804 DEBUG + local template
57804 DEBUG + local destination
57804 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf --destination=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57804 DEBUG + set +o xtrace
57834 DEBUG + local template_path
57835 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf//var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf ']'
57835 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf ']'
57835 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf
57835 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57835 DEBUG + local legacy_args=f
57835 DEBUG + args_array=([f]=file=)
57836 DEBUG + local -A args_array
57836 DEBUG + local file
57836 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57836 DEBUG + set +o xtrace
57844 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
57844 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
57844 DEBUG ++ local legacy_args=ak
57844 DEBUG ++ args_array=([a]=app= [k]=key=)
57845 DEBUG ++ local -A args_array
57845 DEBUG ++ local app
57845 DEBUG ++ local key
57845 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
57845 DEBUG ++ set +o xtrace
57890 DEBUG ++ [[ checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf =~ (unprotected|protected|skipped)_ ]]
57891 DEBUG ++ ynh_app_setting get facilmap checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
57891 DEBUG ++ set +o xtrace
57935 DEBUG + local checksum_value=
57935 DEBUG + backup_file_checksum=
57935 DEBUG + '[' -n '' ']'
57935 DEBUG + touch /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57936 DEBUG + chown root:root /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57940 DEBUG + chmod 640 /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57941 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/nginx.conf /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57945 DEBUG + _ynh_apply_default_permissions /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57945 DEBUG + local target=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57946 DEBUG ++ tr -d '>= '
57946 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/manifest.json
57950 DEBUG + local ynh_requirement=4.2.4
57950 DEBUG + '[' -z 4.2.4 ']'
57950 DEBUG + '[' 4.2.4 == null ']'
57950 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
57952 DEBUG + chmod o-rwx /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57953 DEBUG + chmod g-w /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57954 DEBUG + chown -R root:root /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57956 DEBUG + ynh_system_user_exists facilmap
57956 DEBUG + local legacy_args=u
57957 DEBUG + args_array=([u]=username=)
57957 DEBUG + local -A args_array
57957 DEBUG + local username
57957 DEBUG + ynh_handle_getopts_args facilmap
57957 DEBUG + set +o xtrace
57967 DEBUG + echo '! Helper used in legacy mode !'
57968 DEBUG + set +x
57970 DEBUG + getent passwd facilmap
57976 DEBUG + chown facilmap:facilmap /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57981 DEBUG + ynh_replace_vars --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57981 DEBUG + local legacy_args=f
57981 DEBUG + args_array=([f]=file=)
57981 DEBUG + local -A args_array
57982 DEBUG + local file
57982 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57982 DEBUG + set +o xtrace
57990 DEBUG + test -n /facilmaps
57991 DEBUG + local path_url_slash_less=/facilmaps
57991 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57991 DEBUG + local legacy_args=mrf
57991 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
57991 DEBUG + local -A args_array
57991 DEBUG + local match_string
57992 DEBUG + local replace_string
57992 DEBUG + local target_file
57992 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
57992 DEBUG + set +o xtrace
58066 DEBUG + local delimit=@
58067 DEBUG + match_string=__PATH__/
58067 DEBUG + replace_string=/facilmaps/
58067 DEBUG + sed --in-place s@__PATH__/@/facilmaps/@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58069 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/facilmaps --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58069 DEBUG + local legacy_args=mrf
58069 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58069 DEBUG + local -A args_array
58069 DEBUG + local match_string
58069 DEBUG + local replace_string
58069 DEBUG + local target_file
58069 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/facilmaps --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58070 DEBUG + set +o xtrace
58165 DEBUG + local delimit=@
58166 DEBUG + match_string=__PATH__
58166 DEBUG + replace_string=/facilmaps
58166 DEBUG + sed --in-place s@__PATH__@/facilmaps@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58167 DEBUG + test -n facilmap
58168 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58168 DEBUG + local legacy_args=mrf
58168 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58168 DEBUG + local -A args_array
58168 DEBUG + local match_string
58168 DEBUG + local replace_string
58168 DEBUG + local target_file
58168 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58168 DEBUG + set +o xtrace
58240 DEBUG + local delimit=@
58240 DEBUG + match_string=__NAME__
58240 DEBUG + replace_string=facilmap
58240 DEBUG + sed --in-place s@__NAME__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58241 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58241 DEBUG + local legacy_args=mrf
58241 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58241 DEBUG + local -A args_array
58241 DEBUG + local match_string
58241 DEBUG + local replace_string
58241 DEBUG + local target_file
58242 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58242 DEBUG + set +o xtrace
58327 DEBUG + local delimit=@
58327 DEBUG + match_string=__NAMETOCHANGE__
58327 DEBUG + replace_string=facilmap
58328 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58329 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58330 DEBUG + local legacy_args=mrf
58330 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58330 DEBUG + local -A args_array
58330 DEBUG + local match_string
58330 DEBUG + local replace_string
58330 DEBUG + local target_file
58331 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58331 DEBUG + set +o xtrace
58396 DEBUG + local delimit=@
58397 DEBUG + match_string=__USER__
58397 DEBUG + replace_string=facilmap
58397 DEBUG + sed --in-place s@__USER__@facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58398 DEBUG + test -n /opt/yunohost/facilmap
58398 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58399 DEBUG + local legacy_args=mrf
58399 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58399 DEBUG + local -A args_array
58399 DEBUG + local match_string
58399 DEBUG + local replace_string
58399 DEBUG + local target_file
58399 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58400 DEBUG + set +o xtrace
58471 DEBUG + local delimit=@
58472 DEBUG + match_string=__FINALPATH__
58472 DEBUG + replace_string=/opt/yunohost/facilmap
58472 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58473 DEBUG + test -n 7.3
58474 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58474 DEBUG + local legacy_args=mrf
58474 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58474 DEBUG + local -A args_array
58474 DEBUG + local match_string
58474 DEBUG + local replace_string
58474 DEBUG + local target_file
58475 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58475 DEBUG + set +o xtrace
58529 DEBUG + local delimit=@
58529 DEBUG + match_string=__PHPVERSION__
58529 DEBUG + replace_string=7.3
58529 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58530 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
58530 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58530 DEBUG + local legacy_args=mrf
58531 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
58531 DEBUG + local -A args_array
58531 DEBUG + local match_string
58531 DEBUG + local replace_string
58531 DEBUG + local target_file
58531 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58531 DEBUG + set +o xtrace
58582 DEBUG + local delimit=@
58582 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
58582 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
58582 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58584 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
58586 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58586 DEBUG ++ sort --unique
58586 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
58587 DEBUG + local uniques_vars
58587 DEBUG + local delimit=@
58587 DEBUG + for one_var in "${uniques_vars[@]}"
58587 DEBUG + [[ -v port ]]
58587 DEBUG + match_string=__PORT__
58587 DEBUG + match_string=__PORT__
58588 DEBUG + replace_string=8082
58588 DEBUG + replace_string=8082
58588 DEBUG + replace_string=8082
58588 DEBUG + sed --in-place s@__PORT__@8082@g /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58588 DEBUG + ynh_store_file_checksum --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58589 DEBUG + local legacy_args=f
58589 DEBUG + args_array=([f]=file=)
58589 DEBUG + local -A args_array
58589 DEBUG + local file
58589 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58589 DEBUG + set +o xtrace
58596 DEBUG + local checksum_setting_name=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf
58596 DEBUG ++ md5sum /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
58597 DEBUG ++ cut '--delimiter= ' --fields=1
58598 DEBUG + ynh_app_setting_set --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf --value=a13f3daed27a2b793dbbfa242ebfce98
58598 DEBUG + local legacy_args=akv
58598 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
58599 DEBUG + local -A args_array
58599 DEBUG + local app
58599 DEBUG + local key
58599 DEBUG + local value
58599 DEBUG + ynh_handle_getopts_args --app=facilmap --key=checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf --value=a13f3daed27a2b793dbbfa242ebfce98
58599 DEBUG + set +o xtrace
58667 DEBUG + [[ checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf =~ (unprotected|protected|skipped)_ ]]
58667 DEBUG + ynh_app_setting set facilmap checksum__etc_nginx_conf.d_maps.trom.tf.d_facilmap.conf a13f3daed27a2b793dbbfa242ebfce98
58667 DEBUG + set +o xtrace
58711 DEBUG + '[' -n '' ']'
58712 DEBUG + unset backup_file_checksum
58712 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
58712 DEBUG + local legacy_args=nalpte
58712 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
58712 DEBUG + local -A args_array
58712 DEBUG + local service_name
58712 DEBUG + local action
58712 DEBUG + local line_match
58712 DEBUG + local length
58712 DEBUG + local log_path
58713 DEBUG + local timeout
58713 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
58713 DEBUG + set +o xtrace
58807 DEBUG + service_name=nginx
58808 DEBUG + action=reload
58809 DEBUG + line_match=
58809 DEBUG + length=20
58809 DEBUG + log_path=/var/log/nginx/nginx.log
58809 DEBUG + timeout=300
58809 DEBUG + '[' reload == stop ']'
58809 DEBUG + [[ -n '' ]]
58809 DEBUG + '[' reload == reload ']'
58810 DEBUG + action=reload-or-restart
58810 DEBUG + systemctl reload-or-restart nginx
59133 DEBUG + [[ -n '' ]]
59134 DEBUG + ynh_script_progression '--message=Building node dependencies...' --weight=200
59134 DEBUG + set +o xtrace
59220 DEBUG + set +o xtrace
59237 DEBUG + echo '! Helper used in legacy mode !'
59237 DEBUG + set +x
59239 INFO [######++++++++++++..] > Building node dependencies...
59239 DEBUG + echo '[######++++++++++++..] > Building node dependencies...'
59239 DEBUG + set -o xtrace
59239 DEBUG + mkdir -p /opt/yunohost/facilmap
59240 DEBUG + chown -R facilmap /opt/yunohost/facilmap
59242 DEBUG + pushd /opt/yunohost/facilmap
59242 DEBUG /opt/yunohost/facilmap /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/scripts
59242 DEBUG + ynh_exec_as facilmap PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/node_n/n/versions/node/14/bin/npm install --prefix /opt/yunohost/facilmap -g facilmap-server@3.3.0
59242 DEBUG + local user=facilmap
59243 DEBUG + shift 1
59243 DEBUG ++ whoami
59254 DEBUG + [[ facilmap = root ]]
59254 DEBUG + sudo -u facilmap PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /opt/node_n/n/versions/node/14/bin/npm install --prefix /opt/yunohost/facilmap -g facilmap-server@3.3.0
100702 DEBUG /opt/yunohost/facilmap/bin/facilmap-server -> /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/server.js
100993 DEBUG
100993 DEBUG > bootstrap-vue@2.21.2 postinstall /opt/yunohost/facilmap/lib/node_modules/facilmap-server/node_modules/bootstrap-vue
100993 DEBUG > opencollective || exit 0
100996 DEBUG
101309 DEBUG
101310 DEBUG ;iiiiiiiiiiSSSSSSSSiiiiiiiiii;
101311 DEBUG .rXXXXXXXXXrrrrrrrSXXXXXXXXXr.
101312 DEBUG :iXXXXXXXX2. ;;;;, r3XXXXXXXi;
101312 DEBUG ,rSSSSSXXXX2..sSSi: r3XXXSSSSSr,
101313 DEBUG ,siiiiS2XX2. :;;:,.rXX2Siiiis,
101313 DEBUG ,riiiii2X2..5XXXi .22iiiiir,
101313 DEBUG .riiiii22..::::,,r2iiiiir.
101313 DEBUG .riiiii5SSiiiiS22iiiiir.
101313 DEBUG ;iiiii5X3333X5iiiii;
101314 DEBUG :iiiiiSXXXXSiiiii:
101314 DEBUG :siiiiSXXSiiiis:
101314 DEBUG ,siiiiiiiiiis,
101315 DEBUG .riiiiiiiir.
101315 DEBUG .riiiiiir.
101315 DEBUG .;iiii;.
101316 DEBUG ;ii;
101316 DEBUG ::
101316 DEBUG
101317 DEBUG Thanks for installing bootstrap-vue
101318 DEBUG Please consider donating to our open collective
101318 DEBUG to help us maintain this package.
101318 DEBUG
101319 DEBUG Number of contributors: 0
101319 DEBUG Number of backers: 258
101344 DEBUG Annual budget: $19,625
101344 DEBUG Current balance: $12,447
101345 DEBUG
101345 DEBUG Donate: https://opencollective.com/bootstrap-vue/donate
101345 DEBUG
101442 DEBUG + facilmap-server@3.3.0
101442 DEBUG added 432 packages from 386 contributors in 41.651s
101471 DEBUG + popd
101471 DEBUG /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/scripts
101471 DEBUG + chmod 750 /opt/yunohost/facilmap
101475 DEBUG + chmod -R o-rwx /opt/yunohost/facilmap
101688 DEBUG + chown -R facilmap:www-data /opt/yunohost/facilmap
101837 DEBUG + ynh_script_progression '--message=Configuring a systemd service...' --weight=2
101837 DEBUG + set +o xtrace
101925 DEBUG + set +o xtrace
101945 DEBUG + echo '! Helper used in legacy mode !'
101945 DEBUG + set +x
101946 DEBUG + echo '[##################+.] > Configuring a systemd service...'
101947 INFO [##################+.] > Configuring a systemd service...
101947 DEBUG + set -o xtrace
101947 DEBUG + ynh_add_systemd_config
101947 DEBUG + local legacy_args=stv
101948 DEBUG + args_array=([s]=service= [t]=template= [v]=others_var=)
101948 DEBUG + local -A args_array
101948 DEBUG + local service
101949 DEBUG + local template
101949 DEBUG + local others_var
101949 DEBUG + ynh_handle_getopts_args
101949 DEBUG + set +o xtrace
101949 DEBUG + service=facilmap
101949 DEBUG + template=systemd.service
101949 DEBUG + others_var=
101949 DEBUG + [[ -z '' ]]
101949 DEBUG + ynh_add_config --template=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service --destination=/etc/systemd/system/facilmap.service
101950 DEBUG + local legacy_args=tdv
101950 DEBUG + args_array=([t]=template= [d]=destination=)
101950 DEBUG + local -A args_array
101950 DEBUG + local template
101950 DEBUG + local destination
101951 DEBUG + ynh_handle_getopts_args --template=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service --destination=/etc/systemd/system/facilmap.service
101951 DEBUG + set +o xtrace
102083 DEBUG + local template_path
102099 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf//var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service ']'
102100 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service ']'
102100 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service
102100 DEBUG + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/facilmap.service
102100 DEBUG + local legacy_args=f
102100 DEBUG + args_array=([f]=file=)
102100 DEBUG + local -A args_array
102100 DEBUG + local file
102100 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
102100 DEBUG + set +o xtrace
102122 DEBUG + local checksum_setting_name=checksum__etc_systemd_system_facilmap.service
102123 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__etc_systemd_system_facilmap.service
102123 DEBUG ++ local legacy_args=ak
102123 DEBUG ++ args_array=([a]=app= [k]=key=)
102123 DEBUG ++ local -A args_array
102123 DEBUG ++ local app
102123 DEBUG ++ local key
102124 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__etc_systemd_system_facilmap.service
102124 DEBUG ++ set +o xtrace
102273 DEBUG ++ [[ checksum__etc_systemd_system_facilmap.service =~ (unprotected|protected|skipped)_ ]]
102274 DEBUG ++ ynh_app_setting get facilmap checksum__etc_systemd_system_facilmap.service
102274 DEBUG ++ set +o xtrace
102340 DEBUG + local checksum_value=
102340 DEBUG + backup_file_checksum=
102341 DEBUG + '[' -n '' ']'
102341 DEBUG + touch /etc/systemd/system/facilmap.service
102341 DEBUG + chown root:root /etc/systemd/system/facilmap.service
102343 DEBUG + chmod 640 /etc/systemd/system/facilmap.service
102344 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/systemd.service /etc/systemd/system/facilmap.service
102346 DEBUG + _ynh_apply_default_permissions /etc/systemd/system/facilmap.service
102346 DEBUG + local target=/etc/systemd/system/facilmap.service
102367 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/manifest.json
102368 DEBUG ++ tr -d '>= '
102423 DEBUG + local ynh_requirement=4.2.4
102424 DEBUG + '[' -z 4.2.4 ']'
102424 DEBUG + '[' 4.2.4 == null ']'
102424 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
102424 DEBUG + chmod o-rwx /etc/systemd/system/facilmap.service
102443 DEBUG + chmod g-w /etc/systemd/system/facilmap.service
102445 DEBUG + chown -R root:root /etc/systemd/system/facilmap.service
102449 DEBUG + ynh_system_user_exists facilmap
102449 DEBUG + local legacy_args=u
102449 DEBUG + args_array=([u]=username=)
102449 DEBUG + local -A args_array
102449 DEBUG + local username
102449 DEBUG + ynh_handle_getopts_args facilmap
102450 DEBUG + set +o xtrace
102467 DEBUG + echo '! Helper used in legacy mode !'
102467 DEBUG + set +x
102469 DEBUG + getent passwd facilmap
102479 DEBUG + chown facilmap:facilmap /etc/systemd/system/facilmap.service
102479 DEBUG + ynh_replace_vars --file=/etc/systemd/system/facilmap.service
102480 DEBUG + local legacy_args=f
102480 DEBUG + args_array=([f]=file=)
102480 DEBUG + local -A args_array
102480 DEBUG + local file
102485 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
102485 DEBUG + set +o xtrace
102516 DEBUG + test -n /facilmaps
102517 DEBUG + local path_url_slash_less=/facilmaps
102518 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/etc/systemd/system/facilmap.service
102518 DEBUG + local legacy_args=mrf
102521 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
102521 DEBUG + local -A args_array
102521 DEBUG + local match_string
102521 DEBUG + local replace_string
102522 DEBUG + local target_file
102522 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/etc/systemd/system/facilmap.service
102522 DEBUG + set +o xtrace
102634 DEBUG + local delimit=@
102635 DEBUG + match_string=__PATH__/
102635 DEBUG + replace_string=/facilmaps/
102635 DEBUG + sed --in-place s@__PATH__/@/facilmaps/@g /etc/systemd/system/facilmap.service
102638 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/facilmaps --target_file=/etc/systemd/system/facilmap.service
102638 DEBUG + local legacy_args=mrf
102639 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
102639 DEBUG + local -A args_array
102639 DEBUG + local match_string
102639 DEBUG + local replace_string
102639 DEBUG + local target_file
102639 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/facilmaps --target_file=/etc/systemd/system/facilmap.service
102639 DEBUG + set +o xtrace
102750 DEBUG + local delimit=@
102750 DEBUG + match_string=__PATH__
102750 DEBUG + replace_string=/facilmaps
102750 DEBUG + sed --in-place s@__PATH__@/facilmaps@g /etc/systemd/system/facilmap.service
102752 DEBUG + test -n facilmap
102752 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
102753 DEBUG + local legacy_args=mrf
102753 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
102753 DEBUG + local -A args_array
102753 DEBUG + local match_string
102753 DEBUG + local replace_string
102753 DEBUG + local target_file
102753 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
102753 DEBUG + set +o xtrace
102879 DEBUG + local delimit=@
102880 DEBUG + match_string=__NAME__
102880 DEBUG + replace_string=facilmap
102880 DEBUG + sed --in-place s@__NAME__@facilmap@g /etc/systemd/system/facilmap.service
102886 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
102886 DEBUG + local legacy_args=mrf
102886 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
102886 DEBUG + local -A args_array
102887 DEBUG + local match_string
102887 DEBUG + local replace_string
102887 DEBUG + local target_file
102887 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
102888 DEBUG + set +o xtrace
103008 DEBUG + local delimit=@
103008 DEBUG + match_string=__NAMETOCHANGE__
103008 DEBUG + replace_string=facilmap
103008 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /etc/systemd/system/facilmap.service
103010 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
103010 DEBUG + local legacy_args=mrf
103010 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
103010 DEBUG + local -A args_array
103010 DEBUG + local match_string
103011 DEBUG + local replace_string
103011 DEBUG + local target_file
103011 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/etc/systemd/system/facilmap.service
103011 DEBUG + set +o xtrace
103136 DEBUG + local delimit=@
103137 DEBUG + match_string=__USER__
103137 DEBUG + replace_string=facilmap
103137 DEBUG + sed --in-place s@__USER__@facilmap@g /etc/systemd/system/facilmap.service
103138 DEBUG + test -n /opt/yunohost/facilmap
103139 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/systemd/system/facilmap.service
103139 DEBUG + local legacy_args=mrf
103139 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
103139 DEBUG + local -A args_array
103139 DEBUG + local match_string
103139 DEBUG + local replace_string
103139 DEBUG + local target_file
103139 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/etc/systemd/system/facilmap.service
103140 DEBUG + set +o xtrace
103320 DEBUG + local delimit=@
103321 DEBUG + match_string=__FINALPATH__
103321 DEBUG + replace_string=/opt/yunohost/facilmap
103321 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /etc/systemd/system/facilmap.service
103323 DEBUG + test -n 7.3
103324 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/facilmap.service
103324 DEBUG + local legacy_args=mrf
103324 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
103324 DEBUG + local -A args_array
103324 DEBUG + local match_string
103324 DEBUG + local replace_string
103325 DEBUG + local target_file
103325 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/etc/systemd/system/facilmap.service
103325 DEBUG + set +o xtrace
103468 DEBUG + local delimit=@
103469 DEBUG + match_string=__PHPVERSION__
103469 DEBUG + replace_string=7.3
103469 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /etc/systemd/system/facilmap.service
103470 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
103470 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/facilmap.service
103471 DEBUG + local legacy_args=mrf
103471 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
103471 DEBUG + local -A args_array
103471 DEBUG + local match_string
103471 DEBUG + local replace_string
103471 DEBUG + local target_file
103471 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/facilmap.service
103472 DEBUG + set +o xtrace
103589 DEBUG + local delimit=@
103589 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
103589 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
103589 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/systemd/system/facilmap.service
103591 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
103591 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/facilmap.service
103592 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
103597 DEBUG ++ sort --unique
103602 DEBUG + local uniques_vars
103602 DEBUG + local delimit=@
103603 DEBUG + for one_var in "${uniques_vars[@]}"
103603 DEBUG + [[ -v app ]]
103603 DEBUG + match_string=__APP__
103603 DEBUG + match_string=__APP__
103603 DEBUG + replace_string=facilmap
103603 DEBUG + replace_string=facilmap
103603 DEBUG + replace_string=facilmap
103603 DEBUG + sed --in-place s@__APP__@facilmap@g /etc/systemd/system/facilmap.service
103603 DEBUG + ynh_store_file_checksum --file=/etc/systemd/system/facilmap.service
103604 DEBUG + local legacy_args=f
103604 DEBUG + args_array=([f]=file=)
103604 DEBUG + local -A args_array
103604 DEBUG + local file
103604 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
103604 DEBUG + set +o xtrace
103617 DEBUG + local checksum_setting_name=checksum__etc_systemd_system_facilmap.service
103618 DEBUG ++ md5sum /etc/systemd/system/facilmap.service
103618 DEBUG ++ cut '--delimiter= ' --fields=1
103621 DEBUG + ynh_app_setting_set --app=facilmap --key=checksum__etc_systemd_system_facilmap.service --value=bee017d9de3bca998184be6672738eed
103621 DEBUG + local legacy_args=akv
103621 DEBUG + args_array=([a]=app= [k]=key= [v]=value=)
103621 DEBUG + local -A args_array
103621 DEBUG + local app
103621 DEBUG + local key
103621 DEBUG + local value
103621 DEBUG + ynh_handle_getopts_args --app=facilmap --key=checksum__etc_systemd_system_facilmap.service --value=bee017d9de3bca998184be6672738eed
103622 DEBUG + set +o xtrace
103722 DEBUG + [[ checksum__etc_systemd_system_facilmap.service =~ (unprotected|protected|skipped)_ ]]
103722 DEBUG + ynh_app_setting set facilmap checksum__etc_systemd_system_facilmap.service bee017d9de3bca998184be6672738eed
103723 DEBUG + set +o xtrace
103777 DEBUG + '[' -n '' ']'
103777 DEBUG + unset backup_file_checksum
103777 DEBUG + systemctl enable facilmap --quiet
104227 DEBUG + systemctl daemon-reload
104519 DEBUG + ynh_script_progression '--message=Adding configuration...' --weight=2
104519 DEBUG + set +o xtrace
104586 DEBUG + set +o xtrace
104599 DEBUG + echo '! Helper used in legacy mode !'
104599 DEBUG + set +x
104600 INFO [###################.] > Adding configuration...
104600 DEBUG + echo '[###################.] > Adding configuration...'
104601 DEBUG + set -o xtrace
104601 DEBUG + mkdir -p /opt/yunohost/facilmap/etc
104602 DEBUG + ynh_add_config --template=../conf/config.env --destination=/opt/yunohost/facilmap/etc/facilmap.env
104602 DEBUG + local legacy_args=tdv
104602 DEBUG + args_array=([t]=template= [d]=destination=)
104602 DEBUG + local -A args_array
104602 DEBUG + local template
104602 DEBUG + local destination
104602 DEBUG + ynh_handle_getopts_args --template=../conf/config.env --destination=/opt/yunohost/facilmap/etc/facilmap.env
104603 DEBUG + set +o xtrace
104640 DEBUG + local template_path
104640 DEBUG + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/../conf/config.env ']'
104640 DEBUG + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/../conf/config.env
104640 DEBUG + ynh_backup_if_checksum_is_different --file=/opt/yunohost/facilmap/etc/facilmap.env
104640 DEBUG + local legacy_args=f
104640 DEBUG + args_array=([f]=file=)
104640 DEBUG + local -A args_array
104640 DEBUG + local file
104641 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap/etc/facilmap.env
104641 DEBUG + set +o xtrace
104648 DEBUG + local checksum_setting_name=checksum__opt_yunohost_facilmap_etc_facilmap.env
104650 DEBUG ++ ynh_app_setting_get --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env
104650 DEBUG ++ local legacy_args=ak
104650 DEBUG ++ args_array=([a]=app= [k]=key=)
104650 DEBUG ++ local -A args_array
104650 DEBUG ++ local app
104650 DEBUG ++ local key
104651 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=checksum__opt_yunohost_facilmap_etc_facilmap.env
104651 DEBUG ++ set +o xtrace
104687 DEBUG ++ [[ checksum__opt_yunohost_facilmap_etc_facilmap.env =~ (unprotected|protected|skipped)_ ]]
104688 DEBUG ++ ynh_app_setting get facilmap checksum__opt_yunohost_facilmap_etc_facilmap.env
104688 DEBUG ++ set +o xtrace
104737 DEBUG + local checksum_value=
104737 DEBUG + backup_file_checksum=
104737 DEBUG + '[' -n '' ']'
104737 DEBUG + touch /opt/yunohost/facilmap/etc/facilmap.env
104738 DEBUG + chown root:root /opt/yunohost/facilmap/etc/facilmap.env
104740 DEBUG + chmod 640 /opt/yunohost/facilmap/etc/facilmap.env
104741 DEBUG + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/conf/../conf/config.env /opt/yunohost/facilmap/etc/facilmap.env
104743 DEBUG + _ynh_apply_default_permissions /opt/yunohost/facilmap/etc/facilmap.env
104743 DEBUG + local target=/opt/yunohost/facilmap/etc/facilmap.env
104744 DEBUG ++ jq -r .requirements.yunohost /var/cache/yunohost/app_tmp_work_dirs/app_ihcv508p/manifest.json
104744 DEBUG ++ tr -d '>= '
104748 DEBUG + local ynh_requirement=4.2.4
104748 DEBUG + '[' -z 4.2.4 ']'
104749 DEBUG + '[' 4.2.4 == null ']'
104749 DEBUG + dpkg --compare-versions 4.2.4 ge 4.2
104750 DEBUG + chmod o-rwx /opt/yunohost/facilmap/etc/facilmap.env
104752 DEBUG + chmod g-w /opt/yunohost/facilmap/etc/facilmap.env
104753 DEBUG + chown -R root:root /opt/yunohost/facilmap/etc/facilmap.env
104755 DEBUG + ynh_system_user_exists facilmap
104756 DEBUG + local legacy_args=u
104756 DEBUG + args_array=([u]=username=)
104756 DEBUG + local -A args_array
104756 DEBUG + local username
104756 DEBUG + ynh_handle_getopts_args facilmap
104756 DEBUG + set +o xtrace
104765 DEBUG + echo '! Helper used in legacy mode !'
104765 DEBUG + set +x
104767 DEBUG + getent passwd facilmap
104768 DEBUG + chown facilmap:facilmap /opt/yunohost/facilmap/etc/facilmap.env
104769 DEBUG + ynh_replace_vars --file=/opt/yunohost/facilmap/etc/facilmap.env
104770 DEBUG + local legacy_args=f
104770 DEBUG + args_array=([f]=file=)
104770 DEBUG + local -A args_array
104770 DEBUG + local file
104770 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap/etc/facilmap.env
104770 DEBUG + set +o xtrace
104781 DEBUG + test -n /facilmaps
104782 DEBUG + local path_url_slash_less=/facilmaps
104782 DEBUG + ynh_replace_string --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104782 DEBUG + local legacy_args=mrf
104783 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
104783 DEBUG + local -A args_array
104783 DEBUG + local match_string
104783 DEBUG + local replace_string
104783 DEBUG + local target_file
104783 DEBUG + ynh_handle_getopts_args --match_string=__PATH__/ --replace_string=/facilmaps/ --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104783 DEBUG + set +o xtrace
104858 DEBUG + local delimit=@
104858 DEBUG + match_string=__PATH__/
104858 DEBUG + replace_string=/facilmaps/
104858 DEBUG + sed --in-place s@__PATH__/@/facilmaps/@g /opt/yunohost/facilmap/etc/facilmap.env
104859 DEBUG + ynh_replace_string --match_string=__PATH__ --replace_string=/facilmaps --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104860 DEBUG + local legacy_args=mrf
104860 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
104860 DEBUG + local -A args_array
104860 DEBUG + local match_string
104860 DEBUG + local replace_string
104860 DEBUG + local target_file
104860 DEBUG + ynh_handle_getopts_args --match_string=__PATH__ --replace_string=/facilmaps --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104861 DEBUG + set +o xtrace
104935 DEBUG + local delimit=@
104935 DEBUG + match_string=__PATH__
104936 DEBUG + replace_string=/facilmaps
104936 DEBUG + sed --in-place s@__PATH__@/facilmaps@g /opt/yunohost/facilmap/etc/facilmap.env
104937 DEBUG + test -n facilmap
104937 DEBUG + ynh_replace_string --match_string=__NAME__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104937 DEBUG + local legacy_args=mrf
104937 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
104937 DEBUG + local -A args_array
104937 DEBUG + local match_string
104938 DEBUG + local replace_string
104938 DEBUG + local target_file
104938 DEBUG + ynh_handle_getopts_args --match_string=__NAME__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
104938 DEBUG + set +o xtrace
105025 DEBUG + local delimit=@
105025 DEBUG + match_string=__NAME__
105026 DEBUG + replace_string=facilmap
105026 DEBUG + sed --in-place s@__NAME__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105034 DEBUG + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105035 DEBUG + local legacy_args=mrf
105035 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
105035 DEBUG + local -A args_array
105035 DEBUG + local match_string
105035 DEBUG + local replace_string
105035 DEBUG + local target_file
105035 DEBUG + ynh_handle_getopts_args --match_string=__NAMETOCHANGE__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105036 DEBUG + set +o xtrace
105160 DEBUG + local delimit=@
105160 DEBUG + match_string=__NAMETOCHANGE__
105160 DEBUG + replace_string=facilmap
105161 DEBUG + sed --in-place s@__NAMETOCHANGE__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105168 DEBUG + ynh_replace_string --match_string=__USER__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105168 DEBUG + local legacy_args=mrf
105168 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
105168 DEBUG + local -A args_array
105169 DEBUG + local match_string
105169 DEBUG + local replace_string
105169 DEBUG + local target_file
105169 DEBUG + ynh_handle_getopts_args --match_string=__USER__ --replace_string=facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105169 DEBUG + set +o xtrace
105355 DEBUG + local delimit=@
105356 DEBUG + match_string=__USER__
105356 DEBUG + replace_string=facilmap
105356 DEBUG + sed --in-place s@__USER__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105359 DEBUG + test -n /opt/yunohost/facilmap
105360 DEBUG + ynh_replace_string --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105360 DEBUG + local legacy_args=mrf
105360 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
105360 DEBUG + local -A args_array
105360 DEBUG + local match_string
105360 DEBUG + local replace_string
105361 DEBUG + local target_file
105361 DEBUG + ynh_handle_getopts_args --match_string=__FINALPATH__ --replace_string=/opt/yunohost/facilmap --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105361 DEBUG + set +o xtrace
105517 DEBUG + local delimit=@
105518 DEBUG + match_string=__FINALPATH__
105518 DEBUG + replace_string=/opt/yunohost/facilmap
105518 DEBUG + sed --in-place s@__FINALPATH__@/opt/yunohost/facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105527 DEBUG + test -n 7.3
105528 DEBUG + ynh_replace_string --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105528 DEBUG + local legacy_args=mrf
105528 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
105528 DEBUG + local -A args_array
105528 DEBUG + local match_string
105528 DEBUG + local replace_string
105528 DEBUG + local target_file
105529 DEBUG + ynh_handle_getopts_args --match_string=__PHPVERSION__ --replace_string=7.3 --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105529 DEBUG + set +o xtrace
105631 DEBUG + local delimit=@
105631 DEBUG + match_string=__PHPVERSION__
105632 DEBUG + replace_string=7.3
105632 DEBUG + sed --in-place s@__PHPVERSION__@7.3@g /opt/yunohost/facilmap/etc/facilmap.env
105633 DEBUG + test -n PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
105633 DEBUG + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105634 DEBUG + local legacy_args=mrf
105634 DEBUG + args_array=([m]=match_string= [r]=replace_string= [f]=target_file=)
105634 DEBUG + local -A args_array
105634 DEBUG + local match_string
105634 DEBUG + local replace_string
105634 DEBUG + local target_file
105634 DEBUG + ynh_handle_getopts_args --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/opt/yunohost/facilmap/etc/facilmap.env
105634 DEBUG + set +o xtrace
105726 DEBUG + local delimit=@
105726 DEBUG + match_string=__YNH_NODE_LOAD_PATH__
105726 DEBUG + replace_string=PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
105726 DEBUG + sed --in-place s@__YNH_NODE_LOAD_PATH__@PATH=/opt/node_n/n/versions/node/14/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /opt/yunohost/facilmap/etc/facilmap.env
105730 DEBUG + uniques_vars=($(grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' $file | sort --unique | sed "s@__\([^.]*\)__@\L\1@g" ))
105731 DEBUG ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /opt/yunohost/facilmap/etc/facilmap.env
105731 DEBUG ++ sort --unique
105734 DEBUG ++ sed 's@__\([^.]*\)__@\L\1@g'
105738 DEBUG + local uniques_vars
105738 DEBUG + local delimit=@
105739 DEBUG + for one_var in "${uniques_vars[@]}"
105739 DEBUG + [[ -v db_name ]]
105739 DEBUG + match_string=__DB_NAME__
105739 DEBUG + match_string=__DB_NAME__
105739 DEBUG + replace_string=facilmap
105739 DEBUG + replace_string=facilmap
105740 DEBUG + replace_string=facilmap
105740 DEBUG + sed --in-place s@__DB_NAME__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105742 DEBUG + for one_var in "${uniques_vars[@]}"
105743 DEBUG + [[ -v db_pwd ]]
105743 DEBUG + match_string=__DB_PWD__
105743 DEBUG + match_string=__DB_PWD__
105744 DEBUG + replace_string=qoD4tQnzsSZLeZ2Gc7BAS1O4
105744 DEBUG + replace_string=qoD4tQnzsSZLeZ2Gc7BAS1O4
105744 DEBUG + replace_string=qoD4tQnzsSZLeZ2Gc7BAS1O4
105744 DEBUG + sed --in-place s@__DB_PWD__@qoD4tQnzsSZLeZ2Gc7BAS1O4@g /opt/yunohost/facilmap/etc/facilmap.env
105746 DEBUG + for one_var in "${uniques_vars[@]}"
105746 DEBUG + [[ -v db_user ]]
105746 DEBUG + match_string=__DB_USER__
105746 DEBUG + match_string=__DB_USER__
105746 DEBUG + replace_string=facilmap
105746 DEBUG + replace_string=facilmap
105747 DEBUG + replace_string=facilmap
105747 DEBUG + sed --in-place s@__DB_USER__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
105748 DEBUG + for one_var in "${uniques_vars[@]}"
105748 DEBUG + [[ -v mapbox_token ]]
105748 DEBUG + match_string=__MAPBOX_TOKEN__
105749 DEBUG + match_string=__MAPBOX_TOKEN__
105749 DEBUG + replace_string=trom
105749 DEBUG + replace_string=trom
105749 DEBUG + replace_string=trom
105749 DEBUG + sed --in-place s@__MAPBOX_TOKEN__@trom@g /opt/yunohost/facilmap/etc/facilmap.env
105750 DEBUG + for one_var in "${uniques_vars[@]}"
105750 DEBUG + [[ -v mapzen_token ]]
105751 DEBUG + ynh_die '--message=Variable $mapzen_token wasn'\''t initialized when trying to replace __MAPZEN_TOKEN__ in /opt/yunohost/facilmap/etc/facilmap.env'
105751 DEBUG + local legacy_args=mc
105751 DEBUG + args_array=([m]=message= [c]=ret_code=)
105751 DEBUG + local -A args_array
105751 DEBUG + local message
105751 DEBUG + local ret_code
105752 DEBUG + ynh_handle_getopts_args '--message=Variable $mapzen_token wasn'\''t initialized when trying to replace __MAPZEN_TOKEN__ in /opt/yunohost/facilmap/etc/facilmap.env'
105753 DEBUG + set +o xtrace
105773 DEBUG + ret_code=1
105773 DEBUG + echo 'Variable $mapzen_token wasn'\''t initialized when trying to replace __MAPZEN_TOKEN__ in /opt/yunohost/facilmap/etc/facilmap.env'
105773 DEBUG + exit 1
105774 DEBUG + ynh_exit_properly
105774 DEBUG + local exit_code=1
105774 DEBUG + rm -rf /var/cache/yunohost/download/
105775 WARNING Variable $mapzen_token wasn't initialized when trying to replace __MAPZEN_TOKEN__ in /opt/yunohost/facilmap/etc/facilmap.env
105775 DEBUG + '[' 1 -eq 0 ']'
105775 DEBUG + trap '' EXIT
105775 DEBUG + set +o errexit
105775 DEBUG + set +o nounset
105775 DEBUG + sleep 0.5
106277 DEBUG + type -t ynh_clean_setup
106277 DEBUG + ynh_clean_setup
106277 DEBUG + true
106277 DEBUG + exit 1
107278 ERROR Unable to install facilmap: An error occurred inside the app installation script
107279 INFO The operation 'Install the 'facilmap' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20210626-220404-app_install-facilmap' to get help
107317 WARNING Here's an extract of the logs before the crash. It might help debugging the error:
107318 INFO DEBUG - + replace_string=**********
107318 INFO DEBUG - + sed --in-place s@__DB_PWD__@**********@g /opt/yunohost/facilmap/etc/facilmap.env
107318 INFO DEBUG - + for one_var in "${uniques_vars[@]}"
107318 INFO DEBUG - + [[ -v db_user ]]
107318 INFO DEBUG - + match_string=__DB_USER__
107318 INFO DEBUG - + match_string=__DB_USER__
107318 INFO DEBUG - + replace_string=facilmap
107318 INFO DEBUG - + replace_string=facilmap
107318 INFO DEBUG - + replace_string=facilmap
107318 INFO DEBUG - + sed --in-place s@__DB_USER__@facilmap@g /opt/yunohost/facilmap/etc/facilmap.env
107318 INFO DEBUG - + for one_var in "${uniques_vars[@]}"
107318 INFO DEBUG - + [[ -v mapbox_token ]]
107318 INFO DEBUG - + match_string=__MAPBOX_TOKEN__
107318 INFO DEBUG - + match_string=__MAPBOX_TOKEN__
107318 INFO DEBUG - + replace_string=**********
107318 INFO DEBUG - + replace_string=**********
107318 INFO DEBUG - + replace_string=**********
107319 INFO DEBUG - + sed --in-place s@__MAPBOX_TOKEN__@**********@g /opt/yunohost/facilmap/etc/facilmap.env
107319 INFO DEBUG - + for one_var in "${uniques_vars[@]}"
107319 INFO DEBUG - + [[ -v mapzen_token ]]
107319 INFO DEBUG - + ynh_die '--message=Variable $mapzen_token wasn'\''t initialized when trying to replace __MAPZEN_TOKEN__ in /opt/yunohost/facilmap/etc/facilmap.env'
107386 WARNING Removing the app following the installation failure...
107413 DEBUG Executing command '/bin/bash -x "./remove" facilmap 7>&1'
107418 DEBUG + source _common.sh
107425 DEBUG ++ pkg_dependencies=
107425 DEBUG ++ nodejs_version=14
107426 DEBUG ++ facilmap_version=3.3.0
107426 DEBUG + source /usr/share/yunohost/helpers
107426 DEBUG +++ set +o
107426 DEBUG +++ grep xtrace
107426 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
107426 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
107427 DEBUG ++ set +x
107473 DEBUG + ynh_script_progression '--message=Loading installation settings...' --weight=1
107474 DEBUG + set +o xtrace
107581 DEBUG + set +o xtrace
107612 DEBUG + echo '! Helper used in legacy mode !'
107612 DEBUG + set +x
107613 DEBUG + echo '[+...................] > Loading installation settings...'
107613 INFO [+...................] > Loading installation settings...
107614 DEBUG + set -o xtrace
107614 DEBUG + app=facilmap
107614 DEBUG ++ ynh_app_setting_get --app=facilmap --key=domain
107614 DEBUG ++ local legacy_args=ak
107614 DEBUG ++ args_array=([a]=app= [k]=key=)
107614 DEBUG ++ local -A args_array
107614 DEBUG ++ local app
107614 DEBUG ++ local key
107614 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=domain
107615 DEBUG ++ set +o xtrace
107638 DEBUG ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
107639 DEBUG ++ ynh_app_setting get facilmap domain
107639 DEBUG ++ set +o xtrace
107688 DEBUG + domain=maps.trom.tf
107688 DEBUG ++ ynh_app_setting_get --app=facilmap --key=port
107688 DEBUG ++ local legacy_args=ak
107688 DEBUG ++ args_array=([a]=app= [k]=key=)
107688 DEBUG ++ local -A args_array
107688 DEBUG ++ local app
107689 DEBUG ++ local key
107689 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=port
107689 DEBUG ++ set +o xtrace
107742 DEBUG ++ [[ port =~ (unprotected|protected|skipped)_ ]]
107743 DEBUG ++ ynh_app_setting get facilmap port
107743 DEBUG ++ set +o xtrace
107804 DEBUG + port=8082
107804 DEBUG ++ ynh_app_setting_get --app=facilmap --key=db_name
107804 DEBUG ++ local legacy_args=ak
107805 DEBUG ++ args_array=([a]=app= [k]=key=)
107805 DEBUG ++ local -A args_array
107805 DEBUG ++ local app
107805 DEBUG ++ local key
107805 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=db_name
107805 DEBUG ++ set +o xtrace
107845 DEBUG ++ [[ db_name =~ (unprotected|protected|skipped)_ ]]
107845 DEBUG ++ ynh_app_setting get facilmap db_name
107845 DEBUG ++ set +o xtrace
107901 DEBUG + db_name=facilmap
107902 DEBUG + db_user=facilmap
107903 DEBUG ++ ynh_app_setting_get --app=facilmap --key=final_path
107903 DEBUG ++ local legacy_args=ak
107903 DEBUG ++ args_array=([a]=app= [k]=key=)
107903 DEBUG ++ local -A args_array
107903 DEBUG ++ local app
107904 DEBUG ++ local key
107904 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=final_path
107904 DEBUG ++ set +o xtrace
107953 DEBUG ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
107953 DEBUG ++ ynh_app_setting get facilmap final_path
107953 DEBUG ++ set +o xtrace
107995 DEBUG + final_path=/opt/yunohost/facilmap
107995 DEBUG + ynh_exec_warn_less yunohost service status facilmap
107995 DEBUG + eval yunohost service status facilmap
107995 DEBUG ++ yunohost service status facilmap
108238 DEBUG + ynh_script_progression '--message=Stopping and removing the systemd service...' --weight=2
108238 DEBUG + set +o xtrace
108328 DEBUG + set +o xtrace
108348 DEBUG + echo '! Helper used in legacy mode !'
108349 DEBUG + set +x
108350 DEBUG + echo '[#++.................] > Stopping and removing the systemd service...'
108351 INFO [#++.................] > Stopping and removing the systemd service...
108351 DEBUG + set -o xtrace
108351 DEBUG + ynh_remove_systemd_config
108351 DEBUG + local legacy_args=s
108351 DEBUG + args_array=([s]=service=)
108351 DEBUG + local -A args_array
108351 DEBUG + local service
108351 DEBUG + ynh_handle_getopts_args
108351 DEBUG + set +o xtrace
108351 DEBUG + local service=facilmap
108351 DEBUG + local finalsystemdconf=/etc/systemd/system/facilmap.service
108352 DEBUG + '[' -e /etc/systemd/system/facilmap.service ']'
108352 DEBUG + ynh_systemd_action --service_name=facilmap --action=stop
108352 DEBUG + local legacy_args=nalpte
108352 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
108352 DEBUG + local -A args_array
108352 DEBUG + local service_name
108352 DEBUG + local action
108352 DEBUG + local line_match
108352 DEBUG + local length
108352 DEBUG + local log_path
108352 DEBUG + local timeout
108353 DEBUG + ynh_handle_getopts_args --service_name=facilmap --action=stop
108353 DEBUG + set +o xtrace
108476 DEBUG + service_name=facilmap
108477 DEBUG + action=stop
108477 DEBUG + line_match=
108477 DEBUG + length=20
108477 DEBUG + log_path=/var/log/facilmap/facilmap.log
108477 DEBUG + timeout=300
108477 DEBUG + '[' stop == stop ']'
108477 DEBUG + systemctl is-active --quiet facilmap
108487 DEBUG + return 0
108488 DEBUG + systemctl disable facilmap --quiet
108767 DEBUG + ynh_secure_remove --file=/etc/systemd/system/facilmap.service
108767 DEBUG + local legacy_args=f
108768 DEBUG + args_array=([f]=file=)
108768 DEBUG + local -A args_array
108768 DEBUG + local file
108768 DEBUG + ynh_handle_getopts_args --file=/etc/systemd/system/facilmap.service
108770 DEBUG + set +o xtrace
108787 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
108787 DEBUG + '[' 1 -ge 2 ']'
108787 DEBUG + [[ -z /etc/systemd/system/facilmap.service ]]
108788 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/systemd/system/facilmap\.service ]]
108788 DEBUG + [[ /etc/systemd/system/facilmap.service =~ ^/[[:alnum:]]+$ ]]
108788 DEBUG + [[ e = \/ ]]
108788 DEBUG + '[' -e /etc/systemd/system/facilmap.service ']'
108788 DEBUG + rm --recursive /etc/systemd/system/facilmap.service
108788 DEBUG + systemctl daemon-reload
109053 DEBUG + ynh_script_progression '--message=Removing the MySQL database...' --weight=3
109053 DEBUG + set +o xtrace
109130 DEBUG + set +o xtrace
109141 DEBUG + echo '! Helper used in legacy mode !'
109141 DEBUG + set +x
109143 INFO [###++++.............] > Removing the MySQL database...
109144 DEBUG + echo '[###++++.............] > Removing the MySQL database...'
109144 DEBUG + set -o xtrace
109144 DEBUG + ynh_mysql_remove_db --db_user=facilmap --db_name=facilmap
109144 DEBUG + local legacy_args=un
109145 DEBUG + args_array=([u]=db_user= [n]=db_name=)
109145 DEBUG + local -Ar args_array
109145 DEBUG + local db_user
109145 DEBUG + local db_name
109145 DEBUG + ynh_handle_getopts_args --db_user=facilmap --db_name=facilmap
109145 DEBUG + set +o xtrace
109179 DEBUG + mysqlshow
109179 DEBUG + grep -q '^| facilmap '
109186 DEBUG + ynh_mysql_drop_db facilmap
109187 DEBUG + ynh_mysql_execute_as_root '--sql=DROP DATABASE facilmap;'
109187 DEBUG + local legacy_args=sd
109187 DEBUG + args_array=([s]=sql= [d]=database=)
109187 DEBUG + local -A args_array
109187 DEBUG + local sql
109187 DEBUG + local database
109187 DEBUG + ynh_handle_getopts_args '--sql=DROP DATABASE facilmap;'
109187 DEBUG + set +o xtrace
109202 DEBUG + database=
109202 DEBUG + '[' -n '' ']'
109202 DEBUG + mysql -B ''
109214 DEBUG + ynh_mysql_user_exists --user=facilmap
109215 DEBUG + local legacy_args=u
109215 DEBUG + args_array=([u]=user=)
109215 DEBUG + local -A args_array
109215 DEBUG + local user
109215 DEBUG + ynh_handle_getopts_args --user=facilmap
109215 DEBUG + set +o xtrace
109224 DEBUG ++ ynh_mysql_execute_as_root '--sql=SELECT User from mysql.user WHERE User = '\''facilmap'\'';'
109225 DEBUG ++ local legacy_args=sd
109225 DEBUG ++ args_array=([s]=sql= [d]=database=)
109225 DEBUG ++ local -A args_array
109225 DEBUG ++ local sql
109225 DEBUG ++ local database
109225 DEBUG ++ ynh_handle_getopts_args '--sql=SELECT User from mysql.user WHERE User = '\''facilmap'\'';'
109225 DEBUG ++ set +o xtrace
109265 DEBUG ++ database=
109266 DEBUG ++ '[' -n '' ']'
109266 DEBUG ++ mysql -B ''
109277 DEBUG + [[ -z User
109277 DEBUG facilmap ]]
109277 DEBUG + return 0
109277 DEBUG + ynh_mysql_drop_user facilmap
109278 DEBUG + ynh_mysql_execute_as_root '--sql=DROP USER '\''facilmap'\''@'\''localhost'\'';'
109278 DEBUG + local legacy_args=sd
109278 DEBUG + args_array=([s]=sql= [d]=database=)
109278 DEBUG + local -A args_array
109278 DEBUG + local sql
109278 DEBUG + local database
109279 DEBUG + ynh_handle_getopts_args '--sql=DROP USER '\''facilmap'\''@'\''localhost'\'';'
109279 DEBUG + set +o xtrace
109300 DEBUG + database=
109300 DEBUG + '[' -n '' ']'
109300 DEBUG + mysql -B ''
109308 DEBUG + ynh_script_progression '--message=Removing dependencies...' --weight=3
109308 DEBUG + set +o xtrace
109383 DEBUG + set +o xtrace
109396 DEBUG + echo '! Helper used in legacy mode !'
109396 DEBUG + set +x
109398 INFO [#######+++..........] > Removing dependencies...
109398 DEBUG + echo '[#######+++..........] > Removing dependencies...'
109398 DEBUG + set -o xtrace
109398 DEBUG + ynh_remove_app_dependencies
109398 DEBUG + local dep_app=facilmap
109399 DEBUG + ynh_package_autopurge facilmap-ynh-deps
109399 DEBUG + ynh_apt autoremove --purge facilmap-ynh-deps
109399 DEBUG + ynh_wait_dpkg_free
109399 DEBUG + local try
109399 DEBUG + set +o xtrace
110854 DEBUG + return 0
110854 DEBUG + LC_ALL=C
110855 DEBUG + DEBIAN_FRONTEND=noninteractive
110855 DEBUG + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge facilmap-ynh-deps
110915 DEBUG Reading package lists...
111251 DEBUG Building dependency tree...
111252 DEBUG Reading state information...
111690 DEBUG The following packages will be REMOVED:
111692 DEBUG facilmap-ynh-deps*
112325 DEBUG 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
112325 DEBUG After this operation, 9216 B disk space will be freed.
112525 DEBUG (Reading database ... 175369 files and directories currently installed.)
112543 DEBUG Removing facilmap-ynh-deps (3.3.0~ynh1) ...
112891 DEBUG + ynh_remove_nodejs
112891 DEBUG ++ ynh_app_setting_get --app=facilmap --key=nodejs_version
112892 DEBUG ++ local legacy_args=ak
112892 DEBUG ++ args_array=([a]=app= [k]=key=)
112892 DEBUG ++ local -A args_array
112892 DEBUG ++ local app
112892 DEBUG ++ local key
112892 DEBUG ++ ynh_handle_getopts_args --app=facilmap --key=nodejs_version
112892 DEBUG ++ set +o xtrace
112939 DEBUG ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
112939 DEBUG ++ ynh_app_setting get facilmap nodejs_version
112939 DEBUG ++ set +o xtrace
112989 DEBUG + nodejs_version=14
112989 DEBUG + sed --in-place /facilmap:14/d /opt/node_n/ynh_app_version
112991 DEBUG + grep --quiet 14 /opt/node_n/ynh_app_version
112993 DEBUG + '[' '!' -s /opt/node_n/ynh_app_version ']'
112994 DEBUG + ynh_script_progression '--message=Removing app main directory...' --weight=2
112994 DEBUG + set +o xtrace
113118 DEBUG + set +o xtrace
113151 DEBUG + echo '! Helper used in legacy mode !'
113154 DEBUG + set +x
113155 DEBUG + echo '[##########++........] > Removing app main directory...'
113155 DEBUG + set -o xtrace
113157 DEBUG + ynh_secure_remove --file=/opt/yunohost/facilmap
113157 DEBUG + local legacy_args=f
113157 DEBUG + args_array=([f]=file=)
113157 DEBUG + local -A args_array
113157 DEBUG + local file
113158 DEBUG + ynh_handle_getopts_args --file=/opt/yunohost/facilmap
113158 DEBUG + set +o xtrace
113158 INFO [##########++........] > Removing app main directory...
113186 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
113188 DEBUG + '[' 1 -ge 2 ']'
113189 DEBUG + [[ -z /opt/yunohost/facilmap ]]
113189 DEBUG + [[ /var/www /home/yunohost.app =~ /opt/yunohost/facilmap ]]
113189 DEBUG + [[ /opt/yunohost/facilmap =~ ^/[[:alnum:]]+$ ]]
113189 DEBUG + [[ p = \/ ]]
113189 DEBUG + '[' -e /opt/yunohost/facilmap ']'
113189 DEBUG + rm --recursive /opt/yunohost/facilmap
113653 DEBUG + ynh_script_progression '--message=Removing NGINX web server configuration...' --weight=1
113653 DEBUG + set +o xtrace
113744 DEBUG + set +o xtrace
113757 DEBUG + echo '! Helper used in legacy mode !'
113757 DEBUG + set +x
113759 INFO [############++......] > Removing NGINX web server configuration...
113759 DEBUG + echo '[############++......] > Removing NGINX web server configuration...'
113759 DEBUG + set -o xtrace
113759 DEBUG + ynh_remove_nginx_config
113759 DEBUG + ynh_secure_remove --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
113759 DEBUG + local legacy_args=f
113760 DEBUG + args_array=([f]=file=)
113760 DEBUG + local -A args_array
113760 DEBUG + local file
113760 DEBUG + ynh_handle_getopts_args --file=/etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
113760 DEBUG + set +o xtrace
113770 DEBUG + local 'forbidden_path= /var/www /home/yunohost.app'
113770 DEBUG + '[' 1 -ge 2 ']'
113770 DEBUG + [[ -z /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf ]]
113771 DEBUG + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/maps\.trom\.tf\.d/facilmap\.conf ]]
113771 DEBUG + [[ /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf =~ ^/[[:alnum:]]+$ ]]
113771 DEBUG + [[ f = \/ ]]
113771 DEBUG + '[' -e /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf ']'
113771 DEBUG + rm --recursive /etc/nginx/conf.d/maps.trom.tf.d/facilmap.conf
113772 DEBUG + ynh_systemd_action --service_name=nginx --action=reload
113773 DEBUG + local legacy_args=nalpte
113773 DEBUG + args_array=([n]=service_name= [a]=action= [l]=line_match= [p]=log_path= [t]=timeout= [e]=length=)
113773 DEBUG + local -A args_array
113773 DEBUG + local service_name
113773 DEBUG + local action
113773 DEBUG + local line_match
113773 DEBUG + local length
113773 DEBUG + local log_path
113774 DEBUG + local timeout
113774 DEBUG + ynh_handle_getopts_args --service_name=nginx --action=reload
113774 DEBUG + set +o xtrace
113881 DEBUG + service_name=nginx
113881 DEBUG + action=reload
113881 DEBUG + line_match=
113881 DEBUG + length=20
113881 DEBUG + log_path=/var/log/nginx/nginx.log
113882 DEBUG + timeout=300
113882 DEBUG + '[' reload == stop ']'
113882 DEBUG + [[ -n '' ]]
113882 DEBUG + '[' reload == reload ']'
113882 DEBUG + action=reload-or-restart
113882 DEBUG + systemctl reload-or-restart nginx
114249 DEBUG + [[ -n '' ]]
114250 DEBUG + ynh_script_progression '--message=Removing logrotate configuration...' --weight=1
114250 DEBUG + set +o xtrace
114318 DEBUG + set +o xtrace
114329 DEBUG + echo '! Helper used in legacy mode !'
114329 DEBUG + set +x
114330 DEBUG + echo '[##############+.....] > Removing logrotate configuration...'
114331 INFO [##############+.....] > Removing logrotate configuration...
114331 DEBUG + set -o xtrace
114331 DEBUG + ynh_remove_logrotate
114331 DEBUG + '[' -e /etc/logrotate.d/facilmap ']'
114331 DEBUG + ynh_script_progression '--message=Removing the dedicated system user...' --weight=1
114331 DEBUG + set +o xtrace
114395 DEBUG + set +o xtrace
114415 DEBUG + echo '! Helper used in legacy mode !'
114415 DEBUG + set +x
114418 DEBUG + echo '[###############+....] > Removing the dedicated system user...'
114418 DEBUG + set -o xtrace
114418 DEBUG + ynh_system_user_delete --username=facilmap
114418 DEBUG + local legacy_args=u
114418 DEBUG + args_array=([u]=username=)
114418 DEBUG + local -A args_array
114418 DEBUG + local username
114418 DEBUG + ynh_handle_getopts_args --username=facilmap
114419 INFO [###############+....] > Removing the dedicated system user...
114424 DEBUG + set +o xtrace
114441 DEBUG + ynh_system_user_exists facilmap
114441 DEBUG + local legacy_args=u
114441 DEBUG + args_array=([u]=username=)
114441 DEBUG + local -A args_array
114441 DEBUG + local username
114441 DEBUG + ynh_handle_getopts_args facilmap
114441 DEBUG + set +o xtrace
114449 DEBUG + echo '! Helper used in legacy mode !'
114449 DEBUG + set +x
114452 DEBUG + getent passwd facilmap
114453 DEBUG + deluser facilmap
114549 DEBUG Removing user `facilmap' ...
114550 DEBUG Warning: group `facilmap' has no more members.
114742 DEBUG Done.
114743 DEBUG + ynh_system_group_exists facilmap
114743 DEBUG + local legacy_args=g
114744 DEBUG + args_array=([g]=group=)
114744 DEBUG + local -A args_array
114744 DEBUG + local group
114744 DEBUG + ynh_handle_getopts_args facilmap
114744 DEBUG + set +o xtrace
114756 DEBUG + echo '! Helper used in legacy mode !'
114756 DEBUG + set +x
114761 DEBUG + getent group facilmap
114776 DEBUG + ynh_script_progression '--message=Removal of facilmap completed' --last
114776 DEBUG + set +o xtrace
114889 DEBUG + set +o xtrace
114904 DEBUG + echo '! Helper used in legacy mode !'
114905 DEBUG + set +x
114908 INFO [####################] > Removal of facilmap completed
114908 DEBUG + echo '[####################] > Removal of facilmap completed'
114908 DEBUG + set -o xtrace
116823 DEBUG Permission 'facilmap.main' deleted
116825 DEBUG To view the log of the operation 'Delete permission 'facilmap'', use the command 'yunohost log show 20210626-220525-permission_delete-facilmap20210626-220525-permission_delete-facilmap'
116835 DEBUG Checking that required services are up and running...
118252 DEBUG To view the log of the operation 'Remove 'facilmap' after a failed installation', use the command 'yunohost log show 20210626-220515-remove_on_failed_install-facilmap20210626-220515-remove_on_failed_install-facilmap'
118697 DEBUG The permission database has been resynchronized
119330 DEBUG SSOwat configuration regenerated
119341 DEBUG action [22210.1] executed in 119.186s
119342 DEBUG lock has been released
119342 ERROR The operation 'Install the 'facilmap' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20210626-220404-app_install-facilmap' to get help
Ok I restored a backup now all is up and running. Added the APIs to /etc/yunohost/apps/facilmap/settings.yml and restarted the service but I still cannot create routes. I get an error: Route could not be calculated (undefined).
I also tried editing the file /etc/yunohost/apps/facilmap/conf/config.env but same.... I did that because of this https://docs.facilmap.org/developers/server/config.html
In all it works, but not to route anything...
The issue is still relevant since you cannot install it via the admin panel + we have to figure out why the APIs for the needed services do not seem to work. I changed the title a bit.
The issue is still relevant since you cannot install it via the admin panel + we have to figure out why the APIs for the needed services do not seem to work. I changed the title a bit.
The app will be available to install in webadmin once it succeed the validation process...
The app will be available to install in webadmin once it succeed the validation process...
This also has to do with why the APIs do not work?
The app will be available to install in webadmin once it succeed the validation process...
This also has to do with why the APIs do not work?
I don't think so
Ok. Let me know if I should test anything else. I love facilmap and I cannot wait to provide it as a service for everyone ;). Thank you for your work and hopefully soon it is going to be usable.
I'm not experienced with YunoHost, can you somehow see the logs of FacilMap? Maybe systemctl status facilmap
or journalctl --unit=facilmap.service
. You should see a more detailed error there.
Ok, here it is:
sudo journalctl --unit=facilmap.service
-- Logs begin at Fri 2021-06-25 00:09:52 CEST, end at Sun 2021-06-27 15:22:22 CE
Jun 26 23:10:54 tromland.nohost.me systemd[1]: Started Facilmap: collaborative m
Jun 26 23:10:55 tromland.nohost.me facilmap[17681]: Downloading maxmind database
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Trace: Error downloading max
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at download (/opt/yunoho
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndReject
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at /opt/yunohost/facilma
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndReject
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Server started on 127.0.0.1:
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Main process ex
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative m
Jun 26 23:18:51 tromland.nohost.me systemd[1]: Started Facilmap: collaborative m
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Downloading maxmind database
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Server started on 127.0.0.1:
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Trace: Error downloading max
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at download (/opt/yunoho
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndReject
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at /opt/yunohost/facilma
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndReject
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: Error: Route could not be ca
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at Object.calculateOSRMR
lines 1-23...skipping...
-- Logs begin at Fri 2021-06-25 00:09:52 CEST, end at Sun 2021-06-27 15:22:22 CEST. --
Jun 26 23:10:54 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 26 23:10:55 tromland.nohost.me facilmap[17681]: Downloading maxmind database
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Server started on 127.0.0.1:8082
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 26 23:18:51 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Downloading maxmind database
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Server started on 127.0.0.1:8082
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: Error: Route could not be calculated (undefined).
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at Object.calculateOSRMRoute (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/osrm.js:49:19)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at async calculateRoute (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/routing.js:19:17)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at async Object.calculateRouteForLine (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/routing.js:54:27)
Jun 26 23:50:09 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 26 23:50:09 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 26 23:50:09 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 26 23:50:09 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 27 00:14:09 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 27 00:14:10 tromland.nohost.me facilmap[22982]: Downloading maxmind database
Jun 27 00:14:10 tromland.nohost.me facilmap[22982]: Server started on 127.0.0.1:8082
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:15:11 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 27 00:15:11 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 27 00:15:11 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 27 00:15:11 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 27 00:15:14 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 27 00:15:15 tromland.nohost.me facilmap[28025]: Downloading maxmind database
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: Server started on 127.0.0.1:8082
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:29:10 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 27 00:29:10 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 27 00:29:10 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 27 00:29:10 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 27 00:29:10 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 27 00:29:11 tromland.nohost.me facilmap[14743]: Downloading maxmind database
Jun 27 00:29:11 tromland.nohost.me facilmap[14743]: Server started on 127.0.0.1:8082
Jun 27 00:29:16 tromland.nohost.me facilmap[14743]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 27 00:29:16 tromland.nohost.me facilmap[14743]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
lines 1-59
-- Logs begin at Fri 2021-06-25 00:09:52 CEST, end at Sun 2021-06-27 15:22:22 CEST. --
Jun 26 23:10:54 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 26 23:10:55 tromland.nohost.me facilmap[17681]: Downloading maxmind database
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:10:56 tromland.nohost.me facilmap[17681]: Server started on 127.0.0.1:8082
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 26 23:18:48 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 26 23:18:48 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 26 23:18:51 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Downloading maxmind database
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Server started on 127.0.0.1:8082
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 26 23:18:52 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: Error: Route could not be calculated (undefined).
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at Object.calculateOSRMRoute (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/osrm.js:49:19)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at async calculateRoute (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/routing.js:19:17)
Jun 26 23:25:46 tromland.nohost.me facilmap[30093]: at async Object.calculateRouteForLine (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/routing/routing.js:54:27)
Jun 26 23:50:09 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 26 23:50:09 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 26 23:50:09 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 26 23:50:09 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 27 00:14:09 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 27 00:14:10 tromland.nohost.me facilmap[22982]: Downloading maxmind database
Jun 27 00:14:10 tromland.nohost.me facilmap[22982]: Server started on 127.0.0.1:8082
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 27 00:14:11 tromland.nohost.me facilmap[22982]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:15:11 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 27 00:15:11 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 27 00:15:11 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
Jun 27 00:15:11 tromland.nohost.me systemd[1]: Stopped Facilmap: collaborative maps.
Jun 27 00:15:14 tromland.nohost.me systemd[1]: Started Facilmap: collaborative maps.
Jun 27 00:15:15 tromland.nohost.me facilmap[28025]: Downloading maxmind database
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: Server started on 127.0.0.1:8082
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: Trace: Error downloading maxmind database Error: Unexpected status code 401 when downloading maxmind database.
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at download (/opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:53:15)
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at /opt/yunohost/facilmap/lib/node_modules/facilmap-server/dist/geoip.js:26:17
Jun 27 00:15:16 tromland.nohost.me facilmap[28025]: at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jun 27 00:29:10 tromland.nohost.me systemd[1]: Stopping Facilmap: collaborative maps...
Jun 27 00:29:10 tromland.nohost.me systemd[1]: facilmap.service: Main process exited, code=killed, status=15/TERM
Jun 27 00:29:10 tromland.nohost.me systemd[1]: facilmap.service: Succeeded.
I guess the error handling is not ideal there.
Could you see if calculating a route works when you enable the "Load route details" option?
Are you sure that you have configured a valid token for MapBox?
Also, unrelated to the routing problem, are you sure thta you have configured a valid token for MaxMind? An empty token would also work, in which the geoip feature would just be disabled.
Ok, so.
Could you see if calculating a route works when you enable the "Load route details" option?
With that enabled I get a new error: Daily quota reached or API key unauthorized
Which service is this one using. OSR?
Are you sure that you have configured a valid token for MapBox?
Not sure to be honest. This is how I did it:
I simply clicked to create a new token.
Also, unrelated to the routing problem, are you sure thta you have configured a valid token for MaxMind? An empty token would also work, in which the geoip feature would just be disabled.
Ok then for now I can leave this as blank.
Maybe this is related, but I see that etc/yunohost/apps/facilmap as 0400 access for root:root. That's where settings.yml and config.env are located. Maybe the way ynh installs it and deals with permissions makes it unable for the app to download routes or use the APIs of external services?
Ok, sorry my bad! I was editing the wrong file. The right file to edit is: opt/yunohost/facilmap/etc/facilmap.env. Now it works to route with road details but not without.
It's using Mapbox for routes without details and OpenRouteService (ORS) for routes with details.
Unfortunately the Mapbox documentation does not say which scope is required to use the directions API, but I think no scope is required at all, so it should work... Did you make sure to restart FacilMap after you put MAPBOX_TOKEN
into the config?
Ok so everything works now! I have used the "Default public token" for Mapbox and works. So far all seem to work. Maybe more documentation is needed for facilmap in regards to setting up tokens. But damn this facilmap is amazing. I suppose it is you @cdauth who are developing it? Just amazing map. A friend is going across Pyrenees across Spain via GR11 and we spent months trying to find an editable map to add routes, points of interest and all that. Facilmap did all of it. We also provide many free applications at trom.tf so yah I am so happy you people create these tools and help with their development.
I will keep this issue open until facilmap can be installed via webmin on ynh. But thank you guys very much for the help
The map we just setup is at https://maps.trom.tf!
I can find this app in the repository but clicking install nothing happens.