My YunoHost server
Hardware: Old laptop or computer
YunoHost version: 11.0.10.2
**I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen (possible)
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
CLI upgrade : friendica broke
It’s happen some week ago, and i just take time to try again today and report the issue.
I use CLI for updating and upgrading, then this morning
# yunohost tools update
# yunohost tools upgrade system
# yunohost tools upgrade apps
It’s OK for the 2 first steaps, but broke for the last one
Here is the error shown about cropperjs and getcwd
Info: Now upgrading friendica...
Info: [....................] > Loading installation settings...
Info: [++..................] > Backing up the app before upgrading (may take a while)...
Info: [##+++...............] > Ensuring downward compatibility...
Info: [#####+..............] > Making sure dedicated system user exists...
Info: [######++............] > Upgrading source files...
Info: [########+...........] > Upgrading NGINX web server configuration...
Info: [#########+++++......] > Upgrading dependencies...
Info: [##############++++..] > Upgrading PHP-FPM configuration...
Warning: [Composer\Downloader\TransportException]
Warning: The "https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz" file could not be downloaded: failed to open stream: Connection timed out
Warning: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
Warning: [Error] Upgrade failed.
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: The app was restored to the way it was before the failed upgrade.
Error: Could not upgrade friendica: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'friendica' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230127-071700-app_upgrade-friendica' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + unset backup_file_checksum
Info: DEBUG - + chown root: /etc/cron.d/friendica
Info: DEBUG - + chmod 644 /etc/cron.d/friendica
Info: DEBUG - + pushd /var/www/friendica
Info: DEBUG - /var/www/friendica /var/cache/yunohost/app_tmp_work_dirs/app_gzi__ime/scripts
Info: DEBUG - + ynh_exec_as friendica php7.4 bin/composer.phar install --no-dev --quiet
Info: DEBUG - + local user=friendica
Info: DEBUG - + shift 1
Info: DEBUG - ++ whoami
Info: DEBUG - + [[ friendica = root ]]
Info: DEBUG - + sudo -u friendica php7.4 bin/composer.phar install --no-dev --quiet
Info: DEBUG -
Info: DEBUG -
Info: WARNING - [Composer\Downloader\TransportException]
Info: WARNING - The "https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz" file could not be downloaded: failed to open stream: Connection timed out
Info: DEBUG -
Info: DEBUG -
Info: WARNING - install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
Info: DEBUG -
Info: DEBUG - + ynh_exit_properly
Error: The app 'friendica' failed to upgrade, and as a consequence the following apps' upgrades have been cancelled: friendica, nextcloud, ttrss
Warning: unable to upgrade apps: The operation 'Upgrade the 'friendica' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230127-071700-app_upgrade-friendica' to get help
Error: Some apps could not be upgraded
the complete log : https://paste.yunohost.org/raw/dofopicanu
I check if i can download , seems to be an issue with ipv6
# wget https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz
--2023-01-27 09:10:03-- https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz
Resolving registry.npmjs.org (registry.npmjs.org)... 2606:4700::6810:1223, 2606:4700::6810:1723, 2606:4700::6810:1823, ...
Connecting to registry.npmjs.org (registry.npmjs.org)|2606:4700::6810:1223|:443... ^C
OK, i need to activate ipv6, but younohost must work without , no ?
Denis