Ethercalc fails to install (emitter "seems to be corrupted")

My YunoHost server

Hardware: Old laptop
YunoHost version: 11.2.5
I have access to my server : Through SSH, through the webadmin, direct access via keyboard
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: 20201228~ynh9

Description of my issue

Fresh install of Yunohost. So far I’ve installed Pi-hole successfully, and am using it as my local DNS server.

Currently, I’m attempting to install Ethercalc. The installer says it can only be installed using a subdomain, so I created one in Pi-hole and confirmed that it does appear in the Domains listing of my Yunohost install.

The install fails. From reading the log file, it looks like a package called emitter is corrupt: 2023-11-23 20:48:29,788: DEBUG - npm WARN tarball tarball data for emitter@http://github.com/component/emitter/archive/1.0.1.tar.gz [...] seems to be corrupted. Trying again.

Maybe that’s not the actual problem, and just a symptom. I’m not sure, so I’m wondering if anyone here has encountered this.

Here’s the full log:

args:
  app: ethercalc
  force: false
  label: undefined
  no_remove_on_failure: false
ended_at: 2023-11-23 07:48:31.397139
env:
  YNH_APP_ACTION: install
  YNH_APP_ARG_DOMAIN: sheets.maindomain.tld
  YNH_APP_ARG_EXPIRE: '0'
  YNH_APP_ARG_INIT_MAIN_PERMISSION: all_users
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi
  YNH_APP_ID: ethercalc
  YNH_APP_INSTANCE_NAME: ethercalc
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 20201228~ynh9
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_ARCH: amd64
  YNH_DEBIAN_VERSION: bullseye
error: An error occurred inside the app installation script
interface: api
operation: app_install
parent: null
related_to:
- - app
  - ethercalc
started_at: 2023-11-23 07:47:13.570066
success: false
yunohost_version: 11.2.5

============

2023-11-23 20:47:13,594: INFO - Installing ethercalc...
2023-11-23 20:47:13,607: INFO - Provisionning sources...
2023-11-23 20:47:13,608: DEBUG - Prefetching asset main: https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz ...
2023-11-23 20:47:15,691: INFO - Provisionning ports...
2023-11-23 20:47:15,748: INFO - Provisionning system_user...
2023-11-23 20:47:16,839: INFO - Provisionning install_dir...
2023-11-23 20:47:16,872: INFO - Provisionning permissions...
2023-11-23 20:47:17,337: DEBUG - Permission 'ethercalc.main' updated
2023-11-23 20:47:17,411: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231123-074717-permission_url-ethercalc" style="text-decoration:underline">Update URL related to permission 'ethercalc'</a>'
2023-11-23 20:47:17,668: DEBUG - Permission 'ethercalc.main' created
2023-11-23 20:47:17,669: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231123-074716-permission_create-ethercalc" style="text-decoration:underline">Create permission 'ethercalc'</a>'
2023-11-23 20:47:17,930: DEBUG - Permission 'ethercalc.main' updated
2023-11-23 20:47:17,931: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231123-074717-user_permission_update-ethercalc" style="text-decoration:underline">Update accesses for permission 'ethercalc'</a>'
2023-11-23 20:47:18,096: DEBUG - Nothing to update in LDAP
2023-11-23 20:47:18,097: DEBUG - Permission 'ethercalc.main' updated
2023-11-23 20:47:18,147: DEBUG - Full log of this operation: '<a href="#/tools/logs/20231123-074718-permission_url-ethercalc" style="text-decoration:underline">Update URL related to permission 'ethercalc'</a>'
2023-11-23 20:47:18,359: DEBUG - The permission database has been resynchronized
2023-11-23 20:47:18,494: DEBUG - SSOwat configuration regenerated
2023-11-23 20:47:18,556: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./install"  7>&1']'
2023-11-23 20:47:18,585: DEBUG - + source _common.sh
2023-11-23 20:47:18,586: DEBUG - ++ nodejs_version=18
2023-11-23 20:47:18,587: DEBUG - + source /usr/share/yunohost/helpers
2023-11-23 20:47:18,587: DEBUG - +++ set +o
2023-11-23 20:47:18,587: DEBUG - +++ grep xtrace
2023-11-23 20:47:18,591: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2023-11-23 20:47:18,592: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2023-11-23 20:47:18,862: INFO - [++++++++............] > Installing dependencies...
2023-11-23 20:47:18,863: DEBUG - + ynh_exec_warn_less ynh_install_nodejs --nodejs_version=18
2023-11-23 20:47:18,864: DEBUG - + [[ 2 -eq 1 ]]
2023-11-23 20:47:18,864: DEBUG - + ynh_install_nodejs --nodejs_version=18
2023-11-23 20:47:18,883: DEBUG - + mkdir --parents /opt/node_n
2023-11-23 20:47:18,886: DEBUG - + CLEAR_PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:18,888: DEBUG - ++ echo /opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:18,888: DEBUG - ++ sed s@/usr/local/bin:@@
2023-11-23 20:47:18,895: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:18,896: DEBUG - + test -x /usr/bin/node
2023-11-23 20:47:18,896: DEBUG - + test -x /usr/bin/npm
2023-11-23 20:47:18,897: DEBUG - + mkdir -p /opt/node_n/bin/
2023-11-23 20:47:18,901: DEBUG - + cp /usr/share/yunohost/helpers.d/vendor/n/n /opt/node_n/bin/n
2023-11-23 20:47:18,907: 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
2023-11-23 20:47:19,057: DEBUG - + sed --in-place 's^N_PREFIX=${N_PREFIX-.*}$N_PREFIX=${N_PREFIX-/opt/node_n}g' /opt/node_n/bin/n
2023-11-23 20:47:19,064: DEBUG - + PATH=/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:19,064: DEBUG - + test -x /usr/bin/node_n
2023-11-23 20:47:19,065: DEBUG - + test -x /usr/bin/npm_n
2023-11-23 20:47:19,067: DEBUG - ++ uname --machine
2023-11-23 20:47:19,069: DEBUG - + uname=x86_64
2023-11-23 20:47:19,070: DEBUG - + [[ x86_64 =~ aarch64 ]]
2023-11-23 20:47:19,070: DEBUG - + [[ x86_64 =~ arm64 ]]
2023-11-23 20:47:19,070: DEBUG - + n 18
2023-11-23 20:47:19,339: DEBUG -   installing : node-v18.18.2
2023-11-23 20:47:19,584: DEBUG -        mkdir : /opt/node_n/n/versions/node/18.18.2
2023-11-23 20:47:19,599: DEBUG -        fetch : https://nodejs.org/dist/v18.18.2/node-v18.18.2-linux-x64.tar.xz
2023-11-23 20:47:24,002: DEBUG -      copying : node/18.18.2
2023-11-23 20:47:26,143: DEBUG -    installed : v18.18.2 (with npm 9.8.1)
2023-11-23 20:47:26,146: DEBUG - ++ sort --version-sort
2023-11-23 20:47:26,147: DEBUG - ++ tail --lines=1
2023-11-23 20:47:26,147: DEBUG - ++ find /opt/node_n/n/versions/node/18.18.2 -maxdepth 0
2023-11-23 20:47:26,155: DEBUG - + real_nodejs_version=/opt/node_n/n/versions/node/18.18.2
2023-11-23 20:47:26,158: DEBUG - ++ basename /opt/node_n/n/versions/node/18.18.2
2023-11-23 20:47:26,160: DEBUG - + real_nodejs_version=18.18.2
2023-11-23 20:47:26,160: DEBUG - + '[' '!' -e /opt/node_n/n/versions/node/18 ']'
2023-11-23 20:47:26,160: DEBUG - + ln --symbolic --force --no-target-directory /opt/node_n/n/versions/node/18.18.2 /opt/node_n/n/versions/node/18
2023-11-23 20:47:26,163: DEBUG - + tee --append /opt/node_n/ynh_app_version
2023-11-23 20:47:26,164: DEBUG - + echo ethercalc:18
2023-11-23 20:47:26,165: DEBUG - ethercalc:18
2023-11-23 20:47:26,168: DEBUG - + ynh_app_setting_set --app=ethercalc --key=nodejs_version --value=18
2023-11-23 20:47:26,169: DEBUG - + local _globalapp=ethercalc
2023-11-23 20:47:26,335: DEBUG - + app=ethercalc
2023-11-23 20:47:26,335: DEBUG - + [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:26,336: DEBUG - + ynh_app_setting set ethercalc nodejs_version 18
2023-11-23 20:47:26,474: DEBUG - + ynh_cron_upgrade_node
2023-11-23 20:47:26,476: DEBUG - + cat
2023-11-23 20:47:26,477: DEBUG - + chmod +x /opt/node_n/node_update.sh
2023-11-23 20:47:26,481: DEBUG - + cat
2023-11-23 20:47:26,484: DEBUG - + chmod +x /etc/cron.daily/node_update
2023-11-23 20:47:26,487: DEBUG - + ynh_use_nodejs
2023-11-23 20:47:26,489: DEBUG - ++ ynh_app_setting_get --app=ethercalc --key=nodejs_version
2023-11-23 20:47:26,490: DEBUG - ++ local _globalapp=ethercalc
2023-11-23 20:47:26,575: DEBUG - ++ app=ethercalc
2023-11-23 20:47:26,576: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:26,576: DEBUG - ++ ynh_app_setting get ethercalc nodejs_version
2023-11-23 20:47:26,709: DEBUG - + nodejs_version=18
2023-11-23 20:47:26,710: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/18/bin
2023-11-23 20:47:26,711: DEBUG - + shopt -s expand_aliases
2023-11-23 20:47:26,713: DEBUG - + ynh_node=/opt/node_n/n/versions/node/18/bin/node
2023-11-23 20:47:26,714: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/18/bin/node
2023-11-23 20:47:26,715: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/18/bin/npm
2023-11-23 20:47:26,716: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/18/bin/npm
2023-11-23 20:47:26,716: 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\8\/\b\i\n* ]]
2023-11-23 20:47:26,718: DEBUG - + PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:26,719: DEBUG - + node_PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:26,720: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:26,721: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:26,862: INFO - [########............] > Setting up source files...
2023-11-23 20:47:26,864: DEBUG - + ynh_setup_source --dest_dir=/var/www/ethercalc
2023-11-23 20:47:26,928: DEBUG - + keep=
2023-11-23 20:47:26,929: DEBUG - + full_replace=0
2023-11-23 20:47:26,929: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:26,931: DEBUG - + cat /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:26,931: DEBUG - + toml_to_json
2023-11-23 20:47:26,932: DEBUG - + python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-23 20:47:26,932: DEBUG - + jq -e .resources.sources
2023-11-23 20:47:27,037: DEBUG - + source_id=main
2023-11-23 20:47:27,041: DEBUG - ++ toml_to_json
2023-11-23 20:47:27,042: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-23 20:47:27,043: DEBUG - ++ jq '.resources.sources["main"]'
2023-11-23 20:47:27,044: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:27,149: DEBUG - + local 'sources_json={
2023-11-23 20:47:27,151: DEBUG -   "url": "https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz",
2023-11-23 20:47:27,152: DEBUG -   "sha256": "eaf1b7def67ebf1160d93e403a3930381e99a60f4768809bab653d1c9af26936",
2023-11-23 20:47:27,153: DEBUG -   "autoupdate": {
2023-11-23 20:47:27,155: DEBUG -     "strategy": "latest_github_commit",
2023-11-23 20:47:27,156: DEBUG -     "force_version": "%Y%m%d"
2023-11-23 20:47:27,157: DEBUG -   }
2023-11-23 20:47:27,158: DEBUG - }'
2023-11-23 20:47:27,159: DEBUG - + jq -re .url
2023-11-23 20:47:27,226: DEBUG - https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz
2023-11-23 20:47:27,228: DEBUG - + local arch_prefix=
2023-11-23 20:47:27,229: DEBUG - ++ jq -r .url
2023-11-23 20:47:27,231: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,316: DEBUG - + local src_url=https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz
2023-11-23 20:47:27,318: DEBUG - ++ jq -r .sha256
2023-11-23 20:47:27,319: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,396: DEBUG - + local src_sum=eaf1b7def67ebf1160d93e403a3930381e99a60f4768809bab653d1c9af26936
2023-11-23 20:47:27,397: DEBUG - + local src_sumprg=sha256sum
2023-11-23 20:47:27,398: DEBUG - ++ jq -r .format
2023-11-23 20:47:27,399: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,484: DEBUG - + local src_format=
2023-11-23 20:47:27,486: DEBUG - ++ jq -r .in_subdir
2023-11-23 20:47:27,487: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,577: DEBUG - + local src_in_subdir=
2023-11-23 20:47:27,579: DEBUG - ++ jq -r .extract
2023-11-23 20:47:27,580: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,668: DEBUG - + local src_extract=
2023-11-23 20:47:27,669: DEBUG - ++ jq -r .platform
2023-11-23 20:47:27,670: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,764: DEBUG - + local src_platform=
2023-11-23 20:47:27,765: DEBUG - ++ jq -r .rename
2023-11-23 20:47:27,767: DEBUG - ++ sed 's/^null$//'
2023-11-23 20:47:27,851: DEBUG - + local src_rename=
2023-11-23 20:47:27,853: DEBUG - + [[ -n https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz ]]
2023-11-23 20:47:27,854: DEBUG - + [[ -n eaf1b7def67ebf1160d93e403a3930381e99a60f4768809bab653d1c9af26936 ]]
2023-11-23 20:47:27,856: DEBUG - + [[ -z '' ]]
2023-11-23 20:47:27,857: DEBUG - + [[ https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz =~ ^.*\.zip$ ]]
2023-11-23 20:47:27,858: DEBUG - + [[ https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz =~ ^.*/zipball/.*$ ]]
2023-11-23 20:47:27,860: DEBUG - + [[ https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz =~ ^.*\.tar\.gz$ ]]
2023-11-23 20:47:27,861: DEBUG - + src_format=tar.gz
2023-11-23 20:47:27,862: DEBUG - + src_sumprg=sha256sum
2023-11-23 20:47:27,864: DEBUG - + src_in_subdir=true
2023-11-23 20:47:27,865: DEBUG - + src_format=tar.gz
2023-11-23 20:47:27,866: DEBUG - ++ echo tar.gz
2023-11-23 20:47:27,867: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2023-11-23 20:47:27,870: DEBUG - + src_format=tar.gz
2023-11-23 20:47:27,871: DEBUG - + src_extract=true
2023-11-23 20:47:27,872: DEBUG - + [[ true != \t\r\u\e ]]
2023-11-23 20:47:27,874: DEBUG - + local local_src=/opt/yunohost-apps-src/ethercalc/main
2023-11-23 20:47:27,875: DEBUG - ++ dirname /var/cache/yunohost/download/ethercalc/main
2023-11-23 20:47:27,876: DEBUG - + mkdir -p /var/cache/yunohost/download/ethercalc
2023-11-23 20:47:27,877: DEBUG - + src_filename=/var/cache/yunohost/download/ethercalc/main
2023-11-23 20:47:27,879: DEBUG - + '[' tar.gz = docker ']'
2023-11-23 20:47:27,880: DEBUG - + test -e /opt/yunohost-apps-src/ethercalc/main
2023-11-23 20:47:27,881: DEBUG - + '[' -n https://github.com/audreyt/ethercalc/archive/b196277081d677be991d104e454a52d242ef0189.tar.gz ']'
2023-11-23 20:47:27,882: DEBUG - + '[' -e /var/cache/yunohost/download/ethercalc/main ']'
2023-11-23 20:47:27,885: DEBUG - + sha256sum --check --status
2023-11-23 20:47:27,889: DEBUG - + '[' '!' -e /var/cache/yunohost/download/ethercalc/main ']'
2023-11-23 20:47:27,891: DEBUG - + sha256sum --check --status
2023-11-23 20:47:27,916: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-11-23 20:47:27,918: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:27,920: DEBUG - + mkdir --parents /var/www/ethercalc
2023-11-23 20:47:27,922: DEBUG - + '[' -n /var/www/ethercalc ']'
2023-11-23 20:47:27,923: DEBUG - + '[' /var/www/ethercalc == /var/www/ethercalc ']'
2023-11-23 20:47:27,925: DEBUG - + _ynh_apply_default_permissions /var/www/ethercalc
2023-11-23 20:47:27,926: DEBUG - + local target=/var/www/ethercalc
2023-11-23 20:47:27,927: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2023-11-23 20:47:27,929: DEBUG - ++ tr -d '<>= '
2023-11-23 20:47:27,966: DEBUG - ++ '[' '!' -e '' ']'
2023-11-23 20:47:27,967: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.json ']'
2023-11-23 20:47:27,967: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml ']'
2023-11-23 20:47:27,968: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:27,968: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:27,969: DEBUG - ++ grep -q '\.json$'
2023-11-23 20:47:27,972: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-23 20:47:27,973: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:27,973: DEBUG - ++ jq .requirements.yunohost --raw-output
2023-11-23 20:47:28,085: DEBUG - + local ynh_requirement=null
2023-11-23 20:47:28,086: DEBUG - + dpkg --compare-versions 2.0 ge 2
2023-11-23 20:47:28,088: DEBUG - + chmod o-rwx /var/www/ethercalc
2023-11-23 20:47:28,091: DEBUG - + chmod g-w /var/www/ethercalc
2023-11-23 20:47:28,093: DEBUG - + chown -R root:root /var/www/ethercalc
2023-11-23 20:47:28,113: DEBUG - + ynh_system_user_exists ethercalc
2023-11-23 20:47:28,135: DEBUG - + getent passwd ethercalc
2023-11-23 20:47:28,144: DEBUG - + chown ethercalc:ethercalc /var/www/ethercalc
2023-11-23 20:47:28,158: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2023-11-23 20:47:28,159: DEBUG - + echo /var/www/ethercalc
2023-11-23 20:47:28,163: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:28,163: DEBUG - + [[ true == \f\a\l\s\e ]]
2023-11-23 20:47:28,164: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2023-11-23 20:47:28,164: DEBUG - + [[ tar.gz == \z\i\p ]]
2023-11-23 20:47:28,164: DEBUG - + local strip=
2023-11-23 20:47:28,164: DEBUG - + '[' true '!=' false ']'
2023-11-23 20:47:28,164: DEBUG - + '[' true == true ']'
2023-11-23 20:47:28,165: DEBUG - + local sub_dirs=1
2023-11-23 20:47:28,165: DEBUG - + strip='--strip-components 1'
2023-11-23 20:47:28,165: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz$ ]]
2023-11-23 20:47:28,165: DEBUG - + tar --extract --file=/var/cache/yunohost/download/ethercalc/main --directory=/var/www/ethercalc --strip-components 1
2023-11-23 20:47:28,249: DEBUG - + ynh_secure_remove --file=/var/cache/yunohost/download/ethercalc/main
2023-11-23 20:47:28,307: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/sources/patches/ ']'
2023-11-23 20:47:28,307: DEBUG - + test -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/sources/extra_files/main
2023-11-23 20:47:28,307: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:28,308: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2023-11-23 20:47:28,311: DEBUG - + chmod -R o-rwx /var/www/ethercalc
2023-11-23 20:47:28,319: DEBUG - + chown -R ethercalc:www-data /var/www/ethercalc
2023-11-23 20:47:28,336: DEBUG - + chmod +x /var/www/ethercalc/bin/runSafe.sh
2023-11-23 20:47:28,532: DEBUG - + ynh_add_nginx_config
2023-11-23 20:47:28,532: DEBUG - + local finalnginxconf=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,532: DEBUG - + ynh_add_config --template=nginx.conf --destination=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,535: INFO - [########+...........] > Adding system configurations related to ethercalc...
2023-11-23 20:47:28,613: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/nginx.conf ']'
2023-11-23 20:47:28,613: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/nginx.conf
2023-11-23 20:47:28,614: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,642: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf
2023-11-23 20:47:28,645: DEBUG - ++ ynh_app_setting_get --app=ethercalc --key=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf
2023-11-23 20:47:28,647: DEBUG - ++ local _globalapp=ethercalc
2023-11-23 20:47:28,728: DEBUG - ++ app=ethercalc
2023-11-23 20:47:28,728: DEBUG - ++ [[ checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:28,729: DEBUG - ++ ynh_app_setting get ethercalc checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf
2023-11-23 20:47:28,866: DEBUG - + local checksum_value=
2023-11-23 20:47:28,868: DEBUG - + backup_file_checksum=
2023-11-23 20:47:28,869: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:28,871: DEBUG - + touch /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,872: DEBUG - + chown root:root /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,880: DEBUG - + chmod 640 /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,885: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/nginx.conf /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,893: DEBUG - + _ynh_apply_default_permissions /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,894: DEBUG - + local target=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:28,898: DEBUG - ++ tr -d '<>= '
2023-11-23 20:47:28,899: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2023-11-23 20:47:28,951: DEBUG - ++ '[' '!' -e '' ']'
2023-11-23 20:47:28,952: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.json ']'
2023-11-23 20:47:28,952: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml ']'
2023-11-23 20:47:28,952: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:28,953: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:28,953: DEBUG - ++ grep -q '\.json$'
2023-11-23 20:47:28,958: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-23 20:47:28,959: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:28,960: DEBUG - ++ jq .requirements.yunohost --raw-output
2023-11-23 20:47:29,068: DEBUG - + local ynh_requirement=null
2023-11-23 20:47:29,070: DEBUG - + dpkg --compare-versions 2.0 ge 2
2023-11-23 20:47:29,076: DEBUG - + chmod o-rwx /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,081: DEBUG - + chmod g-w /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,086: DEBUG - + chown -R root:root /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,091: DEBUG - + ynh_system_user_exists ethercalc
2023-11-23 20:47:29,122: DEBUG - + getent passwd ethercalc
2023-11-23 20:47:29,126: DEBUG - + chown ethercalc:ethercalc /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,131: DEBUG - + echo /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,133: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2023-11-23 20:47:29,138: DEBUG - + chmod 400 /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,141: DEBUG - + chown root:root /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,145: DEBUG - + ynh_replace_vars --file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,171: DEBUG - + test -n /
2023-11-23 20:47:29,171: DEBUG - + local path_url_slash_less=
2023-11-23 20:47:29,172: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,339: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,346: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,513: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,517: DEBUG - + test -n ethercalc
2023-11-23 20:47:29,518: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=ethercalc --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,675: DEBUG - + sed --in-place $'s\001__NAME__\001ethercalc\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,680: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=ethercalc --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,836: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001ethercalc\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:29,844: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=ethercalc --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,006: DEBUG - + sed --in-place $'s\001__USER__\001ethercalc\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,010: DEBUG - + test -n ''
2023-11-23 20:47:30,011: DEBUG - + dpkg --compare-versions 2.0 lt 2
2023-11-23 20:47:30,013: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:30,014: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,170: DEBUG - + sed --in-place $'s\001__YNH_NODE_LOAD_PATH__\001PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\001g' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,176: DEBUG - ++ sort --unique
2023-11-23 20:47:30,178: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-11-23 20:47:30,178: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,186: DEBUG - + uniques_vars=('port')
2023-11-23 20:47:30,187: DEBUG - + local delimit=@
2023-11-23 20:47:30,187: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:30,188: DEBUG - + [[ -v port ]]
2023-11-23 20:47:30,188: DEBUG - + match_string=__PORT__
2023-11-23 20:47:30,188: DEBUG - + match_string=__PORT__
2023-11-23 20:47:30,188: DEBUG - + replace_string=31807
2023-11-23 20:47:30,189: DEBUG - + replace_string=31807
2023-11-23 20:47:30,189: DEBUG - + replace_string=31807
2023-11-23 20:47:30,189: DEBUG - + sed --in-place s@__PORT__@31807@g /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,192: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,194: DEBUG - + update_only=0
2023-11-23 20:47:30,230: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf
2023-11-23 20:47:30,234: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-11-23 20:47:30,235: DEBUG - ++ md5sum /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,242: DEBUG - + ynh_app_setting_set --app=ethercalc --key=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf --value=e065eac47c6ca06c5f892f39bc4f81a0
2023-11-23 20:47:30,243: DEBUG - + local _globalapp=ethercalc
2023-11-23 20:47:30,391: DEBUG - + app=ethercalc
2023-11-23 20:47:30,392: DEBUG - + [[ checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:30,392: DEBUG - + ynh_app_setting set ethercalc checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf e065eac47c6ca06c5f892f39bc4f81a0
2023-11-23 20:47:30,532: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:30,533: DEBUG - + unset backup_file_checksum
2023-11-23 20:47:30,535: DEBUG - + '[' / '!=' / ']'
2023-11-23 20:47:30,536: DEBUG - + ynh_replace_string '--match_string=^#root_path_only' --replace_string= --target_file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,727: DEBUG - + sed --in-place 's^#root_path_onlyg' /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,734: DEBUG - + ynh_store_file_checksum --file=/etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,737: DEBUG - + update_only=0
2023-11-23 20:47:30,787: DEBUG - + local checksum_setting_name=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf
2023-11-23 20:47:30,789: DEBUG - ++ md5sum /etc/nginx/conf.d/sheets.maindomain.tld.d/ethercalc.conf
2023-11-23 20:47:30,790: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-11-23 20:47:30,795: DEBUG - + ynh_app_setting_set --app=ethercalc --key=checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf --value=e065eac47c6ca06c5f892f39bc4f81a0
2023-11-23 20:47:30,796: DEBUG - + local _globalapp=ethercalc
2023-11-23 20:47:30,949: DEBUG - + app=ethercalc
2023-11-23 20:47:30,949: DEBUG - + [[ checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:30,950: DEBUG - + ynh_app_setting set ethercalc checksum__etc_nginx_conf.d_sheets.maindomain.tld.d_ethercalc.conf e065eac47c6ca06c5f892f39bc4f81a0
2023-11-23 20:47:31,085: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:31,086: DEBUG - + unset backup_file_checksum
2023-11-23 20:47:31,087: DEBUG - + ynh_systemd_action --service_name=nginx --action=reload
2023-11-23 20:47:31,287: DEBUG - + service_name=nginx
2023-11-23 20:47:31,288: DEBUG - + action=reload
2023-11-23 20:47:31,288: DEBUG - + line_match=
2023-11-23 20:47:31,288: DEBUG - + length=20
2023-11-23 20:47:31,288: DEBUG - + log_path=/var/log/nginx/nginx.log
2023-11-23 20:47:31,289: DEBUG - + timeout=300
2023-11-23 20:47:31,289: DEBUG - + '[' reload == stop ']'
2023-11-23 20:47:31,290: DEBUG - + '[' reload == reload ']'
2023-11-23 20:47:31,290: DEBUG - + action=reload-or-restart
2023-11-23 20:47:31,291: DEBUG - ++ date --utc --rfc-3339=seconds
2023-11-23 20:47:31,291: DEBUG - ++ cut -d+ -f1
2023-11-23 20:47:31,296: DEBUG - + local 'time_start=2023-11-23 07:47:31 UTC'
2023-11-23 20:47:31,296: DEBUG - + systemctl reload-or-restart nginx
2023-11-23 20:47:31,423: DEBUG - + env_path=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:31,423: DEBUG - + ynh_add_systemd_config
2023-11-23 20:47:31,427: DEBUG - + service=ethercalc
2023-11-23 20:47:31,428: DEBUG - + template=systemd.service
2023-11-23 20:47:31,428: DEBUG - + ynh_add_config --template=systemd.service --destination=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,488: DEBUG - + '[' -f /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/systemd.service ']'
2023-11-23 20:47:31,489: DEBUG - + template_path=/var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/systemd.service
2023-11-23 20:47:31,489: DEBUG - + ynh_backup_if_checksum_is_different --file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,507: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_ethercalc.service
2023-11-23 20:47:31,508: DEBUG - ++ ynh_app_setting_get --app=ethercalc --key=checksum__etc_systemd_system_ethercalc.service
2023-11-23 20:47:31,508: DEBUG - ++ local _globalapp=ethercalc
2023-11-23 20:47:31,580: DEBUG - ++ app=ethercalc
2023-11-23 20:47:31,581: DEBUG - ++ [[ checksum__etc_systemd_system_ethercalc.service =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:31,582: DEBUG - ++ ynh_app_setting get ethercalc checksum__etc_systemd_system_ethercalc.service
2023-11-23 20:47:31,718: DEBUG - + local checksum_value=
2023-11-23 20:47:31,719: DEBUG - + backup_file_checksum=
2023-11-23 20:47:31,720: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:31,721: DEBUG - + touch /etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,722: DEBUG - + chown root:root /etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,727: DEBUG - + chmod 640 /etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,730: DEBUG - + cp -f /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/conf/systemd.service /etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,847: DEBUG - + _ynh_apply_default_permissions /etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,848: DEBUG - + local target=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:31,852: DEBUG - ++ ynh_read_manifest --manifest_key=requirements.yunohost
2023-11-23 20:47:31,853: DEBUG - ++ tr -d '<>= '
2023-11-23 20:47:31,899: DEBUG - ++ '[' '!' -e '' ']'
2023-11-23 20:47:31,899: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.json ']'
2023-11-23 20:47:31,900: DEBUG - ++ '[' -e /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml ']'
2023-11-23 20:47:31,900: DEBUG - ++ manifest=/var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:31,901: DEBUG - ++ echo /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:31,901: DEBUG - ++ grep -q '\.json$'
2023-11-23 20:47:31,905: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/manifest.toml
2023-11-23 20:47:31,906: DEBUG - ++ python3 -c 'import json, toml, sys; print(json.dumps(toml.load(sys.stdin)))'
2023-11-23 20:47:31,906: DEBUG - ++ jq .requirements.yunohost --raw-output
2023-11-23 20:47:32,023: DEBUG - + local ynh_requirement=null
2023-11-23 20:47:32,023: DEBUG - + dpkg --compare-versions 2.0 ge 2
2023-11-23 20:47:32,029: DEBUG - + chmod o-rwx /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,032: DEBUG - + chmod g-w /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,035: DEBUG - + chown -R root:root /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,040: DEBUG - + ynh_system_user_exists ethercalc
2023-11-23 20:47:32,062: DEBUG - + getent passwd ethercalc
2023-11-23 20:47:32,065: DEBUG - + chown ethercalc:ethercalc /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,069: DEBUG - + grep -q '^/etc/cron\|/etc/php\|/etc/nginx/conf.d\|/etc/fail2ban\|/etc/systemd/system'
2023-11-23 20:47:32,070: DEBUG - + echo /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,072: DEBUG - + chmod 400 /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,073: DEBUG - + chown root:root /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,077: DEBUG - + ynh_replace_vars --file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,097: DEBUG - + test -n /
2023-11-23 20:47:32,097: DEBUG - + local path_url_slash_less=
2023-11-23 20:47:32,098: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/ --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,237: DEBUG - + sed --in-place $'s\001__PATH__/\001/\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,241: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/ --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,379: DEBUG - + sed --in-place $'s\001__PATH__\001/\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,511: DEBUG - + test -n ethercalc
2023-11-23 20:47:32,512: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=ethercalc --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,682: DEBUG - + sed --in-place $'s\001__NAME__\001ethercalc\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,796: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=ethercalc --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,947: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001ethercalc\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:32,979: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=ethercalc --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,125: DEBUG - + sed --in-place $'s\001__USER__\001ethercalc\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,166: DEBUG - + test -n ''
2023-11-23 20:47:33,166: DEBUG - + dpkg --compare-versions 2.0 lt 2
2023-11-23 20:47:33,172: DEBUG - + test -n PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:33,172: DEBUG - + ynh_replace_string --match_string=__YNH_NODE_LOAD_PATH__ --replace_string=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --target_file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,320: DEBUG - + sed --in-place $'s\001__YNH_NODE_LOAD_PATH__\001PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\001g' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,344: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,345: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2023-11-23 20:47:33,347: DEBUG - ++ sort --unique
2023-11-23 20:47:33,351: DEBUG - + uniques_vars=('app' 'env_path' 'expire' 'install_dir' 'port')
2023-11-23 20:47:33,353: DEBUG - + local delimit=@
2023-11-23 20:47:33,353: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:33,353: DEBUG - + [[ -v app ]]
2023-11-23 20:47:33,353: DEBUG - + match_string=__APP__
2023-11-23 20:47:33,354: DEBUG - + match_string=__APP__
2023-11-23 20:47:33,354: DEBUG - + replace_string=ethercalc
2023-11-23 20:47:33,354: DEBUG - + replace_string=ethercalc
2023-11-23 20:47:33,355: DEBUG - + replace_string=ethercalc
2023-11-23 20:47:33,355: DEBUG - + sed --in-place s@__APP__@ethercalc@g /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,357: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:33,357: DEBUG - + [[ -v env_path ]]
2023-11-23 20:47:33,358: DEBUG - + match_string=__ENV_PATH__
2023-11-23 20:47:33,358: DEBUG - + match_string=__ENV_PATH__
2023-11-23 20:47:33,359: DEBUG - + replace_string=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:33,359: DEBUG - + replace_string=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:33,360: DEBUG - + replace_string=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:33,360: DEBUG - + sed --in-place s@__ENV_PATH__@/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin@g /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,385: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:33,385: DEBUG - + [[ -v expire ]]
2023-11-23 20:47:33,386: DEBUG - + match_string=__EXPIRE__
2023-11-23 20:47:33,386: DEBUG - + match_string=__EXPIRE__
2023-11-23 20:47:33,386: DEBUG - + replace_string=0
2023-11-23 20:47:33,387: DEBUG - + replace_string=0
2023-11-23 20:47:33,387: DEBUG - + replace_string=0
2023-11-23 20:47:33,387: DEBUG - + sed --in-place s@__EXPIRE__@0@g /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,389: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:33,389: DEBUG - + [[ -v install_dir ]]
2023-11-23 20:47:33,390: DEBUG - + match_string=__INSTALL_DIR__
2023-11-23 20:47:33,390: DEBUG - + match_string=__INSTALL_DIR__
2023-11-23 20:47:33,391: DEBUG - + replace_string=/var/www/ethercalc
2023-11-23 20:47:33,391: DEBUG - + replace_string=/var/www/ethercalc
2023-11-23 20:47:33,391: DEBUG - + replace_string=/var/www/ethercalc
2023-11-23 20:47:33,391: DEBUG - + sed --in-place s@__INSTALL_DIR__@/var/www/ethercalc@g /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,623: DEBUG - + for one_var in "${uniques_vars[@]}"
2023-11-23 20:47:33,624: DEBUG - + [[ -v port ]]
2023-11-23 20:47:33,626: DEBUG - + match_string=__PORT__
2023-11-23 20:47:33,627: DEBUG - + match_string=__PORT__
2023-11-23 20:47:33,628: DEBUG - + replace_string=31807
2023-11-23 20:47:33,629: DEBUG - + replace_string=31807
2023-11-23 20:47:33,629: DEBUG - + replace_string=31807
2023-11-23 20:47:33,630: DEBUG - + sed --in-place s@__PORT__@31807@g /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,743: DEBUG - + ynh_store_file_checksum --file=/etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,745: DEBUG - + update_only=0
2023-11-23 20:47:33,796: DEBUG - + local checksum_setting_name=checksum__etc_systemd_system_ethercalc.service
2023-11-23 20:47:33,798: DEBUG - ++ md5sum /etc/systemd/system/ethercalc.service
2023-11-23 20:47:33,799: DEBUG - ++ cut '--delimiter= ' --fields=1
2023-11-23 20:47:33,804: DEBUG - + ynh_app_setting_set --app=ethercalc --key=checksum__etc_systemd_system_ethercalc.service --value=89dc4b81e093d540c39743efece11513
2023-11-23 20:47:33,805: DEBUG - + local _globalapp=ethercalc
2023-11-23 20:47:33,963: DEBUG - + app=ethercalc
2023-11-23 20:47:33,963: DEBUG - + [[ checksum__etc_systemd_system_ethercalc.service =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:33,964: DEBUG - + ynh_app_setting set ethercalc checksum__etc_systemd_system_ethercalc.service 89dc4b81e093d540c39743efece11513
2023-11-23 20:47:34,159: DEBUG - + '[' -n '' ']'
2023-11-23 20:47:34,160: DEBUG - + unset backup_file_checksum
2023-11-23 20:47:34,160: DEBUG - + systemctl enable ethercalc --quiet
2023-11-23 20:47:34,704: DEBUG - + systemctl daemon-reload
2023-11-23 20:47:35,216: DEBUG - + yunohost service add ethercalc --description 'Collaborative spreadsheet editor' --log=/var/log/ethercalc/ethercalc.log
2023-11-23 20:47:35,949: DEBUG - The service 'ethercalc' was added
2023-11-23 20:47:36,231: INFO - [#########+++++++++..] > Building EtherCalc... (this will take some time and resources!)
2023-11-23 20:47:36,235: DEBUG - + pushd /var/www/ethercalc
2023-11-23 20:47:36,235: DEBUG - /var/www/ethercalc /var/cache/yunohost/app_tmp_work_dirs/app_zras96bi/scripts
2023-11-23 20:47:36,235: DEBUG - + ynh_use_nodejs
2023-11-23 20:47:36,236: DEBUG - ++ ynh_app_setting_get --app=ethercalc --key=nodejs_version
2023-11-23 20:47:36,236: DEBUG - ++ local _globalapp=ethercalc
2023-11-23 20:47:36,316: DEBUG - ++ app=ethercalc
2023-11-23 20:47:36,317: DEBUG - ++ [[ nodejs_version =~ (unprotected|protected|skipped)_ ]]
2023-11-23 20:47:36,318: DEBUG - ++ ynh_app_setting get ethercalc nodejs_version
2023-11-23 20:47:36,451: DEBUG - + nodejs_version=18
2023-11-23 20:47:36,453: DEBUG - + nodejs_path=/opt/node_n/n/versions/node/18/bin
2023-11-23 20:47:36,454: DEBUG - + shopt -s expand_aliases
2023-11-23 20:47:36,456: DEBUG - + ynh_node=/opt/node_n/n/versions/node/18/bin/node
2023-11-23 20:47:36,457: DEBUG - + alias ynh_node=/opt/node_n/n/versions/node/18/bin/node
2023-11-23 20:47:36,458: DEBUG - + ynh_npm=/opt/node_n/n/versions/node/18/bin/npm
2023-11-23 20:47:36,459: DEBUG - + alias ynh_npm=/opt/node_n/n/versions/node/18/bin/npm
2023-11-23 20:47:36,461: DEBUG - + [[ :/opt/node_n/n/versions/node/18/bin:/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\8\/\b\i\n* ]]
2023-11-23 20:47:36,462: DEBUG - + node_PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:36,463: DEBUG - + ynh_node_load_PATH=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:36,465: DEBUG - + ynh_node_load_path=PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-11-23 20:47:36,466: DEBUG - + ynh_exec_warn_less npm i -g ethercalc
2023-11-23 20:47:36,467: DEBUG - + [[ 4 -eq 1 ]]
2023-11-23 20:47:36,468: DEBUG - + npm i -g ethercalc
2023-11-23 20:47:59,752: DEBUG - npm WARN EBADENGINE Unsupported engine {
2023-11-23 20:47:59,753: DEBUG - npm WARN EBADENGINE   package: 'coffeecup@0.3.21',
2023-11-23 20:47:59,753: DEBUG - npm WARN EBADENGINE   required: { node: '0.4.x || 0.6.x || 0.8.x || 0.10.x' },
2023-11-23 20:47:59,754: DEBUG - npm WARN EBADENGINE   current: { node: 'v18.18.2', npm: '9.8.1' }
2023-11-23 20:47:59,754: DEBUG - npm WARN EBADENGINE }
2023-11-23 20:48:01,936: DEBUG - npm WARN deprecated native-or-bluebird@1.1.2: 'native-or-bluebird' is deprecated. Please use 'any-promise' instead.
2023-11-23 20:48:02,103: DEBUG - npm WARN deprecated j@0.4.5: The underlying libraries have been unified.  See < https://cdn.sheetjs.com/j/ >.
2023-11-23 20:48:02,147: DEBUG - npm WARN deprecated scmp@1.0.0: scmp v2 uses improved core crypto comparison since Node v6.6.0
2023-11-23 20:48:02,271: DEBUG - npm WARN deprecated babyparse@0.2.1: Deprecated in favour of PapaParse, which now supports Node.js
2023-11-23 20:48:02,356: DEBUG - npm WARN deprecated node-uuid@1.4.1: Use uuid module instead
2023-11-23 20:48:02,379: DEBUG - npm WARN deprecated mkdirp@0.3.5: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2023-11-23 20:48:02,451: DEBUG - npm WARN deprecated mkdirp@0.5.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
2023-11-23 20:48:02,569: DEBUG - npm WARN deprecated json3@3.2.6: Please use the native JSON object instead of JSON 3
2023-11-23 20:48:02,646: DEBUG - npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
2023-11-23 20:48:02,767: DEBUG - npm WARN deprecated connect@2.25.9: connect 2.x series is deprecated
2023-11-23 20:48:02,785: DEBUG - npm WARN deprecated harb@0.1.1: harb has been merged into xlsx
2023-11-23 20:48:03,006: DEBUG - npm WARN deprecated xlsjs@0.7.6: xlsjs has been merged into xlsx
2023-11-23 20:48:03,286: DEBUG - npm WARN deprecated xlsx@0.9.13: this version is no longer supported.  More info at https://cdn.sheetjs.com/xlsx/
2023-11-23 20:48:07,932: DEBUG - 
2023-11-23 20:48:07,933: DEBUG - added 204 packages in 31s
2023-11-23 20:48:07,933: DEBUG - 
2023-11-23 20:48:07,934: DEBUG - 2 packages are looking for funding
2023-11-23 20:48:07,934: DEBUG -   run `npm fund` for details
2023-11-23 20:48:07,986: DEBUG - + ynh_exec_warn_less npm i zappajs
2023-11-23 20:48:07,987: DEBUG - + [[ 3 -eq 1 ]]
2023-11-23 20:48:07,987: DEBUG - + npm i zappajs
2023-11-23 20:48:10,831: DEBUG - npm WARN old lockfile
2023-11-23 20:48:10,832: DEBUG - npm WARN old lockfile The package-lock.json file was created with an old version of npm,
2023-11-23 20:48:10,833: DEBUG - npm WARN old lockfile so supplemental metadata must be fetched from the registry.
2023-11-23 20:48:10,833: DEBUG - npm WARN old lockfile
2023-11-23 20:48:10,834: DEBUG - npm WARN old lockfile This is a one-time fix-up, please be patient...
2023-11-23 20:48:10,834: DEBUG - npm WARN old lockfile
2023-11-23 20:48:29,788: DEBUG - npm WARN tarball tarball data for emitter@http://github.com/component/emitter/archive/1.0.1.tar.gz (sha512-k3Da+QreMb9waaGCHNAHox5QqxnZEYlQmvIVYwQibrI6OpIRyIIyFGgDV5dXRLr1AJ32JLqEh0VxQEq20dFskw==) seems to be corrupted. Trying again.
2023-11-23 20:48:29,815: DEBUG - npm ERR! code EINTEGRITY
2023-11-23 20:48:29,826: DEBUG - npm ERR! sha512-k3Da+QreMb9waaGCHNAHox5QqxnZEYlQmvIVYwQibrI6OpIRyIIyFGgDV5dXRLr1AJ32JLqEh0VxQEq20dFskw== integrity checksum failed when using sha512: wanted sha512-k3Da+QreMb9waaGCHNAHox5QqxnZEYlQmvIVYwQibrI6OpIRyIIyFGgDV5dXRLr1AJ32JLqEh0VxQEq20dFskw== but got sha512-r/UcFj7JS3lRjv9cgYjgpDNbAsGUdqU64n6ZUOgSF7s1UFBbGu7pUDwKEjHu9NBCy6j2AmmjNW4rijR4De65eA==. (2809 bytes)
2023-11-23 20:48:29,833: DEBUG - 
2023-11-23 20:48:29,833: DEBUG - npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-11-23T07_48_08_792Z-debug-0.log
2023-11-23 20:48:29,878: DEBUG - + ynh_exit_properly
2023-11-23 20:48:29,880: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2023-11-23 20:48:31,394: ERROR - Unable to install ethercalc: An error occurred inside the app installation script

:fr: Modèle de message (français)

La catégorie “support” est destinée à l’aide et au dépannage lié à l’installation et utilisation de YunoHost et de ses applications. Elle n’est pas destinée à de l’assistance généraliste pour l’administration système, réseau, ou pour les cas particuliers qui vont au dela de ce que propose le projet. Si vous souhaitez discuter de cas d’usage avancés, merci d’utiliser la catégorie “Advanced Use Case”.

Avant de poster, merci de :

Mon serveur YunoHost

Matériel: VPS acheté en ligne / Vieil ordinateur / Raspberry Pi à la maison / Brique Internet avec VPN / Autre carte ARM / …
Version de YunoHost: x.x.x
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non / oui
Si oui, expliquer:
Si votre requête est liée à une applicatio, précisez son nom et sa version: app v1.0~ynh1

Description du problème

Pour obtenir de l’aide efficacement, expliquez qu’est-ce que vous cherchez à faire, dans quel contexte, qu’est-ce que vous avez essayé, et les messages d’erreurs / logs détaillés si possible.

Évitez de dire que quelque chose ne “marche pas” ou ne “fais rien” … expliquez ce qui se passe vraiment et comment vous l’interprêtez !

NB: vous pouvez utiliser le service paste.yunohost.org pour partager des logs ou messages d’erreurs. Vous pouvez aussi inclure directement ces messages en utilisant les “backticks” (accent grave) comme ceci :

Voici des messages d'erreurs

Can you remove the unused part of the template please ?
Can you share the whole installation log (via https://paste.yunohost.org ) next time, for easy reading :smile: ?

Just to be sure, you created the sub-domain in Pi-Hole or in YunoHost ?

And for the error you have here, it seems that there is a security issue (like a package changed in the npm repository, and to avoid this, sha512 tests are done to check file integrity).

Can you try the install again just to be sure ?

I misunderstood how Yunopaste worked. Here’s the latest attempt:

https://paste.yunohost.org/raw/jaqoqusece

Steps I’ve taken so far:

  • I re-installed Yunohost.
  • I set up a live domain (on the Internet, not locally) and I’ve confirmed that both it and the subdomain are reachable. I can confirm that the domain is functioning correctly, because I can log into my Yunohost remotely. I can confirm that the subdomain is functioning because I installed Grist through Yuhohost as a test, and then uninstalled it.

Ethercalc fails to install.

Perhaps try before npm cache verify and if that doesn’t work npm clean.

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