ERROR nodestats:cache Get disk space usage query failed {"error": "database is locked

I’m also getting error like 2019-08-28T17:59:22.124+0300 ERROR nodestats:cache Get disk space usage query failed {"error": "database is locked; database is locked; database is locked; database is locked", "errorVerbose": "group:\n--- database is locked\n--- database is locked\n--- database is locked\n--- database is locked"} after update to v0.19.0

I think your database is locked! :joy:

1 Like

I have noticed that this can happen when your node is starting up and reading/writing to info.db which creates high disk IO. This high disk IO can create the database lock since the previous process has not done and something else wants to access the disk.

This is just my personal observation on my nodes when this error comes up, the actual cause might be something else. You can check disk IO with the iotop command

Hello @maxbanton,
Welcome to the forum!

How is your storage connected?

A post was merged into an existing topic: Pq: duplicate key value violates unique constraint “used_serials_pkey” (after upgrade to v0.19.0)