peps1 / airdcpp-auto-downloader

AirDC++ extension that performs searches in intervals and starts downloads when results are found
4 stars 1 forks source link

Manage tab is missing / Failed to load StormDB database file - invalid or corrupted format #16

Open Nicolairu opened 3 years ago

Nicolairu commented 3 years ago

There is only uinstall now in beta 12?

peps1 commented 3 years ago

That happens when the db where the search history is tracked gets corrupted and can’t be loaded on startup. There should be an error message logged though.

The database is plain json format, so you can open it an editor like notepad++. In there is a syntax error somewhere, that prevents it from loading, if you find and fix it you can restart the extension.

If you only have a few searches in auto-downloader you can also just delete the db.

Don’t uninstall the extension, as that will remove all your settings from the extension.

The db is located in your airdc folder, usually /home/username/.airdc++ or under Documents if you’re on Windows, and then in extensions/airdcpp-auto-downloader/settings/db.json

Nicolairu commented 3 years ago

Hey

Thanks for the feed feedback. The error log said this. But cant find stormDB?

[10/15/2021 10:03:07 PM:695] ERROR: SyntaxError: Failed to load StormDB database file - invalid or corrupted format. (node:2343) UnhandledPromiseRejectionWarning: SyntaxError: Failed to load StormDB database file - invalid or corrupted format. at e.exports.parse [as deserialize] () at e.exports.read (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/node_modules/stormdb/src/engine/local.js:27:23) at e.exports.init (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/node_modules/stormdb/src/engine/local.js:18:19) at new e.exports (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/node_modules/stormdb/src/stormdb.js:5:30) at getDb (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/src/localdb.ts:10:19) at onStart (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/src/main.ts:25:22) at Timeout._onTimeout (/.airdcpp/extensions/airdcpp-auto-downloader/package/dist/webpack:/airdcpp-auto-downloader/node_modules/airdcpp-extension/dist-es/ManagedExtension.js:24:33) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:500:7) (Use node --trace-warnings ... to show where the warning was created) (node:2343) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:2343) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Med venlig hilsen Nicolai Rundqvist - 25744162

Den 16. okt. 2021 kl. 00.58 skrev peps1 @.***>:

That happens when the db where the search history is tracked gets corrupted and can’t be loaded on startup. There should be an error message logged though.

The database is plain json format, so you can open it an editor like notepad++. In there is a syntax error somewhere, that prevents it from loading, if you find and fix it you can restart the extension.

If you only have a few searches in auto-downloader you can also just delete the db.

Don’t uninstall the extension, as that will remove all your settings from the extension.

The db is located in your airdc folder, usually /home/username/.airdc++ or under Documents if you’re on Windows, and then in extensions/airdcpp-auto-downloader/settings/db.json

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/peps1/airdcpp-auto-downloader/issues/16#issuecomment-944794218, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUKJTQZKIO2ZOSEKWJADTDUHCWZHANCNFSM5GCVLZ2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

peps1 commented 3 years ago

invalid or corrupted format So yeah, you can try to fix the db.json file yourself, but it only keeps track of what was searched when, to make sure items don't get searched multiple times while others are never searched. If you just delete the file, the extension will create a new empty one on next start.