A Qlik Replicate Log Stream task fails with the error:
Stream component 'st_0_T03ERP_TGT_QLK_LSS' terminated Cannot initialize subtask
Failed while preparing stream component 'st_0_T03ERP_TGT_QLK_LSS'. Error reading audit batch
Timeout while waiting to get data from audit file
Resolution
Verify that sufficient disk space is available. Clear up space or increase the available quota, then:
- Remove the Log Stream directory defined on the Log Stream Target
This will remove all current files. A backup to a different location is optional.
- Start the task from timestamp as far back as the retention period on the Source Transactions logs.
- This will create a new LogStream directory and new sub-directory audit_files.
Cause
A corrupted metastore.sqllite file. The file is created in the Log Stream target location (LogStream/audit_services directory) when a task is started. Most commonly disk space issues cause the file's corruption.
Environment