Granola-Team / mina-indexer

The Mina Indexer is a re-imagined version of the software collectively called the "Mina archive node."
Apache License 2.0
19 stars 10 forks source link

Problem: database lock file busy and so can't start mina-indexer #908

Closed trevorbernard closed 5 months ago

trevorbernard commented 5 months ago
2024-05-17T00:14:59.872165+00:00 - INFO Parsing ledger file at /home/bk/builds/bk1-1/granola/mina-indexer/data/genesis_ledgers/mainnet.json
2024-05-17T00:14:59.878069+00:00 - INFO Genesis ledger parsed successfully
Error: IO error: While lock file: /mnt/mina-log-storage/7865e798-database/LOCK: Resource temporarily unavailable

A more useful message will be along the lines of: "Another Mina Indexer is primary on the database. Closing"

robinbb commented 5 months ago

Could this occur because the prior mina-indexer instance was not shut down properly, @trevorbernard ?

jhult commented 5 months ago

Possibly related #767

Isaac-DeFrain commented 5 months ago

Will try using cancel_all_backgraound_work(true) on shutdown