Kapacitor won't start, gives "object already exists" error

I kept looking at this and figured it out, wanted to post my fix in hopes it helps someone else sometime.

In looking around the file system more, I found the /var/lib/kapacitor/tasks/tasks.db file. I thought this might be related to the task_store referenced in my log file excerpt. The file was also dated a couple weeks ago. Although only having guesses as to what tasks.db file is for, I took a chance and backed it up and then cleared it out. And that allowed kapacitor to start up again:

cp tasks.db tasks.db-bak; cp /dev/null tasks.db
systemctl status kapacitor.service 

For me, everything seems to be running fine. If there were saved tasks that needed processing in tasks.db, I didn’t worry about it as I don’t think I need them for my set up.

But was is the tasks.db file for? Can it be safely cleared out like that?

Thanks,
-Bob

1 Like