Friendica last upgrade fail

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

YunoHost works with/without IPv6, but YunoHost has no control on wether or not external stuff like registry.npmjs.org do support or not ipv6 …

On the other hand I’m skeptical that the issue really lies in IPv6 … maybe that was just a tmp issue … on my side I’m able to download the file perfectly fine both in ipv4 and v6

On the other hand I’m skeptical that the issue really lies in IPv6 … maybe that was just a tmp issue … on my side I’m able to download the file perfectly fine both in ipv4 and v6

Yes, but

  1. It happen again today (after update and upgrade system) with exacltly the same error
  2. Seems IPv6 is ON, but all ipv6 out are KO …

I try to diable ipv6 and see what happen.

Maybe i need to close this one and open a new topic about my ipv6 issue ?
Starnegly : home computer on same network swicth are OK on v6 …

Continue,
diable ipv6 (maybe temporary) on server via

# cat /etc/sysctl.d/70-disable-ipv6-local.conf 
net.ipv6.conf.all.disable_ipv6 = 1

Update via GUI : https://paste.yunohost.org/raw/irahoxediq

I try via CLI

Bon,
C’est passé via CLI (en désactivant ipv6)

Je passe ne résolé, mais bof …

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