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
11 Posts 4 Posters 93 Views 4 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
    #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 Away
      nebulonN Away
      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 Away
          nebulonN Away
          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 Away
              nebulonN Away
              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 🙂

                sponchS 1 Reply Last reply
                2
                • nebulonN Away
                  nebulonN Away
                  nebulon
                  Staff
                  wrote last edited by
                  #9

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

                  1 Reply Last reply
                  2
                  • S stevespaw

                    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 🙂

                    sponchS Offline
                    sponchS Offline
                    sponch
                    wrote last edited by
                    #10

                    @stevespaw thanks for sharing!

                    1 Reply Last reply
                    1
                    • necrevistonnezrN Online
                      necrevistonnezrN Online
                      necrevistonnezr
                      wrote last edited by necrevistonnezr
                      #11

                      Just to be clear: In the current version, video thumbnails are not created automatically after an upload, other than before.

                      gosu cloudron:cloudron npm run regenerate-thumbnails
                      

                      needs to be run manually. Is this still an error in the Cloudron package or the App itself?

                      1 Reply Last reply
                      0

                      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