Scratch ne se met plus à jour

What type of hardware are you using: Virtual machine
What YunoHost version are you running: 12.1.15.1
What app is this about: Scratch

Describe your issue

Hello,
Since version 12, I believe, no version of Scratch has been able to update. Every time, I have to delete the application and then reinstall it, otherwise I get the error message attached.
Please let me know if I am the only one experiencing this or if there is indeed a bug.
And thank you again for this great project!

Bonjour,
depuis la version 12 je crois, plus aucune version de Scratch ne parvient à se mettre à jour. A chaque fois il faut que je supprime l’application puis que je la réinstalle, sinon j’ai le message d’erreur joint.
Merci de me dire si je suis le seul ou bien s’il y a bien un bug.
Et encore merci pour ce super projet !

Share relevant logs or error messages

env:
  YNH_APP_ACTION: upgrade
  YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_nd8gmp_0
  YNH_APP_CURRENT_VERSION: 5.1.91~ynh1
  YNH_APP_ID: scratch
  YNH_APP_INSTANCE_NAME: scratch
  YNH_APP_INSTANCE_NUMBER: '1'
  YNH_APP_MANIFEST_VERSION: 5.1.102~ynh1
  YNH_APP_PACKAGING_FORMAT: '2.0'
  YNH_APP_UPGRADE_TYPE: UPGRADE_APP
  YNH_ARCH: arm64
  YNH_DEBIAN_VERSION: bookworm
  YNH_DEFAULT_PHP_VERSION: '8.2'
  YNH_HELPERS_VERSION: '2.1'
error: "Une erreur s'est produite durant l'ex\xE9cution du script de mise \xE0 jour\
  \ de l'application"
interface: api
operation: app_upgrade
parent: null
related_to:
- - app
  - scratch
started_at: 2025-08-23 21:12:59.704391
started_by: ******
success: false
yunohost_version: 12.1.15.1

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

2025-08-23 21:13:00,890: INFO - Updating sources...
2025-08-23 21:13:00,891: DEBUG - Prefetching asset main: https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz ...
2025-08-23 21:13:04,349: INFO - Updating system_user...
2025-08-23 21:13:04,467: INFO - Updating install_dir...
2025-08-23 21:13:04,481: INFO - Updating permissions...
2025-08-23 21:13:04,494: DEBUG - Permission 'scratch.main' mise à jour
2025-08-23 21:13:04,504: DEBUG - Permission 'scratch.main' mise à jour
2025-08-23 21:13:04,748: DEBUG - Permissions were resynchronized to LDAP
2025-08-23 21:13:04,853: DEBUG - Formating result in 'export' mode
2025-08-23 21:13:04,857: DEBUG - La configuration de SSOwat a été regénérée
2025-08-23 21:13:04,862: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./upgrade"  7>&1']'
2025-08-23 21:13:04,896: DEBUG - + source _common.sh
2025-08-23 21:13:04,897: DEBUG - ++ nodejs_version=22
2025-08-23 21:13:04,898: DEBUG - + source /usr/share/yunohost/helpers
2025-08-23 21:13:04,899: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-08-23 21:13:04,900: DEBUG - +++ cd -- /usr/share/yunohost
2025-08-23 21:13:04,902: DEBUG - +++ pwd
2025-08-23 21:13:04,903: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-08-23 21:13:04,904: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-08-23 21:13:04,907: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-08-23 21:13:04,908: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-08-23 21:13:05,064: INFO - [++++................] > Installing nodejs...
2025-08-23 21:13:05,067: DEBUG - + ynh_nodejs_install
2025-08-23 21:13:05,068: DEBUG - + [[ -n 22 ]]
2025-08-23 21:13:05,069: DEBUG - + mkdir --parents /opt/node_n
2025-08-23 21:13:05,070: DEBUG - + [[ arm64 == \a\r\m\6\4 ]]
2025-08-23 21:13:05,071: DEBUG - + /usr/share/yunohost/helpers.v2.1.d/vendor/n/n install 22 --arch=arm64
2025-08-23 21:13:05,367: DEBUG -      copying : node/22.18.0
2025-08-23 21:13:07,027: DEBUG -    installed : v22.18.0
2025-08-23 21:13:07,030: DEBUG - ++ find /opt/node_n/n/versions/node/22 /opt/node_n/n/versions/node/22.18.0 -maxdepth 0
2025-08-23 21:13:07,031: DEBUG - ++ tail --lines=1
2025-08-23 21:13:07,033: DEBUG - ++ sort --version-sort
2025-08-23 21:13:07,038: DEBUG - + final_nodejs_version=/opt/node_n/n/versions/node/22.18.0
2025-08-23 21:13:07,039: DEBUG - ++ basename /opt/node_n/n/versions/node/22.18.0
2025-08-23 21:13:07,042: DEBUG - + final_nodejs_version=22.18.0
2025-08-23 21:13:07,043: DEBUG - + nodejs_version=22.18.0
2025-08-23 21:13:07,044: DEBUG - + ynh_app_setting_set --key=nodejs_version --value=22.18.0
2025-08-23 21:13:07,263: DEBUG - + _ynh_load_nodejs_in_path_and_other_tweaks
2025-08-23 21:13:07,263: DEBUG - + nodejs_dir=/opt/node_n/n/versions/node/22.18.0/bin
2025-08-23 21:13:07,264: DEBUG - + [[ :/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\/\2\2\.\1\8\.\0\/\b\i\n* ]]
2025-08-23 21:13:07,265: DEBUG - + PATH=/opt/node_n/n/versions/node/22.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-08-23 21:13:07,266: DEBUG - + export PATH
2025-08-23 21:13:07,267: DEBUG - + path_with_nodejs=/opt/node_n/n/versions/node/22.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-08-23 21:13:07,268: DEBUG - + PATH_with_nodejs=/opt/node_n/n/versions/node/22.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-08-23 21:13:07,269: INFO - [####++++............] > Upgrading source files...
2025-08-23 21:13:07,270: DEBUG - + export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-08-23 21:13:07,273: DEBUG - + COREPACK_ENABLE_DOWNLOAD_PROMPT=0
2025-08-23 21:13:07,276: DEBUG - + ynh_setup_source --dest_dir=/var/www/scratch/sources --full_replace
2025-08-23 21:13:07,391: DEBUG - + keep=
2025-08-23 21:13:07,392: DEBUG - + full_replace=1
2025-08-23 21:13:07,393: DEBUG - + source_id=main
2025-08-23 21:13:07,394: DEBUG - + '[' -e /var/www/scratch/sources/composer.phar ']'
2025-08-23 21:13:07,395: DEBUG - ++ ynh_read_manifest 'resources.sources["main"]'
2025-08-23 21:13:07,396: DEBUG - ++ toml_to_json
2025-08-23 21:13:07,397: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-08-23 21:13:07,397: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_nd8gmp_0/manifest.toml
2025-08-23 21:13:07,398: DEBUG - ++ jq '.resources.sources["main"]' --raw-output
2025-08-23 21:13:07,521: DEBUG - + local 'sources_json={
2025-08-23 21:13:07,522: DEBUG -   "url": "https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz",
2025-08-23 21:13:07,523: DEBUG -   "sha256": "f781d09ae6ed131d6efbbbc471c81daa76eb728d4dc5f0b23e19888f75132d18",
2025-08-23 21:13:07,524: DEBUG -   "autoupdate": {
2025-08-23 21:13:07,524: DEBUG -     "strategy": "latest_github_tag"
2025-08-23 21:13:07,525: DEBUG -   }
2025-08-23 21:13:07,526: DEBUG - }'
2025-08-23 21:13:07,527: DEBUG - + jq -re .url
2025-08-23 21:13:07,600: DEBUG - https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz
2025-08-23 21:13:07,601: DEBUG - + local arch_prefix=
2025-08-23 21:13:07,683: DEBUG - + local src_url=https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz
2025-08-23 21:13:07,764: DEBUG - + local src_sum=f781d09ae6ed131d6efbbbc471c81daa76eb728d4dc5f0b23e19888f75132d18
2025-08-23 21:13:07,848: DEBUG - + local src_format=
2025-08-23 21:13:07,936: DEBUG - + local src_in_subdir=
2025-08-23 21:13:07,937: DEBUG - + src_in_subdir=true
2025-08-23 21:13:08,020: DEBUG - + local src_extract=
2025-08-23 21:13:08,102: DEBUG - + local src_platform=
2025-08-23 21:13:08,185: DEBUG - + local src_rename=
2025-08-23 21:13:08,186: DEBUG - + [[ -n https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz ]]
2025-08-23 21:13:08,187: DEBUG - + [[ -n f781d09ae6ed131d6efbbbc471c81daa76eb728d4dc5f0b23e19888f75132d18 ]]
2025-08-23 21:13:08,188: DEBUG - + [[ -z '' ]]
2025-08-23 21:13:08,189: DEBUG - + [[ https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz =~ ^.*\.zip$ ]]
2025-08-23 21:13:08,190: DEBUG - + [[ https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz =~ ^.*/zipball/.*$ ]]
2025-08-23 21:13:08,191: DEBUG - + [[ https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz =~ ^.*\.tar\.gz$ ]]
2025-08-23 21:13:08,192: DEBUG - + src_format=tar.gz
2025-08-23 21:13:08,192: DEBUG - + src_format=tar.gz
2025-08-23 21:13:08,193: DEBUG - ++ tr '[:upper:]' '[:lower:]'
2025-08-23 21:13:08,194: DEBUG - ++ echo tar.gz
2025-08-23 21:13:08,195: DEBUG - + src_format=tar.gz
2025-08-23 21:13:08,196: DEBUG - + src_extract=true
2025-08-23 21:13:08,197: DEBUG - + [[ true != \t\r\u\e ]]
2025-08-23 21:13:08,198: DEBUG - ++ dirname /var/cache/yunohost/download/scratch/main
2025-08-23 21:13:08,198: DEBUG - + mkdir -p /var/cache/yunohost/download/scratch
2025-08-23 21:13:08,199: DEBUG - + src_filename=/var/cache/yunohost/download/scratch/main
2025-08-23 21:13:08,201: DEBUG - + '[' tar.gz = docker ']'
2025-08-23 21:13:08,202: DEBUG - + '[' -n https://github.com/scratchfoundation/scratch-gui/archive/refs/tags/v5.1.102.tar.gz ']'
2025-08-23 21:13:08,203: DEBUG - + '[' -e /var/cache/yunohost/download/scratch/main ']'
2025-08-23 21:13:08,203: DEBUG - + sha256sum --check --status
2025-08-23 21:13:08,645: DEBUG - + '[' '!' -e /var/cache/yunohost/download/scratch/main ']'
2025-08-23 21:13:08,647: DEBUG - + sha256sum --check --status
2025-08-23 21:13:09,086: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-08-23 21:13:09,090: INFO - '/var/www/scratch/sources' wasn't deleted because it doesn't exist.
2025-08-23 21:13:09,092: DEBUG - + '[' -n '' ']'
2025-08-23 21:13:09,095: DEBUG - + ynh_safe_rm /var/www/scratch/sources
2025-08-23 21:13:09,096: DEBUG - + local target=/var/www/scratch/sources
2025-08-23 21:13:09,100: DEBUG - + mkdir --parents /var/www/scratch/sources
2025-08-23 21:13:09,101: DEBUG - + [[ true == \f\a\l\s\e ]]
2025-08-23 21:13:09,107: DEBUG - + [[ tar.gz == \d\o\c\k\e\r ]]
2025-08-23 21:13:09,110: DEBUG - + [[ tar.gz == \z\i\p ]]
2025-08-23 21:13:09,111: DEBUG - + [[ tar.gz == \x\z ]]
2025-08-23 21:13:09,123: DEBUG - + [[ tar.gz == \z\s\t ]]
2025-08-23 21:13:09,123: DEBUG - + strip=()
2025-08-23 21:13:09,125: DEBUG - + '[' true '!=' false ']'
2025-08-23 21:13:09,127: DEBUG - + '[' true == true ']'
2025-08-23 21:13:09,130: DEBUG - + local sub_dirs=1
2025-08-23 21:13:09,131: DEBUG - + strip=(--strip-components "$sub_dirs")
2025-08-23 21:13:09,134: DEBUG - + [[ tar.gz =~ ^tar.gz|tar.bz2|tar.xz|tar.zst|tar$ ]]
2025-08-23 21:13:09,135: DEBUG - + tar --extract --file=/var/cache/yunohost/download/scratch/main --directory=/var/www/scratch/sources --strip-components 1
2025-08-23 21:13:10,287: DEBUG - + ynh_safe_rm /var/cache/yunohost/download/scratch/main
2025-08-23 21:13:10,288: DEBUG - + local target=/var/cache/yunohost/download/scratch/main
2025-08-23 21:13:10,336: DEBUG - + '[' -d /var/cache/yunohost/app_tmp_work_dirs/app_nd8gmp_0/patches/main ']'
2025-08-23 21:13:10,338: DEBUG - + '[' -n '' ']'
2025-08-23 21:13:10,338: DEBUG - + rm -rf /var/cache/yunohost/files_to_keep_during_setup_source/
2025-08-23 21:13:10,339: DEBUG - + '[' -n /var/www/scratch ']'
2025-08-23 21:13:10,340: DEBUG - + '[' /var/www/scratch/sources == /var/www/scratch ']'
2025-08-23 21:13:10,341: DEBUG - + chmod -R o-rwx /var/www/scratch
2025-08-23 21:13:10,631: DEBUG - + chown -R scratch:www-data /var/www/scratch
2025-08-23 21:13:10,928: INFO - [########++++........] > Installing scratch...
2025-08-23 21:13:10,931: DEBUG - + pushd /var/www/scratch/sources
2025-08-23 21:13:10,932: DEBUG - /var/www/scratch/sources /var/cache/yunohost/app_tmp_work_dirs/app_nd8gmp_0/scripts
2025-08-23 21:13:10,933: DEBUG - + ynh_hide_warnings ynh_exec_as_app npm install
2025-08-23 21:13:10,934: DEBUG - + ynh_exec_as_app npm install
2025-08-23 21:13:10,935: DEBUG - + sudo -u scratch env PATH=/opt/node_n/n/versions/node/22.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 npm install
2025-08-23 21:13:44,086: DEBUG - npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
2025-08-23 21:13:44,174: DEBUG - npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
2025-08-23 21:13:44,470: DEBUG - npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
2025-08-23 21:13:44,498: DEBUG - npm warn deprecated read-package-json@2.1.2: This package is no longer supported. Please use @npmcli/package-json instead.
2025-08-23 21:13:44,704: DEBUG - npm warn deprecated content-type-parser@1.0.2: Use whatwg-mimetype instead
2025-08-23 21:13:45,027: DEBUG - npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
2025-08-23 21:13:45,085: DEBUG - npm warn deprecated lodash.omit@4.5.0: This package is deprecated. Use destructuring assignment syntax instead.
2025-08-23 21:13:45,451: DEBUG - npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
2025-08-23 21:13:45,487: DEBUG - npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead.
2025-08-23 21:13:45,513: DEBUG - npm warn deprecated har-validator@5.1.5: this library is no longer supported
2025-08-23 21:13:45,555: DEBUG - npm warn deprecated audio-context@1.0.3: Depends on Web-Audio-API implementation. Use either web-audio-api, web-audio-js or web-audio-engine package.
2025-08-23 21:13:45,576: DEBUG - npm warn deprecated @humanwhocodes/config-array@0.13.0: Use @eslint/config-array instead
2025-08-23 21:13:46,011: DEBUG - npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2025-08-23 21:13:46,021: DEBUG - npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2025-08-23 21:13:46,027: DEBUG - npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2025-08-23 21:13:46,035: DEBUG - npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
2025-08-23 21:13:46,281: DEBUG - npm warn deprecated abab@1.0.4: Use your platform's native atob() and btoa() methods instead
2025-08-23 21:13:46,531: DEBUG - npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
2025-08-23 21:13:46,837: DEBUG - npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
2025-08-23 21:13:46,892: DEBUG - npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
2025-08-23 21:13:47,022: DEBUG - npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
2025-08-23 21:13:47,140: DEBUG - npm warn deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
2025-08-23 21:13:47,479: DEBUG - npm warn deprecated glob@7.1.2: Glob versions prior to v9 are no longer supported
2025-08-23 21:13:47,604: DEBUG - npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
2025-08-23 21:13:47,605: DEBUG - npm warn deprecated
2025-08-23 21:13:47,606: DEBUG - npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
2025-08-23 21:13:48,145: DEBUG - npm warn deprecated sane@2.5.2: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
2025-08-23 21:13:49,392: DEBUG - npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2025-08-23 21:13:49,538: DEBUG - npm warn deprecated intl-messageformat-parser@1.8.1: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
2025-08-23 21:13:49,982: DEBUG - npm warn deprecated mkdirp@0.5.1: 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.)
2025-08-23 21:13:50,226: DEBUG - npm warn deprecated babel-plugin-react-intl@3.5.1: this package has been renamed to babel-plugin-formatjs
2025-08-23 21:13:50,336: DEBUG - npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2025-08-23 21:13:51,136: DEBUG - npm warn deprecated intl-messageformat-parser@1.4.0: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
2025-08-23 21:13:51,150: DEBUG - npm warn deprecated text-encoding@0.7.0: no longer maintained
2025-08-23 21:13:59,109: DEBUG - npm warn deprecated airbnb-prop-types@2.16.0: This package has been renamed to 'prop-types-tools'
2025-08-23 21:14:02,087: DEBUG - npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options.
2025-08-23 21:14:03,864: DEBUG - npm warn deprecated intl-relativeformat@2.2.0: This package has been deprecated, please see migration guide at 'https://github.com/formatjs/formatjs/tree/master/packages/intl-relativeformat#migration-guide'
2025-08-23 21:14:04,747: DEBUG - npm warn deprecated hull.js@0.2.10: This package is unmaintained and vulnerable. Do not use it.
2025-08-23 21:14:05,376: DEBUG - npm warn deprecated scratch-blocks@0.1.0-prerelease.20220318143026: Obsolete pre-release
2025-08-23 21:14:09,037: DEBUG - npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
2025-08-23 21:14:47,968: DEBUG - 
2025-08-23 21:14:47,969: DEBUG - > scratch-gui@5.1.102 prepublish
2025-08-23 21:14:47,970: DEBUG - > node scripts/prepublish.mjs
2025-08-23 21:14:47,971: DEBUG - 
2025-08-23 21:14:48,259: DEBUG - Downloading https://downloads.scratch.mit.edu/microbit/scratch-microbit.hex.zip
2025-08-23 21:14:48,860: DEBUG - Found matching file: scratch-microbit-1.2.0.hex
2025-08-23 21:14:48,864: DEBUG - Extracting static/microbit/scratch-microbit-1.2.0.hex
2025-08-23 21:14:48,906: DEBUG - Multiple matching files found. Ignoring: __MACOSX/._scratch-microbit-1.2.0.hex
2025-08-23 21:14:48,908: DEBUG - Wrote src/generated/microbit-hex-url.cjs
2025-08-23 21:14:48,909: DEBUG - Prepublish script complete
2025-08-23 21:14:49,031: DEBUG - 
2025-08-23 21:14:49,032: DEBUG - added 2242 packages, and audited 2453 packages in 2m
2025-08-23 21:14:49,033: DEBUG - 
2025-08-23 21:14:49,034: DEBUG - 253 packages are looking for funding
2025-08-23 21:14:49,035: DEBUG -   run `npm fund` for details
2025-08-23 21:14:49,753: DEBUG - 
2025-08-23 21:14:49,754: DEBUG - 91 vulnerabilities (3 low, 36 moderate, 29 high, 23 critical)
2025-08-23 21:14:49,755: DEBUG - 
2025-08-23 21:14:49,756: DEBUG - To address issues that do not require attention, run:
2025-08-23 21:14:49,757: DEBUG -   npm audit fix
2025-08-23 21:14:49,758: DEBUG - 
2025-08-23 21:14:49,759: DEBUG - To address all issues possible (including breaking changes), run:
2025-08-23 21:14:49,760: DEBUG -   npm audit fix --force
2025-08-23 21:14:49,761: DEBUG - 
2025-08-23 21:14:49,763: DEBUG - Some issues need review, and may require choosing
2025-08-23 21:14:49,764: DEBUG - a different dependency.
2025-08-23 21:14:49,766: DEBUG - 
2025-08-23 21:14:49,766: DEBUG - Run `npm audit` for details.
2025-08-23 21:14:49,767: DEBUG - npm notice
2025-08-23 21:14:49,768: DEBUG - npm notice New major version of npm available! 10.9.3 -> 11.5.2
2025-08-23 21:14:49,769: DEBUG - npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.5.2
2025-08-23 21:14:49,770: DEBUG - npm notice To update run: npm install -g npm@11.5.2
2025-08-23 21:14:49,771: DEBUG - npm notice
2025-08-23 21:14:49,951: DEBUG - + ynh_hide_warnings ynh_exec_as_app BUILD_MODE=dist npm run build
2025-08-23 21:14:49,952: DEBUG - + ynh_exec_as_app BUILD_MODE=dist npm run build
2025-08-23 21:14:49,953: DEBUG - + sudo -u scratch env PATH=/opt/node_n/n/versions/node/22.18.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin COREPACK_ENABLE_DOWNLOAD_PROMPT=0 BUILD_MODE=dist npm run build
2025-08-23 21:14:50,332: DEBUG - 
2025-08-23 21:14:50,333: DEBUG - > scratch-gui@5.1.102 build
2025-08-23 21:14:50,334: DEBUG - > npm run clean && webpack
2025-08-23 21:14:50,335: DEBUG - 
2025-08-23 21:14:51,202: DEBUG - 
2025-08-23 21:14:51,203: DEBUG - > scratch-gui@5.1.102 clean
2025-08-23 21:14:51,204: DEBUG - > rimraf ./build ./dist
2025-08-23 21:14:51,205: DEBUG - 
2025-08-23 21:14:53,862: DEBUG - <s> [webpack.Progress] 0%
2025-08-23 21:14:53,863: DEBUG - 
2025-08-23 21:14:53,864: DEBUG - <s> [webpack.Progress] 1% setup before run
2025-08-23 21:14:53,865: DEBUG - <s> [webpack.Progress] 1% setup before run NodeEnvironmentPlugin
2025-08-23 21:14:53,866: DEBUG - <s> [webpack.Progress] 1% setup before run
2025-08-23 21:14:53,867: DEBUG - <s> [webpack.Progress] 2% setup run
2025-08-23 21:14:53,867: DEBUG - <s> [webpack.Progress] 2% setup run webpack-cli
2025-08-23 21:14:53,868: DEBUG - <s> [webpack.Progress] 2% setup run

[bref ça apparemment c’est ok]

2025-08-23 21:17:02,910: DEBUG - <s> [webpack.Progress] 99% cache store build dependencies
2025-08-23 21:17:02,911: DEBUG - <s> [webpack.Progress] 99% cache store build dependencies
2025-08-23 21:17:02,912: DEBUG - <s> [webpack.Progress] 99% cache begin idle
2025-08-23 21:17:02,915: DEBUG - <s> [webpack.Progress] 99% cache begin idle
2025-08-23 21:17:02,916: DEBUG - <s> [webpack.Progress] 100%
2025-08-23 21:17:02,917: DEBUG - 
2025-08-23 21:17:04,892: DEBUG - <s> [webpack.Progress] 98% emitting after emit
2025-08-23 21:17:04,893: DEBUG - <s> [webpack.Progress] 98% emitting after emit
2025-08-23 21:17:04,896: DEBUG - <s> [webpack.Progress] 99% done plugins
2025-08-23 21:17:04,898: DEBUG - <s> [webpack.Progress] 99% done plugins MultiCompiler
2025-08-23 21:17:04,899: DEBUG - <s> [webpack.Progress] 99% done plugins
2025-08-23 21:17:04,901: DEBUG - <s> [webpack.Progress] 99%
2025-08-23 21:17:04,902: DEBUG - 
2025-08-23 21:17:04,904: DEBUG - <s> [webpack.Progress] 99% cache store build dependencies
2025-08-23 21:17:04,906: DEBUG - <s> [webpack.Progress] 99% cache store build dependencies
2025-08-23 21:17:04,907: DEBUG - <s> [webpack.Progress] 99% cache begin idle
2025-08-23 21:17:04,918: DEBUG - <s> [webpack.Progress] 99% cache begin idle
2025-08-23 21:17:04,919: DEBUG - <s> [webpack.Progress] 100%
2025-08-23 21:17:04,921: DEBUG - 
2025-08-23 21:17:04,927: DEBUG - <s> [webpack.Progress] 99% cache shutdown
2025-08-23 21:17:04,929: DEBUG - <s> [webpack.Progress] 99% cache shutdown MemoryCachePlugin
2025-08-23 21:17:04,934: DEBUG - <s> [webpack.Progress] 99% cache shutdown
2025-08-23 21:17:04,935: DEBUG - <s> [webpack.Progress] 100%
2025-08-23 21:17:04,936: DEBUG - 
2025-08-23 21:17:04,937: DEBUG - <s> [webpack.Progress] 99% cache shutdown
2025-08-23 21:17:04,948: DEBUG - <s> [webpack.Progress] 99% cache shutdown MemoryCachePlugin
2025-08-23 21:17:04,949: DEBUG - <s> [webpack.Progress] 99% cache shutdown
2025-08-23 21:17:04,950: DEBUG - <s> [webpack.Progress] 100%
2025-08-23 21:17:04,951: DEBUG - 
2025-08-23 21:17:07,729: DEBUG - assets by path static/assets/*.png 43.2 MiB 1295 assets
2025-08-23 21:17:07,730: DEBUG - assets by path static/assets/*.gif 13 MiB 157 assets
2025-08-23 21:17:07,731: DEBUG - assets by path static/blocks-media/ 373 KiB 142 assets
2025-08-23 21:17:07,732: DEBUG - assets by path static/assets/*.jpg 3.15 MiB 24 assets
2025-08-23 21:17:07,733: DEBUG - assets by path static/assets/*.svg 2.21 MiB 15 assets
2025-08-23 21:17:07,734: DEBUG - assets by path chunks/*.js 1.19 MiB
2025-08-23 21:17:07,736: DEBUG -   asset chunks/ar-steps.bec1bb18e321fc3813e1.js 113 KiB [emitted] [immutable] (name: ar-steps) 1 related asset
2025-08-23 21:17:07,737: DEBUG -   + 11 assets
2025-08-23 21:17:07,738: DEBUG - assets by path *.js 104 MiB
2025-08-23 21:17:07,739: DEBUG -   asset gui.js 26.1 MiB [emitted] (name: gui) 1 related asset
2025-08-23 21:17:07,740: DEBUG -   + 4 assets
2025-08-23 21:17:07,741: DEBUG - assets by path *.html 1.46 KiB
2025-08-23 21:17:07,743: DEBUG -   asset compatibility-testing.html 392 bytes [emitted]
2025-08-23 21:17:07,744: DEBUG -   + 3 assets
2025-08-23 21:17:07,745: DEBUG - + 5 assets
2025-08-23 21:17:07,746: DEBUG - runtime modules 32.5 KiB 60 modules
2025-08-23 21:17:07,747: DEBUG - orphan modules 14.3 KiB [orphan] 8 modules
2025-08-23 21:17:07,748: DEBUG - modules by path ./src/ 61.5 MiB (asset) 3.34 MiB (javascript) 2119 modules
2025-08-23 21:17:07,749: DEBUG - modules by path ./node_modules/ 20.6 MiB 1222 modules
2025-08-23 21:17:07,750: DEBUG - modules by path ./lib/*./lib/locales (ignored) 30 bytes
2025-08-23 21:17:07,751: DEBUG -   ./lib/locales (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,752: DEBUG -   ./lib/locales (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,753: DEBUG - modules by path ./node/*.js (ignored) 30 bytes
2025-08-23 21:17:07,754: DEBUG -   ./node/self.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,755: DEBUG -   ./node/extend.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,756: DEBUG - ./locale-data/complete.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,757: DEBUG - ../locale-data/index.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,758: DEBUG - ./static/microbit/scratch-microbit-1.2.0.hex 80 bytes [built] [code generated]
2025-08-23 21:17:07,759: DEBUG - readable-stream (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,760: DEBUG - webpack 5.101.2 compiled successfully in 131038 ms
2025-08-23 21:17:07,761: DEBUG - 
2025-08-23 21:17:07,762: DEBUG - assets by path static/assets/*.png 43.2 MiB 1295 assets
2025-08-23 21:17:07,763: DEBUG - assets by path static/assets/*.gif 13 MiB 157 assets
2025-08-23 21:17:07,764: DEBUG - assets by path static/blocks-media/ 373 KiB 142 assets
2025-08-23 21:17:07,765: DEBUG - assets by path static/assets/*.jpg 3.15 MiB 24 assets
2025-08-23 21:17:07,766: DEBUG - assets by path static/assets/*.svg 2.21 MiB 15 assets
2025-08-23 21:17:07,767: DEBUG - assets by path chunks/*.js 1.19 MiB 12 assets
2025-08-23 21:17:07,768: DEBUG - assets by path libraries/*.json 1010 KiB
2025-08-23 21:17:07,769: DEBUG -   asset libraries/sprites.json 539 KiB [emitted] [from: src/lib/libraries/sprites.json] [copied]
2025-08-23 21:17:07,770: DEBUG -   + 3 assets
2025-08-23 21:17:07,771: DEBUG - assets by path *.js 25.1 MiB
2025-08-23 21:17:07,772: DEBUG -   asset scratch-gui.js 25 MiB [emitted] (name: scratch-gui) 1 related asset
2025-08-23 21:17:07,773: DEBUG -   asset extension-worker.js 40.2 KiB [emitted] [from: node_modules/scratch-vm/dist/web/extension-worker.js] [copied]
2025-08-23 21:17:07,774: DEBUG - asset 30d09ba32a17082ef820b57d52d60b7b.hex 1.1 MiB [emitted] [immutable] [from: static/microbit/scratch-microbit-1.2.0.hex] (auxiliary name: scratch-gui)
2025-08-23 21:17:07,775: DEBUG - asset extension-worker.js.map 40.6 KiB [emitted] [from: node_modules/scratch-vm/dist/web/extension-worker.js.map] [copied]
2025-08-23 21:17:07,776: DEBUG - runtime modules 8.12 KiB 15 modules
2025-08-23 21:17:07,777: DEBUG - orphan modules 14.3 KiB [orphan] 8 modules
2025-08-23 21:17:07,778: DEBUG - modules by path ./src/ 61.5 MiB (asset) 3.32 MiB (javascript) 2108 modules
2025-08-23 21:17:07,780: DEBUG - modules by path ./node_modules/ 19.5 MiB
2025-08-23 21:17:07,781: DEBUG -   javascript modules 18.9 MiB 1087 modules
2025-08-23 21:17:07,782: DEBUG -   asset modules 90.1 KiB 47 modules
2025-08-23 21:17:07,782: DEBUG -   json modules 476 KiB 20 modules
2025-08-23 21:17:07,784: DEBUG - modules by path ./lib/*./lib/locales (ignored) 30 bytes
2025-08-23 21:17:07,785: DEBUG -   ./lib/locales (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,786: DEBUG -   ./lib/locales (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,787: DEBUG - modules by path ./node/*.js (ignored) 30 bytes
2025-08-23 21:17:07,788: DEBUG -   ./node/self.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,789: DEBUG -   ./node/extend.js (ignored) 15 bytes [built] [code generated]
2025-08-23 21:17:07,791: DEBUG - + 5 modules
2025-08-23 21:17:07,792: DEBUG - webpack 5.101.2 compiled successfully in 128949 ms
2025-08-23 21:17:08,527: DEBUG - + popd
2025-08-23 21:17:08,528: DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_nd8gmp_0/scripts
2025-08-23 21:17:08,529: DEBUG - + mv /var/www/scratch/sources/build /var/www/scratch/www
2025-08-23 21:17:08,538: WARNING - mv: cannot move '/var/www/scratch/sources/build' to '/var/www/scratch/www/build': Directory not empty
2025-08-23 21:17:08,540: DEBUG - + ynh_exit_properly
2025-08-23 21:17:08,542: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2025-08-23 21:17:09,141: ERROR - Impossible de mettre à jour scratch : Une erreur s'est produite durant l'exécution du script de mise à jour de l'application

Hmoké alors à mon avis tu peux tenter de faire manuellement avant l’upgrade :

sudo mv '/var/www/scratch/www/build /root/bkp_scratch_www_build

Et si tu confirmes que ça fonctionne il faut sans doute qu’on fasse un truc du même genre dans le script d’upgrade

Merci de l’info, mais là il faut que j’attende une nouvelle version de Scratch :grin:

Truc dingue : pour la 1ère fois depuis des mois, la mise à jour s’est effectuée normalement…
Bon ben on va considérer le sujet clos pour l’instant.

Bon comme la version de ce jour a encore planté, j’ai essayé ta ligne de commande avant et l’installation est passée. Merci de modifier les scripts !

Bon bah du coup ton bug cachait un problème plus large qui est que, je crois, l’app n’était jamais vraiment mise à jour … (ça buildait la nouvelle version mais ne remplacait en fait pas les anciens fichier par les nouveaux) …

Bref normalement c’est corrigé par cette PR : Testing by alexAubin · Pull Request #226 · YunoHost-Apps/scratch_ynh · GitHub

Merci pour tes retours !

1 Like

Apparemment c’est ok, je viens de mettre à jour sur la v12.1.16.
Merci !

1 Like

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