YunoHost-Apps / mastodon_ynh

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

Update to v4.0.0 #344

Closed retiolus closed 1 year ago

Clusters commented 1 year ago

Continue reading here #345 if it goes through.

edit: Spoilers... it does not :/

isAAAc commented 1 year ago

thx for your work guys !

StefOfficiel commented 1 year ago

Excellent ! :clap:

panomaki commented 1 year ago

Maybe this helps in troubleshooting:

Installation fails on a clean yunohost install (VPS) with the following error:

  - 2022-11-17 04:34:32,041: DEBUG - + ynh_exec_as mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin:/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/opt/rbenv/shims:/opt/rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so bin/tootctl accounts create USERNAMEOMITTED --email=EMAILADDRESSOMITTED --confirmed --role=admin
  - 2022-11-17 04:34:32,041: DEBUG - + local user=mastodon
  - 2022-11-17 04:34:32,041: DEBUG - + shift 1
  - 2022-11-17 04:34:32,041: DEBUG - ++ whoami
  - 2022-11-17 04:34:32,043: DEBUG - + [[ mastodon = root ]]
  - 2022-11-17 04:34:32,043: DEBUG - + sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin:/opt/node_n/n/versions/node/16/bin:/opt/node_n/bin:/opt/rbenv/shims:/opt/rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so bin/tootctl accounts create USERNAMEOMITTED --email=EMAILADDRESSOMITTED --confirmed --role=admin
  - 2022-11-17 04:34:43,628: DEBUG - + ynh_exit_properly
  - 2022-11-17 04:34:43,629: DEBUG - + local exit_code=1
  - 2022-11-17 04:34:43,629: DEBUG - + rm -rf /var/cache/yunohost/download/
  - 2022-11-17 04:34:43,633: DEBUG - + '[' 1 -eq 0 ']'
  - 2022-11-17 04:34:43,633: DEBUG - + trap '' EXIT
  - 2022-11-17 04:34:43,634: DEBUG - + set +o errexit
  - 2022-11-17 04:34:43,634: DEBUG - + set +o nounset
  - 2022-11-17 04:34:43,634: DEBUG - + sleep 0.5
  - 2022-11-17 04:34:44,137: DEBUG - + type -t ynh_clean_setup
  - 2022-11-17 04:34:44,138: DEBUG - + ynh_clean_setup
  - 2022-11-17 04:34:44,139: DEBUG - + true
  - 2022-11-17 04:34:44,139: DEBUG - + exit 1
  - 2022-11-17 04:34:45,188: ERROR - Unable to install mastodon: An error occurred inside the app installation script

Upgrading an existing 3.5.3 install fails without the -b option, but runs through without backup:

$ sudo yunohost app upgrade mastodon -b -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/ci-auto-update-v4.0.2 --debug
[...]
567125 SUCCESS mastodon upgraded
567242 DEBUG To view the log of the operation 'Upgrade the 'mastodon' app', use the command 'yunohost log show 20221117-112043-app_upgrade-mastodon'
567407 DEBUG The permission database has been resynchronized
567500 DEBUG SSOwat configuration regenerated
567508 SUCCESS Upgrade complete

Full log files available on request.

panomaki commented 1 year ago

After further troubleshooting: there was a change in user role naming convention upstream; see the pull request for details. Hope the maintainers can trigger an automated test.

Clusters commented 1 year ago

@panomaki the tests went through. Thanks for the work!

isAAAc commented 1 year ago

when will we have it in mainstream ?

Tagadda commented 1 year ago

Closed by #350