# Bandwidthdb error: file is not a database

**URL:** <https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093>\
**Category:** troubleshooting\
**Tags:** database\
**Created:** [December 9, 2019, 4:43pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093 "2019-12-09T16:43:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuprov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kuprov/32/68_2.png) [@kuprov](https://forum.storj.io/u/kuprov)\
**Post date:** [December 9, 2019, 4:43pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/1 "2019-12-09T16:43:48Z")

</div>

![image](https://storj-s3.bcdn.literatehosting.net/original/1X/a15afe25e01fc6756d343cb580fdfdaed3f730ec.png)  
Anyone seen it?

---

<div class="post-metadata">

**Author:** ![Dylan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dylan/32/150_2.png) [@Dylan](https://forum.storj.io/u/Dylan)\
**Post date:** [December 9, 2019, 5:30pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/2 "2019-12-09T17:30:14Z")

</div>

It looks like your bandwidth db is either missing or corrupted

---

<div class="post-metadata">

**Author:** ![kuprov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kuprov/32/68_2.png) [@kuprov](https://forum.storj.io/u/kuprov)\
**Post date:** [December 9, 2019, 5:37pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/3 "2019-12-09T17:37:15Z")

</div>

is it critical? should I worry about it? I haven’t really done anything with my system except for ‘apt update/upgrade’ from time to time?  
How would I go about fixing it?

(mostly I’m concerned because I just crested a TB of storage data and would hate to mess it up somehow)

---

<div class="post-metadata">

**Author:** ![jocelyn](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/jocelyn/32/31_2.png) [@jocelyn](https://forum.storj.io/u/jocelyn)\
**Post date:** [December 9, 2019, 6:19pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/4 "2019-12-09T18:19:16Z")

</div>

HIi @kuprov try checking this thread [Unrecoverable error :: error creating tables for master database](https://forum.storj.io/t/unrecoverable-error-error-creating-tables-for-master-database/1797/8)

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [December 9, 2019, 6:19pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/5 "2019-12-09T18:19:33Z")

</div>

to repaired a malformed database, please see [https://support.storj.io/hc/en-us/articles/360029309111-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-)

---

<div class="post-metadata">

**Author:** ![kuprov](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/kuprov/32/68_2.png) [@kuprov](https://forum.storj.io/u/kuprov)\
**Post date:** [December 9, 2019, 6:23pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/6 "2019-12-09T18:23:25Z")

</div>

Alright, thank you. I’ll look into it tonight. All audits are still passing so there’s no performance problem as of now, it seems.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [December 9, 2019, 8:51pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/7 "2019-12-09T20:51:42Z")

</div>

Unfortunately the only fix of such error is replacing the destroyed database with an empty one. As a consequence - you will lose the statistics for your bandwidth usage.

Here is an empty database: [https://alpha.transfer.sh/FQKvJ/bandwidth.db](https://alpha.transfer.sh/FQKvJ/bandwidth.db)

---

<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:** [December 11, 2019, 11:39pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/8 "2019-12-11T23:39:09Z")

</div>

Alexy, I got the same problem with the orders.db file.

2019-12-11T23:36:46.400Z ERROR orders archiving orders {“error”: “ordersdb error: database disk image is malformed”, “errorVerbose”: “ordersdb error: database disk image is malformed\n\[tstorj.io/storj/storagenode/storagenodedb.(\*ordersDB](http://tstorj.io/storj/storagenode/storagenodedb.(*ordersDB)).archiveOne:238\n\[tstorj.io/storj/storagenode/storagenodedb.(\*ordersDB](http://tstorj.io/storj/storagenode/storagenodedb.(*ordersDB)).Archive:202\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).handleBatches.func2:213\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).handleBatches:230\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders.func1:164\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [December 12, 2019, 12:00am UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/9 "2019-12-12T00:00:37Z")

</div>

to repaired a malformed database, please see [https://support.storj.io/hc/en-us/articles/360029309111-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-)

---

<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:** [December 11, 2019, 10:54pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/10 "2019-12-11T22:54:29Z")

</div>

Bad news for me. Got the following message after watchtower upgraded to 27.1:

2019-12-11T22:53:17.575Z FATAL Unrecoverable error {“error”: “bandwidthdb error: file is not a database”, “errorVerbose”: “bandwidthdb error: file is not a database\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).getSummary:153\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).Summary:111\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).MonthSummary:73\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).usedBandwidth:174\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).Run:83\n\[tstorj.io/storj/storagenode.(\*Peer](http://tstorj.io/storj/storagenode.(*Peer)).Run.func2:433\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}

---

<div class="post-metadata">

**Author:** ![Dylan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dylan/32/150_2.png) [@Dylan](https://forum.storj.io/u/Dylan)\
**Post date:** [December 11, 2019, 11:00pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/11 "2019-12-11T23:00:35Z")

</div>

@mitchellds another user also had a similar problem ☹

Alexey uploaded an empty bandwidth.db to get you back up and running:

> [@Bandwidthdb error: file is not a database](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/7):
>
> Unfortunately the only fix of such error is replacing the destroyed database with an empty one. As a consequence - you will lose the statistics for your bandwidth usage. Here is an empty database: [https://alpha.transfer.sh/FQKvJ/bandwidth.db](https://alpha.transfer.sh/FQKvJ/bandwidth.db)

---

<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:** [December 11, 2019, 11:09pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/12 "2019-12-11T23:09:09Z")

</div>

Yea, that didn’t work. So here is my new, very brief, error log:

2019-12-11T23:08:28.932Z ERROR bandwidth Could not rollup bandwidth usage {“error”: “bandwidthdb error: file is not a database”, “errorVerbose”: “bandwidthdb error: file is not a database\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).Rollup:300\n\[tstorj.io/storj/storagenode/bandwidth.(\*Service](http://tstorj.io/storj/storagenode/bandwidth.(*Service)).Rollup:53\n\[tstorj.io/storj/private/sync2.(\*Cycle](http://tstorj.io/storj/private/sync2.(*Cycle)).Run:87\n\[tstorj.io/storj/storagenode/bandwidth.(\*Service](http://tstorj.io/storj/storagenode/bandwidth.(*Service)).Run:45\n\[tstorj.io/storj/storagenode.(\*Peer](http://tstorj.io/storj/storagenode.(*Peer)).Run.func9:454\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:28.933Z ERROR version Failed to do periodic version check: version control client error: Get [https://version.storj.io](https://version.storj.io): context canceled  
2019-12-11T23:08:28.939Z ERROR piecestore:cacheUpdate error getting current space used calculation: {“error”: “context canceled”}  
2019-12-11T23:08:28.940Z ERROR piecestore:cacheUpdate error persisting cache totals to the database: {“error”: “piece space used error: context canceled”, “errorVerbose”: “piece space used error: context canceled\n\[tstorj.io/storj/storagenode/storagenodedb.(\*pieceSpaceUsedDB](http://tstorj.io/storj/storagenode/storagenodedb.(*pieceSpaceUsedDB)).UpdateTotal:115\n\[tstorj.io/storj/storagenode/pieces.(\*CacheService](http://tstorj.io/storj/storagenode/pieces.(*CacheService)).PersistCacheTotals:82\n\[tstorj.io/storj/storagenode/pieces.(\*CacheService](http://tstorj.io/storj/storagenode/pieces.(*CacheService)).Run.func1:68\n\[tstorj.io/storj/private/sync2.(\*Cycle](http://tstorj.io/storj/private/sync2.(*Cycle)).Run:87\n\[tstorj.io/storj/storagenode/pieces.(\*CacheService](http://tstorj.io/storj/storagenode/pieces.(*CacheService)).Run:63\n\[tstorj.io/storj/storagenode.(\*Peer](http://tstorj.io/storj/storagenode.(*Peer)).Run.func6:445\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:29.001Z WARN orders DB contains invalid marshalled orders {“error”: “ordersdb error: database disk image is malformed”, “errorVerbose”: “ordersdb error: database disk image is malformed\n\[tstorj.io/storj/storagenode/storagenodedb.(\*ordersDB](http://tstorj.io/storj/storagenode/storagenodedb.(*ordersDB)).ListUnsentBySatellite:169\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders:152\n\[tstorj.io/storj/private/sync2.(\*Cycle](http://tstorj.io/storj/private/sync2.(*Cycle)).Run:87\n\[tstorj.io/storj/private/sync2.(\*Cycle](http://tstorj.io/storj/private/sync2.(*Cycle)).Start.func1:68\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:29.001Z INFO orders.118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW sending {“count”: 387}  
2019-12-11T23:08:29.001Z INFO orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S sending {“count”: 411}  
2019-12-11T23:08:29.002Z INFO orders.118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW finished  
2019-12-11T23:08:29.002Z ERROR orders.118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW failed to settle orders {“error”: “order: unable to connect to the satellite: rpccompat: context canceled”, “errorVerbose”: “order: unable to connect to the satellite: rpccompat: context canceled\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).settle:256\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).Settle:195\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders.func2:174\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:29.002Z INFO orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6 sending {“count”: 481}  
2019-12-11T23:08:29.002Z INFO orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs sending {“count”: 349}  
2019-12-11T23:08:29.002Z INFO orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S finished  
2019-12-11T23:08:29.003Z INFO orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6 finished  
2019-12-11T23:08:29.003Z ERROR orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6 failed to settle orders {“error”: “order: unable to connect to the satellite: rpccompat: context canceled”, “errorVerbose”: “order: unable to connect to the satellite: rpccompat: context canceled\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).settle:256\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).Settle:195\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders.func2:174\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:29.003Z ERROR orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S failed to settle orders {“error”: “order: unable to connect to the satellite: rpccompat: context canceled”, “errorVerbose”: “order: unable to connect to the satellite: rpccompat: context canceled\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).settle:256\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).Settle:195\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders.func2:174\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:29.003Z INFO orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs finished  
2019-12-11T23:08:29.003Z ERROR orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs failed to settle orders {“error”: “order: unable to connect to the satellite: rpccompat: context canceled”, “errorVerbose”: “order: unable to connect to the satellite: rpccompat: context canceled\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).settle:256\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).Settle:195\n\[tstorj.io/storj/storagenode/orders.(\*Service](http://tstorj.io/storj/storagenode/orders.(*Service)).sendOrders.func2:174\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}  
2019-12-11T23:08:30.982Z DEBUG orders cleanup finished {“items deleted”: 0}  
2019-12-11T23:08:31.045Z FATAL Unrecoverable error {“error”: “bandwidthdb error: file is not a database”, “errorVerbose”: “bandwidthdb error: file is not a database\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).getSummary:153\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).Summary:111\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).MonthSummary:73\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).usedBandwidth:174\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).Run:83\n\[tstorj.io/storj/storagenode.(\*Peer](http://tstorj.io/storj/storagenode.(*Peer)).Run.func2:433\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}

---

<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:** [December 11, 2019, 11:10pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/13 "2019-12-11T23:10:17Z")

</div>

…and I was on a VERY GOOD ROLL before the update. Everything was working perfectly. This is a big bummer.

---

<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:** [December 11, 2019, 11:12pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/14 "2019-12-11T23:12:49Z")

</div>

The file that Alexy posted…and I subsequently used… returned this error:

2019-12-11T23:11:14.757Z FATAL Unrecoverable error {“error”: “bandwidthdb error: file is not a database”, “errorVerbose”: “bandwidthdb error: file is not a database\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).getSummary:153\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).Summary:111\n\[tstorj.io/storj/storagenode/storagenodedb.(\*bandwidthDB](http://tstorj.io/storj/storagenode/storagenodedb.(*bandwidthDB)).MonthSummary:73\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).usedBandwidth:174\n\[tstorj.io/storj/storagenode/monitor.(\*Service](http://tstorj.io/storj/storagenode/monitor.(*Service)).Run:83\n\[tstorj.io/storj/storagenode.(\*Peer](http://tstorj.io/storj/storagenode.(*Peer)).Run.func2:433\n\[tgolang.org/x/sync/errgroup.(\*Group](http://tgolang.org/x/sync/errgroup.(*Group)).Go.func1:57”}

---

<div class="post-metadata">

**Author:** ![Dylan](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/dylan/32/150_2.png) [@Dylan](https://forum.storj.io/u/Dylan)\
**Post date:** [December 12, 2019, 1:57am UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/15 "2019-12-12T01:57:33Z")

</div>

Another thing to maybe try -

Stopping the container `docker stop storagenode -t 300`  
Removing the container `docker rm storagenode`  
Then rebooting the system `sudo reboot`

Worth a shot.

---

<div class="post-metadata">

**Author:** ![Screechingcrow](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/screechingcrow/32/67_2.png) [@Screechingcrow](https://forum.storj.io/u/Screechingcrow)\
**Post date:** [January 6, 2020, 3:33pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/16 "2020-01-06T15:33:45Z")

</div>

Hey Alexey, I also now get this error. However, my node is still passing audits. The only thing I did was change `--name storagenode storjlabs/storagenode:alpha` to `--name storagenode storjlabs/storagenode:beta` and I reduced my storage from 10 TB to 3.5 TB, when my node was at 3.1 TB. Did this cause the error?

---

<div class="post-metadata">

**Author:** ![Screechingcrow](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/screechingcrow/32/67_2.png) [@Screechingcrow](https://forum.storj.io/u/Screechingcrow)\
**Post date:** [January 6, 2020, 4:06pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/17 "2020-01-06T16:06:55Z")

</div>

I’m following [https://support.storj.io/hc/en-us/articles/360029309111-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-) because indeed my database is malformed, somehow. Do I follow this procedure for every .db file in the folder? ![Malformed](https://lc-storj.ams3.digitaloceanspaces.com/original/2X/7/77d493b45bfcd2fa173dca96248d19f6ea93810f.png)

E.g., info.db, satellites.db ect?

---

<div class="post-metadata">

**Author:** ![heunland](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/heunland/32/6076_2.png) [@heunland](https://forum.storj.io/u/heunland)\
**Post date:** [January 6, 2020, 4:49pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/18 "2020-01-06T16:49:19Z")

</div>

Yes you should check all your databases.

---

<div class="post-metadata">

**Author:** ![Screechingcrow](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/screechingcrow/32/67_2.png) [@Screechingcrow](https://forum.storj.io/u/Screechingcrow)\
**Post date:** [January 6, 2020, 6:36pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/19 "2020-01-06T18:36:39Z")

</div>

Thanks… I did. It seams that bandwidth.db fails on the last 10 kb or something. I check again with docker run --rm -it --mount type=bind,source=x:\storagenode\storage\bandwidth.db,destination=/bandwidth.db sstc/sqlite3 sqlite3 /bandwidth.db “PRAGMA integrity\_check;” and it still says malformed. I will start my node again with the backup i made of bandwidth.db since maybe the network can restore it (no clue). All i know is that the backup i made on another drive is completely intact (from yesterday actually). Very strange.

---

<div class="post-metadata">

**Author:** ![BrightSilence](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/brightsilence/32/6048_2.png) [@BrightSilence](https://forum.storj.io/u/BrightSilence)\
**Post date:** [January 6, 2020, 10:41pm UTC](https://forum.storj.io/t/bandwidthdb-error-file-is-not-a-database/3093/20 "2020-01-06T22:41:48Z")

</div>

The data in this db won’t be restored, but I’m pretty sure it’s non essential. It is however used to calculate values on the dashboards both web and cli. So keep in mind that numbers displayed there may be wrong. In addition to that community tools like the earnings calculator and anything that uses the dashboard API will likely show bad data as well. New data from this point on should be correct again though if you use an old db file.

This doesn’t necessarily go for all db’s but it think with this one you’re fine with an old backup.

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