# Orders Database - File is Not in Database Error

**URL:** <https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829>\
**Category:** troubleshooting\
**Tags:** docker\
**Created:** [February 22, 2020, 9:58pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829 "2020-02-22T21:58:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 22, 2020, 9:58pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/1 "2020-02-22T21:58:06Z")

</div>

Got this weird error this morning. Perhaps someone can offer some assistance:

ERROR piecestore failed to add order {“error”: “ordersdb error: file is not a database”,

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 22, 2020, 10:32pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/2 "2020-02-22T22:32:37Z")

</div>

Just to make things more interesting, now I’ve got another error:

Error creating tables for master database on storagenode: migrate: no such table: main.order\_archive

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 22, 2020, 10:40pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/3 "2020-02-22T22:40:22Z")

</div>

And just a bit more:

2020-02-22T22:37:23.249Z DEBUG Unrecoverable error {“error”: “Error during preflight check for storagenode databases: storage node preflight database error: file is not a database\n\[tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35\n\tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53\n\tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35%5Cn%5Ctstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53%5Cn%5Ctstorj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:283\n\tmain.cmdRun:198\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”, “errorVerbose”: “Error during preflight check for storagenode databases: storage node preflight database error: file is not a database\n\[tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35\n\tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53\n\tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35%5Cn%5Ctstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53%5Cn%5Ctstorj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:283\n\tmain.cmdRun:198\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203\n\tmain.cmdRun:200\n\tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203%5Cn%5Ctmain.cmdRun:200%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”}  
Error: Error during preflight check for storagenode databases: storage node preflight database error: file is not a database  
[storj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35](http://storj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35)  
[storj.io/storj/private/dbutil/sqliteutil.QuerySchema:53](http://storj.io/storj/private/dbutil/sqliteutil.QuerySchema:53)  
[storj.io/storj/storagenode/storagenodedb.(\*DB](http://storj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:283  
main.cmdRun:198  
[storj.io/storj/pkg/process.cleanup.func1.2:307](http://storj.io/storj/pkg/process.cleanup.func1.2:307)  
[storj.io/storj/pkg/process.cleanup.func1:325](http://storj.io/storj/pkg/process.cleanup.func1:325)  
[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).execute:826  
[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).ExecuteC:914  
[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).Execute:864  
[storj.io/storj/pkg/process.ExecWithCustomConfig:84](http://storj.io/storj/pkg/process.ExecWithCustomConfig:84)  
[storj.io/storj/pkg/process.ExecCustomDebug:66](http://storj.io/storj/pkg/process.ExecCustomDebug:66)  
main.main:328  
runtime.main:203

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 23, 2020, 2:26am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/4 "2020-02-23T02:26:15Z")

</div>

This is the second time you got this issue. Could you figure out what caused it this time ?

> [@Bandwidthdb error: file is not a database](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093):
>
> Anyone seen it?

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 11:14am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/5 "2020-02-23T11:14:02Z")

</div>

I have absolutely no idea why my node is experiencing this problem. I made zero configuration changes and have not lost power or internet connectivity.

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 23, 2020, 11:16am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/6 "2020-02-23T11:16:38Z")

</div>

Then it must be hardware issue. What’s the make of your HDD ? How old is your HDD?

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 11:30am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/7 "2020-02-23T11:30:21Z")

</div>

My 8TB hard drive is less than one year old. I am not having any other troubles with it. I can view all of the files on the hard drive with no problem.

Let me try a complete system reboot and see if that does the trick.

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 11:35am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/8 "2020-02-23T11:35:52Z")

</div>

Yea, that didn’t work either. Seems like the storagenode is in an endless cycle of trying to restart itself. Seems like one of the database files is not being recognized as a “database file” for some reason…but the error message doesn’t say which one.

DEBUG Unrecoverable error {“error”: “Error during preflight check for storagenode databases: storage node preflight database error: file is not a database\n\[tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35\n\tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53\n\tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35%5Cn%5Ctstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53%5Cn%5Ctstorj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:283\n\tmain.cmdRun:198\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”, “errorVerbose”: “Error during preflight check for storagenode databases: storage node preflight database error: file is not a database\n\[tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35\n\tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53\n\tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/private/dbutil/sqliteutil.QuerySchema.func1:35%5Cn%5Ctstorj.io/storj/private/dbutil/sqliteutil.QuerySchema:53%5Cn%5Ctstorj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:283\n\tmain.cmdRun:198\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203\n\tmain.cmdRun:200\n\tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203%5Cn%5Ctmain.cmdRun:200%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”}  
Error: Error during preflight check for storagenode databases: storage node preflight database error: file is not a database

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 11:36am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/9 "2020-02-23T11:36:53Z")

</div>

PS C:\Windows\system32\> docker exec -it storagenode /app/dashboard.sh  
Error response from daemon: Container 2f13e0c45725d206ad335285a78490c4fe35bb1058de84e283df0d7d199fbc6b is restarting, wait until the container is running

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 11:42am UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/10 "2020-02-23T11:42:54Z")

</div>

This is terribly disappointing. I’m 80% close to quitting STORJ all together. Seems like there is a database malfunction every month or so. I can’t even do a graceful exit to recover my escrowed funding. …and I’ve been on board for 8 or 9 months now.

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 12:26pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/11 "2020-02-23T12:26:11Z")

</div>

One last try before I completely give up:

DEBUG Unrecoverable error {“error”: “Error creating tables for master database on storagenode: migrate: no such table: main.order\_archive\_\n\[tstorj.io/storj/private/dbutil/txutil.WithTx:44\n\tstorj.io/storj/private/migrate.(\*Migration](http://tstorj.io/storj/private/dbutil/txutil.WithTx:44%5Cn%5Ctstorj.io/storj/private/migrate.(*Migration)).Run:170\n\[tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/storagenode/storagenodedb.(*DB)).CreateTables:275\n\tmain.cmdRun:188\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”, “errorVerbose”: “Error creating tables for master database on storagenode: migrate: no such table: main.order\_archive\_\n\[tstorj.io/storj/private/dbutil/txutil.WithTx:44\n\tstorj.io/storj/private/migrate.(\*Migration](http://tstorj.io/storj/private/dbutil/txutil.WithTx:44%5Cn%5Ctstorj.io/storj/private/migrate.(*Migration)).Run:170\n\[tstorj.io/storj/storagenode/storagenodedb.(\*DB](http://tstorj.io/storj/storagenode/storagenodedb.(*DB)).CreateTables:275\n\tmain.cmdRun:188\n\[tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203\n\tmain.cmdRun:190\n\tstorj.io/storj/pkg/process.cleanup.func1.2:307\n\tstorj.io/storj/pkg/process.cleanup.func1:325\n\tgithub.com/spf13/cobra.(\*Command](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203%5Cn%5Ctmain.cmdRun:190%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1.2:307%5Cn%5Ctstorj.io/storj/pkg/process.cleanup.func1:325%5Cn%5Ctgithub.com/spf13/cobra.(*Command)).execute:826\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).ExecuteC:914\n\[tgithub.com/spf13/cobra.(\*Command](http://tgithub.com/spf13/cobra.(*Command)).Execute:864\n\[tstorj.io/storj/pkg/process.ExecWithCustomConfig:84\n\tstorj.io/storj/pkg/process.ExecCustomDebug:66\n\tmain.main:328\n\truntime.main:203](http://tstorj.io/storj/pkg/process.ExecWithCustomConfig:84%5Cn%5Ctstorj.io/storj/pkg/process.ExecCustomDebug:66%5Cn%5Ctmain.main:328%5Cn%5Ctruntime.main:203)”}

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 23, 2020, 1:13pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/12 "2020-02-23T13:13:11Z")

</div>

How is your HDD connected ?

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 1:28pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/13 "2020-02-23T13:28:11Z")

</div>

First, thanks for helping out. I appreciate it.

My hard drive is connected directly to the motherboard via eSATA.

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [February 23, 2020, 2:23pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/14 "2020-02-23T14:23:00Z")

</div>

> [@mitchellds](#):
>
> First, thanks for helping out.

I am simply paying it forward.

Have you tried the steps from your earlier topic ?

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 2:48pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/15 "2020-02-23T14:48:11Z")

</div>

So, I followed the instructions at

> **[How to fix a "database disk image is malformed"](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-)**
>
> Problem
> Sometimes Storage node Operator can see the error in the log "database disk image is malformed". This is happened during unplanned shutdown or reboot. Any of the sqlite3 databases...

and I ran an integrity check on EVERY SINGLE DATABASE FILE.

Found that the orders.db file was a complete mess.

I’m continuing with the instructions and right now, the system is RE-building the orders.db file for me. It’s gonna take forever. Hopefully, this might make things right.

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 2:51pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/16 "2020-02-23T14:51:55Z")

</div>

One interesting find was that I got the following response when I ran the integrity check.

used\_serial.db is not a database

That’s a weird one. Any idea on that one?

---

<div class="post-metadata">

**Author:** ![deathlessdd](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/deathlessdd/32/6067_2.png) [@deathlessdd](https://forum.storj.io/u/deathlessdd)\
**Post date:** [February 23, 2020, 3:02pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/17 "2020-02-23T15:02:20Z")

</div>

Did you happen to check to see if the hard drive had any bad sectors?

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 3:12pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/18 "2020-02-23T15:12:32Z")

</div>

@deathlessdd I did. The check found no errors.

However, this one still concerns me:  
docker run --rm -it --mount type=bind,source=d:\data\storage\used\_serial.db,destination=/used\_serial.db sstc/sqlite3 sqlite3 /used\_serial.db “PRAGMA integrity\_check;”  
Error: file is not a database

---

<div class="post-metadata">

**Author:** ![mitchellds](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mitchellds/32/62_2.png) [@mitchellds](https://forum.storj.io/u/mitchellds)\
**Post date:** [February 23, 2020, 3:13pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/19 "2020-02-23T15:13:07Z")

</div>

I am thinking that this may have been the original source of the whole problem.

---

<div class="post-metadata">

**Author:** ![deathlessdd](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/deathlessdd/32/6067_2.png) [@deathlessdd](https://forum.storj.io/u/deathlessdd)\
**Post date:** [February 23, 2020, 5:01pm UTC](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829/20 "2020-02-23T17:01:22Z")

</div>

Hold on your using docker still on windows? I feel like if you had the same issue twice with docker, You should probably move to the GUI in windows instead since docker is very unstable in windows.

[Next page](https://forum.storj.io/t/orders-database-file-is-not-in-database-error/4829.md?page=2)
