Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds
Minds
  • Project overview
  • Repository
  • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • MindsMinds
  • Issues
  • #1000

Closed
Open
Opened 5 days ago by Narayanan KA@movingisliving2019
Report abuse New issue

Video upload gives error 400

While uploading a video, an error 400 throws up. Here is the complete error code.

Http failure response for https://cinemr.s3.amazonaws.com/cinemr_dev/1056186287834271763/source?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20191224%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191224T122714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=c4692cd484d0ae1eaf0d32e41b29e6382122c903b26f7cab292c9fd93d215a6b: 400 Bad Request

@benhayward.ben Do we need to make changes in settings.php and if Yes then exactly what changes ?

PS: I tried to follow the link and it returns an xml saying Permanent Redirect.

Edited 3 days ago by Narayanan KA

Related issues
0

  • Discussion 5
  • Designs 0
  • Narayanan KA
    Narayanan KA @movingisliving2019 · 3 days ago

    I tried modifying the settings.php and the AWS and video upload related to files to reflect our own s3 bucket and entered the key and secret, I have also created the elastic trans-coder and linked it with the bucket. The settings look like this:

    $CONFIG->set('aws', [ 'key' => 'AKIATEWZVOZKDWHLSJ35', 'secret' => '************************', 'useRoles' => false, 'bucket' => 'elasticbeanstalk-ap-south-1-216278595156', 'staticStorage' => 'cinemr_dev', 'region' => 'ap-south-1', 'account_id' => '216278595156', 'elastic_transcoder' => [ 'pipeline_id' => '1577104947725-2esizr', 'presets' => [ "360.mp4" => "1351620000001-000040", "720.mp4" => "1351620000001-000010", "360.webm" => "1351620000001-100260", "720.webm" => "1351620000001-100250" ], 'dir' => 'cinemr_dev' ], 'queue' => [ 'namespace' => 'EmiDev', 'wait_seconds' => 3, ] ]);

    $CONFIG->cinemr_url = 'https://elasticbeanstalk-ap-south-1-216278595156.s3.amazonaws.com/cinemr_dev/';

    I have also modified the bucket name 'cinemr' in the Core files. Currently this is the error I am getting when uploading

    Http failure response for https://elasticbeanstalk-ap-south-1-216278595156.s3.ap-south-1.amazonaws.com/cinemr_dev/1056955634089463827/source?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIATEWZVOZKDWHLSJ35%2F20191226%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20191226T152420Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=1d4f710c3912e9b59c6079919e77108b39da256ac5276d3a7d43a2dc54fca822: 0 Unknown Error

    In inspect, it appears as 403 error. When I enter the link in the browser, I get the following xml

    error1

    @benhayward.ben , If you could just point me towards where its going wrong, please.

  • Narayanan KA @movingisliving2019 changed the description 3 days ago

    changed the description

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 2 days ago

    @benhayward.ben Looking forward to hearing from you

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 2 days ago

    @benhayward.ben

    OK. CORS had to be enabled. The above issue is solved. Now we are getting 'The video is being transcoded' for a 1 mb video file. Needless to say, Cant play it as well.

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 1 day ago

    @benhayward.ben, i have been trying to find why the transcoding never ends, and discovered that the transcoding actually never even started. The video is being uploaded to s3 properly. But when i check the elastic transcoder jobs list, it is empty. I can't ascertain why this is happening though. I checked the code in AWS.php and other related files, but they seemed fine. I have updated the settings.php with transcoder pipeline details as well as changed the custom video presets to the ones in AWS. Are there any settings inaws that i should check that might be causing this issue ?

  • Narayanan KA
    Narayanan KA @movingisliving2019 · 10 hours ago

    @benhayward.ben awaiting reply

Please register or sign in to reply
0 Assignees
None
none
Epic
None
None
Milestone
None
Time tracking
No estimate or time spent
None
Due date
None
0
Labels
None
None
Weight
None
Confidentiality
Not confidential
Lock issue
Unlocked
2
2 participants
user avatar
Narayanan KA
user avatar
Ben Hayward
Reference: minds/minds#1000