Editing
(Mastodon Upgrade)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
sudo cp /var/lib/redis/dump.rdb /tmp/backup.rdb sudo su - mastodon pg_dump mastodon_production > /tmp/backup.psqld cp live/.env.production /tmp/.env.production sudo su - mastodon cd live RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.0.4 rbenv global 3.0.4 git fetch && git checkout v4.0.2 git -C /home/mastodon/.rbenv/plugins/ruby-build pull bundle install yarn install SKIP_POST_DEPLOYMENT_MIGRATIONS=true RAILS_ENV=production bundle exec rails db:migrate RAILS_ENV=production bundle exec rails assets:precompile " Ako ima greshka da se probva sus: NODE_OPTIONS=--openssl-legacy-provider RAILS_ENV=production bundle exec rails assets:precompile " https://github.com/mastodon/mastodon/issues/24141 exit sudo systemctl restart 'mastodon*' sudo su - mastodon cd live && RAILS_ENV=production bundle exec rails db:migrate exit sudo systemctl restart 'mastodon*' https://techbits.io/mastodon-4-upgrade/ ---------------------------------------------------------------------------------------------------------------------------------- WARNING: database "mastodon_production" has a collation version mismatch DETAIL: The database was created using collation version 2.40, but the operating system provides version 2.41. HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE mastodon_production REFRESH COLLATION VERSION, or build PostgreSQL with the right library version. 1. make backup of postresql of mastodon: pg_dump mastodon_production > mastodon_backup.sql In case you dont need make backup skip point 1. 2. Connect with user postgres and psql: sudo -u postgres psql 3. This generate all index with database using collation actual REINDEX DATABASE "mastodon_production"; 4. Refresh version of collation: ALTER DATABASE mastodon_production REFRESH COLLATION VERSION; 5. Verify that it dont appear mismatch collation: psql \q and return connect 6. connect to database: \c mastodon_production
Summary:
Please note that all contributions to Bgzashtita Official wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Bgzashtita Official wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
What links here
Related changes
Page information