FAQ  •  Register  •  Login

Apache2 https - hlsjs video file not found

<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Sun Feb 04, 2018 9:03 pm

Apache2 https - hlsjs video file not found

Hi,

I'm using serviio pro, and trying to setup on Ubuntu 16.04 server
Reading through all manuals/forums I managed to set working apache2 - serviio settings for http
however when I setup SSL for https redirected https page give me "hlsjs video file not found" error.
here is http confg: (works perfect not errors appears)
<VirtualHost *:80> $
ServerName video.server.org

ProxyPass /cds/ http://192.168.x.xxx:23424/cds/
ProxyPassReverse /cds/ http://192.168.x.xxx:23424/cds/

ProxyPass / http://192.168.x.xxx:23424/mediabrowser/
ProxyPassReverse / http://192.168.x.xxx:23424/mediabrowser/

</VirtualHost>

here is https confg: (the "hlsjs video file not found" error appears by trying to play video)

<IfModule mod_ssl.c>
<VirtualHost *:443>

ServerName video.server.org

ProxyPreserveHost On
ProxyRequests Off

ProxyPass /cds/ http://192.168.x.xxx:23424/cds/
ProxyPassReverse /cds/ http://192.168.x.xxx:23424/cds/

ProxyPass / http://192.168.x.xxx:23424/mediabrowser/
ProxyPassReverse / http://192.168.x.xxx:23424/mediabrowser/

SSLCertificateFile /etc/letsencrypt/live/video.server.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/video.server.org/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

Kindly asking for your support.
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sun Feb 04, 2018 10:19 pm

Re: Apache2 https - hlsjs video file not found

The first suggestion is to clear your browser cache. That has resolved the issue for some people. Although I don't recall if anyone was using an Apache redirect.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Mon Feb 05, 2018 6:57 pm

Re: Apache2 https - hlsjs video file not found

Hi Dan,

I checked all you advised and seems like from serviio or from additional packages (ffempg and draw) are ok.
I tired to clean the cache and still like I mention in my previous post.
If I'm switching from https to http video plays if I open the link in https I receive hosts error.
logs:
2018-02-05 19:52:00,727 DEBUG [GETMethodProcessor] Stream entity has length: 21272
2018-02-05 19:52:01,189 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_default), returning it
2018-02-05 19:52:01,210 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_default), returning it
2018-02-05 19:52:01,210 DEBUG [FolderDAOImpl] Getting number of sub-Folders in folder 2 [Any]
2018-02-05 19:52:01,210 DEBUG [VideoDAOImpl] Retrieving list of videos for folder 2 (from=21, count=18) [Any]
2018-02-05 19:52:01,225 DEBUG [FolderDAOImpl] Getting number of VIDEO sub-folders and media items in folder 2 (filter: ALL) [Any]
2018-02-05 19:52:01,225 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2018-02-05 19:52:01,717 DEBUG [CDSRetrieveMediaServerResource] GET http://video.manageyourdata.org/cds/res ... cde7500295 HTTP/1.1, headers = [host: video.manageyourdata.org,accept-encoding: br, gzip, deflate,accept: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5,user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6,accept-language: en-us,referer: https://video.manageyourdata.org/,dnt: 1,x-forwarded-proto: https,x-forwarded-for: 127.0.0.1,x-forwarded-host: video.manageyourdata.org,x-forwarded-server: video.manageyourdata.org,connection: Keep-Alive]
2018-02-05 19:52:01,718 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.2.200' and name 'Remote client'
2018-02-05 19:52:01,718 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.200, Profile=HTML5, Name=Remote client'
2018-02-05 19:52:01,718 DEBUG [ResourceDeliveryProcessor] Request for resource 5 and type 'COVER_IMAGE' received
2018-02-05 19:52:01,718 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 5)
2018-02-05 19:52:01,720 DEBUG [CoverImageRetrievalStrategy] Retrieving info of Cover image with id 5
2018-02-05 19:52:01,720 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 5)
2018-02-05 19:52:01,722 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image (HD) with id 5
2018-02-05 19:52:01,722 DEBUG [GETMethodProcessor] Stream entity has length: 20107
2018-02-05 19:52:02,726 DEBUG [CDSRetrieveMediaServerResource] GET http://video.manageyourdata.org/cds/res ... cde7500295 HTTP/1.1, headers = [host: video.manageyourdata.org,accept-encoding: br, gzip, deflate,accept: image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5,user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6,accept-language: en-us,referer: https://video.manageyourdata.org/,dnt: 1,x-forwarded-proto: https,x-forwarded-for: 127.0.0.1,x-forwarded-host: video.manageyourdata.org,x-forwarded-server: video.manageyourdata.org,connection: Keep-Alive]
2018-02-05 19:52:02,727 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.2.200' and name 'Remote client'
2018-02-05 19:52:02,727 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.200, Profile=HTML5, Name=Remote client'
2018-02-05 19:52:02,727 DEBUG [ResourceDeliveryProcessor] Request for resource 6 and type 'COVER_IMAGE' received
2018-02-05 19:52:02,727 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 6)
2018-02-05 19:52:02,727 DEBUG [CoverImageRetrievalStrategy] Retrieving info of Cover image with id 6
2018-02-05 19:52:02,728 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 6)
2018-02-05 19:52:02,728 DEBUG [CoverImageRetrievalStrategy] Retrieving Cover image (HD) with id 6
2018-02-05 19:52:02,728 DEBUG [GETMethodProcessor] Stream entity has length: 19620
2018-02-05 19:52:10,178 DEBUG [FeedUpdaterWorker] Checking for new and expired online resources
2018-02-05 19:52:10,179 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2018-02-05 19:52:15,572 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.2.10:52210s
2018-02-05 19:52:30,134 DEBUG [FlowPlayerV7KeyGeneratorServerResource] Generating v7 security key for domain 'video.manageyourdata.org'
2018-02-05 19:52:30,134 DEBUG [FlowPlayerV7KeyGeneratorServerResource] RefererRef of the incoming request is 'video.manageyourdata.org'
2018-02-05 19:52:30,147 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_default), returning it
2018-02-05 19:52:32,965 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eno1 (eno1) and address 192.168.2.200, timeout = 0
2018-02-05 19:52:32,966 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 38bdd81f-c4ad-3aa8-a05b-a26bb8b2b74d
2018-02-05 19:52:34,775 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:03:48 (advertisement duration is 1800 sec.)
2018-02-05 19:52:39,010 DEBUG [RendererSearchSender] Searching for Renderer devices
2018-02-05 19:52:39,011 DEBUG [RendererSearchSender$RendererSearchWorker] Multicasting SSDP M-SEARCH using interface eno1 (eno1) and address 192.168.2.200, timeout = 0
2018-02-05 19:52:39,012 DEBUG [RendererSearchSender$RendererSearchWorker] Sending 1 'm-search' messages
2018-02-05 19:52:39,012 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.2.200:36853s
2018-02-05 19:52:39,012 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.2.200:36853s
2018-02-05 19:52:39,013 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:schemas-upnp-org:device:MediaRenderer:1 from address /192.168.2.200:36853s
2018-02-05 19:52:45,019 DEBUG [RendererSearchSender] Finished searching for Renderer devices
2018-02-05 19:52:48,293 DEBUG [CDSRetrieveMediaServerResource] GET http://video.manageyourdata.org/cds/res ... diaBrowser HTTP/1.1, headers = [host: video.manageyourdata.org,accept-encoding: br, gzip, deflate,accept: */*,user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6,accept-language: en-us,referer: https://video.manageyourdata.org/,dnt: 1,x-forwarded-proto: https,x-forwarded-for: 127.0.0.1,x-forwarded-host: video.manageyourdata.org,x-forwarded-server: video.manageyourdata.org,connection: Keep-Alive]
2018-02-05 19:52:48,294 DEBUG [CDSRetrieveMediaServerResource] Creating client with id '192.168.2.200' and name 'MediaBrowser'
2018-02-05 19:52:48,294 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.200, Profile=HTML5, Name=MediaBrowser'
2018-02-05 19:52:48,294 DEBUG [ResourceDeliveryProcessor] Request for resource 1 and type 'MANIFEST' received
2018-02-05 19:52:48,294 DEBUG [ManifestRetrievalStrategy] Retrieving info of Manifest for media item with id 1
2018-02-05 19:52:48,295 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1 (local)
2018-02-05 19:52:48,295 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1)
2018-02-05 19:52:48,296 DEBUG [VideoDAOImpl] Reading a Video (id = 1)
2018-02-05 19:52:48,296 DEBUG [VideoDAOImpl] Reading a Video (id = 1)
2018-02-05 19:52:48,297 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1 and profile HTML5
2018-02-05 19:52:48,297 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,297 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,297 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,298 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 1)
2018-02-05 19:52:48,298 DEBUG [ManifestRetrievalStrategy] Retrieving Manifest for media item with id 1
2018-02-05 19:52:48,299 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1 (local)
2018-02-05 19:52:48,299 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1)
2018-02-05 19:52:48,299 DEBUG [VideoDAOImpl] Reading a Video (id = 1)
2018-02-05 19:52:48,299 DEBUG [VideoDAOImpl] Reading a Video (id = 1)
2018-02-05 19:52:48,299 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1 and profile HTML5
2018-02-05 19:52:48,300 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,300 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,300 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "Alien Covenant (2017).mkv": HLS
2018-02-05 19:52:48,300 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 1)
2018-02-05 19:52:48,301 DEBUG [GETMethodProcessor] Stream entity has length: 214
2018-02-05 19:53:10,182 DEBUG [FeedUpdaterWorker] Checking for new and expired online resources
2018-02-05 19:53:10,183 DEBUG [OnlineRepositoryDAOImpl] Reading all OnlineRepositories
2018-02-05 19:53:37,314 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.2.15:52512s
2018-02-05 19:53:38,315 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.2.15:52512s
2018-02-05 19:53:39,337 DEBUG [DiscoverySSDPMessageListener] Received a valid M-SEARCH message for search target urn:dial-multiscreen-org:service:dial:1 from address /192.168.2.15:52512s
2
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Feb 05, 2018 11:06 pm

Re: Apache2 https - hlsjs video file not found

I believe there might also have been an issue with the current version of player that is used in MediaBrowser. I know Zip was waiting for an update from the developer. I believe he now has it and is getting close to releasing a new version of Serviio. If you can hold off for a couple of weeks that might resolve it. But I honestly don't know for sure when the next release will be. Also, Zip might be able to see something in the log you've posted that he might recognize and know a resolution.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Tue Feb 06, 2018 4:53 am

Re: Apache2 https - hlsjs video file not found

I have found the problem.
By looking in to the logs you can see that media player comes back to http and not to https.

2018-02-05 19:52:45,019 DEBUG [RendererSearchSender] Finished searching for Renderer devices
2018-02-05 19:52:48,293 DEBUG [CDSRetrieveMediaServerResource] GET http://video.manageyourdata.org/cds/res ... diaBrowser HTTP/1.1, headers = [host: video.manageyourdata.org,accept-encoding: br, gzip, deflate,accept: */*,user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6,accept-language: en-us,referer: https://video.manageyourdata.org/,dnt: 1,x-forwarded-proto: https,x-forwarded-for: 127.0.0.1,x-forwarded-host: video.manageyourdata.org,x-


It comes that i requesting https but playre comes back to http
Any idea were in configurations to adjust that?
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Feb 06, 2018 1:23 pm

Re: Apache2 https - hlsjs video file not found

Have to let Zip respond to that.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Thu Feb 08, 2018 5:26 am

Re: Apache2 https - hlsjs video file not found

Ang how that works?? Will you let know Zip or I should reach ou to him ?
<<

atc98092

User avatar

DLNA master

Posts: 5205

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Thu Feb 08, 2018 1:14 pm

Re: Apache2 https - hlsjs video file not found

Saulius wrote:Ang how that works?? Will you let know Zip or I should reach ou to him ?


He watches the forum pretty closely, so he should see it. If he hasn't responded within a week or so try a PM to him, referencing this thread.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Thu Feb 08, 2018 4:50 pm

Re: Apache2 https - hlsjs video file not found

Thanks, I will wait for a week.
To text him PM I will not be able as I’m new user and private messages are not enabled

Thanks for all your support
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Mon Feb 19, 2018 6:23 am

Re: Apache2 https - hlsjs video file not found

Hi,

I haven't received any update from Zip.
Would be so kind to contact him for assistance.

Thanks
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Feb 19, 2018 9:40 am

Re: Apache2 https - hlsjs video file not found

Can you try 1.9.1 ?
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Thu Mar 01, 2018 9:13 pm

Re: Apache2 https - hlsjs video file not found

Hi Zip,

I've tried 1.9.1 still same.
So if I'm removing all mod's from Apache2 I get HTML5 error
if I'm enabling mod_ssl.c I get hlsjs error.
the only way it works, original serviio link 192.168.2.200:23424/mediabrowser (works prefect)


I've tried to create a new http link in the first post, and I'v tried the local
<Location /video>
Require all granted
ProxyPass http://localhost:23424/mediabrowser
ProxyPassReverse http://localhost:23424/mediabrowser
</Location>
<Location /cds>
Require all granted
ProxyPass http://localhost:23424/cds
ProxyPassReverse http://localhost:23424/cds
</Location>


Would you be so kind to advise what am I doing wrong.
Don't enabling Apache mod or haven't installed some additional plugin?
Maybe you have same guidelines for Ubuntu 16.04 Apache2 configuration.


Thanks you in advance for all your support.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Mar 05, 2018 4:22 pm

Re: Apache2 https - hlsjs video file not found

you need to check what requests the browser makes (using dev tools in Chrome, for example) and also look at the detailed log in Serviio to see what it's receiving
<<

Saulius

Serviio newbie

Posts: 13

Joined: Sun Feb 04, 2018 8:53 pm

Post Mon Mar 05, 2018 7:45 pm

Re: Apache2 https - hlsjs video file not found

Hi Zip,

So basically what I saw from the logs.
That the browser source (MEDIUM.m3u8) send request to:
http://localhost:23424/cds/resource/35/ ... 974013489c

serviio.log
2018-03-05 20:44:13,557 DEBUG [CDSRetrieveMediaServerResource] GET http://localhost:23424/cds/resource/35/ ... diaBrowser HTTP/1.1, headers = [host: localhost:23424,accept: */*,user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0.3 Safari/604.5.6,accept-language: en-us,referer: https://www.test.org/video/,accept-encoding: br, gzip, deflate,x-forwarded-for: 127.0.0.1,x-forwarded-host: www.test.org,x-forwarded-server: www.test.org,connection: Keep-Alive]


I tried to use the localhost as :23424/mediabrowser or :23423/console and system will not recognise the port or localhost address.
if I replace the localhost with the internal IP 192.168.2.200 on the MEDIUM.m3u8 source link I will receive video:
http://192.168.2.200:23424/cds/resource ... 974013489c

Question where do I need to make adjustment in the Serviio configurations to replace localhost in IP address.

Thanks
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 06, 2018 9:59 am

Re: Apache2 https - hlsjs video file not found

the host and port is now relative in 1.9.1. So if you load mediabrowser on http://localhost:23424 it'll use that to fetch the media files. If you use http://myvideo.org it should use that.

Unless your apache proxy messes it up, but I'm not an expert

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 68 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.