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

Server not available at Tizen app (samsung smart-tv) #61

Open
babatonga opened this issue Mar 20, 2023 · 5 comments
Open

Server not available at Tizen app (samsung smart-tv) #61

babatonga opened this issue Mar 20, 2023 · 5 comments

Comments

@babatonga
Copy link

babatonga commented Mar 20, 2023

Tizen Plex version: 5.56.1
plexmediaserver build: 1.31.2.6810-a607d384f
UnicornLoadBalancer: 2.4.3

Server appears as offline on tv's plex app. On andoid app and app.plex.tv everything is working fine from inside and outside local network.
If I add the ip & balancer port manually, it will show all libraries, but fails on playing/transcoding ( maybe refers to #37 ). Nginx acces.log of UnicornTranscoder is logging requests from samsung-agent, but is responding 400.

@Maxou44
Copy link
Member

Maxou44 commented Mar 21, 2023

Is it working on other platforms like Web / Android / PC ?

Is the Plex Relay feature disabled? Is 32400 port blocked ?

Are you sure the incoming traffic pass throught the load balancer ?

@babatonga
Copy link
Author

babatonga commented Mar 21, 2023

Its working on Web, Android & PC from inside and outside local network. The loadbalancer and all transcoders have public domains with nginx(transcoders) / apache (load balancer) as reverse proxy:

  • Balancer: plex.mysite.tv
  • Transcoders: tc1.mysite.tv, tc2.mysite.tv, tc3.mysite.tv

Other configurations:

  • Port 32400 is blocked by iptables (confirmed).
  • Relay and remote-access are deactivated
  • custom-connections-url ist set to load balancer https url (https://plex.mysite.tv:443) <-- this is the only place where i set the port 443 manually to ensure plex doesn't try to access it on 32400 or "public port" (which is deactivated tho)

When inspecting network-traffic while watching videos: All streaming-related requests are send to transcoder-urls (eg. https://tc1.mysite.tv/video/:/transcode/universal/session/...)

On TV I only could set a manual IP (local ip with port 3001, not reverse proxy), not a domain. Without setting it, the server appears as "not available", with setting it, the request is arriving at transcoding-servers when starting a video, but TV shows an error immediately.

@babatonga
Copy link
Author

babatonga commented Mar 21, 2023

Update:
after setting (server->settings->network) secure-connections from preffered to required, the server is available again at tizen app. But videos could still not be played, app shows "an unexpected error occurred" immediately after starting playback.

Transcoding is starting on UnicornTranscoder, here are some nginx logs:

[21/Mar/2023:23:27:32 +0100] "GET /music/:/transcode/universal/session/<samsungtv_session>/base/index.m3u8 HTTP/1.1" 200 215 "-" "samsung-agent/1.1"
[21/Mar/2023:23:27:32 +0100] "GET /music/:/transcode/universal/session/<samsungtv_session>/base/00000.ts HTTP/1.1" 200 27072 "-" "samsung-agent/1.1"
[21/Mar/2023:23:27:32 +0100] "GET /music/:/transcode/universal/session/<samsungtv_session>/base/00001.ts HTTP/1.1" 200 28012 "-" "samsung-agent/1.1"
... until it suddenly stops after ~/base/0030.ts

but not everytime, sometimes the only log I get is the initializing via GET /api/resolve?session=... with 200 as response and no further requests.

@Maxou44
Copy link
Member

Maxou44 commented Mar 23, 2023

Do you have a debug mode on the Tizen app to enable app logs ?

@babatonga
Copy link
Author

I'll try to enable debug logs and post/attatch them here in the next days.

Now I purchased an Android-TV-Box (LEAP-S1) and everything is working fine with it... much better than pretty slow samsung-tizen did :-) The Tizen plex app did often freeze in the movie selection or while fast forwarding and I read lots of posts about people struggling with it. Now everything is super fast and I don't even need transcoding on it anymore, almost everything is playing directly (video + digital sound).

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