Kaltura v13.19 insertContent.log PHP Fatal error: Call to undefined method KalturaClient::setClientTag() in /client/kaltura/app/tests/lib/KalturaClient.php


#1

Hi Jess,

I’m looking for help. Thank you for your time and effort. Dmitri

kaltura-db-config.sh
Checking connectivity to needed daemons…
Connectivity test passed:)
Cleaning cache…
Populating DB with data… please wait…
Populating DB with data… please wait…

Output for /opt/kaltura/app/deployment/base/scripts/installPlugins.php being logged into /opt/kaltura/log/installPlugins.log
Output for /opt/kaltura/app/deployment/base/scripts/insertDefaults.php being logged into /opt/kaltura/log/insertDefaults.log
Output for /opt/kaltura/app/deployment/base/scripts/insertPermissions.php being logged into /opt/kaltura/log/insertPermissions.log
Output for /opt/kaltura/app/deployment/base/scripts/insertContent.php being logged into
/opt/kaltura/log/insertContent.log

-rw-r–r--. 1 root root 1297 May 8 06:59 insertContent.php
-rw-r–r--. 1 root root 5998 May 8 06:59 insertDefaults.php
-rw-r–r--. 1 root root 1566 May 8 06:59 insertPermissions.php
-rw-r–r--. 1 root root 1189 May 8 06:59 installPlugins.php

-rw-r–r--. 1 root root 137 May 15 15:14 insertContent.log
-rw-r–r--. 1 root root 0 May 15 15:10 insertDefaults.log
-rw-r–r--. 1 root root 74805176 May 15 15:14 insertPermissions.log
-rw-r–r--. 1 root root 0 May 15 15:10 installPlugins.log

tail insertContent.log
PHP Fatal error: Call to undefined method KalturaClient::setClientTag() in /client/kaltura/app/tests/lib/KalturaClient.php on line 8418

kaltura-db-config.sh FAILED with: 255 on line 194

194 php $APP_DIR/deployment/base/scripts/insertContent.php >> $LOG_DIR/insertContent.log 2>&1

php /client/kaltura/app/deployment/base/scripts/insertContent.php
PHP Fatal error: Call to undefined method KalturaClient::setClientTag() in /client/kaltura/app/tests/lib/KalturaClient.php on line 8418

php -v
PHP 5.3.3 (cli) (built: Nov 7 2016 11:21:30)

checked permissions of the /opt/kaltura/app/cache


#2

Hi @astrava,

Run:

# php /opt/kaltura/app/generator/generate.php

If you get any errors, please post them, if you do not, try to re-run kaltura-db-config.sh.


#3

@jess thank you for your help. please find the output bellow.

php /opt/kaltura/app/generator/generate.php

INFO: Downloading ready-made schema from: /client/kaltura/web/content/clientlibs/KalturaClient.xml
INFO: Generating from api version: 3.3.0, generated at: 16-05-2018
INFO: Now generating: testme using TestmeGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/testme, /client/kaltura/app/api_v3/web/testme/json]
INFO: Generate client library [testme]
INFO: Copy sources from [/client/kaltura/clients-generator/sources/testme]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/testme]
INFO: testme generated successfully
INFO: Now generating: testmeDoc using TestmeDocGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/testmeDoc, /client/kaltura/app/api_v3/web/testmeDoc]
INFO: Generate client library [testmeDoc]
INFO: Copy sources from [/client/kaltura/clients-generator/sources/testmeDoc]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/testmeDoc]
INFO: testmeDoc generated successfully
INFO: Now generating: batchClient using Php5ClientGenerator
WARN: Service [multicenters_filesyncimportbatch] not found
WARN: Service [playready_playreadydrm] not found
WARN: Service [drm_drmprofile] not found
WARN: Missing type [KalturaHuluDistributionField]
WARN: Missing type [KalturaYouTubeDistributionField]
WARN: Missing type [KalturaYouTubeDistributionFeedSpecVersion]
WARN: Missing type [KalturaYahooDistributionField]
WARN: Missing type [KalturaYahooDistributionProcessFeedActionStatus]
WARN: Missing type [KalturaVerizonVcastDistributionField]
WARN: Missing type [KalturaUverseClickToOrderDistributionField]
WARN: Missing type [KalturaUverseDistributionField]
WARN: Missing type [KalturaUnicornDistributionField]
WARN: Missing type [KalturaQuickPlayDistributionField]
WARN: Missing type [KalturaMsnDistributionField]
WARN: Missing type [KalturaMetroPcsDistributionField]
WARN: Missing type [KalturaFreewheelGenericDistributionField]
WARN: Missing type [KalturaDailymotionDistributionField]
WARN: Missing type [KalturaCrossKalturaDistributionField]
WARN: Missing type [KalturaAttUverseDistributionField]
INFO: Delete old files [/client/kaltura/web/content/clientlibs/batchClient, /client/kaltura/app/batch/client]
INFO: Generate client library [batchClient]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/php5]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/php5]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/batchClient]
INFO: batchClient generated successfully
INFO: Now generating: php5ZendClientAdminConsole using PhpZendClientGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/php5ZendClientAdminConsole, /client/kaltura/app/admin_console/lib/Kaltura/Client]
INFO: Generate client library [php5ZendClientAdminConsole]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/zend]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/zend]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/php5ZendClientAdminConsole]
INFO: php5ZendClientAdminConsole generated successfully
INFO: Now generating: php5 using Php5ClientGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/php5, /client/kaltura/app/clients/php5]
INFO: Generate client library [php5]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/php5]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/php5]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/php5]
INFO: Trying to package
DEBUG: Changing dir to [/client/kaltura/web/content/clientlibs/php5]
INFO: Executing: tar -czf “…/php5_16-05-2018.tar.gz” …/php5
tar: Removing leading `…/’ from member names
INFO: Package created successfully: …/php5_16-05-2018.tar.gz
DEBUG: Restoring dir to [/client/kaltura/clients-generator]
INFO: php5 generated successfully
INFO: Now generating: php5ZendVarConsole using PhpZendClientGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/php5ZendVarConsole, /client/kaltura/app/var_console/lib/Kaltura/Client]
INFO: Generate client library [php5ZendVarConsole]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/zend]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/zend]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/php5ZendVarConsole]
INFO: php5ZendVarConsole generated successfully
INFO: Now generating: php5ZendHostedPages using PhpZendClientGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/php5ZendHostedPages]
INFO: Generate client library [php5ZendHostedPages]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/zend]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/zend]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/php5ZendHostedPages]
INFO: php5ZendHostedPages generated successfully
INFO: Now generating: testsClient using Php5ClientGenerator
INFO: Delete old files [/client/kaltura/web/content/clientlibs/testsClient, /client/kaltura/app/tests/lib]
INFO: Generate client library [testsClient]
INFO: set tests path /client/kaltura/clients-generator/tests/ovp
INFO: Copy sources from [/client/kaltura/clients-generator/sources/php5]
INFO: Copy tests from [/client/kaltura/clients-generator/tests/ovp/php5]
INFO: Saving client library to [/client/kaltura/web/content/clientlibs/testsClient]
INFO: testsClient generated successfully

Removing kaltura…Removing kaltura_sphinx_log…Removing kalturadw…Removing kalturadw_ds…Removing kalturadw_bisources…Removing kalturalog…
Successfully dropped kaltura databases and users
CREATE USER kaltura;
CREATE USER etl;
CREATE DATABASE kaltura;
CREATE DATABASE kaltura_sphinx_log;
CREATE DATABASE kalturadw;
CREATE DATABASE kalturadw_ds;
CREATE DATABASE kalturadw_bisources;
CREATE DATABASE kalturalog;
Checking connectivity to needed daemons…
Connectivity test passed:)
Cleaning cache…
Populating DB with data… please wait…
Output for /opt/kaltura/app/deployment/base/scripts/installPlugins.php being logged into /opt/kaltura/log/installPlugins.log
Output for /opt/kaltura/app/deployment/base/scripts/insertDefaults.php being logged into /opt/kaltura/log/insertDefaults.log
Output for /opt/kaltura/app/deployment/base/scripts/insertPermissions.php being logged into /opt/kaltura/log/insertPermissions.log
Output for /opt/kaltura/app/deployment/base/scripts/insertContent.php being logged into /opt/kaltura/log/insertContent.log

kaltura-db-config.sh FAILED with: 255 on line 194

Archving logs to /opt/kaltura/log/log_16_05_18_09_35.tar.gz…


#4

Please attach the full contents of:


#5

Thank you for your help.

cat /opt/kaltura/log/insertContent.log
Queuing action [userRole.add]
Queuing action [user.add]
Executing multirequest
service url: [http://server]
curl: http://server/api_v3/service/multirequest
post: {“format”:“3”,“ignoreNull”:true,“clientTag”:“php5:18-05-16”,“apiVersion”:“3.3.0”,“0”:{“service”:“userrole”,“action”:“add”,“userRole”:{“objectType”:“KalturaUserRole”,“name”:“System Administrator”,“systemName”:“System Administrator”,“description”:“System Administrator”,“status”:“1”,“permissionNames”:"",“tags”:“admin_console”},“ks==”},“1”:{“service”:“user”,“action”:“add”,“user”:{“objectType”:“KalturaUser”,“id”:“support@mydomain”,“screenName”:“support@mydomain”,“fullName”:“Kaltura Administrator”,“email”:“support@mydomain”,“status”:“1”,“password”:“888899998888888”,“isAdmin”:“1”,“roleIds”:"{1:result:id}",“allowedPartnerIds”:""},“ks”:"=="},“kalsig”:“7”}
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘Operation timed out after 120000 milliseconds with 0 bytes received’ in /client/kaltura/app/tests/lib/KalturaClientBase.php:362
Stack trace:
#0 /client/kaltura/app/tests/lib/KalturaClientBase.php(953): KalturaClientBase->doQueue()
#1 /client/kaltura/app/tests/standAloneClient/exec.php(345): KalturaClientBase->doMultiRequest()
#2 {main}
thrown in /client/kaltura/app/tests/lib/KalturaClientBase.php on line 362

apachectl -S

  • [warn] The Alias directive in /opt/kaltura/app/configurations/apache/conf.d/enabled.apps.conf at line 38 will probably never match because it overlaps an earlier Alias.
    VirtualHost configuration:
    wildcard NameVirtualHosts and default servers:
    *:80 server (/etc/httpd/conf.d/zzzkaltura.conf:1)
    Syntax OK

curl -l -v domain.ca

  • About to connect() to domain.ca port 80 (#0)
  • Trying 172.17.28.24… connected
  • Connected to domain.ca (172.17.28.24) port 80 (#0)

GET / HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: domain.ca
Accept: /

curl -v -l http://domain.ca/api_v3/service/multirequest

  • About to connect() to domain.ca port 80 (#0)
  • Trying 172.17.28.24… connected
  • Connected to domain.ca (172.17.28.24) port 80 (#0)

GET /api_v3/service/multirequest HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
Host: domain.ca
Accept: /


#6

H @astrava,

I’d suggest making the full request, passing all the params [as logged in /opt/kaltura/log/insertContent.log] using curl CLI from the shell and checking the /opt/kaltura/log/kaltura_api_v3.log.

As a general note, when posting such requests, be sure to mask sensitive info such as KS strings and other secrets.
I see you masked the endpoint/service URL and obviously this is not yet a production ENV but still:)