YunoHost-Apps / mastodon_ynh

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

Upgrade fail on Debian Stretch #86

Closed anmol26s closed 6 years ago

anmol26s commented 6 years ago

The upgrade fails on Debian Stretch. After the failed upgrade the app is giving 502 error too.

Log :

Bundle complete! 115 Gemfile dependencies, 196 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ yarn install --pure-lockfile
yarn install v1.3.2-20171207.1756
[1/6] Validating package.json...
[2/6] Resolving packages...
success Already up-to-date.
Done in 1.25s.
+ systemctl restart postgresql
+ popd
/opt/mastodon/live
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ RAILS_ENV=production
+ /opt/mastodon/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean
Warning: rails aborted!
Warning: LoadError: Could not open library '/opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/../ext/cld3/libcld3.so': libprotobuf.so.9: cannot open shared object file: No such file or directory
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:147:in `block in ffi_lib'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:100:in `map'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:100:in `ffi_lib'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:117:in `<module:Unstable>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:114:in `<module:CLD3>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:24:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:71:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:71:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:79:in `require'
Warning: /opt/mastodon/live/config/application.rb:7:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: /opt/mastodon/live/Rakefile:4:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:277:in `block in load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:277:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: bin/rails:4:in `<main>'
Warning: (See full trace by running task with --trace)
Error: Unable to upgrade mastodon
Error: No app to upgrade
nemsia commented 6 years ago

yarn v1.3.2 ? You can launch: apt install yarn and re-launch the upgrade.

nemsia commented 6 years ago

Your yunohost as be upgrade from jessie to stretch ?

anmol26s commented 6 years ago

yarn v1.3.2 ? You can launch: apt install yarn and re-launch the upgrade.

Yarn has the latest version already.

Your yunohost as be upgrade from jessie to stretch ?

Yes migrated from jessie to stretch.

Logs showing the latest yarn :

ynh_package_install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
Reading package lists...
Building dependency tree...
Reading state information...
libidn11-dev is already the newest version (1.33-1).
pkg-config is already the newest version (0.29-4+b1).
postgresql-server-dev-all is already the newest version (181+deb9u1).
libprotobuf-dev is already the newest version (3.0.0-9).
protobuf-compiler is already the newest version (3.0.0-9).
libicu-dev is already the newest version (57.1-6+deb9u2).
yarn is already the newest version (1.7.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
+ sudo su - mastodon
Already up-to-date.
/opt/mastodon
Already up-to-date.
/opt/mastodon
Warning: rbenv: /opt/mastodon/.rbenv/versions/2.5.1 already exists
+ sudo rm /usr/bin/ruby
+ sudo ln -s /opt/mastodon/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby
+ sudo su - mastodon
~/live ~
Successfully installed bundler-1.16.2
Parsing documentation for bundler-1.16.2
Done installing documentation for bundler after 5 seconds
1 gem installed
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.1
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.2.0
Using builder 3.2.3
Using erubi 1.7.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.2
Using rails-dom-testing 2.0.3
Using crass 1.0.4
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 5.2.0
Using rack 2.0.4
Using rack-test 1.0.0
Using actionpack 5.2.0
Using nio4r 2.3.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.7.0
Using actioncable 5.2.0
Using globalid 0.4.1
Using activejob 5.2.0
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.2.0
Using activemodel 5.2.0
Using case_transform 0.2
Using jsonapi-renderer 0.2.0
Using active_model_serializers 0.10.7
Using arel 9.0.0
Using activerecord 5.2.0
Using mimemagic 0.3.2
Using marcel 0.3.2
Using activestorage 5.2.0
Using public_suffix 3.0.2
Using addressable 2.5.2
Using encryptor 3.0.0
Using attr_encrypted 3.1.0
Using climate_control 0.2.0
Using cocaine 0.5.8
Using av 0.9.0
Using aws-partitions 1.80.0
Using aws-sigv4 1.0.2
Using jmespath 1.4.0
Using aws-sdk-core 3.19.0
Using aws-sdk-kms 1.5.0
Using aws-sdk-s3 1.9.1
Using bcrypt 3.1.11
Using msgpack 1.2.4
Using bootsnap 1.3.0
Using browser 2.5.3
Using bundler 1.16.2
Using charlock_holmes 0.7.6
Using multi_json 1.13.1
Using elasticsearch-api 6.0.2
Using multipart-post 2.0.0
Using faraday 0.15.0
Using elasticsearch-transport 6.0.2
Using elasticsearch 6.0.2
Using elasticsearch-dsl 0.1.5
Using chewy 5.0.0
Using chunky_png 1.3.10
Using ffi 1.9.23
Using cld3 3.2.2
Using colorize 0.8.1
Using connection_pool 2.2.1
Using css_parser 1.6.0
Using orm_adapter 0.5.0
Using method_source 0.9.0
Using thor 0.20.0
Using railties 5.2.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.4.3
Using rotp 2.1.2
Using devise-two-factor 3.0.3
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20180417
Using doorkeeper 4.2.6
Using dotenv 2.2.2
Using dotenv-rails 2.2.2
Using equatable 0.5.0
Using et-orbi 1.1.0
Using excon 0.62.0
Using fast_blank 1.0.0
Using fastimage 2.1.1
Using formatador 0.2.5
Using fog-core 1.45.0
Using fog-json 1.0.2
Using fog-local 0.5.0
Using ipaddress 0.8.3
Using fog-openstack 0.1.25
Using http-cookie 1.0.3
Using http-form_data 2.1.0
Using http_parser.rb 0.6.1 from https://github.com/tmm1/http_parser.rb (at 54b17ba@54b17ba)
Using http 3.2.0
Using oj 3.5.1
Using goldfinger 2.1.0
Using temple 0.8.0
Using tilt 2.0.8
Using hamlit 2.8.8
Using hamlit-rails 0.2.0
Using hamster 3.0.0
Using hashie 3.5.7
Using hiredis 0.6.1
Using hitimes 1.2.6
Using hkdf 0.3.0
Using htmlentities 4.3.4
Using http_accept_language 2.1.1
Using httplog 1.0.2
Using idn-ruby 0.1.0
Using iso-639 0.2.8
Using link_header 0.0.8
Using rdf 3.0.2
Using json-ld 2.2.1
Using jwt 2.1.0
Using kaminari-core 1.1.1
Using kaminari-actionview 1.1.1
Using kaminari-activerecord 1.1.1
Using kaminari 1.1.1
Using request_store 1.4.1
Using lograge 0.10.0
Using redis 4.0.1
Using mario-redis-lock 1.2.1
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using necromancer 0.4.0
Using net-ldap 0.16.1
Using nokogumbo 1.5.0
Using rack-protection 2.0.1
Using sidekiq 5.1.3
Using statsd-ruby 1.2.1
Using nsa 0.2.4
Using omniauth 1.8.1
Using omniauth-cas 1.1.1
Using ruby-saml 1.7.2
Using omniauth-saml 1.10.0
Using ostatus2 2.0.3
Using ox 2.9.2
Using terrapin 0.6.0
Using paperclip 6.0.0
Using paperclip-av-transcoder 0.6.4
Using tty-color 0.4.2
Using pastel 0.7.2
Using pg 1.0.0
Using pghero 2.1.0
Using pkg-config 1.3.0
Using posix-spawn 0.3.13 from https://github.com/rtomayko/posix-spawn (at 58465d2@58465d2)
Using premailer 1.11.1
Using premailer-rails 1.10.2
Using private_address_check 0.4.1
Using puma 3.11.4
Using pundit 1.1.0
Using rack-attack 5.2.0
Using rack-cors 1.0.2
Using rack-proxy 0.6.4
Using rack-timeout 0.4.2
Using sprockets 3.7.1
Using sprockets-rails 3.2.1
Using rails 5.2.0
Using rails-i18n 5.1.1
Using rails-settings-cached 0.6.6
Using rdf-normalize 0.3.3
Using redis-store 1.5.0
Using redis-rack 2.0.4
Using redis-actionpack 5.0.2
Using redis-activesupport 5.0.4
Using redis-namespace 1.6.0
Using redis-rails 5.0.2
Using rqrcode 0.10.1
Using ruby-progressbar 1.9.0
Using rufus-scheduler 3.4.2
Using sanitize 4.6.4
Using sidekiq-bulk 0.1.1
Using sidekiq-scheduler 2.2.1
Using sidekiq-unique-jobs 5.0.10
Using simple-navigation 4.0.5
Using simple_form 4.0.0
Using stoplight 2.1.3
Using streamio-ffmpeg 3.0.2
Using strong_migrations 0.2.2
Using timers 4.1.2
Using tty-command 0.8.0
Using tty-cursor 0.5.0
Using tty-screen 0.6.4
Using wisper 2.0.0
Using tty-reader 0.2.0
Using tty-prompt 0.16.0
Using twitter-text 1.14.7
Using tzinfo-data 1.2018.4
Using webpacker 3.4.3
Using webpush 0.3.3
Bundle complete! 115 Gemfile dependencies, 196 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ yarn install --pure-lockfile
yarn install v1.3.2-20171207.1756
[1/6] Validating package.json...
[2/6] Resolving packages...
success Already up-to-date.
Done in 1.18s.
+ systemctl restart postgresql
+ popd
/opt/mastodon/live
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ RAILS_ENV=production
+ /opt/mastodon/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean
Warning: rails aborted!
Warning: LoadError: Could not open library '/opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/../ext/cld3/libcld3.so': libprotobuf.so.9: cannot open shared object file: No such file or directory
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:147:in `block in ffi_lib'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:100:in `map'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/lib/ffi/library.rb:100:in `ffi_lib'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:117:in `<module:Unstable>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:114:in `<module:CLD3>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/cld3-3.2.2/lib/cld3.rb:24:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:71:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:71:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:70:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:79:in `require'
Warning: /opt/mastodon/live/config/application.rb:7:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: /opt/mastodon/live/Rakefile:4:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:277:in `block in load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:277:in `load'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: bin/rails:4:in `<main>'
Warning: (See full trace by running task with --trace)
Error: Unable to upgrade mastodon
Error: No app to upgrade
nemsia commented 6 years ago

you can try with this branch: yunohost app upgrade mastodon -u https://github.com/nemsia/mastodon_ynh/tree/stretch-upgrade --verbose

anmol26s commented 6 years ago

Still fails

 sudo systemctl stop mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
+ sudo chown -R mastodon: /opt/mastodon/live
+ sudo su - mastodon
~/live ~
HEAD is now at fb1ae0152 Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation (#7688)
Warning: From https://github.com/tootsuite/mastodon
Warning:  * branch                master     -> FETCH_HEAD
Already up-to-date.
+ cd /opt/mastodon/live
++ curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest
++ grep tag_name
++ cut '-d"' -f4
+ version=v2.4.0
+ sudo su - mastodon
~/live ~
Warning: Previous HEAD position was fb1ae0152... Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation (#7688)
Warning: HEAD is now at 4d81809f3... Yeah, it was supposed to be #create?
++ nodejs --version
+ node_version=v8.11.2
+ [[ v8.11.2 =~ ^v4.*$ ]]
+ sudo cp ../conf/yarn.list /etc/apt/sources.list.d/
Warning: cp: cannot stat '../conf/yarn.list': No such file or directory
Error: Unable to upgrade mastodon
Error: No app to upgrade
nemsia commented 6 years ago

I made an upgrade from jessie to stretch. I search why ruby try to use the old protobuf lib and why yarn stay on 1.3.2.

anmol26s commented 6 years ago

Ok, My instance is broken still. And I did not take a backup before migrating to Stretch. It would be good if I can have my current mastodon instance back with upgrade rather then new install. I have lot of toots on it and other users too. Thanks for your work.

nemsia commented 6 years ago

try this: yunohost app upgrade mastodon -u https://github.com/nemsia/mastodon_ynh/tree/fix-migrated-stretch --verbose

anmol26s commented 6 years ago

Upgrade was successful but the instance is still not working. Its saying "We're sorry, but something went wrong on our end."

logs :

+ sudo su - mastodon
~/live ~
Warning: From https://github.com/tootsuite/mastodon
Warning:    b7565f1dd..c02f81230  feature-improved-trends -> origin/feature-improved-trends
Warning:    fb1ae0152..69b45350f  master                  -> origin/master
HEAD is now at 69b45350f Add loading indicator for trending tags (#7693)
Warning: From https://github.com/tootsuite/mastodon
Warning:  * branch                master     -> FETCH_HEAD
Already up-to-date.
+ cd /opt/mastodon/live
++ cut '-d"' -f4
++ grep tag_name
++ curl -s https://api.github.com/repos/tootsuite/mastodon/releases/latest
+ version=v2.4.0
+ sudo su - mastodon
~/live ~
Warning: Previous HEAD position was 69b45350f... Add loading indicator for trending tags (#7693)
Warning: HEAD is now at 4d81809f3... Yeah, it was supposed to be #create?
++ nodejs --version
+ node_version=v8.11.2
+ [[ v8.11.2 =~ ^v4.*$ ]]
+ ynh_package_install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
+ ynh_apt --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
+ DEBIAN_FRONTEND=noninteractive
+ sudo apt-get -y --no-remove -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold install yarn pkg-config libprotobuf-dev protobuf-compiler libicu-dev libidn11-dev postgresql-server-dev-all
Reading package lists...
Building dependency tree...
Reading state information...
libidn11-dev is already the newest version (1.33-1).
pkg-config is already the newest version (0.29-4+b1).
postgresql-server-dev-all is already the newest version (181+deb9u1).
libprotobuf-dev is already the newest version (3.0.0-9).
protobuf-compiler is already the newest version (3.0.0-9).
libicu-dev is already the newest version (57.1-6+deb9u2).
The following packages will be upgraded:
  yarn
apt-listchanges: Reading changelogs...
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                                              Need to get 0 B/697 kB of archives.
                                                                                                 After this operation, 8,192 B of additional disk space will be used.
(Reading database ... 82776 files and directories currently installed.)
                                                                       Preparing to unpack .../archives/yarn_1.7.0-1_all.deb ...
                                                                                                                                Unpacking yarn (1.7.0-1) over (1.6.0-1) ...
                    Setting up yarn (1.7.0-1) ...
                                                 + sudo apt-get install --reinstall yarn
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/697 kB of archives.
                                                                                                                After this operation, 0 B of additional disk space will be used.
(Reading database ... 82776 files and directories currently installed.)
                                                                       Preparing to unpack .../archives/yarn_1.7.0-1_all.deb ...
                                                                                                                                Unpacking yarn (1.7.0-1) over (1.7.0-1) ...
                    Setting up yarn (1.7.0-1) ...
                                                 + sudo su - mastodon
Already up-to-date.
/opt/mastodon
Already up-to-date.
/opt/mastodon
Warning: rbenv: /opt/mastodon/.rbenv/versions/2.5.1 already exists
+ sudo rm /usr/bin/ruby
+ sudo ln -s /opt/mastodon/.rbenv/versions/2.5.1/bin/ruby /usr/bin/ruby
+ sudo su - mastodon
~/live ~
Successfully installed bundler-1.16.2
Parsing documentation for bundler-1.16.2
Done installing documentation for bundler after 6 seconds
1 gem installed
Fetching gem metadata from https://rubygems.org/.......
Installing rake 12.3.1
Installing concurrent-ruby 1.0.5
Installing i18n 1.0.1
Installing minitest 5.11.3
Installing thread_safe 0.3.6
Installing tzinfo 1.2.5
Installing activesupport 5.2.0
Installing builder 3.2.3
Installing erubi 1.7.1
Installing mini_portile2 2.3.0
Installing nokogiri 1.8.2 with native extensions
Installing rails-dom-testing 2.0.3
Installing crass 1.0.4
Installing loofah 2.2.2
Installing rails-html-sanitizer 1.0.4
Installing actionview 5.2.0
Installing rack 2.0.4
Installing rack-test 1.0.0
Installing actionpack 5.2.0
Installing nio4r 2.3.0 with native extensions
Installing websocket-extensions 0.1.3
Installing websocket-driver 0.7.0 with native extensions
Installing actioncable 5.2.0
Installing globalid 0.4.1
Installing activejob 5.2.0
Installing mini_mime 1.0.0
Installing mail 2.7.0
Installing actionmailer 5.2.0
Installing activemodel 5.2.0
Installing case_transform 0.2
Installing jsonapi-renderer 0.2.0
Installing active_model_serializers 0.10.7
Installing arel 9.0.0
Installing activerecord 5.2.0
Installing mimemagic 0.3.2
Installing marcel 0.3.2
Installing activestorage 5.2.0
Installing public_suffix 3.0.2
Installing addressable 2.5.2
Installing encryptor 3.0.0
Installing attr_encrypted 3.1.0
Installing climate_control 0.2.0
Installing cocaine 0.5.8
Installing av 0.9.0
Installing aws-partitions 1.80.0
Installing aws-sigv4 1.0.2
Installing jmespath 1.4.0
Installing aws-sdk-core 3.19.0
Installing aws-sdk-kms 1.5.0
Installing aws-sdk-s3 1.9.1
Installing bcrypt 3.1.11 with native extensions
Installing msgpack 1.2.4 with native extensions
Installing bootsnap 1.3.0 with native extensions
Installing browser 2.5.3
Using bundler 1.16.2
Installing charlock_holmes 0.7.6 with native extensions
Installing multi_json 1.13.1
Installing elasticsearch-api 6.0.2
Installing multipart-post 2.0.0
Installing faraday 0.15.0
Installing elasticsearch-transport 6.0.2
Installing elasticsearch 6.0.2
Installing elasticsearch-dsl 0.1.5
Installing chewy 5.0.0
Installing chunky_png 1.3.10
Installing ffi 1.9.23 with native extensions
Installing cld3 3.2.2 with native extensions
Installing colorize 0.8.1
Installing connection_pool 2.2.1
Installing css_parser 1.6.0
Installing orm_adapter 0.5.0
Installing method_source 0.9.0
Installing thor 0.20.0
Installing railties 5.2.0
Installing responders 2.4.0
Installing warden 1.2.7
Installing devise 4.4.3
Installing rotp 2.1.2
Installing devise-two-factor 3.0.3
Installing unf_ext 0.0.7.5 with native extensions
Installing unf 0.1.4
Installing domain_name 0.5.20180417
Installing doorkeeper 4.2.6
Installing dotenv 2.2.2
Installing dotenv-rails 2.2.2
Installing equatable 0.5.0
Installing et-orbi 1.1.0
Installing excon 0.62.0
Installing fast_blank 1.0.0 with native extensions
Installing fastimage 2.1.1
Installing formatador 0.2.5
Installing fog-core 1.45.0
Installing fog-json 1.0.2
Installing fog-local 0.5.0
Installing ipaddress 0.8.3
Installing fog-openstack 0.1.25
Installing http-cookie 1.0.3
Installing http-form_data 2.1.0
Using http_parser.rb 0.6.1 from https://github.com/tmm1/http_parser.rb (at 54b17ba@54b17ba)
Installing http 3.2.0
Installing oj 3.5.1 with native extensions
Installing goldfinger 2.1.0
Installing temple 0.8.0
Installing tilt 2.0.8
Installing hamlit 2.8.8 with native extensions
Installing hamlit-rails 0.2.0
Installing hamster 3.0.0
Installing hashie 3.5.7
Installing hiredis 0.6.1 with native extensions
Installing hitimes 1.2.6 with native extensions
Installing hkdf 0.3.0
Installing htmlentities 4.3.4
Installing http_accept_language 2.1.1
Installing httplog 1.0.2
Installing idn-ruby 0.1.0 with native extensions
Installing iso-639 0.2.8
Installing link_header 0.0.8
Installing rdf 3.0.2
Installing json-ld 2.2.1
Installing jwt 2.1.0
Installing kaminari-core 1.1.1
Installing kaminari-actionview 1.1.1
Installing kaminari-activerecord 1.1.1
Installing kaminari 1.1.1
Installing request_store 1.4.1
Installing lograge 0.10.0
Installing redis 4.0.1
Installing mario-redis-lock 1.2.1
Installing mime-types-data 3.2016.0521
Installing mime-types 3.1
Installing necromancer 0.4.0
Installing net-ldap 0.16.1
Installing nokogumbo 1.5.0 with native extensions
Installing rack-protection 2.0.1
Installing sidekiq 5.1.3
Installing statsd-ruby 1.2.1
Installing nsa 0.2.4
Installing omniauth 1.8.1
Installing omniauth-cas 1.1.1
Installing ruby-saml 1.7.2
Installing omniauth-saml 1.10.0
Installing ostatus2 2.0.3
Installing ox 2.9.2 with native extensions
Installing terrapin 0.6.0
Installing paperclip 6.0.0
Installing paperclip-av-transcoder 0.6.4
Installing tty-color 0.4.2
Installing pastel 0.7.2
Installing pg 1.0.0 with native extensions
Installing pghero 2.1.0
Installing pkg-config 1.3.0
Using posix-spawn 0.3.13 from https://github.com/rtomayko/posix-spawn (at 58465d2@58465d2)
Installing premailer 1.11.1
Installing premailer-rails 1.10.2
Installing private_address_check 0.4.1
Installing puma 3.11.4 with native extensions
Installing pundit 1.1.0
Installing rack-attack 5.2.0
Installing rack-cors 1.0.2
Installing rack-proxy 0.6.4
Installing rack-timeout 0.4.2
Installing sprockets 3.7.1
Installing sprockets-rails 3.2.1
Installing rails 5.2.0
Installing rails-i18n 5.1.1
Installing rails-settings-cached 0.6.6
Installing rdf-normalize 0.3.3
Installing redis-store 1.5.0
Installing redis-rack 2.0.4
Installing redis-actionpack 5.0.2
Installing redis-activesupport 5.0.4
Installing redis-namespace 1.6.0
Installing redis-rails 5.0.2
Installing rqrcode 0.10.1
Installing ruby-progressbar 1.9.0
Installing rufus-scheduler 3.4.2
Installing sanitize 4.6.4
Installing sidekiq-bulk 0.1.1
Installing sidekiq-scheduler 2.2.1
Installing sidekiq-unique-jobs 5.0.10
Installing simple-navigation 4.0.5
Installing simple_form 4.0.0
Installing stoplight 2.1.3
Installing streamio-ffmpeg 3.0.2
Installing strong_migrations 0.2.2
Installing timers 4.1.2
Installing tty-command 0.8.0
Installing tty-cursor 0.5.0
Installing tty-screen 0.6.4
Installing wisper 2.0.0
Installing tty-reader 0.2.0
Installing tty-prompt 0.16.0
Installing twitter-text 1.14.7
Installing tzinfo-data 1.2018.4
Installing webpacker 3.4.3
Installing webpush 0.3.3
Bundle complete! 115 Gemfile dependencies, 196 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from encryptor:

Please be aware that Encryptor v2.0.0 had a major security bug when using AES-*-GCM algorithms.

By default You will not be able to decrypt data that was previously encrypted using an AES-*-GCM algorithm.

Please see the README and https://github.com/attr-encrypted/encryptor/pull/22 for more information.

Post-install message from attr_encrypted:

WARNING: Several insecure default options and features were deprecated in attr_encrypted v2.0.0.

Additionally, there was a bug in Encryptor v2.0.0 that insecurely encrypted data when using an AES-*-GCM algorithm.

This bug was fixed but introduced breaking changes between v2.x and v3.x.

Please see the README for more information regarding upgrading to attr_encrypted v3.0.0.

Post-install message from paperclip:
##################################################
#  NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER      #
##################################################

Paperclip is now compatible with aws-sdk >= 2.0.0.

If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:

* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
  note that the format of the permissions changed from using an underscore to
  using a hyphen. For example, `:public_read` needs to be changed to
  `public-read`.

For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ yarn install --pure-lockfile
yarn install v1.3.2-20171207.1756
[1/6] Validating package.json...
[2/6] Resolving packages...
success Already up-to-date.
Done in 2.20s.
+ systemctl restart postgresql
+ popd
/opt/mastodon/live
+ pushd /opt/mastodon/live
/opt/mastodon/live /opt/mastodon/live
+ RAILS_ENV=production
+ /opt/mastodon/.rbenv/versions/2.5.1/bin/bundle exec rails assets:clean
+ RAILS_ENV=production
+ /opt/mastodon/.rbenv/versions/2.5.1/bin/bundle exec rails assets:precompile --trace
Warning: ** Invoke assets:precompile (first_time)
Warning: ** Invoke assets:environment (first_time)
Warning: ** Execute assets:environment
Warning: ** Invoke environment (first_time)
Warning: ** Execute environment
Warning: ** Invoke yarn:install (first_time)
Warning: ** Execute yarn:install
Warning: ** Execute assets:precompile
Warning: ** Invoke webpacker:compile (first_time)
Warning: ** Invoke webpacker:verify_install (first_time)
Warning: ** Invoke webpacker:check_node (first_time)
Warning: ** Execute webpacker:check_node
Warning: ** Invoke webpacker:check_yarn (first_time)
Warning: ** Execute webpacker:check_yarn
Warning: ** Invoke webpacker:check_binstubs (first_time)
Webpacker is installed 🎉 🍰
Warning: ** Execute webpacker:check_binstubs
Using /opt/mastodon/live/config/webpacker.yml file for setting up webpack paths
Warning: ** Execute webpacker:verify_install
Warning: ** Invoke environment
Warning: ** Execute webpacker:compile
Compiling…
Compiled all packs in /opt/mastodon/live/public/packs
Warning: ** Invoke assets:generate_static_pages (first_time)
Warning: ** Invoke assets:environment
Warning: ** Execute assets:generate_static_pages
+ popd
/opt/mastodon/live
+ sudo su - mastodon
~/live ~
Warning: rails aborted!
Warning: PG::ConnectionBad: fe_sendauth: no password supplied
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in `initialize'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in `new'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in `connect'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:684:in `connect'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:215:in `initialize'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:40:in `new'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/postgresql_adapter.rb:40:in `postgresql_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:809:in `new_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in `checkout_new_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:832:in `try_to_checkout_new_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:793:in `acquire_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:521:in `checkout'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:380:in `connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:1008:in `retrieve_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/connection_handling.rb:90:in `connection'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/strong_migrations-0.2.2/lib/strong_migrations/database_tasks.rb:4:in `migrate'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.0/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands/rake/rake_command.rb:20:in `perform'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/command.rb:48:in `invoke'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/railties-5.2.0/lib/rails/commands.rb:18:in `<top (required)>'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `block in require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:in `register'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in `require_with_bootsnap_lfi'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:in `require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `block in require'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:249:in `load_dependency'
Warning: /opt/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb:283:in `require'
Warning: bin/rails:4:in `<main>'
Warning: Tasks: TOP => db:migrate
Warning: (See full trace by running task with --trace)
+ sudo systemctl start mastodon-web.service mastodon-sidekiq.service mastodon-streaming.service
+ sleep 30
+ sudo systemctl reload nginx
+ ynh_app_setting_set mastodon unprotected_uris /
+ sudo yunohost app setting mastodon unprotected_uris --value=/ --quiet
+ sudo yunohost app ssowatconf
The SSOwat configuration has been generated
Success! mastodon has been upgraded
Success! The SSOwat configuration has been generated
Success! Upgrade complete
nemsia commented 6 years ago

launch to list your postgresql databases:

su - postgres
psql
\l
\q
anmol26s commented 6 years ago

There is no database known for mastadon. :cry: This has happened because while migration my postgres did not migrated to 9.6 and I have to remove the 9.6 and then install 6.4 manually.

anmol26s commented 6 years ago

Please do this in the upgrade script : https://github.com/YunoHost/example_ynh/blob/master/scripts/upgrade#L55 so that there would be backup of the app, for situations something goes wrong while upgrade. Or at least a database backup to /home/yunohost.backup/archive.

nemsia commented 6 years ago

If you have Mastodon backup you can restore it or just look at /var/lib/postgresql/mastodon_db.sql to restore DB only. The backup before upgrade is in testing branch but not ready now and one backup of Mastodon instance take 10Go~ on single user. If you want help much faster you can contact me on matrix: @nemsia:matrix.org or XMPP at nemsiaATnemsiaDOTorg.