Login
You're viewing the y.diskcat.com public feed.
  • Oct 29, 2026, 5:31 PM

    Und wenn ihr von Ubuntu 24.04.1 auf Ubuntu 26.04.1 hochgerüstet habt, dann kommt der Fehler:

    "WARNUNG: Version von Sortierfolge für Datenbank »mastodon_production« stimmt nicht überein
    DETAIL: Die Datenbank wurde mit Sortierfolgenversion 2.39 erzeugt, aber das Betriebssystem hat Version 2.43."

    Dann laufen auch die Aufräumtools nicht.
    (RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove
    RAILS_ENV=production /home/mastodon/live/bin/tootctl preview_cards remove etc)

    Ich habe nicht genau verstanden, was ich da gemacht habe, aber es scheint zu funktionieren. Aufräumkommandos gehen jedenfalls wieder und die Instanz läuft. Hier meine Holzhammerlösung nach u.a. Link:

    ACHTUNG: Erst Systemsicherung oder DB-Sicherung durchführen!

    su - mastodon
    cd /home/mastodon/live/

    su - root
    systemctl stop mastodon-web mastodon-sidekiq mastodon-streaming
    exit

    sudo -u postgres reindexdb mastodon_production

    sudo -u postgres psql -c "ALTER DATABASE mastodon_production REFRESH COLLATION VERSION;"
    sudo -u postgres psql -c "ALTER DATABASE template1 REFRESH COLLATION VERSION;"
    sudo -u postgres psql -c "ALTER DATABASE postgres REFRESH COLLATION VERSION;"

    sudo -u postgres reindexdb mastodon_production

    sudo -u postgres psql -c "ALTER DATABASE mastodon_production REFRESH COLLATION VERSION;"
    sudo -u postgres psql -c "ALTER DATABASE template1 REFRESH COLLATION VERSION;"
    sudo -u postgres psql -c "ALTER DATABASE postgres REFRESH COLLATION VERSION;"

    su - root
    systemctl start mastodon-web mastodon-sidekiq mastodon-streaming
    exit
    exit

    just-stuff.blog/postgresql-col

    💬 0🔄 0⭐ 5