Atoptool/atop

atop 2.7 is not backwards compatible with 2.4

Closed this issue · 3 comments

Hey, firstly, thanks for creating atop and maintaining it as well.

I have been using atop=2.4.0-3 while using Ubuntu-20.04 and recently upgraded to Ubuntu-22.04 and using atop=2.7.1-1 now. I observed that with the upgraded atop, I cannot open older atop logs and have been hitting the following error:

 ubuntu@ip:~$ atop -r 20240708
raw file /var/log/atop/atop_20240708 has incompatible format
(created by version 2.4 - current version 2.7)
trying to activate /usr/bin/atop-2.4....
activation of /usr/bin/atop-2.4 failed!

Is there a workaround that I can use without depending on the older version?

Your package should have converted the log file on installation. Either use atopconvert or (easier) delete the log, if you don't care about the data collected on July 8.

Will try atopconvert as I need the logs. Thanks

Correct, atopconvert can be used to convert older logs.