Issue could be related to the fact that the directory where files are stored is not big enough. the location should have at least 10 Gb of free space!
the default location is:
/usr/lib/unifi-video/data/videos
when adding a new disk (with enough space to record) in Linux (Debian) make sure to set the correct permissions:
# chown ubiquiti-video:ubiquiti-video /usr/lib/unifi-video/data/videos
issues found in the logfiles:
/CET: ERROR Recording paths collection is null or empty in RecordingService-PurgeTask
CET: ERROR Camera[FCECDA1FAD9C] Empty recordings:5c4e0a95c2dc1a564d41073e removed from DB (UVC G3 Flex) in ChunkProcessingService-TaskExecutor