Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied

Hello Sirs!

I met the problem after moving of the node from one PC ti another. I worked well before it.
What can be the problem? Some kind of access rights? Another node has been mooved in same time without any problems.

C:\Windows\system32>docker run -d --restart unless-stopped --stop-timeout 300 -p 192.168.2.33:28968:28967/tcp -p 192.168.2.33:28968:28967/udp -p 127.0.0.1:14005:14002 -e WALLET="0xE158e01cDb77F9f220d8359335Fe0b75799829AA" -e EMAIL="7437493@gmail.com" -e ADDRESS="95.84.184.242:28968" -e STORAGE="16.3TB" --mount type=bind,source="G:\Identity\storagenode D1.7",destination=/app/identity --mount type=bind,source="G:\StorjD1.7",destination=/app/config --name storagenodeD1.7 storjlabs/storagenode:latest --operator.wallet-features="zksync-era"
b817a5652ff16ee40742fb013426e25d1b87ae57c4d41fe536fb13ce31d5a6c7

C:\Windows\system32>docker logs --tail 50 storagenodeD1.7
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 11:11:32,191 INFO exited: storagenode (exit status 1; not expected)
2024-05-29 11:11:33,193 INFO success: processes-exit-eventlistener entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-05-29 11:11:33,194 INFO spawned: 'storagenode' with pid 72
2024-05-29 11:11:33,195 INFO success: storagenode-updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-05-29T11:11:33Z    INFO    Configuration loaded    {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2024-05-29T11:11:33Z    INFO    Anonymized tracing enabled      {"Process": "storagenode"}
2024-05-29T11:11:33Z    INFO    Operator email  {"Process": "storagenode", "Address": "7437493@gmail.com"}
2024-05-29T11:11:33Z    INFO    Operator wallet {"Process": "storagenode", "Address": "0xE158e01cDb77F9f220d8359335Fe0b75799829AA"}
2024-05-29T11:11:33Z    ERROR   failure during run      {"Process": "storagenode", "error": "Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied\n\tstorj.io/storj/private/kvstore/boltdb.New:43\n\tstorj.io/storj/private/revocation.openDBBolt:52\n\tstorj.io/storj/private/revocation.OpenDB:35\n\tstorj.io/storj/private/revocation.OpenDBFromCfg:23\n\tmain.cmdRun:74\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied\n\tstorj.io/storj/private/kvstore/boltdb.New:43\n\tstorj.io/storj/private/revocation.openDBBolt:52\n\tstorj.io/storj/private/revocation.OpenDB:35\n\tstorj.io/storj/private/revocation.OpenDBFromCfg:23\n\tmain.cmdRun:74\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:76\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied
        storj.io/storj/private/kvstore/boltdb.New:43
        storj.io/storj/private/revocation.openDBBolt:52
        storj.io/storj/private/revocation.OpenDB:35
        storj.io/storj/private/revocation.OpenDBFromCfg:23
        main.cmdRun:74
        main.newRunCmd.func1:33
        storj.io/common/process.cleanup.func1.4:393
        storj.io/common/process.cleanup.func1:411
        github.com/spf13/cobra.(*Command).execute:983
        github.com/spf13/cobra.(*Command).ExecuteC:1115
        github.com/spf13/cobra.(*Command).Execute:1039
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 11:11:33,889 INFO exited: storagenode (exit status 1; not expected)
2024-05-29 11:11:35,893 INFO spawned: 'storagenode' with pid 80
2024-05-29T11:11:35Z    INFO    Configuration loaded    {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2024-05-29T11:11:35Z    INFO    Anonymized tracing enabled      {"Process": "storagenode"}
2024-05-29T11:11:35Z    INFO    Operator email  {"Process": "storagenode", "Address": "7437493@gmail.com"}
2024-05-29T11:11:35Z    INFO    Operator wallet {"Process": "storagenode", "Address": "0xE158e01cDb77F9f220d8359335Fe0b75799829AA"}
2024-05-29T11:11:36Z    ERROR   failure during run      {"Process": "storagenode", "error": "Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied\n\tstorj.io/storj/private/kvstore/boltdb.New:43\n\tstorj.io/storj/private/revocation.openDBBolt:52\n\tstorj.io/storj/private/revocation.OpenDB:35\n\tstorj.io/storj/private/revocation.OpenDBFromCfg:23\n\tmain.cmdRun:74\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied\n\tstorj.io/storj/private/kvstore/boltdb.New:43\n\tstorj.io/storj/private/revocation.openDBBolt:52\n\tstorj.io/storj/private/revocation.OpenDB:35\n\tstorj.io/storj/private/revocation.OpenDBFromCfg:23\n\tmain.cmdRun:74\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:76\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error opening revocation database: revocation database: boltdb: open config/revocations.db: permission denied
        storj.io/storj/private/kvstore/boltdb.New:43
        storj.io/storj/private/revocation.openDBBolt:52
        storj.io/storj/private/revocation.OpenDB:35
        storj.io/storj/private/revocation.OpenDBFromCfg:23
        main.cmdRun:74
        main.newRunCmd.func1:33
        storj.io/common/process.cleanup.func1.4:393
        storj.io/common/process.cleanup.func1:411
        github.com/spf13/cobra.(*Command).execute:983
        github.com/spf13/cobra.(*Command).ExecuteC:1115
        github.com/spf13/cobra.(*Command).Execute:1039
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 11:11:36,681 INFO exited: storagenode (exit status 1; not expected)

Regards,
Alexander

You can just rename the revocations.db. It will recreate it. Stop your node, rename the file, start it again. That should resolve it.

1 Like

I did, now it asks some db.migration.To do same way? Ther it is located?

C:\Users\Storj M1>docker logs --tail 50 storagenodeD1.7
2024-05-29T12:08:55Z    INFO    server  kernel support for tcp fast open unknown        {"Process": "storagenode"}
2024-05-29T12:08:55Z    INFO    Telemetry enabled       {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T12:08:55Z    INFO    Event collection enabled        {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T12:08:55Z    INFO    db.migration    Database Version        {"Process": "storagenode", "version": 57}
2024-05-29T12:08:55Z    ERROR   failure during run      {"Process": "storagenode", "error": "Error during preflight check for storagenode databases: preflight: database \"notifications\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error during preflight check for storagenode databases: preflight: database \"notifications\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:115\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error during preflight check for storagenode databases: preflight: database "notifications": failed create test_table: attempt to write a readonly database
        storj.io/storj/storagenode/storagenodedb.(*DB).preflight:459
        storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393
        main.cmdRun:113
        main.newRunCmd.func1:33
        storj.io/common/process.cleanup.func1.4:393
        storj.io/common/process.cleanup.func1:411
        github.com/spf13/cobra.(*Command).execute:983
        github.com/spf13/cobra.(*Command).ExecuteC:1115
        github.com/spf13/cobra.(*Command).Execute:1039
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 12:08:55,823 INFO exited: storagenode (exit status 1; not expected)
2024-05-29 12:08:56,824 INFO gave up: storagenode entered FATAL state, too many start retries too quickly
2024-05-29 12:08:57,826 WARN received SIGQUIT indicating exit request
2024-05-29 12:08:57,827 INFO waiting for processes-exit-eventlistener, storagenode-updater to die
2024-05-29T12:08:57Z    INFO    Got a signal from the OS: "terminated"  {"Process": "storagenode-updater"}
2024-05-29 12:08:57,829 INFO stopped: storagenode-updater (exit status 0)
2024-05-29 12:08:58,833 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)
2024-05-29 12:09:00,571 INFO Set uid to user 0 succeeded
2024-05-29 12:09:00,579 INFO RPC interface 'supervisor' initialized
2024-05-29 12:09:00,579 INFO supervisord started with pid 1
2024-05-29 12:09:01,582 INFO spawned: 'processes-exit-eventlistener' with pid 11
2024-05-29 12:09:01,587 INFO spawned: 'storagenode' with pid 12
2024-05-29 12:09:01,593 INFO spawned: 'storagenode-updater' with pid 13
2024-05-29T12:09:01Z    INFO    Configuration loaded    {"Process": "storagenode-updater", "Location": "/app/config/config.yaml"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "server.address"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "operator.email"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "contact.external-address"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "storage.allocated-disk-space"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "storage.allocated-bandwidth"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "console.address"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "operator.wallet"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "healthcheck.enabled"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "operator.wallet-features"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "healthcheck.details"}
2024-05-29T12:09:01Z    INFO    Invalid configuration file key  {"Process": "storagenode-updater", "Key": "server.private-address"}
2024-05-29T12:09:01Z    INFO    Anonymized tracing enabled      {"Process": "storagenode-updater"}
2024-05-29T12:09:01Z    INFO    Running on version      {"Process": "storagenode-updater", "Service": "storagenode-updater", "Version": "v1.104.5"}
2024-05-29T12:09:01Z    INFO    Downloading versions.   {"Process": "storagenode-updater", "Server Address": "https://version.storj.io"}
2024-05-29T12:09:01Z    INFO    Configuration loaded    {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2024-05-29T12:09:01Z    INFO    Anonymized tracing enabled      {"Process": "storagenode"}
2024-05-29T12:09:01Z    INFO    Operator email  {"Process": "storagenode", "Address": "7437493@gmail.com"}
2024-05-29T12:09:01Z    INFO    Operator wallet {"Process": "storagenode", "Address": "0xE158e01cDb77F9f220d8359335Fe0b75799829AA"}

Might they’re be a file system problem, and the device remounted read-only? Perhaps unmount, fsck and remount?

2 Likes

It is Windows, could you, kindly help how to check in Win?

ср, 29 мая 2024 г., 16:27 JWvdV via Storj Community Forum (official) <storj@literatehosting.com>:

That’s the first failure of course :wink:

But:

Chkdsk {D,E,F,...}:\ /x
1 Like

Don’t rename any of the other db’s. Others won’t just get recreated. Run chkdsk first as @JWvdV mentioned. Multiple issues suggests file system issues. If that doesn’t resolve it, we can check back with other suggestions.

1 Like

Ok, I did, chkdsdk found no problem
image

Restart the node, and see what happens. Come back if the problem persists.

Looks it is still same mistake:

C:\Users\Storj M1>docker logs --tail 50 storagenodeD1.7
2024-05-29 16:31:08,529 INFO success: processes-exit-eventlistener entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-05-29 16:31:08,529 INFO success: storagenode entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-05-29 16:31:08,529 INFO success: storagenode-updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-05-29T16:31:09Z    INFO    Telemetry enabled       {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T16:31:09Z    INFO    Event collection enabled        {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T16:31:09Z    INFO    db.migration    Database Version        {"Process": "storagenode", "version": 57}
2024-05-29T16:31:09Z    ERROR   failure during run      {"Process": "storagenode", "error": "Error during preflight check for storagenode databases: preflight: database \"info\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error during preflight check for storagenode databases: preflight: database \"info\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:115\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error during preflight check for storagenode databases: preflight: database "info": failed create test_table: attempt to write a readonly database
        storj.io/storj/storagenode/storagenodedb.(*DB).preflight:459
        storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393
        main.cmdRun:113
        main.newRunCmd.func1:33
        storj.io/common/process.cleanup.func1.4:393
        storj.io/common/process.cleanup.func1:411
        github.com/spf13/cobra.(*Command).execute:983
        github.com/spf13/cobra.(*Command).ExecuteC:1115
        github.com/spf13/cobra.(*Command).Execute:1039
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 16:31:09,959 INFO exited: storagenode (exit status 1; not expected)
2024-05-29 16:31:10,962 INFO spawned: 'storagenode' with pid 40
2024-05-29 16:31:10,963 WARN received SIGQUIT indicating exit request
2024-05-29 16:31:10,963 INFO waiting for storagenode, processes-exit-eventlistener, storagenode-updater to die
2024-05-29T16:31:10Z    INFO    Got a signal from the OS: "terminated"  {"Process": "storagenode-updater"}
2024-05-29 16:31:10,966 INFO stopped: storagenode-updater (exit status 0)
2024-05-29T16:31:11Z    INFO    Configuration loaded    {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2024-05-29T16:31:11Z    INFO    Anonymized tracing enabled      {"Process": "storagenode"}
2024-05-29T16:31:11Z    INFO    Operator email  {"Process": "storagenode", "Address": "7437493@gmail.com"}
2024-05-29T16:31:11Z    INFO    Operator wallet {"Process": "storagenode", "Address": "0xE158e01cDb77F9f220d8359335Fe0b75799829AA"}
2024-05-29T16:31:12Z    INFO    server  kernel support for tcp fast open unknown        {"Process": "storagenode"}
2024-05-29T16:31:12Z    INFO    Telemetry enabled       {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T16:31:12Z    INFO    Event collection enabled        {"Process": "storagenode", "instance ID": "1yigmfSVHL8YV8rqrGW38khrgSNpg4Ch29Lp2FXvGdw7iLixyG"}
2024-05-29T16:31:13Z    INFO    db.migration    Database Version        {"Process": "storagenode", "version": 57}
2024-05-29T16:31:13Z    ERROR   failure during run      {"Process": "storagenode", "error": "Error during preflight check for storagenode databases: preflight: database \"bandwidth\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267", "errorVerbose": "Error during preflight check for storagenode databases: preflight: database \"bandwidth\": failed create test_table: attempt to write a readonly database\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).preflight:459\n\tstorj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393\n\tmain.cmdRun:113\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267\n\tmain.cmdRun:115\n\tmain.newRunCmd.func1:33\n\tstorj.io/common/process.cleanup.func1.4:393\n\tstorj.io/common/process.cleanup.func1:411\n\tgithub.com/spf13/cobra.(*Command).execute:983\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:1115\n\tgithub.com/spf13/cobra.(*Command).Execute:1039\n\tstorj.io/common/process.ExecWithCustomOptions:112\n\tmain.main:34\n\truntime.main:267"}
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": failed create test_table: attempt to write a readonly database
        storj.io/storj/storagenode/storagenodedb.(*DB).preflight:459
        storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:393
        main.cmdRun:113
        main.newRunCmd.func1:33
        storj.io/common/process.cleanup.func1.4:393
        storj.io/common/process.cleanup.func1:411
        github.com/spf13/cobra.(*Command).execute:983
        github.com/spf13/cobra.(*Command).ExecuteC:1115
        github.com/spf13/cobra.(*Command).Execute:1039
        storj.io/common/process.ExecWithCustomOptions:112
        main.main:34
        runtime.main:267
2024-05-29 16:31:13,809 INFO stopped: storagenode (exit status 1)
2024-05-29 16:31:13,812 INFO stopped: processes-exit-eventlistener (terminated by SIGTERM)

Please follow instructions on this page to check all your databases for issues.

2 Likes

Seems a files permissions issue. If you use docker for Windows, you need to apply the write, list, delete, update and read permissions to the data location recursively to your user. It would be useful to change the owner to your user too. This is one of the main differences between a docker setup and the Windows service setup - under docker it would use the user’s permissions, under service it must be SYSTEM.

Please also check that in your data location all databases (except revocation.db), blobs, trash, etc. folders under the storage subfolder (because docker setup would expect them there).

1 Like