YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
85 stars 36 forks source link

Upgrade Fails on Mastodon. #421

Closed MConsuela closed 11 months ago

MConsuela commented 11 months ago

How to post a meaningful bug report

  1. Read this whole template first.
  2. Determine if you are on the right place:
    • If you were performing an action on the app from the webadmin or the CLI (install, update, backup, restore, change_url...), you are on the right place!
    • Otherwise, the issue may be due to the app itself. Refer to its documentation or repository for help.
    • When in doubt, post here and we will figure it out together.
  3. Delete the italic comments as you write over them below, and remove this guide.

Describe the bug

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::FetchError Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/websocket-extensions-0.1.5.gem) Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::FetchError Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/aws-sigv4-1.6.0.gem) Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::FetchError Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/gems/redlock-1.3.2.gem) warning Pattern ["strip-ansi@^6.0.1"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping. warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping. warning Pattern ["strip-ansi@^6.0.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping. warning Pattern ["string-width@^4.2.3"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping. warning Pattern ["string-width@^1.0.2 || 2 || 3 || 4"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping. warning Pattern ["string-width@^4.2.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping. warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping. warning " > emoji-mart@3.0.1-j" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0". warning " > react-motion@0.5.2" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0". warning " > react-notification@6.8.5" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning " > react-router-scroll-4@1.0.0-beta.2" has incorrect peer dependency "react@^15.0.0 || ^16.0.0". warning " > react-router-scroll-4@1.0.0-beta.2" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0". warning " > react-swipeable-views@0.14.0" has incorrect peer dependency "react@^15.3.0 || ^16.0.0 || ^17.0.0". warning "react-swipeable-views > react-swipeable-views-utils > react-event-listener@0.6.6" has incorrect peer dependency "react@^16.3.0". husky - .git can't be found (see https://typicode.github.io/husky/#/?id=custom-directory) error Command failed with exit code 1. [Error] Upgrade failed. sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory sh: 0: getcwd() failed: No such file or directory 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.

Context

Tagadda commented 11 months ago

Can you share the logs with YunoPaste ? Also please read https://yunohost.org/help

Tagadda commented 11 months ago

Looks like you lost your internet connection at some point during the upgrade. I think you can try to run it one more time and re-open this issue if it fails again.

MConsuela commented 11 months ago

Thanks, @Tagadda i tried Installing 4 different times with either YunoHost or the CLI, but no luck always the Same Error, heres the Log

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

MConsuela commented 11 months ago

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

someone over at Mastodon helped me verify its not a Issue with Mastodon but YunoHost

2023-12-08 02:32:21,754: WARNING - /var/cache/yunohost/app_tmp_work_dirs/app_fgeqynw6/restore: line 123: ld_preload: unbound variable 2023-12-08 02:32:21,756: DEBUG - ++ ynh_exit_properly 2023-12-08 02:32:21,760: DEBUG - ++ [[ restore =~ ^install$|^upgrade$|^restore$ ]] 2023-12-08 02:32:22,266: DEBUG - ++ ynh_clean_setup 2023-12-08 02:32:22,266: DEBUG - ++ true 2023-12-08 02:32:22,266: DEBUG - ++ exit 1 2023-12-08 02:32:23,269: ERROR - Could not restore mastodon: An error occured inside the app restore script

anyone a clue? :)