Pakon.db filling up tmp

pakon

#21

Hello,
that’s almost correct, but you need to stop pakon-monitor first (it copies it’s database to /srv/pakon when the service is stopping).
So:

/etc/init.d/pakon-monitor stop
rm /srv/pakon/*
/etc/init.d/pakon-monitor start

should do the work. Just remember that it deletes the whole history.


#22

In the 3.11 release, the archivation process was reworked quite heavily, hopefully solving this problem. When the “database is locked” error happened before, old flows remained in /var/lib/pakon.db, possibly for many days, which could lead to filling up the whole tmpfs. That hopefully shouldn’t happen anymore.

Also, as a safety measure, we added a hard limit of the /var/lib/pakon.db database. When the database grows too much, the oldest records are deleted. The limit is pretty high, so it should be triggered only when the database is getting really insanely big. It’s probably less than ideal, but we don’t see a better way what to do in this situation. It’s probably better to lose a part of logs than to crash the router.


#23

Thanks alot. Maybe would be nice to have a “Reset” button on https://192.168.1.1/foris/config/main/pakon/ page for resetting the history :wink: