Postupdate scripts?
-
Missing Thumbnails after this update. It is mentioned here to run scripts and re-generate thumbnails. Just want to confirm the procedure here...?
Blog post: https://joinpeertube.org/news/release-8.1
IMPORTANT NOTES
You need to manually execute a migration script after upgrading, while PeerTube is running and the database migration is complete (Migrations finished. New migration version schema: 1000 in PeerTube startup logs):
Classic installation: cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-8.1.js
Docker installation: cd /var/www/peertube-docker && docker compose exec -u peertube peertube node dist/scripts/migrations/peertube-8.1.js
Running regenerate-thumbnails and prune-storage scripts after the upgrade and migration script is highly recommended -
Good question, I did assume it would run those automatically. We have no special code for this in the package itself. On Cloudron peertube runs with
environment=HOME="/home/cloudron",USER="cloudron"so to run the specific npm commands use in the webterminal:gosu cloudron:cloudron npm run regenerate-thumbnails gosu cloudron:cloudron npm run prune-storage -
I did assume that on app startup peertube runs those scripts if needed. You can run them again and again afterwards to ensure they ran though to be safe:
gosu cloudron:cloudron node dist/scripts/migrations/peertube-8.1.jsThose probably should be added to the package next time such a script is added, so good you brought that up. I must be blind, but where did you see that initial "IMPORTANT NOTES" warning, clearly that is something we should have seen.
-
OK, we are back - good thumbnails! (except shared channels from other sites that have not updated yet)
gosu cloudron:cloudron node dist/scripts/migrations/peertube-8.1.jsgosu cloudron:cloudron npm run regenerate-thumbnailsgosu cloudron:cloudron npm run prune-storageThanks for the help!
Now to update all of our sites
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
