Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
12.98k stars 1.49k forks source link

Private videos and S3 #6448

Closed Kitanit closed 1 month ago

Kitanit commented 3 months ago

Describe the current behavior

If the video is not public, it is not uploaded to S3 (or the UI does not display it "object storage") and also you can not download a transcoded video from the admin panel(screen). image

Steps to reproduce

1) upload a video 2) set access restricted

Describe the expected behavior

No response

Additional information

docker PeerTube 6.1.0

Chocobozzz commented 3 months ago

Hello,

Please provide your instance URL so I can reproduce and also paste your server logs

Kitanit commented 3 months ago

Hello,

Please provide your instance URL so I can reproduce and also paste your server logs

https://peertube.in.ua and log 1 hour https://pastebin.com/MRN48urs

Chocobozzz commented 3 months ago

log 1 hour https://pastebin.com/MRN48urs

Thanks, can you upload a private video to see if there is an error in the logs? Admin "Local jobs" page may also help to see the error of move-to-object-storage job.

Can you also provide the value of upload_acl->private config? https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L193 (or if you use an env variable it's PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE

Chocobozzz commented 3 months ago

Fixed downloading private/protected videos from the admin by https://github.com/Chocobozzz/PeerTube/commit/79d6e93b03e23cac9760b71c1904a1f77a69e941