This would usually be cause due to a missing file_sync as the message implies.
Can you please check the log around the error? it should have the query to the file_sync table where the file is set and is expected to be found on the file system.
Don’t know what exactly to look for. Kaltlog is not telling me anymore then i already posted. kaltura_api_v3.log has no errors. Also the other logs are not helpfull as far as i can tell.
/opt/kaltura/log/kaltura_api_v3.log:2015-03-18 17:27:59 [0.001994] [151.252.43.235] [1680921325] [API] [kCoreException->__construct] ERR: exception ‘kFileSyncException’ with message ‘Cannot find file on local disk [] for file sync [672]’ in /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php:76
/opt/kaltura/log/kaltura_api_v3.log:2015-03-18 17:27:59 [0.000710] [151.252.43.235] [1680921325] [API] [KalturaFrontController->getExceptionObject] CRIT: exception ‘kFileSyncException’ with message ‘Cannot find file on local disk [] for file sync [672]’ in /opt/kaltura/app/alpha/apps/kaltura/lib/storage/kFileSyncUtils.class.php:76
This is what the kaltlog alias outputs because it is looking for error patterns, this is meant to help you understand where in the log to look:)
Please open kaltura_api_v3.log and check the SQL query made to the file_sync table.
Good, so we are making progress.
Take this query and log into MySQL:
# mysql -h$DB1_HOST -u$DB1_USER -p$DB1_PASS $DB1_NAME
Lets see where that file is, then, we can either remove the record from DB or, just touch an empty file on that location which should be enough to make it stop failing.
Uahh. Issue solved. I had a few more missing files but after touching them it works now. I think i deleted this files because i thought this where leftovers from deleted videos. How am i supposed to delete videos correctly? I mean if i delete videos in the webinterface the files still remain in /opt/kaltura/web/content/entry/data/0/0. But i need the place someday.
Happy to help:)
As to your question, look at:
/opt/kaltura/app/configurations/cron/cleanup
This runs a script that can do that for you and you can symlink it to /etc/cron.d/ but please be sure to use it carefully and I suggest, as first, you drop the --real-run flag from /opt/kaltura/app/configurations/cron/cleanup and review the /opt/kaltura/log/kaltura_cleanup.log for a few days to ensure it behaves correctly.