question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot start 4.5.0 - DbLocked

See original GitHub issue

EDIT: Here is the workaround for people finding this on Google:

As a workaround, you can do the following (every time you start Daedalus):

Open the file %appdata%\Daedalus Mainnet\config.json in an editor. (Maybe create a backup first.) Find the line that contains mainnet-PREVIOUS-CARDANO-PID and delete it. If this was the last line in the file before the final }, delete the comma at the end of the previous line as well. Then start Daedalus and it will work one time.


I got an update from 4.4.1 to 4.5.0 today.

After the update, I can no longer start Daedalus. It goes in a cycle of “Connecting to network”, “Stopping cardano node”, “Cardano node crashed”.

node.log shows that it keeps crashing with the DbLocked error:

DbLocked "C:\\Users\\david\\AppData\\Roaming\\Daedalus Mainnet\\chain\\lock"

cardano-node: The db is used by another process. File "C:\Users\david\AppData\Roaming\Daedalus Mainnet\chain\lock" is locked

At this point, there are always two instances of cardano-node.exe running - one using 4 GB of RAM, and one that runs, crashed, gets restarted, etc.

I already tried several times to close Daedalus, make sure no cardano-node.exe process runs, deleted the lockfile is existing, etc. - but again, when I start Daedalus, it starts again two instances, with the second one obviously failing.

image

What can I do to fix this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:22 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
danielmaincommented, Nov 19, 2021

Hi @CherryDT thank you so much for the PR.

It is a long story, originally another problem related to how do we start cardano-node implemented here caused this race condition. Your code definitely solves one side of the puzzle, that is why we will provide a complete fix very soon!

Thank you for your time and your suggestions!

1reaction
CherryDTcommented, Nov 19, 2021

On that note, I looked at the log files now because if you hadn’t said now that you received it, I would have removed anything problematic and then posted here, but I discovered that there is problematic information in wallet-migration-report.json. It showed names of wallets. In this case only one old one which has my public nickname as name, but still. (I have another Daedalus installation elsewhere where this would have been a problem.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting 'This application could not be started'
Learn what to do if you see a 'This application could not be started' dialog box.
Read more >
1927857 – Elasticsearch Cluster is failing to start after ...
Description of problem: Elasticsearch Cluster is failing to start after updating elasticsearch Operator to version 4.5.0-202102041049.p0 ...
Read more >
Trouble connecting after updating Jump Desktop for iOS / Mac?
Connect from places where Google is blocked: Surprisingly Google is blocked in a lot of ... Doesn't require a Google account anymore.
Read more >
Installing Docker Desktop 4.5.0 failed: Componet ...
I tried repeatedly after a fresh reboot but this problem doesnt go away. Can anyone shed some light? Component CommunityInstaller.
Read more >
Gmail SMTP errors and codes - Google Workspace Admin Help
You may see the following error messages and codes when using Gmail with Google Workspace . The messages and codes are helpful tools...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found