# Computer reboot = node does not restart (Fatal errors, DB incorrect, all fun stuff)

**URL:** <https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090>\
**Category:** troubleshooting\
**Tags:** windows\
**Created:** [August 29, 2021, 3:12pm UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090 "2021-08-29T15:12:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mickael](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mickael/32/8896_2.png) [@Mickael](https://forum.storj.io/u/Mickael)\
**Post date:** [August 29, 2021, 3:12pm UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090/1 "2021-08-29T15:12:12Z")

</div>

Hi all,

My computer is running 1 node on HDD D:\ on Windows 10. Installed using the Windows GUI, computer rebooted (thanks Windows update) and the node is now corrupted (see below).

1. After the reboot I checked if the node was running, and it was not so I ran Start-Service storagenode

2. Node was running few minutes then it stopped, so I checked the logs and it was saying that File was not a DB

3. I read the docs, installed Sqlite3 and tried to find which ones were corrupted:

Error: file is not a database  
bandwidth.db  
info.db ok  
Error: disk I/O error  
notifications.db  
Error: file is not a database  
orders.db  
Error: file is not a database  
pieceinfo.db  
Error: file is not a database  
piece\_expiration.db  
Error: file is not a database  
piece\_spaced\_used.db  
pricing.db ok  
Error: database disk image is malformed  
reputation.db \*\*\* in database main \*\*\* Page 2: btreeInitPage() returns error code 11 Page 3: btreeInitPage() returns error code 11  
Error: file is not a database  
satellites.db  
storage\_usage.db ok  
used\_serial.db ok

1. I checked this forum and saw a thread to backup files and remove them to let the node recreate the file, so I did that:

2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “info”}  
2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “bandwidth”}  
2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “orders”}  
2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “piece\_expiration”}  
2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “pieceinfo”}  
2021-08-29T21:01:42.597+0700 INFO db database does not exists {“database”: “piece\_spaced\_used”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “reputation”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “storage\_usage”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “used\_serial”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “satellites”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “notifications”}  
2021-08-29T21:01:42.598+0700 INFO db database does not exists {“database”: “heldamount”}  
2021-08-29T21:01:42.599+0700 INFO db database does not exists {“database”: “pricing”}  
2021-08-29T21:01:42.599+0700 INFO db database does not exists {“database”: “secret”}

1. Restarted the node Start-Service storagenode

2. Then new error:

2021-08-29T21:01:44.703+0700 FATAL Unrecoverable error {“error”: "Error creating tables for master database on storagenode: migrate: creating version table failed: migrate: unable to open database file: The handle is invalid…

1. Stopped the node Stop-Service storagenode

2. Ok, that’s getting difficult but back to Google, so I found this thread where @Alexey said that orders.db cannot be recreated and this file was corrupted, so I followed this and recreated manually the orders.db:

SQLite version 3.36.0 2021-06-18 18:36:39  
Enter “.help” for usage hints.  
sqlite\> CREATE TABLE unsent\_order (  
…\> satellite\_id BLOB NOT NULL,  
…\> serial\_number BLOB NOT NULL,  
…\> order\_limit\_serialized BLOB NOT NULL, – serialized pb.OrderLimit  
…\> order\_serialized BLOB NOT NULL, – serialized pb.Order  
…\> order\_limit\_expiration TIMESTAMP NOT NULL, – when is the deadline for sending it  
…\> uplink\_cert\_id INTEGER NOT NULL,  
…\> FOREIGN KEY(uplink\_cert\_id) REFERENCES certificate(cert\_id)  
…\> );  
sqlite\> CREATE TABLE order\_archive\_ (  
…\> satellite\_id BLOB NOT NULL,  
…\> serial\_number BLOB NOT NULL,  
…\> order\_limit\_serialized BLOB NOT NULL,  
…\> order\_serialized BLOB NOT NULL,  
…\> uplink\_cert\_id INTEGER NOT NULL,  
…\> status INTEGER NOT NULL,  
…\> archived\_at TIMESTAMP NOT NULL,  
…\> FOREIGN KEY(uplink\_cert\_id) REFERENCES certificate(cert\_id)  
…\> );  
sqlite\> CREATE UNIQUE INDEX idx\_orders ON unsent\_order(satellite\_id, serial\_number);  
sqlite\> CREATE TABLE versions (version int, commited\_at text);  
sqlite\> .exit

1. Then restarted the node Start-Service storagenode

2. New errors (at least it’s doing something)

2021-08-29T21:27:29.975+0700 INFO trust Scheduling next refresh {“after”: “3h2m56.24716803s”}  
2021-08-29T21:27:30.075+0700 ERROR pieces:trash emptying trash failed {“error”: “pieces error: filestore error: open D:\trash\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied.”, “errorVerbose”: “pieces error: filestore error: open D:\trash\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied…(\*blobStore).EmptyTrash:154…(\*BlobsUsageCache).EmptyTrash:310…(\*Store).EmptyTrash:367…(\*TrashChore).Run.func1:51…(\*Cycle).Run:92…(\*Cycle).Start.func1:71…(\*Group).Go.func1:57”}  
2021-08-29T21:27:30.100+0700 ERROR piecestore:cache error getting current used space: {“error”: “open D:\blobs\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied.; open D:\blobs\ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa: Access is denied.”, “errorVerbose”: “group:\n— open D:\blobs\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied.\n— open D:\blobs\ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa: Access is denied.”}  
2021-08-29T21:27:30.100+0700 ERROR services unexpected shutdown of a runner {“name”: “piecestore:cache”, “error”: “open D:\blobs\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied.; open D:\blobs\ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa: Access is denied.”, “errorVerbose”: “group:\n— open D:\blobs\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa: Access is denied.\n— open D:\blobs\ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa: Access is denied.”}

1. Stopped the node, checked Google again and found this post [Error: "open F:\blobs\.. of: Access is denied"](https://forum.storj.io/t/error-open-f-blobs-of-access-is-denied/7967) where @Alexey asked to check for security access, which I did and nothing wrong IMO:

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/8/8c817f1baff83ccf1456a9a1740d4b2c9021c6c6.png)

1. Ok I’m stuck, I need help.

If you reached up to here and think about something, then do not hesitate.

Thanks

(Sorry new user can only post 1 screenshot)  
(Sorry new user can only post 2 links)

---

<div class="post-metadata">

**Author:** ![Stob](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/stob/32/1137_2.png) [@Stob](https://forum.storj.io/u/Stob)\
**Post date:** [August 30, 2021, 11:01am UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090/2 "2021-08-30T11:01:53Z")

</div>

Hi @Mickael,  
If the node is not very old I would look to start again as it’s unusual to have this many issues. If it’s worth keeping then to me all of your issues all point to problems on the storage drive you are using - databases got malformed as the disk isn’t right and then once that was fixed the permissions seem messed up on the files.

I’d run chkdsk with fix on the drive, if anything is found then run it a few times. Then I’d check the file permissions for the files with the errors:

> [@Mickael](#):
>
> D:\trash\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa  
> D:\blobs\pmw6tvzmf2jv6giyybmmvl4o2ahqlaldsaeha4yx74n5aaaaaaaa  
> open D:\blobs\ukfu6bhbboxilvt7jrwlqk7y2tapb5d2r2tsmj2sjxvw5qaaaaaa

---

<div class="post-metadata">

**Author:** ![Mickael](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mickael/32/8896_2.png) [@Mickael](https://forum.storj.io/u/Mickael)\
**Post date:** [August 31, 2021, 4:23pm UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090/3 "2021-08-31T16:23:08Z")

</div>

Hi @Stob ,

Thanks for your reply. Indeed those are a lot issues in a short amount of time.

I wanted to learn how to fix those, but this is not an easy task to be a node operator and this could decrease the adoption of new comers that would grow the network.

I was also hoping for a easy Repair program from the Windows GUI to take care of the most frequent issues and automatically take cares of them, but it seems this does not exist.

I can see a “repair” option in the GUI but it is not activated and I cannot find any doc about it.

![image](https://storj-s3.bcdn.literatehosting.net/original/2X/2/2325048ffe7fda163c2fd02d76aa02c6461cd97c.png)

---

<div class="post-metadata">

**Author:** ![Stob](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/stob/32/1137_2.png) [@Stob](https://forum.storj.io/u/Stob)\
**Post date:** [August 31, 2021, 4:35pm UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090/4 "2021-08-31T16:35:53Z")

</div>

That would just be a repair on the installation/program files. It wouldn’t do anything for corrupt databases, disk issues or incorrect configuration settings.

It’s been mentioned a few times on the forum but running a node requires some technical knowledge to setup the node and configure the appropriate port forwarding, DNS/IP, ETH wallet, etc. In fact requiring some technical knowledge means the network is more robust as you don’t get as many ‘fly by night’ operators.

---

<div class="post-metadata">

**Author:** ![Mickael](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/mickael/32/8896_2.png) [@Mickael](https://forum.storj.io/u/Mickael)\
**Post date:** [September 4, 2021, 2:50pm UTC](https://forum.storj.io/t/computer-reboot-node-does-not-restart-fatal-errors-db-incorrect-all-fun-stuff/15090/5 "2021-09-04T14:50:18Z")

</div>

@Stob Yes it makes sense, but port forwarding, DNS/IP etc is not very complicated. It’s more time consuming for issues like the one I faced where documentation is not guiding a lot, and it is time consuming to find the root cause or fix compared to the earning.

But this is another subject, to come back to my original issue, I have scanned the drive for any errors and bad sectors but the disk is clean.

I suspect this is a H/W problem with the SATA connector on the external case that is getting too hot after 24h of constant use and thus making access to the drive unavailable (thus the Access denied error).

I am not totally sure, but that’s so far the only explanation. Unfortunately, when this issue occur the node is offline, data are corrupted with no way to recover anything.

Maybe that will help someone in the future.
