Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. Postupdate scripts?

Postupdate scripts?

Scheduled Pinned Locked Moved PeerTube
9 Posts 2 Posters 29 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic was forked from PeerTube - Package Updates nebulon
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stevespaw
    wrote last edited by stevespaw
    #1

    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

    1 Reply Last reply
    2
    • S Offline
      S Offline
      stevespaw
      wrote last edited by
      #2

      This is a question, I may not have been clear - 🙂
      I assume that the Cloudron update ran the "Migration" script?
      We need to do the regenerate-thumbnails and prune storage manually?
      What is the best way to run those in Cloudron?

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote last edited by
        #3

        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
        
        1 Reply Last reply
        1
        • S Offline
          S Offline
          stevespaw
          wrote last edited by
          #4

          Did the migration script "peertube-8.1" run as part of the Cloudron update?

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote last edited by
            #5

            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.js
            

            Those 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.

            1 Reply Last reply
            1
            • S Offline
              S Offline
              stevespaw
              wrote last edited by
              #6

              That was on the 8.1 release notes. I will try this now...

              1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote last edited by
                #7

                Ah indeed I am blind! no clue why I didn't see that in the release tag one!

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  stevespaw
                  wrote last edited by
                  #8

                  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.js
                  
                  gosu cloudron:cloudron npm run regenerate-thumbnails
                  
                  gosu cloudron:cloudron npm run prune-storage
                  

                  Thanks for the help!
                  Now to update all of our sites 🙂

                  1 Reply Last reply
                  1
                  • nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote last edited by
                    #9

                    Sorry for missing this, will hopefully not happen the next time 😕

                    1 Reply Last reply
                    2

                    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
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search