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.

Can't Load the database

See original GitHub issue

I am getting this error -

Uncaught Exception:
NestedError: Can't save the database
    at DatabaseError.Error (native)
    at DatabaseError.NestedError (/Users/akka/dev/zulipwork/zulip/dist/Zulip-darwin-x64/Zulip.app/Contents/Resources/app.asar/node_modules/node-json-db/lib/Errors.js:7:25)
    at new DatabaseError (/Users/akka/dev/zulipwork/zulip/dist/Zulip-darwin-x64/Zulip.app/Contents/Resources/app.asar/node_modules/node-json-db/lib/Errors.js:29:33)
    at JsonDB.save (/Users/akka/dev/zulipwork/zulip/dist/Zulip-darwin-x64/Zulip.app/Contents/Resources/app.asar/node_modules/node-json-db/JsonDB.js:243:25)
    at new JsonDB (/Users/akka/dev/zulipwork/zulip/dist/Zulip-darwin-x64/Zulip.app/Contents/Resources/app.asar/node_modules/node-json-db/JsonDB.js:33:18)
    at Object.<anonymous> (/Users/akka/dev/zulipwork/zulip/dist/Zulip-darwin-x64/Zulip.app/Contents/Resources/app.asar/app/main/main.js:16:12)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)

I am using it here. It works perfectly when app is not packed.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akashnimarecommented, Aug 31, 2016

@Belphemur Thanks a lot it worked 🎉 .

0reactions
akashnimarecommented, Nov 2, 2017

I have only one instance of the db but I do reload the db file sometimes. Here is db file - https://github.com/zulip/zulip-electron/blob/master/app/renderer/js/utils/domain-util.js Let me know if you find anything suspicious which might cause this issue. I have no clues here 😭 (FYI only the domain.json file gets corrupted not others like setting.json, window-state.json)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Could not load database file mysql - php - Stack Overflow
php files in root and admin folder . But When i open the website It shows a blank page with this error ....
Read more >
DatabaseError: Can't Load Database · Issue #103 - GitHub
node-json-db expects at least an empty object { } if the file still exists. If it's an empty file the error is thrown....
Read more >
Unable to open an Access database on a server - Office
When you try to open a database that is located on a server, you may receive the following error message: Couldn't use <filename>;...
Read more >
Error: Could not load data from data source. If you can correct ...
Error: Could not load data from data source. If you can correct the problem, press the refresh button to reload data. Error Message....
Read more >
could not load database : r/signal - Reddit
Might need to uninstall/reinstall, but that will wipe data. Probably doesn't make a difference if the database won't load. Maybe reach out to ......
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 Reddit Thread

No results found

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