question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

404 Error "Callback -2" (on video files) after 'start.mpd' has returned it's successful response

See original GitHub issue

Hi there guys,

I’m in the process of setting this up in a dockerised deployment (everything is up to the actual transcoder) which I’ll push up to github once it’s all working for others to easily deploy…

Currently as it stands:

  • Environment is running behind Caddy reverse proxy for Lets Encrypt SSL’s
  • Loadbalancer & FFMpeg replacement components configured & working fine
  • When the request to the /video/:/transcode/universal/start.mpd is intercepted by the load balancer and then 301’d to the actual transcode worker I get an initial response from the Load transcode worker (with the XML body as expected) however then when the Plex client requests the initial.mp4 file I simply get the 404 response: Callback -2 from UnicornTranscoder’s Express.

Could anyone give me any feedback on what this may be / where to look?

I’m Currently running the latest commit in Master (so Version 2.0 I’m assuming) Happy to share my Docker files also which might make it easier for developing.

Cheers,

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
drouarbcommented, Mar 21, 2019

Your output log shows http://127.0.0.1:3001/api/ffmpeg in the transcoder. This route is called by UnicornFFMPEG, it shouldn’t be run by the transcoder. UnicornFFMPEG is a binary that should replace Plex Transcoder only in the Plex Media Server folder. It is used to push arguments to the UnicornLoadBalancer so the UnicornTranscoder can pull them to run the real Plex Transcoder on his side. Just remove the plexmediaserver in the UnicornTranscoder folder and run npm run install and everything should work fine.

0reactions
Maxou44commented, Mar 21, 2019

/config/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions don’t need to be shared with the transcoder, only between Plex and the LoadBalancer.


2019-03-21T10:09:24.564Z UnicornTranscoder:Transcoder Failed to start waapgtycm0rv4b5dkfp2adca: StatusCodeError: 400 - "{\"error\":{\"code\":\"SESSION_TIMEOUT\",\"message\":\"The session wasn't launched in time, request fails\"}}"

It means, the UnicornFFMPEG didn’t sent arguments to the load balancer, in general it’s because UnicornFFMPEG wasn’t setup or it don’t have access to the load balanacer (URL configuration)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cloud Recording Release notes | Agora Documentation
This release adds the recorder_snapshot_file callback,which indicates that the screenshot is captured successfully, and returns the name of the screenshot file ...
Read more >
Music Player Daemon/Troubleshooting - ArchWiki
During the start of MPD, it tries to autodetect your set-up and configure output ... The mpd error file is deprecated and has...
Read more >
Player Errors Reference (Web Player) - JW Player
Identify player errors. ... An error has the following behaviors: ... These errors prevent the player from setting up successfully; they occur after...
Read more >
Copyright HbbTV 2018 All Rights Reserved Test Suite 2018-1 ...
When playing back a video URL that results in a HTTP error. 404 (not found), a single error event should occur, the error...
Read more >
DASH-IF implementation guidelines: restricted timing model
The MPD is an XML file that follows a schema defined in [DASH]. ... point in wall clock time indicated by the effective...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found