Delivery profile with external CDN doesn't work

Hi

After installing kaltura CE with SSL

We have setup player, remote storage and delivery profile to build this workflow :

Kaltura upload content on one of our CDN’s (FTP on a CDN)
Kaltura let us play content from the HTTP url of our CDN

Today we are able to make Kaltura upload to our CDN but when we want to play content, it says media file not found
In the Flavor settings, if we select the source file and click download, it actually works and send us the file with the correct CDN url

Kaltlog says :

2015-02-18 19:19:12 [0.000517] [78.208.216.176] [139079568] [PS2] [DeliveryProfilePeer::getRemoteDeliveryByStorageId] ERR: exception ‘Exception’ with message ‘Delivery ID can’t be determined for storageId [ 4 ] ( PartnerId [105] ) streamer type [http] and media protocol [https]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82

Where our delivery profile (id 1006) exist and is “correclty” linked to our remote storage (content are appearing well on remote)

In flavors, if we click download on a flavor, then link is ok

Here is also result of select * from delivery_profile;

±-----±-----------±--------------------±--------------------±-----------------------------------------±-----±-----------------------------------------±------------- ----------------------------±---------------------------------------------------------------------------------±--------------------------------±------------------------- -----------------------------------------------------------------------------------±----------±-------±----------------±------------------±-----------±----------±— --------------------------------+
| 1001 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Kaltura HLS segmentation | 61 | Kaltura HLS segmentation | Kaltura HLS s egmentation | mykaltura:88/hls | mykaltura | NULL | NULL | 0 | NULL | applehttp | 1 | 0 | NUL L |
| 1002 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Kaltura HDS segmentation | 63 | Kaltura HDS segmentation | Kaltura HDS s egmentation | mykaltura:88/hds | mykaltura | NULL | NULL | 0 | NULL | hdnetworkmanifest | 1 | 0 | NUL L |
| 1003 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Kaltura DASH segmentation | 68 | Kaltura DASH segmentation | Kaltura DASH segmentation | mykaltura:88/dash | mykaltura | NULL | NULL | 0 | NULL | mpegdash | 1 | 0 | NUL L |
| 501 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default HTTP Delivery Profile | 10 | Default Akamai HLS direct | Default Akama i HLS direct | http://mykaltura:443 | mykaltura | NULL | NULL | 0 | NULL | applehttp | 1 | 0 | NUL L |
| 500 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default HTTP Delivery Profile | 14 | Default HTTP Delivery Profile | Default HTTP Delivery Profile | mykaltura:443 | mykaltura | NULL | NULL | 0 | NULL | http | 1 | 0 | NUL L |
| 101 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default HLS Live Delivery Profile | 1001 | Default HLS Live Delivery Profile | Default HLS L ive Delivery Profile | NULL | NULL | NULL | NULL | 0 | NULL | applehttp | 1 | 0 | NUL L |
| 1 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default HD Network Live Delivery Profile | 1002 | Default HD Network Live Delivery Profile | Default HD Ne twork Live Delivery Profile | NULL | NULL | NULL | NULL | 0 | NULL | hdnetworkmanifest | 1 | 0 | NUL L |
| 2 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default HDS Live Delivery Profile | 1002 | Default HDS Live Delivery Profile | Default HDS L ive Delivery Profile | NULL | NULL | NULL | NULL | 0 | NULL | hds | 1 | 0 | NUL L |
| 201 | 0 | 2015-02-08 13:26:50 | 2015-02-08 13:26:50 | Default RTMP Live Delivery Profile | 1005 | Default RTMP Live Delivery Profile | Default RTMP Live Delivery Profile | NULL | NULL | NULL | NULL | 0 | NULL | rtmp | 1 | 0 | a:1 :{s:12:“enforceRtmpe”;s:1:“0”;} |
| 1004 | 102 | 2015-02-08 15:09:17 | 2015-02-09 10:34:59 | Akamai HLS VOD | 61 | 123 | 123 | mycdn | mycdn | O:14:“kUrlRecognizer”:2:{ s:8:" * hosts";s:0:"";s:12:" * uriPrefix";s:0:"";} | NULL | 1 | hls | applehttp | 0 | 0 | NUL L |
| 1005 | 102 | 2015-02-08 15:27:42 | 2015-02-08 18:01:55 | 1321321312 | 11 | 13212 | NULL | mycdn | mycdn | NULL | NULL | 1 | NULL | applehttp | 0 | 0 | a:1 :{s:15:“supportClipping”;b:0;} |
| 1006 | 105 | 2015-02-16 12:01:45 | 2015-02-18 17:27:54 | Level3 HTTP | 24 | Level3 HTTP | Level3 HTTP B STREAM | mycdn/content/kaltura/ | mycdn | NULL | NULL | 0 | http | http | 0 | 0 | NUL L |
| 1007 | 105 | 2015-02-18 17:38:47 | 2015-02-18 17:44:28 | Level 3 2 | 24 | Level 3 2 | Level 3 2 | mycdn/content/kaltura | mycdn | O:14:“kUrlRecognizer”:2:{ s:8:" * hosts";s:27:“mycdn.com”;s:12:" * uriPrefix";s:4:“http”;} | NULL | 0 | http | http | 0 | 0 | NUL L |
±-----±-----------±--------------------±--------------------±-----------------------------------------±-----±-----------------------------------------±------------- ----------------------------±---------------------------------------------------------------------------------±--------------------------------±------------------------- -----------------------------------------------------------------------------------±----------±-------±----------------±------------------±-----------±----------±— --------------------------------+
13 rows in set (0.00 sec)

Hello,

I think your problem is with the ‘media protocol’, try setting it to ‘http’ while keeping the URL https.

If i set it to http i get the same

The same being:
’[DeliveryProfilePeer::getRemoteDeliveryByStorageId] ERR: exception ‘Exception’ with message ‘Delivery ID can’t be determined for storageId 4 streamer type [http] and media protocol [https]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82’
?

Not sure how that can be if the media protocol is now ‘http’…
Also, can you paste:
mysql>select * from delivery_profile\G

That is with \G instead of ‘;’? it will be easier to read.

Hi

I reinstalled kaltura in http to see if it was helping. But admin was with API error -1
I installed back in https

Then i set media protocol for my cdn in HTTPS and it worked (i mean it seems to)

What i don’t understand is :
Why do i have to set media protocol to HTTPS in my delivery profile while my CDN is HTTP ?

Also,

If i want to read content in HLS from a different url (but same storage)

How do i create an entry where i set the on demand m3u8 path (as there is no flavor notion) and set kaltura to use that delivery profile when it’s m3u8 (actually it always use the first delivery profile)

Thanks