Error when trying to access account usage data

Hi ,

I am getting this error after login on Kaltura.

ERR: exception ‘KalturaAPIException’ with message ‘Invalid KS [YzhlYTRjNjUxNTk2M2FlOTYzOGEzN2JjZjhkZGE0YjBiOWZlZjQzZXwtMTs7MTQ2MTgyMzQ0MjsyOzE0NTkyMzE0NDIuNDQ1O2JhdGNoVXNlcjs7LTE7]. Error [-1,INVALID_STR]’ in /opt/kaltura/app/alpha/apps/kaltura/lib/kCurrentContext.class.php.

The set up created is a kind of back up of another server. These are the steps :-
1.Installed kaltura on server.
2.Took sql dump of another server which has running kaltura server.
3.Imported sql dump to the new server.
4.Copied /opt/kaltura/app/configuration and /opt/kaltura/web folder to the new server.
5.After server restart , i am able to login to the server but it gives an error message
"Error when trying to access account usage data".

Is the old server and the new one of the same Kaltura version?
If not, it should be:) if it is, try:
# find /opt/kaltura/app/cache -type f -exec rm {} ;
Then run:
# kaltlog
in parallel to attempting to login and look at the errors.

Hi,

Received following exception

2016-03-30 13:00:58 [10.10.13.185] [1906336798] [API] [KalturaFrontController->getExceptionObject] ERR: exception ‘KalturaAPIException’ with message ‘Invalid KS [ZmNjYjFmOWIyODgzMzkzOGFhYjBjMjVmZWRmNzY1ZjFmZWEzMzM4MHwtMTs7MTQ2MTkxNTA1ODsyOzE0NTkzMjMwNTguODI4MztiYXRjaFVzZXI7Oy0xOw==]. Error [-1,INVALID_STR]’ in /opt/kaltura/app/alpha/apps/kaltura/lib/kCurrentContext.class.php:144

hi,

This the exception which i received in virusscan_log

2016-03-30 23:59:11 [27694666] [BATCH] [KalturaClientBase->doQueue] NOTICE: execution time for [http://10.10.13.185/api_v3/index.php?service=virusscan_virusscanbatch&action=getExclusiveVirusScanJobs]: [0.049499988555908]
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Invalid KS [NzkxZDM1NTFjODc5YTFkMDhlOGFjNjI2MTEyNTRiMGMwYTY1M2M5MnwtMTs7MTQ2MTk1NDU1MTsyOzE0NTkzNjI1NTEuNjY7YmF0Y2hVc2VyOzstMTs=]. Error [-1,INVALID_STR]’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:457
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaPlugins/KalturaVirusScanClientPlugin.php(258): KalturaClientBase->throwExceptionIfError(Array)
#1 /opt/kaltura/app/plugins/virus_scan/batch/VirusScan/KAsyncVirusScan.class.php(50): KalturaVirusScanBatchService->getExclusiveVirusScanJobs(Object(KalturaExclusiveLockKey), ‘1200’, 1, Object(KalturaBatchJobFilter))
#2 /opt/kaltura/app/plugins/virus_scan/batch/VirusScan/KAsyncVirusScanExe.php(12): KAsyncVirusScan->run()
#3 {main}
thrown in /opt/kaltura/app/batch/client/KalturaClientBase.php on line 457

I hope this will help you.If not please revert.

2016-04-04 12:54:05 [1752367374] [BATCH] [KAsyncVirusScan->run] INFO: Virus scan batch is running
2016-04-04 12:54:05 [1752367374] [BATCH] [KalturaClientBase->doQueue] NOTICE: service url: [http://10.10.13.185]
2016-04-04 12:54:05 [1752367374] [BATCH] [KalturaClientBase->doCurl] NOTICE: curl: http://10.10.13.185/api_v3/index.php?service=virusscan_virusscanbatch&action=getExclusiveVirusScanJobs&apiVersion=3.1.4&format=3&clientTag=batch%3A+Default+Scheduler&lockKey%3AobjectType=KalturaExclusiveLockKey&lockKey%3AschedulerId=1&lockKey%3AworkerId=240&lockKey%3AbatchIndex=0&maxExecutionTime=1200&numberOfJobs=1&filter%3AobjectType=KalturaBatchJobFilter&partnerId=-1&ks=MDIyNGZjN2Q4MmVmMDNmYjJmZmRhMjIyZTE2MjRhNmY5ODhlNjViOHwtMTs7MTQ2MjM0NjY0NTsyOzE0NTk3NTQ2NDUuNzc2ODtiYXRjaFVzZXI7Oy0xOw%3D%3D&kalsig=69546570acc1f33b389890911a927169
2016-04-04 12:54:05 [1752367374] [BATCH] [KalturaClientBase->doQueue] NOTICE: result (serialized): a:2:{s:4:“code”;s:10:“INVALID_KS”;s:7:“message”;s:157:“Invalid KS [MDIyNGZjN2Q4MmVmMDNmYjJmZmRhMjIyZTE2MjRhNmY5ODhlNjViOHwtMTs7MTQ2MjM0NjY0NTsyOzE0NTk3NTQ2NDUuNzc2ODtiYXRjaFVzZXI7Oy0xOw==]. Error [-1,INVALID_STR]”;}
2016-04-04 12:54:05 [1752367374] [BATCH] [KalturaClientBase->doQueue] NOTICE: result (object dump): Array
(
[code] => INVALID_KS
[message] => Invalid KS [MDIyNGZjN2Q4MmVmMDNmYjJmZmRhMjIyZTE2MjRhNmY5ODhlNjViOHwtMTs7MTQ2MjM0NjY0NTsyOzE0NTk3NTQ2NDUuNzc2ODtiYXRjaFVzZXI7Oy0xOw==]. Error [-1,INVALID_STR]
)

Hi Jess,

adding few more info on the exception which i received in convertcloser-0-2016-04-06.log.

2016-04-06 18:22:17 [1033949198] [BATCH] [KalturaClientBase->doQueue] NOTICE: execution time for [http://10.10.13.185/api_v3/index.php?service=batch&action=getExclusiveAlmostDoneConvertJobs]: [0.083927154541016]
PHP Fatal error: Uncaught exception ‘KalturaException’ with message ‘Invalid KS [NWQ5MTNmMDBkYTUyYTZiYTYxNTU1OWIxNDUyYmMwOTdkYWFjOTBlNXwtMTs7MTQ2MjUzOTEzNzsyOzE0NTk5NDcxMzcuNzQyODtiYXRjaFVzZXI7Oy0xOw==]. Error [-1,INVALID_STR]’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:457
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaClient.php(898): KalturaClientBase->throwExceptionIfError(Array)
#1 /opt/kaltura/app/batch/batches/Convert/KAsyncConvertCloser.class.php(87): KalturaBatchService->getExclusiveAlmostDoneConvertJobs(Object(KalturaExclusiveLockKey), ‘300’, ‘10’, Object(KalturaBatchJobFilter))
#2 /opt/kaltura/app/batch/batches/Convert/KAsyncConvertCloserExe.php(11): KAsyncConvertCloser->run()
#3 {main}
thrown in /opt/kaltura/app/batch/client/KalturaClientBase.php on line 457

Please revert with your suggestion

is the secret in /opt/kaltura/app/configurations/batch/batch.ini correct?
Should be the same as returned from:
mysql>select admin_secret from partner where id=-1;

if it is not, then that is the problem but I wonder what else in your ENV might be off and suggest you re-run the configure scripts.

Jess,

Encountered another problem. No directory named batch is available in the /opt/kaltura/app/configurations directory. Something is different in my version. Please provide path for all the configure scripts required to be executed.

If there is no batch directory then the install is completely corrupted.
You did not mention which Linux distro you’re working on but for both, /opt/kaltura/app/configurations/batch is part of the kaltura-base package:

# rpm -qf /opt/kaltura/app/configurations/batch/
kaltura-base-11.11.0-8.noarch

# dpkg -S /opt/kaltura/app/batch/
kaltura-base: /opt/kaltura/app/batch

So, at this point, all I can safely recommend is a reinstall.