Skip to content
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

Trouble deploying with minio ObjectStorage #2

Open
arthurzenika opened this issue Sep 24, 2021 · 5 comments
Open

Trouble deploying with minio ObjectStorage #2

arthurzenika opened this issue Sep 24, 2021 · 5 comments

Comments

@arthurzenika
Copy link

With a new deployement, when I upload a test video, it ends up in the PV named peertube-data

I have :

root@peertube-675fc6c68d-t5gwn:/app# cat config/default.yaml  | grep -A 2 object 
object_storage:
  enabled: false

root@peertube-675fc6c68d-t5gwn:/app# env  | grep AW
AWS_SECRET_ACCESS_KEY=XXX
AWS_ACCESS_KEY_ID=peertube
root@peertube-675fc6c68d-t5gwn:/app# env  | grep OBJ
PEERTUBE_OBJECT_STORAGE_VIDEOS_BUCKET_NAME=peertube
PEERTUBE_OBJECT_STORAGE_REGION=NA
PEERTUBE_OBJECT_STORAGE_ENABLED=true
PEERTUBE_OBJECT_STORAGE_STREAMING_PLAYLISTS_PREFIX=streaming/
PEERTUBE_OBJECT_STORAGE_STREAMING_PLAYLISTS_BUCKET_NAME=peertube
PEERTUBE_OBJECT_STORAGE_ENDPOINT=minio.XXX
PEERTUBE_OBJECT_STORAGE_VIDEOS_PREFIX=videos/

Could it be ? :

  • I created the deployment before creating the secret so I have now have something wrong ?
  • the region attribute is not applicable to minio so that's the bug ?

I don't seem to have any logs indicating the problem.

@adelcasse
Copy link
Member

adelcasse commented Sep 24, 2021

Hi Arthur,

Did you try to rollout restart you deployment after changing the secret ?

I never tried with minio. If there is an issue sending the videos to object storage, you might see the logs in this page https://your-peertube-instance/admin/system/jobs (with a specific type relating to S3 : I don't have them anymore so I can't give you an example right now)

I will test with minio next week if you can't get it working before.

@adelcasse
Copy link
Member

adelcasse commented Sep 24, 2021

Here is an example of what you should see in the admin UI when it's working (and it would show you an error in case of S3 endpoint/region/etc... misconfiguration) :

image

@adelcasse
Copy link
Member

And for the config/default.yaml object_storage.enabled value set to false, that's normal.

Values should be overridden by environment variables : see https://github.com/Chocobozzz/PeerTube/blob/0305db28c98fd6cf43a3c50ba92c76215e99d512/support/docker/production/config/custom-environment-variables.yaml#L48

You could also, as an alternative to using environment variables, do like explained in "Other configurations" section of the README (https://github.com/coopgo/peertube-k8s#other-configurations) to provide a production.yaml file with object_storage settings.

@arthurzenika arthurzenika changed the title Trouble deploying with ObjectStorage enabled Trouble deploying with minio ObjectStorage Sep 24, 2021
@arthurzenika
Copy link
Author

I got the following log :

Job: 1 Type: move-to-object-storage Processed on Sep 24, 2021, 4:49:50 PM Finished on Sep 24, 2021, 4:49:50 PM
--
{   "videoUUID": "a4a94b48-8a72-4abf-b892-cf9f94e58b85",   "isNewVideo": true }
Error: getaddrinfo ENOTFOUND peertube.minio.example.org     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)

This means that it's using DNS based bucket. This might require the addition of something lik use_path_request_style (see Chocobozzz/PeerTube#147 (comment))

I'll look into it next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants