Conversion failed

10 hours ago I attached NFS shared storage to CMS server. During attach I restarted CMS server few times. After this the kaltura cannot convert video which is uploaded successfully through web interface. See the log below.

Sanity check

[root@cms conf.d]# kaltura-sanity.sh
[Space on /] [PASSED, RC: 0] - [.017062375]
[Space on /opt/kaltura/web] [PASSED, RC: 0] - [.006805565]
[Check httpd daemon status] [PASSED, RC: 0] - [.080173750]
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
[Check httpd daemon is started by Monit] [PASSED, RC: 0] - [9.494473637]
[check daemon httpd init status] [PASSED, RC: 0] - [.023614207]
[Check kaltura-sphinx daemon status] [PASSED, RC: 0] - [.162546078]
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
[Check kaltura-sphinx daemon is started by Monit] [PASSED, RC: 0] - [8.245396489]
[check daemon kaltura-sphinx init status] [PASSED, RC: 0] - [.008650607]
[Check kaltura-batch daemon status] [PASSED, RC: 0] - [.057386340]
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
[Check kaltura-batch daemon is started by Monit] [PASSED, RC: 0] - [8.593558325]
[check daemon kaltura-batch init status] [PASSED, RC: 0] - [.010782819]
[Check kaltura-monit daemon status] [PASSED, RC: 0] - [.040879162]
[check daemon kaltura-monit init status] [PASSED, RC: 0] - [.007090526]
[Check memcached daemon status] [PASSED, RC: 0] - [.037830272]
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
[Check memcached daemon is started by Monit] [PASSED, RC: 0] - [6.405722017]
[check daemon memcached init status] [PASSED, RC: 0] - [.007155067]
[kaltura-html5lib ver in KMC config.ini] [PASSED, RC: 0] - [.116743015]
[kaltura-kdp3 ver in KMC config.ini] [PASSED, RC: 0] - [.055818646]
[kaltura-kmc ver in KMC config.ini] [PASSED, RC: 0] - [.060863406]
[Get KMC SWFs] [PASSED, RC: 0] - [.415181273]
[check_testme_page] [PASSED, RC: 0] - [.360217572]
[check_kmc_index_page] [PASSED, RC: 0] - [.136937824]
[check_admin_console_index_page] [PASSED, RC: 0] - [.354070997]
[check_studio_index_page] [PASSED, RC: 0] - [.648658011]
[Create Partner] [PASSED, RC: 0] - [2.677731854]
[Local dropfolder creation failed] [FAILED, RC: 255] - [.326528363]
[Upload content kaltura_logo_animated_blue.flv] [PASSED, RC: 0] - [1.223386664]
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
Napping 10 seconds to allow entry 0_kj6pqf8z to digest…
[kaltura_logo_animated_blue.flv - 0_kj6pqf8z status] [FAILED, RC: 1] - [-.547526804]
Napping 30 seconds to allow mail to be sent out…
[Found an email sending entry for HOSTNAME@kaltura.com[PID is 114] in /var/log/maillog] [PASSED, RC: 0] - [30.072943722]
Testing analytics, be patient…

Please note: if you are running this test on a clustered ENV, it will fail but this does not mean there is an actual problem.
The tech information as to why is available here:

Below is Entry Investigation page error

Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_7govpsci_0_3tiqeq59_12.mp4 Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_7govpsci_0_3tiqeq59_12.mp4
Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_7govpsci_0_3tiqeq59_12.mp4
Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_7govpsci_0_3tiqeq59_12.mp4

Mar 03, 2015 17:25:41 ULAT

Hi,

You mean you moved your /opt/kaltura/web dir to a new storage device and mounted it from the kaltura machines? if so, my first guess would be permissions are not set correctly…

you need to make sure these are owned by the kaltura user:
[root@ip-10-168-251-212 ~]# find /opt/kaltura/web/content/ -type d -user kaltura

/opt/kaltura/web/content/cacheswf
/opt/kaltura/web/content/batchfiles
/opt/kaltura/web/content/templates

These should be owned by apache:
/opt/kaltura/web/content/entry
/opt/kaltura/web/content/batchfiles
/opt/kaltura/web/content/notifications
/opt/kaltura/web/content/uploads

These should be owned by the ‘kaltura’ group:
/opt/kaltura/web/content/entry
/opt/kaltura/web/content/entry/tempthumb
/opt/kaltura/web/content/entry/data
/opt/kaltura/web/content/entry/bigthumbnail
/opt/kaltura/web/content/generatedUiConf

if these are not correctly owned, make the needed adjustments.
Then, if it still fails, use kaltlog to find errors.

Dear Jess,

I just mounted /data/ folder to /opt/kaltura/web/content/entry/data/ like below

/data on /opt/kaltura/web/content/entry/data type none (rw,bind)

the folders inside /opt/kaltura/web/content/entry/data/ have owner and permission like below

drwxr-xr-x. 4 apache kaltura 4096 2015-02-11 09:41 0

[eberx@cms data]$ cd 0/
[eberx@cms 0]$ ls -la
total 344
drwxr-xr-x. 4 apache kaltura 4096 2015-02-11 09:41 .
drwxrwxrwx. 10 apache kaltura 4096 2015-02-05 18:29 …
drwxr-xr-x. 2 apache kaltura 274432 2015-03-03 13:47 0
drwxr-xr-x. 2 apache kaltura 69632 2015-03-03 20:12 1
[eberx@cms 0]$

I don’t think it is permission issue.
Uploaded video’s duration always zero.

Also size of video files is wrong. I uploaded ~23MB but it says ~23G

What is the cause of this error? Is there any service not running or ?

I still get error when it is converting. See the first picture Ant Man trailer which is uploaded at 19:57.

I got [DWH cycle] [FAILED, RC: 255] - [3.154225354] when I did

Note. I uploaded video by web not dropfolder.

kaltura-sanity.sh

[Space on /] [PASSED, RC: 0] - [.026449610]
[Space on /opt/kaltura/web] [PASSED, RC: 0] - [.006194023]
[Check httpd daemon status] [PASSED, RC: 0] - [.065425143]
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon httpd to finish its init after monit restarted it…
[Check httpd daemon is started by Monit] [PASSED, RC: 0] - [7.517347328]
[check daemon httpd init status] [PASSED, RC: 0] - [.023255276]
[Check kaltura-sphinx daemon status] [PASSED, RC: 0] - [.197204966]
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-sphinx to finish its init after monit restarted it…
[Check kaltura-sphinx daemon is started by Monit] [PASSED, RC: 0] - [8.394208522]
[check daemon kaltura-sphinx init status] [PASSED, RC: 0] - [.008346419]
[Check kaltura-batch daemon status] [PASSED, RC: 0] - [.082026031]
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon kaltura-batch to finish its init after monit restarted it…
[Check kaltura-batch daemon is started by Monit] [PASSED, RC: 0] - [8.598925407]
[check daemon kaltura-batch init status] [PASSED, RC: 0] - [.015019551]
[Check kaltura-monit daemon status] [PASSED, RC: 0] - [.034642906]
[check daemon kaltura-monit init status] [PASSED, RC: 0] - [.011431572]
[Check memcached daemon status] [PASSED, RC: 0] - [.033958090]
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
Napping 1 seconds to allow the daemon memcached to finish its init after monit restarted it…
[Check memcached daemon is started by Monit] [PASSED, RC: 0] - [7.453316530]
[check daemon memcached init status] [PASSED, RC: 0] - [.008392828]
[kaltura-html5lib ver in KMC config.ini] [PASSED, RC: 0] - [.107484518]
[kaltura-kdp3 ver in KMC config.ini] [PASSED, RC: 0] - [.053877982]
[kaltura-kmc ver in KMC config.ini] [PASSED, RC: 0] - [.062332569]
[Get KMC SWFs] [PASSED, RC: 0] - [.436666376]
[check_testme_page] [PASSED, RC: 0] - [.447442115]
[check_kmc_index_page] [PASSED, RC: 0] - [.134675520]
[check_admin_console_index_page] [PASSED, RC: 0] - [.607357197]
[check_studio_index_page] [PASSED, RC: 0] - [.671104253]
[Create Partner] [PASSED, RC: 0] - [3.178189496]
[Local dropfolder creation failed] [FAILED, RC: 255] - [.353167587]
[Upload content kaltura_logo_animated_blue.flv] [PASSED, RC: 0] - [1.197537428]
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
Napping 10 seconds to allow entry 0_6rtr2qvl to digest…
[kaltura_logo_animated_blue.flv - 0_6rtr2qvl status] [FAILED, RC: 1] - [-.567744345]
Napping 30 seconds to allow mail to be sent out…
[Found an email sending entry for @kaltura.com[PID is 115] in /var/log/maillog] [PASSED, RC: 0] - [30.072467844]
Testing analytics, be patient…

Please note: if you are running this test on a clustered ENV, it will fail but this does not mean there is an actual problem.
The tech information as to why is available here:

[DWH cycle] [FAILED, RC: 255] - [3.154225354]
[Upload content kaltura_logo_animated_green.flv] [PASSED, RC: 0] - [1.031263418]
[Upload bulk using CSV] [PASSED, RC: 0] - [.715856009]
[Upload bulk using XML] [PASSED, RC: 0] - [.591327838]
[Create player] [PASSED, RC: 0] - [.429595312]
[Generate thumb] [PASSED, RC: 0] - [.776444191]
[Delete parnter] [PASSED, RC: 0] - [.322934547]
[Red5 file upload] [SKIPPED as OflaDemo isn’t configured]
see: https://github.com/kaltura/platform-install-packages/blob/master/doc/install-kaltura-redhat-based.md#configure-red5-server

Thank you for running Kaltura! To keep Kaltura viable, stable and well tested, please join the community and help by contributing sanity tests that verify overall platform stability: http://bit.ly/kaltura-ci , and by contributing to the project roadmap by solving simple tasks and challenges: http://bit.ly/kaltura-tasks.

Please check the logs using the kaltlog command and then drill down the log to find the cause.

kaltlog.sh

2015-03-03 23:28:27 [0.000420] [122.201.22.145] [1594595569] [PS2] [kCoreException->__construct] ERR: exception ‘kFileSyncException’ with message ‘no ready filesync on current DC’ in /opt/kaltura/app/alpha/apps/kaltura/lib/myEntryUtils.class.php:780
Stack trace:
#0 /opt/kaltura/app/alpha/lib/model/entry.php(3170): myEntryUtils::resizeEntryImage(Object(entry), 0, 275, 184, 1, ‘ffffff’, NULL, 0, 0, 0, 0, 0, -1, ‘-1’, ‘-1’)

2015-03-03 23:28:27 [0.000222] [122.201.22.145] [1594595569] [PS2] [kFileSyncUtils::getReadyFileSyncForKey] NOTICE: FileSync was not found
2015-03-03 23:28:27 [0.000254] [122.201.22.145] [1594595569] [PS2] [entry->getLocalThumbFilePath] ERR: exception ‘Exception’ with message ‘No ready fileSync found on any DC.’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/lib/model/entry.php(3187): KalturaLog::err(‘No ready fileSy…’)

2015-03-03 23:28:27 [0.000228] [122.201.22.145] [1594595569] [PS2] [KExternalErrors::dieError] ERR: exception ‘Exception’ with message ‘exiting on error 10 - missing thumbnail fileSync for entry’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/KExternalErrors.class.php(115): KalturaLog::err(‘exiting on erro…’)

thrown in /opt/kaltura/app/batch/client/KalturaClientBase.php on line 357
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘couldn’t connect to host’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:357
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaClient.php(1127): KalturaClientBase->doQueue()

thrown in /opt/kaltura/app/batch/client/KalturaClientBase.php on line 357
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘SSL connect error’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:357
Stack trace:
#0 /opt/kaltura/app/batch/client/KalturaPlugins/KalturaContentDistributionClientPlugin.php(2425): KalturaClientBase->doQueue()

Hello,

Are you working over SSL? if so, is the certificate in order?
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘SSL connect error’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:357

Would imply it is not…

This too:
PHP Fatal error: Uncaught exception ‘KalturaClientException’ with message ‘couldn’t connect to host’ in /opt/kaltura/app/batch/client/KalturaClientBase.php:357

Yes. I’m using ssl certs. it is valid. And i can see the green lock certificate sign in front of URL when i’m accessing to admin panel. which service i need to check?

How do I check all services ?

Failed task information
engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]

Kaltlog during upload and converting process

I have seen couple of issues

  1. failed to parse and extract media info with KMediaInfoMediaParser
  2. Exception’ with message 'engine [KOperationEngineOldVersionWrapper] converted failed
  3. ‘Exception’ with message ‘file already exists’
  4. also the file delete permission error.

I changed permission like your

cd content/
drwxrwxr-x. 5 kaltura apache 4096 2015-03-03 20:30 batchfiles
drwxrwxr-x. 2 kaltura apache 4096 2014-11-19 01:19 cacheswf
drwxrwxrwx. 8 root root 4096 2014-11-25 12:38 clientlibs
drwxrwxr-x. 7 root root 4096 2015-03-03 20:30 docs
drwxrwxr-x. 5 apache kaltura 4096 2014-11-25 12:52 entry
drwxrwxr-x. 15 root kaltura 4096 2014-11-25 12:40 generatedUiConf
drwxr-xr-x. 3 apache kaltura 4096 2014-11-25 12:42 notifications
drwxrwxrwx. 3 apache apache 4096 2015-02-23 14:32 reports
drwxrwxr-x. 4 kaltura apache 4096 2014-11-25 11:20 templates
drwxrwxr-x. 4 root root 4096 2014-11-25 11:21 uiconf
drwxrwxr-x. 2 apache kaltura 4096 2015-03-04 09:27 uploads

cd entry/
drwxr-xr-x. 3 apache kaltura 4096 2014-11-25 12:44 bigthumbnail
drwxr-x—. 10 apache kaltura 4096 2015-02-05 18:29 data
drwxr-xr-x. 3 apache apache 4096 2014-11-25 12:52 tempthumb

Kaltlog

2015-03-04 08:59:26 [1686251678] [KBaseMediaParser->getRawMediaInfo] DEBUG: Executing '/usr/bin/mediainfo “/opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi”'
2015-03-04 08:59:26 [1686251678] [KAsyncExtractMedia->extract] ERR: exception ‘Exception’ with message ‘Failed to parse media using KMediaInfoMediaParser’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/ExtractMedia/KAsyncExtractMedia.class.php(97): KalturaLog::err(‘Failed to parse…’)

#4 {main}
2015-03-04 08:59:26 [1686251678] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to extra…’)

[line:protected] => 41
[trace:Exception:private] => Array
    (


2015-03-04 09:00:31 [1364303040] [KBaseMediaParser->getRawMediaInfo] DEBUG: Executing '/usr/bin/mediainfo “/opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi”'
2015-03-04 09:00:31 [1364303040] [KAsyncExtractMedia->extract] ERR: exception ‘Exception’ with message ‘Failed to parse media using KMediaInfoMediaParser’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/ExtractMedia/KAsyncExtractMedia.class.php(97): KalturaLog::err(‘Failed to parse…’)

#4 {main}
2015-03-04 09:00:31 [1364303040] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to extra…’)

[line:protected] => 41
[trace:Exception:private] => Array
    (


2015-03-04 09:01:34 [154904534] [KBaseMediaParser->getRawMediaInfo] DEBUG: Executing '/usr/bin/mediainfo “/opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi”'
2015-03-04 09:01:34 [154904534] [KAsyncExtractMedia->extract] ERR: exception ‘Exception’ with message ‘Failed to parse media using KMediaInfoMediaParser’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/ExtractMedia/KAsyncExtractMedia.class.php(97): KalturaLog::err(‘Failed to parse…’)

#4 {main}
2015-03-04 09:01:34 [154904534] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to extract media info: /opt/kaltura/web/content/entry/data/0/1/0_4v0t5qfs_0_blj5lmdk_12.avi’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to extra…’)

2015-03-04 09:01:50 [1992634275] [KalturaClientBase->doQueue] NOTICE: execution time for [https://HOSTNAME:443/api_v3/index.php?service=batch&action=logConversion]: [0.12168908119202]
2015-03-04 09:01:50 [1992634275] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘engine [KOperat…’)

2015-03-04 09:01:51 [0.000640] [103.48.116.77] [1932565477] [API] [KalturaStatement->execute] DEBUG: Sql took - 0.0004279613494873 seconds
2015-03-04 09:01:51 [0.000945] [103.48.116.77] [1932565477] [API] [kFileSyncUtils::moveFromFile] ERR: exception ‘Exception’ with message ‘file already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(443): KalturaLog::err(‘file already ex…’)

#14 {main}
2015-03-04 09:01:51 [0.000603] [103.48.116.77] [1932565477] [API] [kFlowHelper::handleConvertFailed] ERR: exception ‘Exception’ with message ‘Saving conversion log: key [object_type:[4], object_id:[0_zi16fz57], version:[2], object_sub_type[2], partner_id[102]] already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kFlowHelper.php(1113): KalturaLog::err(‘Saving conversi…’)

2015-03-04 09:01:52 [553130920] [KalturaClientBase->doQueue] NOTICE: execution time for [https://HOSTNAME:443/api_v3/index.php?service=batch&action=logConversion]: [0.15160202980042]
2015-03-04 09:01:52 [553130920] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘engine [KOperat…’)

2015-03-04 09:01:53 [0.001675] [103.48.116.77] [1904444185] [API] [KalturaStatement->execute] DEBUG: Sql took - 0.0013439655303955 seconds
2015-03-04 09:01:53 [0.000452] [103.48.116.77] [1904444185] [API] [kFileSyncUtils::moveFromFile] ERR: exception ‘Exception’ with message ‘file already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(443): KalturaLog::err(‘file already ex…’)

#14 {main}
2015-03-04 09:01:53 [0.000371] [103.48.116.77] [1904444185] [API] [kFlowHelper::handleConvertFailed] ERR: exception ‘Exception’ with message ‘Saving conversion log: key [object_type:[4], object_id:[0_zi16fz57], version:[12], object_sub_type[2], partner_id[102]] already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kFlowHelper.php(1113): KalturaLog::err(‘Saving conversi…’)

2015-03-04 09:01:54 [1564386862] [KalturaClientBase->doQueue] NOTICE: execution time for [https://HOSTNAME:443/api_v3/index.php?service=batch&action=logConversion]: [0.16872382164001]
2015-03-04 09:01:55 [1564386862] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘engine [KOperat…’)

==> /opt/kaltura/log/kaltura_api_v3.log <==
2015-03-04 09:01:55 [0.000466] [103.48.116.77] [164062551] [API] [kFileSyncUtils::moveFromFile] ERR: exception ‘Exception’ with message ‘file already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(443): KalturaLog::err(‘file already ex…’)

==> /opt/kaltura/log/kaltura_api_v3.log <==
2015-03-04 09:01:55 [0.000510] [103.48.116.77] [164062551] [API] [kFlowHelper::handleConvertFailed] ERR: exception ‘Exception’ with message ‘Saving conversion log: key [object_type:[4], object_id:[0_zi16fz57], version:[22], object_sub_type[2], partner_id[102]] already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kFlowHelper.php(1113): KalturaLog::err(‘Saving conversi…’)

2015-03-04 09:01:55 [0.000171] [103.48.116.77] [164062551] [API] [kJobsManager::getNextConversionEngine] NOTICE: Last used conversion engine is [3]
2015-03-04 09:01:55 [0.000296] [103.48.116.77] [164062551] [API] [kJobsManager::getNextConversionEngine] ERR: exception ‘Exception’ with message ‘There is no other conversion engine to use’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kJobsManager.php(679): KalturaLog::err(‘There is no oth…’)

2015-03-04 09:01:56 [660607578] [KalturaClientBase->doQueue] NOTICE: execution time for [https://HOSTNAME:443/api_v3/index.php?service=batch&action=logConversion]: [0.10291600227356]
2015-03-04 09:01:56 [660607578] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘engine [KOperat…’)

2015-03-04 09:01:57 [0.000557] [103.48.116.77] [1963709757] [API] [KalturaStatement->execute] DEBUG: Sql took - 0.00037503242492676 seconds
2015-03-04 09:01:57 [0.000392] [103.48.116.77] [1963709757] [API] [kFileSyncUtils::moveFromFile] ERR: exception ‘Exception’ with message ‘file already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(443): KalturaLog::err(‘file already ex…’)

#14 {main}
2015-03-04 09:01:57 [0.000303] [103.48.116.77] [1963709757] [API] [kFlowHelper::handleConvertFailed] ERR: exception ‘Exception’ with message ‘Saving conversion log: key [object_type:[4], object_id:[0_cstbf8g7], version:[2], object_sub_type[2], partner_id[102]] already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kFlowHelper.php(1113): KalturaLog::err(‘Saving conversi…’)

2015-03-04 09:01:59 [2023150337] [KalturaClientBase->doQueue] NOTICE: execution time for [https://HOSTNAME:443/api_v3/index.php?service=batch&action=logConversion]: [0.16020512580872]
2015-03-04 09:01:59 [2023150337] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘engine [KOperationEngineOldVersionWrapper] converted failed: return value: [1]’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘engine [KOperat…’)

2015-03-04 09:01:59 [0.000698] [103.48.116.77] [1212468821] [API] [KalturaStatement->execute] DEBUG: Sql took - 0.00050878524780273 seconds
2015-03-04 09:01:59 [0.000397] [103.48.116.77] [1212468821] [API] [kFileSyncUtils::moveFromFile] ERR: exception ‘Exception’ with message ‘file already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php(443): KalturaLog::err(‘file already ex…’)

#14 {main}
2015-03-04 09:01:59 [0.000295] [103.48.116.77] [1212468821] [API] [kFlowHelper::handleConvertFailed] ERR: exception ‘Exception’ with message ‘Saving conversion log: key [object_type:[4], object_id:[0_cstbf8g7], version:[12], object_sub_type[2], partner_id[102]] already exists’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kFlowHelper.php(1113): KalturaLog::err(‘Saving conversi…’)

2015-03-04 09:01:59 [0.000170] [103.48.116.77] [1212468821] [API] [kJobsManager::getNextConversionEngine] NOTICE: Last used conversion engine is [99]
2015-03-04 09:01:59 [0.000330] [103.48.116.77] [1212468821] [API] [kJobsManager::getNextConversionEngine] ERR: exception ‘Exception’ with message ‘There is no other conversion engine to use’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/alpha/apps/kaltura/lib/batch2/kJobsManager.php(679): KalturaLog::err(‘There is no oth…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_cstbf8g7_2.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:06 [1497077560] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_cstbf8g7_12.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:08 [1285947283] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_cstbf8g7_2.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:10 [361676918] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_2.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:13 [1129622257] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_22.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:15 [1486980699] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_22.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:17 [456898805] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_cstbf8g7_12.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:19 [1251584918] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_2.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:21 [2031774049] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_12.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:23 [1218459118] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.err.log <==
PHP Warning: unlink(/opt/kaltura/web//content/entry/data/0/1/0_4v0t5qfs_0_zi16fz57_12.conv.log): Permission denied in /opt/kaltura/app/batch/batches/DeleteFile/KAsyncDeleteFile.class.php on line 25

==> /opt/kaltura/log/batch/deletefile-0-2015-03-04.log <==
2015-03-04 09:02:25 [1964220041] [KJobHandlerWorker->closeJob] ERR: exception ‘Exception’ with message ‘Failed to delete file from disk’ in /opt/kaltura/app/infra/log/KalturaLog.php:82
Stack trace:
#0 /opt/kaltura/app/batch/batches/KJobHandlerWorker.class.php(336): KalturaLog::err(‘Failed to delet…’)

@jess

I don’t know what is problem but I find what is causing conversion failure. The cause is owner and group of uploaded file.

Uploaded file created on hard disk with below owners

user: apache
group: apache

I changed uploaded files owner to follow before start converting then conversion is successfully.

user: apache
group: kaltura

Why the files uploaded apache.apache owners ? How do I change it to apache.kaltura ?

Hello,

What is the output for:
[root@ce-batch0 ~]# id apache
Should be:
uid=48(apache) gid=48(apache) groups=48(apache),7373(kaltura)

Also in /opt/kaltura/app/configurations/batch/batch.ini should be:
directoryChmod = 775
chmod = 664

Is this how it is?

@jess
My configuration and permission is like your said. There is no difference.

my new storage is mounted by NFS server.

192.168.1.1:/data on /opt/kaltura/web/content/entry/data typ
nfs (rw,noatime,vers=4,addr=192.168.1.1,clientaddr=192.168
1.3)

After this mount the uploaded video created permission with apache owner and apache group.

How do i fix this? Still conversion failed on my server.