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
  • 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 | Demo | Docs | Install
  1. Cloudron Forum
  2. PeerTube
  3. Regenerate video thumbnails

Regenerate video thumbnails

Scheduled Pinned Locked Moved Unsolved PeerTube
19 Posts 5 Posters 3.1k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mdc773M Offline
    mdc773M Offline
    mdc773
    wrote on last edited by
    #1

    anyway i can regenerate video thumbnails i seen that peertube has a documentation on this

    here
    https://docs.joinpeertube.org/maintain/tools#regenerate-video-thumbnails

    i've tried to auth my peertube app on the cloudron peertube terminal but get this after using this command

    root@cf0c783c-11b2-4366-a205-c4d2dfb18757:/app/code/server# peertube auth add -u https://mypeertubeurl -U root
    prompt: password:  **********************************************************************************
    
    node:internal/process/promises:288
                triggerUncaughtException(err, true /* fromPromise */);
                ^
    
    [Error: ENOENT: no such file or directory, mkdir '/root/.config'] {
      errno: -2,
      code: 'ENOENT',
      syscall: 'mkdir',
      path: '/root/.config'
    }
    
    Node.js v18.12.1
    ...
    

    i guess for some reason my object storage failed to take some uploads from one of my YouTube channels so it seems they uploaded to my drive on cloudron which took a lot of space that the app stopped. so i had a week old backup i restored to my goal is to attempt to get back lost thumbnails

    final how can i use the peertube cil above peertube regenerate-thumbnails once i figure out the peertube auth issue

    thanks

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

      Are other cli commands working for you, like the ones mentioned at https://docs.cloudron.io/apps/peertube/#cli ?

      1 Reply Last reply
      2
      • nebulonN nebulon marked this topic as a question on
      • mdc773M Offline
        mdc773M Offline
        mdc773
        wrote on last edited by
        #3

        Sure yes I was able to get this to work but I lost a lot of thumbnails I can't get back. Anyway possible for me to set up sending thumbnails to my objective storage.

        1 Reply Last reply
        0
        • mdc773M Offline
          mdc773M Offline
          mdc773
          wrote on last edited by
          #4

          See my issue that I spoke about in my first post was that my peertube failed to send uploads to my Idrive-e3. I don't know what happened all I noticed was that cloudron said my main drive was full so when I check system info I seen that my peertube took up all the space randomly I literally have 2.5tb of videos on my E3 but strange how everything decided to save on the main drive. When my config states that it needs to be stored on the objective storage. So when I looked for a backup I only had a backup from a week ago sadly I didn't have a recent one so when I reverted back to the backup from a week ago I lost lots of thumbnails but makes no sense because some of those videos you've been on there for months. Now I don't know what to do on getting back theses thumbnails I'm talking like of videos😩

          girishG 1 Reply Last reply
          0
          • mdc773M mdc773

            See my issue that I spoke about in my first post was that my peertube failed to send uploads to my Idrive-e3. I don't know what happened all I noticed was that cloudron said my main drive was full so when I check system info I seen that my peertube took up all the space randomly I literally have 2.5tb of videos on my E3 but strange how everything decided to save on the main drive. When my config states that it needs to be stored on the objective storage. So when I looked for a backup I only had a backup from a week ago sadly I didn't have a recent one so when I reverted back to the backup from a week ago I lost lots of thumbnails but makes no sense because some of those videos you've been on there for months. Now I don't know what to do on getting back theses thumbnails I'm talking like of videos😩

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @mdc773 You can run the command directly without credentials.

            Initially, I have no thumbnails:

            02760502-cf5a-4123-922e-98e338715ba6-image.png

            So, I recreate them like this:

            root@28ad76ef-962c-4fd8-a2b0-00d25cec8109:/app/code/server# gosu cloudron:cloudron npm run regenerate-thumbnails
            
            > peertube@5.2.1 regenerate-thumbnails
            > node ./dist/scripts/regenerate-thumbnails.js
            
            Processing video Cloudron Test Video.
            

            I got the thumbnail back:
            c321bbc0-ea05-4fc5-8a7a-5a78a66cae70-image.png

            1 Reply Last reply
            2
            • mdc773M Offline
              mdc773M Offline
              mdc773
              wrote on last edited by
              #6

              Thanks for your findings, i actually figured out this way of doing it as well but i find some thumbnails but then fails on some.. plus I am having the problem again when my peertube fails to send the videos to my objective storage (idrive-e3) so what happen is peertube save the videos locally and its about 1.5TB then it takes up all the space and the app stops..... this the seconded time this happened so idk if the problem is idrive or cloudron

              jdaviescoatesJ 1 Reply Last reply
              0
              • mdc773M Offline
                mdc773M Offline
                mdc773
                wrote on last edited by
                #7

                System Info

                1 Reply Last reply
                0
                • mdc773M Offline
                  mdc773M Offline
                  mdc773
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • robiR Offline
                    robiR Offline
                    robi
                    wrote on last edited by
                    #9

                    Btw, it's "object storage".

                    It's an interesting failure scenario that should be investigated with the peertube guys upstream.

                    Perhaps they need better retries and resilience on their s3 backend code and options for not saving locally if that fails.

                    Conscious tech

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • mdc773M Offline
                      mdc773M Offline
                      mdc773
                      wrote on last edited by
                      #10

                      thanks will do
                      and yeah lol object storage

                      1 Reply Last reply
                      0
                      • mdc773M mdc773

                        Thanks for your findings, i actually figured out this way of doing it as well but i find some thumbnails but then fails on some.. plus I am having the problem again when my peertube fails to send the videos to my objective storage (idrive-e3) so what happen is peertube save the videos locally and its about 1.5TB then it takes up all the space and the app stops..... this the seconded time this happened so idk if the problem is idrive or cloudron

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #11

                        @mdc773 said in Regenerate video thumbnails:

                        so what happen is peertube save the videos locally and its about 1.5TB then it takes up all the space and the app stops..... this the seconded time this happened so idk if the problem is idrive or cloudron

                        I was having similar problems with large videos when I was trying to run PeerTube on a server that didn't really have enough RAM / CPU to power it. Since I've been on a more powerful server everything has been working fine. I'd guess you're hitting a similar problem and what you need is a server upgrade.

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        1
                        • robiR robi

                          Btw, it's "object storage".

                          It's an interesting failure scenario that should be investigated with the peertube guys upstream.

                          Perhaps they need better retries and resilience on their s3 backend code and options for not saving locally if that fails.

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by
                          #12

                          @robi said in Regenerate video thumbnails:

                          options for not saving locally if that fails

                          I'm not sure, but I'd guess it does all the CPU intensive transcoding locally before uploading to S3.

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply
                          2
                          • mdc773M Offline
                            mdc773M Offline
                            mdc773
                            wrote on last edited by
                            #13

                            I appreciate everyone help even @jdaviescoates but hey i'm not 100% sure but i have a EX101 hetzner Intel® Core™ i9-13900 24 Core with 128gb ram cant be the server peertube fails and i need to find the exact log.. at the moment i plan to simulate the problem with a massive upload :? 😕

                            jdaviescoatesJ 1 Reply Last reply
                            1
                            • mdc773M mdc773

                              I appreciate everyone help even @jdaviescoates but hey i'm not 100% sure but i have a EX101 hetzner Intel® Core™ i9-13900 24 Core with 128gb ram cant be the server peertube fails and i need to find the exact log.. at the moment i plan to simulate the problem with a massive upload :? 😕

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by jdaviescoates
                              #14

                              @mdc773 certainly sounds like server power is not the issue!

                              Just to be sure though, have you also cranked up the app resources in the app settings?

                              I use Cloudron with Gandi & Hetzner

                              mdc773M 1 Reply Last reply
                              0
                              • girishG Offline
                                girishG Offline
                                girish
                                Staff
                                wrote on last edited by
                                #15

                                Maybe I missed it, what is the error message now?

                                1 Reply Last reply
                                0
                                • mdc773M Offline
                                  mdc773M Offline
                                  mdc773
                                  wrote on last edited by
                                  #16

                                  well i am trying to simulate this at the moment..

                                  1 Reply Last reply
                                  0
                                  • jdaviescoatesJ jdaviescoates

                                    @mdc773 certainly sounds like server power is not the issue!

                                    Just to be sure though, have you also cranked up the app resources in the app settings?

                                    mdc773M Offline
                                    mdc773M Offline
                                    mdc773
                                    wrote on last edited by
                                    #17

                                    @jdaviescoates yes i have

                                    1 Reply Last reply
                                    1
                                    • mdc773M Offline
                                      mdc773M Offline
                                      mdc773
                                      wrote on last edited by
                                      #18
                                      warn[10/24/2023, 3:39:37 PM] Object storage max upload part seems to have a big value (1073741824 bytes). Consider using a lower one (like 100MB). 
                                      
                                      

                                      I have set this up long time ago i don't fully understand max upload part but I've set to 100MB like it says same problem peertube support is very slow they have a matrix chat but barley reply

                                      i really need some help my idea for object storage was to save local space which i think this why all of us do this

                                      girishG 1 Reply Last reply
                                      0
                                      • mdc773M mdc773
                                        warn[10/24/2023, 3:39:37 PM] Object storage max upload part seems to have a big value (1073741824 bytes). Consider using a lower one (like 100MB). 
                                        
                                        

                                        I have set this up long time ago i don't fully understand max upload part but I've set to 100MB like it says same problem peertube support is very slow they have a matrix chat but barley reply

                                        i really need some help my idea for object storage was to save local space which i think this why all of us do this

                                        girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #19

                                        @mdc773 said in Regenerate video thumbnails:

                                        i don't fully understand max upload part

                                        On S3 compatible storage, you can upload large files, like 5TB. It would be infeasible to upload such large files in a single shot. So, they have APIs to upload files in "parts". Like you upload 10k parts of 5GB each for example to get to 5TB. The number of parts and size of each part depends on the S3 storage.

                                        Usually, I leave upload part size to something like 10MB-50MB. There is actually nothing wrong with 100MB part size, but for some reason peertube is complaining about it.

                                        1 Reply Last reply
                                        2
                                        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