Dropfolder issue

Hello fellow Kalturaians,

After having a Kaltura project on hold we now finally are implementing it for livestreaming using Epiphan and VOD. At the end of the livestream we would like to provide the stream as a VOD.
We prefer not to share the stream again because we are reusing the same stream url.
I found the livestream files/recordings in /var/tmp/rec
So the idea is to batch copy the flv’s in a dropfolder.

That’s where my issue start.

I’m facing a dropfolder issue on version 16.4.0-2. CE

  • enabled Content Ingestion - Drop Folder/s in KAC

  • added a content dropfolder, add as new, /var/tmp/dropfolder as dropfolder path

The Dropfolder tab is visible in KMC, and the name is mentioned in the list filter.

katlog shows the error:
PHP Notice: Trying to get property of non-object in /opt/kaltura/app/plugins/drop_folder/batch/DropFolderWatcher/KAsyncDropFolderWatcher.class.php on line 69


2021-01-13 18:22:54 [0.000387] [127.0.0.1] [1841406923] [73] [API] [kInfraBaseCacheWrapper::safeLog] DEBUG: connect took - 0.00020909309387207 seconds to 127.0.0.1:11211 attempts 1
2021-01-13 18:22:54 [0.000817] [127.0.0.1] [1841406923] [74] [API] [KalturaFrontController->getExceptionObject] CRIT: Exception: Error: Call to a member function lock() on null in /opt/kaltura/app/plugins/drop_folder/lib/kDropFolderAllocator.php:106
Stack trace:
#0 /opt/kaltura/app/plugins/drop_folder/lib/kDropFolderAllocator.php(129): kDropFolderAllocator::lockDropFolder(7, 30000)

So it fails on kDropFolderAllocator::lockDropFolder(7, 30000), I have dropfolder with id 7 so that seems correct.
I tried to add break points in the code, it seems to set $lock = kLock::create(self::getLockKeyForDropFolder($dropFolderId));
But fails on $lock->lock(1, $maxTimeForWatch) this is kDropFolderAllocator.php line 106

I found a similar error about the lock() not applying but no solution provided.

Tips or advice welcome.

Thanks,
Johnny

Hope someone can get help me to get a solution, this is the last piece of the puzzle.

Thanks in advance,
Johnny