Closed blackyboy closed 9 years ago
Hi @blackyboy.
Can you please paste the output for: mysql>select * from delivery_profile\G mysql>select * from storage_profile\G
Also, there is a script to help you configure remote and delivery profiles, see: /opt/kaltura/bin/create_remote_storage.php Might save a lot of time.
Hi @jessp01
Thanks for you kind response, Here below is the result for query please have a note and guide me to get fix the issue.
mysql> select * from delivery_profile\G
*************************** 1. row ***************************
id: 501
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default HTTP Delivery Profile
type: 10
system_name: Default Akamai HLS direct
description: Default Akamai HLS direct
url: http://media.xxxxxxxx.com:443
host_name: media.xxxxxxxx.com
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: applehttp
is_default: 1
parent_id: 0
custom_data: NULL
*************************** 2. row ***************************
id: 500
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default HTTP Delivery Profile
type: 14
system_name: Default HTTP Delivery Profile
description: Default HTTP Delivery Profile
url: http://media.xxxxxxxx.com:443
host_name: media.xxxxxxxx.com
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: http
is_default: 1
parent_id: 0
custom_data: NULL
*************************** 3. row ***************************
id: 101
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default HLS Live Delivery Profile
type: 1001
system_name: Default HLS Live Delivery Profile
description: Default HLS Live Delivery Profile
url: NULL
host_name: NULL
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: applehttp
is_default: 1
parent_id: 0
custom_data: NULL
*************************** 4. row ***************************
id: 1
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default HD Network Live Delivery Profile
type: 1002
system_name: Default HD Network Live Delivery Profile
description: Default HD Network Live Delivery Profile
url: NULL
host_name: NULL
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: hdnetworkmanifest
is_default: 1
parent_id: 0
custom_data: NULL
*************************** 5. row ***************************
id: 2
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default HDS Live Delivery Profile
type: 1002
system_name: Default HDS Live Delivery Profile
description: Default HDS Live Delivery Profile
url: NULL
host_name: NULL
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: hds
is_default: 1
parent_id: 0
custom_data: NULL
*************************** 6. row ***************************
id: 201
partner_id: 0
created_at: 2014-11-26 22:27:26
updated_at: 2014-11-26 22:27:26
name: Default RTMP Live Delivery Profile
type: 1005
system_name: Default RTMP Live Delivery Profile
description: Default RTMP Live Delivery Profile
url: NULL
host_name: NULL
recognizer: NULL
tokenizer: NULL
status: 0
media_protocols: NULL
streamer_type: rtmp
is_default: 1
parent_id: 0
custom_data: a:1:{s:12:"enforceRtmpe";s:1:"0";}
*************************** 7. row ***************************
id: 502
partner_id: 107
created_at: 2015-01-24 11:20:34
updated_at: 2015-01-24 11:20:34
name: Jigsaw RTMP
type: 5
system_name: NULL
description: Jigsaw lms RTMP
url: rtmp://shil9xxxxxxx.cloudfront.net/cfx/st
host_name: shil9xxxxxxx.cloudfront.net
recognizer: NULL
tokenizer: NULL
status: NULL
media_protocols: NULL
streamer_type: rtmp
is_default: 0
parent_id: 0
custom_data: a:2:{s:12:"enforceRtmpe";b:0;s:6:"prefix";s:8:"/kaltura";}
*************************** 8. row ***************************
id: 503
partner_id: 107
created_at: 2015-01-24 11:38:22
updated_at: 2015-01-24 11:38:22
name: Jigsaw HTTP
type: 4
system_name: NULL
description: Jigsaw lms HTTP
url: http://d1sw1xxxxxxxd.cloudfront.net/kaltura
host_name: d1sw1xxxxxxd.cloudfront.net
recognizer: NULL
tokenizer: NULL
status: NULL
media_protocols: NULL
streamer_type: http
is_default: 0
parent_id: 0
custom_data: NULL
*************************** 9. row ***************************
id: 504
partner_id: 107
created_at: 2015-01-24 12:01:59
updated_at: 2015-01-24 12:01:59
name: Jigsaw HTTP1
type: 4
system_name: NULL
description: NULL
url: http://d1sw19xxxxxx.cloudfront.net/kaltura
host_name: d1sw19xxxxxxx.cloudfront.net
recognizer: NULL
tokenizer: NULL
status: NULL
media_protocols: NULL
streamer_type: auto
is_default: 0
parent_id: 0
custom_data: NULL
9 rows in set (0.00 sec)
Second Query select * from storage_profile\G
mysql> select * from storage_profile\G
*************************** 1. row ***************************
id: 0
created_at: 2014-11-26 22:27:25
updated_at: 2014-11-26 22:27:25
partner_id: 0
name: dc
system_name:
desciption: data center
status: 3
protocol: 0
storage_url: /opt/kaltura/web
storage_base_dir: NULL
storage_username: NULL
storage_password: NULL
storage_ftp_passive_mode: NULL
delivery_http_base_url: NULL
delivery_rmp_base_url: NULL
delivery_iis_base_url: NULL
min_file_size: NULL
max_file_size: NULL
flavor_params_ids: NULL
max_concurrent_connections: NULL
custom_data: NULL
path_manager_class: NULL
url_manager_class:
delivery_priority: 1
delivery_status: 1
*************************** 2. row ***************************
id: 2
created_at: 2015-01-24 11:02:05
updated_at: 2015-01-24 12:12:06
partner_id: 107
name: jxxxxxxx
system_name:
desciption:
status: 2
protocol: 6
storage_url: http://xxxxxx-kaltura.s3.amazonaws.com
storage_base_dir: /xxxxxx-kaltura/kaltura
storage_username: AKxIAxxxxxxxxxxxxxxxxx
storage_password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxCiC/
storage_ftp_passive_mode: 0
delivery_http_base_url: NULL
delivery_rmp_base_url: NULL
delivery_iis_base_url: NULL
min_file_size: 0
max_file_size: 0
flavor_params_ids:
max_concurrent_connections: NULL
custom_data: a:6:{s:7:"trigger";i:3;s:14:"ready_behavior";i:0;s:17:"allow_auto_delete";b:0;s:20:"delivery_profile_ids";a:2:{s:4:"http";a:1:{i:0;i:500;}s:4:"rtmp";a:1:{i:0;i:201;}}s:22:"files_permission_in_s3";s:11:"public-read";s:19:"path_manager_params";s:6:"a:0:{}";}
path_manager_class: kPathManager
url_manager_class:
delivery_priority: 0
delivery_status: 1
2 rows in set (0.02 sec)
I have looked into the script /opt/kaltura/bin/create_remote_storage.php but i don't have idea how to use this script any idea about how to do it ?
Thanks..
Hi @blackyboy,
The usage for the script is:
Usage:/opt/kaltura/bin/create_remote_storage.php
Can you try? if it works it will be faster than trying to debug the GUI creation [at least - for me:)].
Thanks,
Hi @jessp01
Thanks again, I tried to run the command as your guide.
php /opt/kaltura/bin/create_remote_storage.php https://betamedia.xxxxx.com 108 8d6cxxxxxxxxxx8bc2b03 xxxxx-beta-http http://d1swxxxxx.cloudfront.net/kaltura http://xxxxxx-kaltura.s3.amazonaws.com /jxxxx-kaltura/kaltura AxxxxxxRHTxx2X5Q +CxxxxxxxxxxxxIcZ6jFSv7nm/LWn42CiC/ S3 HTTP HTTP
Output give me error:
object(KalturaException)#81 (7) {
["message":protected]=>
string(45) "Error while starting session for partner [-2]"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
string(19) "START_SESSION_ERROR"
["file":protected]=>
string(62) "/opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php"
["line":protected]=>
int(734)
["trace":"Exception":private]=>
array(2) {
[0]=>
array(6) {
["file"]=>
string(58) "/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php"
["line"]=>
int(6297)
["function"]=>
string(21) "throwExceptionIfError"
["class"]=>
string(17) "KalturaClientBase"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
array(4) {
["code"]=>
string(19) "START_SESSION_ERROR"
["message"]=>
string(45) "Error while starting session for partner [-2]"
["objectType"]=>
string(19) "KalturaAPIException"
["args"]=>
array(1) {
["PID"]=>
int(-2)
}
}
}
}
[1]=>
array(6) {
["file"]=>
string(42) "/opt/kaltura/bin/create_remote_storage.php"
["line"]=>
int(59)
["function"]=>
string(5) "start"
["class"]=>
string(21) "KalturaSessionService"
["type"]=>
string(2) "->"
["args"]=>
array(6) {
[0]=>
string(32) "8d6cxxxxxxxxxx8bc2b03"
[1]=>
NULL
[2]=>
int(2)
[3]=>
int(-2)
[4]=>
NULL
[5]=>
NULL
}
}
}
["previous":"Exception":private]=>
NULL
}
Even i have tried removing every https:// from URL above URL's.
Hi @blackyboy,
I think perhaps you are passing the wrong secret. The partner ID param is the one you want to profile for but the secret is minus_2_secret, ie. select admin_secret from partner where id=-2;
hi @jessp01
Thanks for the query i got the secret and tried using it. I have created a new publisher and tried the below command. But still i can't get a Storage and Delivery profile.
php /opt/kaltura/bin/create_remote_storage.php https://betxxxxxxa.xxxxxxps.com 109 56b5cbxxxxxxxx593fd5531 arxxxxxxxst http://xxxxxxtjo.cloudfront.net/kaltura xxxxxaw-kaltura.s3.amazonaws.com /xxxxxx-kaltura/kaltura AxxxxxxxxZSxxxxx2X5Q +CzxxxxxxxxxxxxxxxxSv7xxxxxxxxxxx42CiC/ S3 HTTP HTTP
[root@betamedia ~]# php /opt/kaltura/bin/create_remote_storage.php https://betxxxxxxa.xxxxxxps.com 109 56b5cbxxxxxxxx593fd5531 arxxxxxxxst http://xxxxxxtjo.cloudfront.net/kaltura xxxxxaw-kaltura.s3.amazonaws.com /xxxxxx-kaltura/kaltura AxxxxxxxxZSxxxxx2X5Q +CzxxxxxxxxxxxxxxxxSv7xxxxxxxxxxx42CiC/ S3 HTTP HTTP
object(KalturaException)#82 (7) {
["message":protected]=>
string(66) "The property "KalturaDeliveryProfile::isDefault" cannot be updated"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
string(33) "PROPERTY_VALIDATION_NOT_UPDATABLE"
["file":protected]=>
string(62) "/opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php"
["line":protected]=>
int(734)
["trace":"Exception":private]=>
array(2) {
[0]=>
array(6) {
["file"]=>
string(58) "/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php"
["line"]=>
int(2015)
["function"]=>
string(21) "throwExceptionIfError"
["class"]=>
string(17) "KalturaClientBase"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
array(4) {
["code"]=>
string(33) "PROPERTY_VALIDATION_NOT_UPDATABLE"
["message"]=>
string(66) "The property "KalturaDeliveryProfile::isDefault" cannot be updated"
["objectType"]=>
string(19) "KalturaAPIException"
["args"]=>
array(1) {
["PROP_NAME"]=>
string(33) "KalturaDeliveryProfile::isDefault"
}
}
}
}
[1]=>
array(6) {
["file"]=>
string(42) "/opt/kaltura/bin/create_remote_storage.php"
["line"]=>
int(69)
["function"]=>
string(3) "add"
["class"]=>
string(29) "KalturaDeliveryProfileService"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
object(KalturaDeliveryProfile)#81 (17) {
["id"]=>
NULL
["partnerId"]=>
NULL
["name"]=>
string(10) "xxxxxutest"
["type"]=>
string(1) "4"
["systemName"]=>
string(10) "xxxxutest"
["description"]=>
NULL
["createdAt"]=>
NULL
["updatedAt"]=>
NULL
["streamerType"]=>
string(4) "http"
["url"]=>
string(43) "http://xxxxxxxxxxxxxjo.cloudfront.net/kaltura"
["hostName"]=>
NULL
["status"]=>
int(0)
["recognizer"]=>
NULL
["tokenizer"]=>
NULL
["isDefault"]=>
int(0)
["parentId"]=>
NULL
["mediaProtocols"]=>
NULL
}
}
}
}
["previous":"Exception":private]=>
NULL
}
Hi @blackboy,
What version are you using? Can you download just the script from the github repo? Under RPM/scripts/postinst Use the 10.3.0 tag.
May the source be with you,
Jess Portnoy
-------- Original message -------- From: Blacky Boy notifications@github.com Date: To: kaltura/platform-install-packages platform-install-packages@noreply.github.com Cc: Community Community@kaltura.com Subject: Re: [platform-install-packages] Delivery profile option from drop down list not working, Give Uncaught SyntaxError: Unexpected token , (#333)
hi @jessp01https://github.com/jessp01
Thanks or the query i got the secret and tried using it. I have created a new publisher and tried the below command. But still i can't get a Storage and Delivery profile.
php /opt/kaltura/bin/create_remote_storage.php https://betxxxxxxa.xxxxxxps.com 109 56b5cbxxxxxxxx593fd5531 arxxxxxxxst http://xxxxxxtjo.cloudfront.net/kaltura xxxxxaw-kaltura.s3.amazonaws.com /xxxxxx-kaltura/kaltura AxxxxxxxxZSxxxxx2X5Q +CzxxxxxxxxxxxxxxxxSv7xxxxxxxxxxx42CiC/ S3 HTTP HTTP
[root@betamedia ~]# php /opt/kaltura/bin/create_remote_storage.php https://betxxxxxxa.xxxxxxps.com 109 56b5cbxxxxxxxx593fd5531 arxxxxxxxst http://xxxxxxtjo.cloudfront.net/kaltura xxxxxaw-kaltura.s3.amazonaws.com /xxxxxx-kaltura/kaltura AxxxxxxxxZSxxxxx2X5Q +CzxxxxxxxxxxxxxxxxSv7xxxxxxxxxxx42CiC/ S3 HTTP HTTP object(KalturaException)#82 (7) { ["message":protected]=> string(66) "The property "KalturaDeliveryProfile::isDefault" cannot be updated" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(33) "PROPERTY_VALIDATION_NOT_UPDATABLE" ["file":protected]=> string(62) "/opt/kaltura/web/content/clientlibs/php5/KalturaClientBase.php" ["line":protected]=> int(734) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(58) "/opt/kaltura/web/content/clientlibs/php5/KalturaClient.php" ["line"]=> int(2015) ["function"]=> string(21) "throwExceptionIfError" ["class"]=> string(17) "KalturaClientBase" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(4) { ["code"]=> string(33) "PROPERTY_VALIDATION_NOT_UPDATABLE" ["message"]=> string(66) "The property "KalturaDeliveryProfile::isDefault" cannot be updated" ["objectType"]=> string(19) "KalturaAPIException" ["args"]=> array(1) { ["PROP_NAME"]=> string(33) "KalturaDeliveryProfile::isDefault" } } } } [1]=> array(6) { ["file"]=> string(42) "/opt/kaltura/bin/create_remote_storage.php" ["line"]=> int(69) ["function"]=> string(3) "add" ["class"]=> string(29) "KalturaDeliveryProfileService" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> object(KalturaDeliveryProfile)#81 (17) { ["id"]=> NULL ["partnerId"]=> NULL ["name"]=> string(10) "xxxxxutest" ["type"]=> string(1) "4" ["systemName"]=> string(10) "xxxxutest" ["description"]=> NULL ["createdAt"]=> NULL ["updatedAt"]=> NULL ["streamerType"]=> string(4) "http" ["url"]=> string(43) "http://xxxxxxxxxxxxxjo.cloudfront.net/kaltura" ["hostName"]=> NULL ["status"]=> int(0) ["recognizer"]=> NULL ["tokenizer"]=> NULL ["isDefault"]=> int(0) ["parentId"]=> NULL ["mediaProtocols"]=> NULL } } } } ["previous":"Exception":private]=> NULL }
Reply to this email directly or view it on GitHubhttps://github.com/kaltura/platform-install-packages/issues/333#issuecomment-71982653.
@KalturaCommunity
It's production server we using Community Edition Kaltura Server 9.19.5, I have cloned the RPM/scripts/postinst/create_remote_storage.php and run the command
php /root/platform-install-packages/RPM/scripts/postinst/create_remote_storage.php php create_remote_storage.php https://betamedia.arrivuapps.com 109 56b5xxxxxxxxxc3593fd5531 xxxxxtest http://xxxxx9txjo.cloudfront.net/kaltura jixxxw-kaltura.s3.amazonaws.com /jixxxw-kaltura/kaltura AKxxxxxxxxxxZ2X5Q +CzTpxxxxxxxxxxxxxxxxxxxxxxxxxx42CiC/ S3 HTTP HTTP
Now i got the Remote storage profile and delivery profiles. Which matching to the respective storage + delivery.
Uploaded a video from desktop and it converted and stored in S3 without any issue, I can see the files now in S3 but when i play the files I'm getting clip not Found error.
Did i'm using the correct delivery URL ? in above command, I have double checked with the delivery URL as i used to create before.
I can see the files in S3, Every choice of flavors are i can see in S3 Storage.
Use a sniffer to check the URL from which the playback is attempted and then make sure you can use this URL to download the file. If not, then you need to adjust it.
May the source be with you,
Jess Portnoy
-------- Original message -------- From: Blacky Boy notifications@github.com Date: To: kaltura/platform-install-packages platform-install-packages@noreply.github.com Cc: Jess Portnoy jess.portnoy@kaltura.com Subject: Re: [platform-install-packages] Delivery profile option from drop down list not working, Give Uncaught SyntaxError: Unexpected token , (#333)
I can see the files in S3, Every choice of flavors are i can see in S3 Storage.
Reply to this email directly or view it on GitHubhttps://github.com/kaltura/platform-install-packages/issues/333#issuecomment-71987547.
Just to make sure - all is working now? :) May the source be with you,
Jess Portnoy
On Fri, 30 Jan 2015, Blacky Boy wrote:
Closed #333.
— Reply to this email directly or view it on GitHub.[AFBqvSb2kqdczNqyIDVHbVZHgNzkWviVks5nm01SgaJpZM4DWrxj.gif]
@jessp01
No still this server have the issue. By last i have to upgrade the server and need to test. Let you know how the steps went through in future. Thank you mam.
Hi @jessp01 @KalturaCommunity
Hope you doing good,
Here is my issue, we using Kaltura Server 9.19.5 in production. Now we need to create a remote storage and rtmp streaming. Storage configured and working fine. while creating rtmp delivery using amazon cloud front as in before old version storage and delivery will be in same tab. But now it's separated as remote storage and delivery profile. While creating Storage profile it asked to choose delivery details in bottom as Delivery profile ids (JSON) in that if i add http it shows as default delivery profile with 500 ID, while choosing rtmp it too shows default profile with 201.
Then back to create a delivery profile using http i get 502 as my ID and while creating rtmp it gives 503 ID, Did the above id in storage and this one need to match for get stream ? Now only my files are storing in amazon s3 i can't playback using cloud front.
while trying to edit the delivery profile which one already created i'am not getting the popup window. While clicking on Menu it getting choose but window not bringing up. So i have checked using inspect element from browser right click option and choose console while choosing any menu as Configure, Delete, or disable i'am getting this error "Uncaught SyntaxError: Unexpected token ,"
Is there any fix for this? And how can i setup the delivery profile which match to storage profile which i have created from Amazon S3.