Regenerate video thumbnails
-
anyway i can regenerate video thumbnails i seen that peertube has a documentation on this
here
https://docs.joinpeertube.org/maintain/tools#regenerate-video-thumbnailsi'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
-
-
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
-
@mdc773 You can run the command directly without credentials.
Initially, I have no thumbnails:
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:
-
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
-
-
@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.
-
@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 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 :?
-
@jdaviescoates yes i have
-
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
-
@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.