Manual live stream not happening :(

Trying to add this source stream as a content entry in KMC - http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/04/prog_index.m3u8

upload > live stream entry > manual live stream urls

I give it a name, un-check akamai option and place the url in the mobile hls field. However, when i try to preview, the player keeps the spinner goping but nothing happens - no stream, no error message.

What am i doing wrong here? I don’t have red5 properly configured (as per my other request for help here) but kaltura shouldn’t need a srever to relay hls, right?

thanks!

Could this error be related?

     cat  /opt/kaltura/log/batch/validatelivemediaservers-0-2015-11-01.err.log
PHP Fatal error:  Uncaught exception 'KalturaException' with message 'Internal server error occurred' in /opt/kaltura/app/batch/client/KalturaClientBase.php:894
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaClient.php(4124): KalturaClientBase->throwExceptionIfError(Array)
#1 /opt/kaltura/app/batch/batches/ValidateLiveMediaServers/KAsyncValidateLiveMediaServers.class.php(43): KalturaLiveStreamService->listAction(Object(KalturaLiveStreamEntryFilter), Object(KalturaFilterPager))
#2 /opt/kaltura/app/batch/batches/ValidateLiveMediaServers/KAsyncValidateLiveMediaServersExe.php(11): KAsyncValidateLiveMediaServers->run()
#3 {main}
  thrown in /opt/kaltura/app/batch/client/KalturaClientBase.php on line 894

Hello,

You do not need Red5 is order to do manual live streaming.
In the Live stream type, just to make sure, you are selecting “Manual Live Stream URLs”, correct?

Lets start by looking for the string “ERR:” in /opt/kaltura/log//kaltura_api_v3.log
Specifically, look for something like:
“SELECT delivery_profile.ID, delivery_profile.TYPE, delivery_profile.CREATED_AT, delivery_profile.UPDATED_AT, delivery_profile.PARTNER_ID, delivery_profile.NAME, delivery_profile.SYSTEM_NAME, delivery_profile.DESCRIPTION, delivery_profile.URL, delivery_profile.HOST_NAME, delivery_profile.IS_DEFAULT, delivery_profile.PARENT_ID, delivery_profile.RECOGNIZER, delivery_profile.TOKENIZER, delivery_profile.STATUS, delivery_profile.STREAMER_TYPE, delivery_profile.MEDIA_PROTOCOLS, delivery_profile.CUSTOM_DATA, delivery_profile.PRIORITY FROM delivery_profile WHERE…”

See if that query fails to find a match and paste the whole query so we can better understand why it does not.
Another thing to look at are strings like: “Service is not permitted”, if you do see these, can you please edit /opt/kaltura/app/alpha/apps/kaltura/lib/kPermissionManager.php, around line 800:
KalturaLog::err(“Service is not permitted”);

change to:
KalturaLog::err(“Service is not permitted $service”);
so it will be easier to understand which service is not permitted.

Then we can continue:)

Does this give us any leads?

    2015-11-02 11:46:45 [0.038295] [87.121.52.77] [657603954] [52] [API] [DbManager:                                          :connectFallbackLogic] ERR: exception 'Exception' with message 'failed to connec                                          t to sphinx2' in /opt/kaltura/app/infra/log/KalturaLog.php:83
2015-11-02 11:49:32 [0.000855] [93.123.118.235] [1341647813] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:49:32 [0.002461] [93.123.118.235] [1341647813] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:49:42 [0.000191] [93.123.118.235] [610176716] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:49:42 [0.000558] [93.123.118.235] [610176716] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:49:52 [0.000120] [93.123.118.235] [1154818486] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:49:52 [0.000362] [93.123.118.235] [1154818486] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:03 [0.000675] [93.123.118.235] [1696036169] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:50:03 [0.000380] [93.123.118.235] [1696036169] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:06 [0.000187] [93.123.118.235] [1120126053] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:50:06 [0.000517] [93.123.118.235] [1120126053] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:16 [0.000220] [93.123.118.235] [960609403] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:50:16 [0.000517] [93.123.118.235] [960609403] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:19 [0.000142] [93.123.118.235] [417632782] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:50:19 [0.000366] [93.123.118.235] [417632782] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:21 [0.000181] [93.123.118.235] [1566631411] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:50:21 [0.001220] [93.123.118.235] [1566631411] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:29 [0.000186] [93.123.118.235] [354338977] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:50:29 [0.000523] [93.123.118.235] [354338977] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:39 [0.000185] [93.123.118.235] [58151389] [23] [API] [DeliveryP                                          rofilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with me                                          ssage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.adap                                          tive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/KalturaL                                          og.php:83
2015-11-02 11:50:39 [0.000551] [93.123.118.235] [58151389] [24] [API] [KalturaFr                                          ontController->getExceptionObject] ERR: exception 'KalturaAPIException' with mes                                          sage 'Status cannot be determined for live stream protocol [applehttp]' in /opt/                                          kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:41 [0.000126] [93.123.118.235] [1670541282] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:50:41 [0.000325] [93.123.118.235] [1670541282] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:45 [0.000195] [93.123.118.235] [72855422] [23] [API] [DeliveryP                                          rofilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with me                                          ssage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.adap                                          tive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/KalturaL                                          og.php:83
2015-11-02 11:50:45 [0.000478] [93.123.118.235] [72855422] [24] [API] [KalturaFr                                          ontController->getExceptionObject] ERR: exception 'KalturaAPIException' with mes                                          sage 'Status cannot be determined for live stream protocol [applehttp]' in /opt/                                          kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:50:55 [0.000117] [93.123.118.235] [323532231] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:50:55 [0.000341] [93.123.118.235] [323532231] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:51:05 [0.000134] [93.123.118.235] [1354203238] [23] [API] [Deliver                                          yProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with                                           message 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ad                                          aptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltur                                          aLog.php:83
2015-11-02 11:51:05 [0.000338] [93.123.118.235] [1354203238] [24] [API] [Kaltura                                          FrontController->getExceptionObject] ERR: exception 'KalturaAPIException' with m                                          essage 'Status cannot be determined for live stream protocol [applehttp]' in /op                                          t/kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:51:15 [0.000787] [93.123.118.235] [761120645] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:51:15 [0.000535] [93.123.118.235] [761120645] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:51:25 [0.000184] [93.123.118.235] [674322398] [23] [API] [Delivery                                          ProfilePeer::getLiveDeliveryProfileByHostName] ERR: exception 'Exception' with m                                          essage 'Delivery ID can't be determined for Host Name [vevoplaylist-live.hls.ada                                          ptive.level3.net] and streamer type [hls]' in /opt/kaltura/app/infra/log/Kaltura                                          Log.php:83
2015-11-02 11:51:25 [0.000505] [93.123.118.235] [674322398] [24] [API] [KalturaF                                          rontController->getExceptionObject] ERR: exception 'KalturaAPIException' with me                                          ssage 'Status cannot be determined for live stream protocol [applehttp]' in /opt                                          /kaltura/app/api_v3/services/LiveStreamService.php:440
2015-11-02 11:52:21 [0.076664] [93.123.118.235] [114081781] [60] [API] [DbManage                                          r::connectFallbackLogic] ERR: exception 'Exception' with message 'failed to conn                                          ect to sphinx2' in /opt/kaltura/app/infra/log/KalturaLog.php:83
2015-11-02 12:00:42 [0.032664] [87.121.52.77] [399394594] [52] [API] [DbManager:                                          :connectFallbackLogic] ERR: exception 'Exception' with message 'failed to connec                                          t to sphinx2' in /opt/kaltura/app/infra/log/KalturaLog.php:83
2015-11-02 12:06:24 [0.076750] [87.121.52.77] [718245175] [52] [API] [DbManager:                                          :connectFallbackLogic] ERR: exception 'Exception' with message 'failed to connec                                          t to sphinx2' in /opt/kaltura/app/infra/log/KalturaLog.php:83
2015-11-02 12:11:33 [0.071394] [87.121.52.77] [1795470580] [52] [API] [DbManager                                          ::connectFallbackLogic] ERR: exception 'Exception' with message 'failed to conne                                          ct to sphinx2' in /opt/kaltura/app/infra/log/KalturaLog.php:83

Hello,

The log you attached is cut off and it is hard to understand the actual errors.
That said, I was able to reproduce the issue and solve it on my machine, can you please run:
mysql> insert into delivery_profile values(NULL,0, NOW(), NOW(), ‘Default HLS Live Delivery Profile’,1001,‘Default HLS Live Delivery Profile’,‘Default HLS Live Delivery Profile’,NULL,NULL,NULL,NULL,0,NULL,‘hls’,1,0,NULL,0);

And then test?

If it does not work,

Can you please:
mysql> select * from delivery_profile where name=‘Default HLS Live Delivery Profile’\G

and paste the output? as well as the full SQL queries relating to the DELIVERY_PROFILE table in /opt/kaltura/log/kaltura_api_v3.log?

Thanks,

Ah, apart from the above which is quite important[:)], please also make sure you go to KMC->Studio and create an HTML5 player, do not use the legacy Flash player [KDP].

Thanks,

sorry, but I’m not really that familiar with databases :frowning:

i wanted to list the databases, so i did:

mysql -u root -p

and at the mysql prompt did:

SHOW DATABASES

but it returned nothing…just “->”

How do I run the insert line you suggested?

Thanks!

From the shell:
# mysql -h$DB1_HOST -u kaltura -p$DB1_PASS kaltura
Then at the prompt enter the insert command above.

Thanks Jess, this worked just fine and the insert solved my live streaming issue. What was this about though? Is this something I should consider every time on a fresh install or is it going to be ironed out in a coming release?

Thanks again for your help!

Continuing the discussion from Manual live stream not happening :frowning::

Jess,

I did create a new player and together with the database insertion the problem is solved. However, I’d like to understand better the functioning of the Studio. What does “upgrading” the players do - upgrade from flash to html5? Is it safe to assume that every new player created is html5 - i don’t see an explicit option to select html5 anyway. Also, in a lot of screengrabs and tutorials I see two separate studios - flash and universal - is this changed now with the latest build that I obviously run as i don’t get to choose between studios?

thanks for your time!

Hello,

As per:

The bug is fixed here:


So any new install of 11.1.0 [which is to be released as the stable ver this Sun.] and above should not require manual intervention.

As for Studio - yes, upgrading mean upgrading for a Flash player [KDP] to an HTML5 one.
All players created with the Universal Studio are HTML5 players and the old Studio is deprecated and should not be used.

Thanks,

Hi Jess,
Running the INSERT above removed the “LIVE_STREAM_STATUS_CANNOT_BE_DETERMINED” message.
But not when doing the request /api_v3/index.php?service=liveStream&apiVersion=3.1&expiry=86400&clientTag=kwidget%3Av2.39&format=1&ignoreNull=1&action=islive&id=0_1tat8ynt&protocol=hls
I get a false response, while doing that for hds returns a true response.
looking at the kaltura_api_v3.log I see that for both of them it creates a wowza url (m3u8/f4m) and testing the urls in the browser returns a valid response.

What am I still missing?

Well,
I can answer my own question partially,
With HDS the server doesn’t check the content itself, so it is simply approved as live HDS
while with HLS it checks the manifest, and since it finds END tag it determine it to be DVR and not live.

So the next question what do I need to do in order to get it play anyway?