-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support S3 storage to store videos #3661
Comments
S3 is a product that belongs to AWS, and the common technology is called ObjectStore, so if you want to be agnostic about it, I kindly recommend to name it ObjectStore :) (But the awefull truth is that there is no specification, and S3 is the specification..) |
I did try to use Backblaze B2 and PeerTube constantly fails to upload relatively big files (~300 MB) and start uploading again with a different name (I checked backend). Definitely we need a better support for S3. @Chocobozzz Thanks for your work |
We are using with OVH S3 https://www.ovhcloud.com/en/public-cloud/object-storage/ (which uses openstack's swift implementation) on kubernetes with s3fs sidecar (see https://docs.joinpeertube.org/install-unofficial?id=kubernetes) . Happy to help out with testing if this development starts. |
Same problem as @grubeli with big files on my instance using S3FS with Wasabi : I get an error (browser) after the upload and before the Publish button becomes available (more than 5 minutes...). |
@manuelviens If you open up Chrome devtools, can you report the HTTP response code you see when the browser error appears (it should be 500, 504 or something similar)? A screenshot at the Console and Network tabs works as well. |
@kontrollanten, @manuelviens , |
@kukhariev For me that doesn't help. I still get a 502 from my load balancer after 4 minutes.
https://tools.ietf.org/id/draft-loreto-http-bidirectional-07.html#timeouts I can find two possible solutions for this: A) After the upload is done, let the client do long polling until the file has moved. That would mean that the request is closed each 15 second and a new request is done until the move is done. |
I want to try and make an implementation that uses the s3 api. I already have a basic version working. I will create a draft PR to get feedback on this |
I currently have a problem with the S3 connection.
Uploading videos works, but forwarding to MinIO does not. Error message:
My configuration:
Maybe someone has an idea. NextCloud works great with MinIO as external storage. |
@Hoerli1337 a closed issue is not really a good place to ask new questions but I can answer your question. In your case the issue is that you're using an IP address as the s3 host. I think you may be able to solve this by adding entries in your hostfile (/etc/hosts):
Then use s3host in the object_storage.endpoint instead of your ip address. You can see how s3 gets reached here: https://github.com/Chocobozzz/PeerTube/blob/develop/server/lib/object-storage/urls.ts#L31-L35 |
Thanks for the quick reply.
|
That seems like it's trying to do https to a http url, but i'm not sure why that might be the case. Have you used an http:// url like in your previous comment? |
We already have a documentation to mount a s3 storage, but there are some limitations and issues with fuse-mounted s3 storage. A proper support of s3 within PeerTube to store videos (webtorrent versions and HLS versions) would fix them.
The text was updated successfully, but these errors were encountered: