database disk image is malformed
See original GitHub issueWhen launching multiple instances of optuna study optimize
~in rapid succession (but by hand)~, I get the following error:
[W 2019-12-26 08:12:45,772] Setting status of trial#13 as TrialState.FAIL because of the following error: DatabaseError('(sqlite3.DatabaseError) database disk image is malformed')
Expected behavior
No error.
Environment
- Optuna version: 0.19.0
- Python version: Python 3.7.4
- OS: CentOS Linux release 7.5.1804 (Core)
Error messages, stack traces, or logs
Steps to reproduce
Launch multiple instances of optuna study optimize
~in rapid succession~.
Additional context (optional)
I’m launching the tasks over LSF on a cluster with a shared file system.
EDIT: the tasks keep failing (even after executing some trials) so it probably isn’t related to launching them in rapid succession.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Fix SQLite Database Disk Image is Malformed
Ways to Fix the SQLite Disk Damage is Malformed Error · Open DB browser for SQLite on your system where you're facing the...
Read more >How to fix a "database disk image is malformed" - Storj
Sometimes a Storage Node Operator may encounter the "database disk image is malformed" error in their log. This could happen during ...
Read more >file - SQLite3 database or disk is full / the ... - Stack Overflow
I'm having a problem where queries are failing due to a "database or disk is full" and then sometimes "database disk image is...
Read more >SQLite Database Disk Image Is Malformed: Fix It Successfully
Method to Rectify SQLite Database Disk Image is Malformed · Firstly, open the database Browser for SQLite · In the next step, run...
Read more >How to Fix “Database Disk Image is Malformed” Error
You may see the "database disk image is malformed" error in TekRADIUS log. This could happen during unplanned shutdown or reboot.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for trying your best for this problem.
As you mention, it’s sometimes hard to deploy a server-based RDB on the user’s environment. So, if there’s any workaround to enable distributed optimization on SQLite & NFS, that’s should be documented.
So, according to the sqlalchemy documentation, I was doing it wrong.
I think the correct way to use VFS is the following:
--storage 'sqlite:///file:trials.db?vfs=unix-dotfile&uri=true'
Now I can sometimes see a
trials.db.lock
file appearing, so I don’t know if it is using unix-dotfile. I’m pretty sure thetrials.db.lock
file doesn’t appear without the vfs option, but at the same time it doesn’t look like a dotfile.However, I still have various DB errors, but I think they appear even more frequently with
vfs=unix-dotfile
.