Cncli not updating db

Hello -

I have the newest CNCLI version installed (5.1.1) but noticed that it’s fallen behind on db syncing. When I try to run ./cncli.sh sync, I receive the following error:

Checking for script updates…
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: SqliteFailure(Error { code: DatabaseBusy, extended_code: 5 }, Some(“database is locked”))’, src/nodeclient/sync.rs:321:65
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Anyone have any ideas on what’s going on? I’ve rebooted the server.

Maybe try increasing available swap space?

CHG

Thanks for the suggestion, but I don’t think thats it… I have tons of memory - swap file isn’t even being used yet…

          total        used        free      shared  buff/cache   available

Mem: 30818576 8173840 15109708 664 7535028 22262004
Swap: 2097148 0 2097148

Deleting and rebuild the cncli database again should be a simple solution. Don’t worry it does not take as long as rebuilding the node database. The files you should delete are cncli.db, cncli.db-wal, cncli.db-shm in your database directory.

2 Likes

Thank you! Just did it and at least it appears to be syncing again so thats a good sign. Appreciate it!