GithubHelp home page GithubHelp logo

why i got the 502 about docker-nginx-vod-module HOT 6 CLOSED

alfg avatar alfg commented on June 3, 2024
why i got the 502

from docker-nginx-vod-module.

Comments (6)

alfg avatar alfg commented on June 3, 2024

Hi @cjk7713,

Are you creating the aws signing key used by:
https://github.com/alfg/docker-nginx-vod-module/blob/master/nginx.remote.conf#L52

https://github.com/alfg/docker-nginx-vod-module/blob/master/scripts/generate_signing_key.py

from docker-nginx-vod-module.

mlevkov avatar mlevkov commented on June 3, 2024

Same here, I've gotten 502 Bad Gateway error. I did create they key. The error log does say that I've gotten 403 Forbidden error. However, I've checked the configuration and it looks correct (at least it seems to be so). My credentials do allow use of CLI (which according to the AWS is specified as programmatic access). If you are open to it, I can make a web session to show you what the issue is, if that helps.

from docker-nginx-vod-module.

alfg avatar alfg commented on June 3, 2024

Ok, so I tried doing a fresh docker build, with a new signing key and key scope. I'm still able to resolve a video:

λ curl -I http://localhost:8080/hls/videos/tears-of-steel/video.mp4/master.m3u8
HTTP/1.1 200 OK
Server: nginx/1.13.8
Date: Wed, 02 May 2018 04:01:42 GMT
Content-Type: application/vnd.apple.mpegurl
Content-Length: 238
Connection: keep-alive
ETag: "-1-ee"
Access-Control-Allow-Headers: *
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Accept-Ranges: bytes

My test video is stored in the s3 bucket, under videos/tears-of-steel/video.mp4 in the case above. I got a 502 when entering an incorrect path.

Can you double check you are entering the correct path for your video? If you're still running into issues, can you provide a minimal example or demo? I wonder if can also be an AWS permissions thing.

from docker-nginx-vod-module.

alfg avatar alfg commented on June 3, 2024

Closing this for now. Feel free to reopen if you're still running into issues.

from docker-nginx-vod-module.

RomanGalo4kin avatar RomanGalo4kin commented on June 3, 2024

I got the same error with default settings.

from docker-nginx-vod-module.

alfg avatar alfg commented on June 3, 2024

It's usually due to an invalid signing key. Make sure to run:

python scripts/generate_signing_key.py -k <aws secret access key> -r <aws region>

and apply those values as the environment variables:

AWS_SIGNING_KEY=
AWS_KEY_SCOPE=

from docker-nginx-vod-module.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.