VOD Nginx doesnt work

Hello my friends.
I have upgraded Kaltura to the 13.04 version… I added one machine to treat the VOD, so i just installed the NGINX as you advice on an template, includind changing the delivery profiles (HLS, HDS and HASH). In that case I pointted to my new machine:

URL Hostname
https://qld-vod.escolavirtual.pt/hls qld-vod.escolavirtual.pt
…qld-vod.escolavirtual.pt/hds qld-vod.escolavirtual.pt
…qld-vod.escolavirtual.pt/hash qld-vod.escolavirtual.pt

I have installed the NGINX on that machine… But when i started a video that comes with some duration, nothing happens, and the video dont play. On my nginx server I got the following message on logs: - - [28/Apr/2018:18:19:55 +0100] “GET /hls/p/102/sp/10200/serveFlavor/entryId/0_6ghmfop1/v/12/flavorId/0_mdstjtso/name/a.mp4/index.m3u8 HTTP/1.1” 000 0 9.823 “https://qld-media.escolavirtual.pt/index.php/extwidget/preview/partner_id/102/uiconf_id/6709466/entry_id/0_6ghmfop1/embed/auto?&flashvars[streamerType]=auto” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36” “-” - “-” “qld-vod.escolavirtual.pt” 13174 - - 582 “-” “-” “-” “-” “-” 1

It means that i received the request, but i cant handle it. Can anyone help? Could this be related to my nginx.conf file? Is this ok? Or the server of upstream kalapi should be the same qld-vod…?

http {
upstream kalapi {
server qld-media.escolavirtual.pt;

    server {
            listen 80;
            server_name qld-vod.escolavirtual.pt;
            include /etc/nginx/conf.d/live.conf;
            include /etc/nginx/conf.d/kaltura.conf;

    include /etc/nginx/conf.d/ssl.conf;

Thanks a lot in advanced.

Hi @tiago_magano,

If I understand correctly, the new node you’ve added is ONLY running kaltura-nginx, correct? Because, if kaltura-nginx runs on the same machine as the Apache, and Apache is listening on post 80, the Nginx cannot listen on that port as well.

In the configuration you posted, I see the Nginx server name is qld-vod.escolavirtual.pt but the kalapi endpoint is ALSO qld-media.escolavirtual.pt. This cannot work. kalapi should point to the Kaltura Server endpoint [i.e: the Apache node[s] running the server PHP code or a load balancer behind which these nodes reside].

Please provide a more detailed overview of your topology [again, from your description, I assume that you’ve got a cluster and not just an all in one instance].

Also, provide the output for:

mysql> select id,url,host_name from delivery_profile where id in (1001,1002,1003);