COVESA / dlt-daemon

Diagnostic Log and Trace.
https://covesa.github.io/dlt-daemon/
Mozilla Public License 2.0
364 stars 289 forks source link

On Linux,turned on compression function,when the first file reaches the storage limit, the size of the second file is always 0, and storage can not continues. #644

Open hush-soul opened 1 month ago

hush-soul commented 1 month ago

I find a same issue with #540,Reply has been resolved at #571. Checkout code has been updated but I still have this problem.

log_002_20240625-165658.dlt.gz :The size of this file is always 0 image

dlt.conf : Modify only this item OfflineLogstorageMaxDevices = 1

dlt_logstorage.conf: [FILTER1] LogAppName=. ContextName=. LogLevel=DLT_LOG_VERBOSE File=text FileSize=10000 NOFiles=10 EcuID=ECU1

[FILTER2] LogAppName=. ContextName=. LogLevel=DLT_LOG_VERBOSE File=log FileSize=50000 NOFiles=5 EcuID=ECU1 GzipCompression=on

startup parameters: /home/jyang/dlt-daemo/dlt-daemon-master/build/src/daemon/dlt-daemon -d -c /home/jyang/etc/dlt.conf /home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

Looking forward to your reply, thank you

hush-soul commented 1 month ago

IF i set SyncBehavior=ON_SPECIFIC_SIZE, i can solve this problem. But i want to use SyncBehavior=ON_MSG

[FILTER1] LogAppName=. ContextName=. LogLevel=DLT_LOG_VERBOSE File=text FileSize=10000 NOFiles=10 EcuID=ECU1

[FILTER2] LogAppName=. ContextName=. LogLevel=DLT_LOG_VERBOSE File=log FileSize=50000 NOFiles=5 EcuID=ECU1 SyncBehavior=ON_SPECIFIC_SIZE SpecificSize=200
GzipCompression=on

hush-soul commented 1 month ago

When I enter the command again, we can continue to store

/home/jyang/dlt-daemo/dlt-daemon-master/build/src/console/logstorage/dlt-logstorage-ctrl -c 1 -C /home/jyang/etc/dlt.conf -p /home/jyang/etc

But when the file reaches the storage limit, the next file will always become 0

image

minminlittleshrimp commented 1 month ago

Hello @hush-soul Same issue encountered here https://github.com/COVESA/dlt-daemon/issues/624 Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature. It is great if you can contribute a fix in PR and we can review and test for you. Regards

hush-soul commented 1 month ago

Hello @hush-soul Same issue encountered here #624 Sadly I am so busy with internal dlt maintaining tasks and now not have much time to investigate this feature. It is great if you can contribute a fix in PR and we can review and test for you. Regards

thanks,I'm not sure this is not the same problem with #624,I might try to solve

minminlittleshrimp commented 1 month ago

How about Linux, does the version kept latest @hush-soul ?

hush-soul commented 1 month ago

How about Linux, does the version kept latest @hush-soul ?

linux is the latest version