This suggest that your filesystem is corrupted.
Stop and remove the container, unmount this disk and check it with fsck. After that mount it back.
If you did setup your docker to be able to run without sudo and you have used --user $(id -u):$(id -g) option in your docker run command, you need to change permissions to data location to your user instead of root (assuming that your data location is /mnt/storj/storagenode):
chown $(id -u):$(id -g) -R /mnt/storj/storagenode
and run your container back.
If you still want to run docker with sudo instead, then you do not need to change permissions in the data location, but you also should not use --user $(id -u):$(id -g) option in your sudo docker run command.
Does this drive have an external power supply? If not - you need to do that, or at least use a more powerful AC/DC adapter for your raspi, especially if you use any other USB devices. However an additional power supply for the drive is better.
Please show result of these commands:
ls -l /mnt/mydisk_seagate/
ls -l /mnt/mydisk_seagate/storage/
Seems you have used docker commands with sudo, so you need either remove --user $(id -u):$(id -g) from your docker run command or configure your docker to do not require sudo and change an owner, as I mentioned before.
Since it’s an NTFS disk, you need to stop and remove the container, unmount this drive and plug-in to your Windows PC and run chkdsk /f d:\ command (assuming that it would be assigned to the D: letter). You may be forced to run it several times until all errors will be fixed. After that safe eject it, unplug and plug to raspi again and mount it, then try to run your full docker run command.
I would highly recommend to backup all data from this drive and format it to ext4 filesystem on your raspi, then restore data back: NTFS is a foreign filesystem for Linux and it working much slower and damages data.
Hi Alexey, This worked. I am greatly thankful for your assistance. One last query, my node was offline for more than 48 hours, will this now be disqualified eventually?
No. Keep the node online and it will recover the Online score. Current rules give SNO’s up to 12 days downtime per month before going into suspension, and then after 30days if the Online score stays below 60% then your node could be disqualified.
I am getting this connection refused signal again. I did the “CHKDSK /f D:” to my drive this time. But after several attempts, I am not able to connect.
pi@pi-sam:~ $ docker logs --tail 10 storagenode 2>&1 | grep "ERROR"
pi@pi-sam:~ $ docker logs --tail 20 storagenode
storj.io/private/process.cleanup.func1.4:377
storj.io/private/process.cleanup.func1:395
github.com/spf13/cobra.(*Command).execute:852
github.com/spf13/cobra.(*Command).ExecuteC:960
github.com/spf13/cobra.(*Command).Execute:897
storj.io/private/process.ExecWithCustomConfigAndLogger:92
main.main:478
runtime.main:250
2023-04-05 04:10:33,072 INFO exited: storagenode (exit status 1; not expected)
2023-04-05 04:10:34,085 INFO spawned: 'storagenode' with pid 47
2023-04-05 04:10:34,088 WARN received SIGQUIT indicating exit request
2023-04-05 04:10:34,090 INFO waiting for storagenode, processes-exit-eventlistener, storagenode-updater to die
2023-04-05T04:10:34.091Z INFO Got a signal from the OS: "terminated" {"Process": "storagenode-updater"}
2023-04-05 04:10:34,096 INFO stopped: storagenode-updater (exit status 0)
2023-04-05T04:10:34.284Z INFO Configuration loaded {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2023-04-05T04:10:34.285Z INFO Anonymized tracing enabled {"Process": "storagenode"}
2023-04-05T04:10:34.307Z INFO Operator email {"Process": "storagenode", "Address": "MYEMAIL@GMAIL.COM"}
2023-04-05T04:10:34.308Z INFO Operator wallet {"Process": "storagenode", "Address": "MYWALLETADDRESS"}
2023-04-05T04:10:34.797Z INFO server kernel support for server-side tcp fast open remains disabled. {"Process": "storagenode"}
2023-04-05T04:10:34.797Z INFO server enable with: sysctl -w net.ipv4.tcp_fastopen=3 {"Process": "storagenode"}
pi@pi-sam:~ $ docker logs storagenode 2>&1 | grep "FATAL ERROR" | tail
pi@pi-sam:~ $ docker logs --tail 20 storagenode
2023-04-05T12:16:43.570Z INFO Invalid configuration file key {"Process": "storagenode-updater", "Key": "console.address"}
2023-04-05T12:16:43.570Z INFO Invalid configuration file value for key {"Process": "storagenode-updater", "Key": "log.level"}
2023-04-05T12:16:43.570Z INFO Invalid configuration file value for key {"Process": "storagenode-updater", "Key": "log.stack"}
2023-04-05T12:16:43.570Z INFO Invalid configuration file value for key {"Process": "storagenode-updater", "Key": "log.development"}
2023-04-05T12:16:43.571Z INFO Anonymized tracing enabled {"Process": "storagenode-updater"}
2023-04-05T12:16:43.594Z INFO Running on version {"Process": "storagenode-updater", "Service": "storagenode-updater", "Version": "v1.75.2"}
2023-04-05T12:16:43.595Z INFO Downloading versions. {"Process": "storagenode-updater", "Server Address": "https://version.storj.io"}
2023-04-05T12:16:43.668Z INFO Configuration loaded {"Process": "storagenode", "Location": "/app/config/config.yaml"}
2023-04-05T12:16:43.669Z INFO Anonymized tracing enabled {"Process": "storagenode"}
2023-04-05T12:16:43.691Z INFO Operator email {"Process": "storagenode", "Address": "MYEMAIL@GMAIL.COM"}
2023-04-05T12:16:43.691Z INFO Operator wallet {"Process": "storagenode", "Address": "MYADDRESS"}
2023-04-05T12:16:44.567Z INFO Current binary version {"Process": "storagenode-updater", "Service": "storagenode", "Version": "v1.75.2"}
2023-04-05T12:16:44.567Z INFO New version is being rolled out but hasn't made it to this node yet {"Process": "storagenode-updater", "Service": "storagenode"}
2023-04-05 12:16:44,568 INFO success: processes-exit-eventlistener entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 12:16:44,568 INFO success: storagenode entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05 12:16:44,569 INFO success: storagenode-updater entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-04-05T12:16:44.594Z INFO Current binary version {"Process": "storagenode-updater", "Service": "storagenode-updater", "Version": "v1.75.2"}
2023-04-05T12:16:44.594Z INFO New version is being rolled out but hasn't made it to this node yet {"Process": "storagenode-updater", "Service": "storagenode-updater"}
2023-04-05T12:16:44.915Z INFO server kernel support for server-side tcp fast open remains disabled. {"Process": "storagenode"}
2023-04-05T12:16:44.916Z INFO server enable with: sysctl -w net.ipv4.tcp_fastopen=3 {"Process": "storagenode"}
docker logs storagenode 2>&1 | grep -i "error" | tail
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Below is the latest attempt with dock run
pi@pi-sam:~ $ docker logs storagenode 2>&1 | grep -i "error" | tail
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{