Hi,
I am running two nodes on a raspberry pi4 4GB. Beside the nodes I am running nothing else on that Pi. Today I had to restart the pi and after the restart I was not able to start the nodes again. For both I get the same error, that the database schema does not match. I used the exact same start command that I always used, the drive is correctly mounted, so I don’t understand what happened.
STORJ-Node versions: 1.26.3
Start command:
sudo docker run -d --restart unless-stopped --stop-timeout 300 -p 28909:28967 -p 192.168.178.133:14009:14002 -e WALLET=“###” -e EMAIL="maximilian_brell@icloud.com" -e ADDRESS=“####:28909” -e STORAGE=“5000GB” --memory=2500m --log-opt max-size=50m --log-opt max-file=10 --mount type=bind,source=/identity-path,destination=/app/identity --mount type=bind,source=/storagenode-path,destination=/app/config --name storagenode storjlabs/storagenode:latest
Log when I try to start:
2021-04-21T07:50:28.477Z INFO Configuration loaded {“Location”: “/app/config/config.yaml”}
2021-04-21T07:50:28.484Z INFO Operator email {“Address”: “email@domain.com”}
2021-04-21T07:50:28.484Z INFO Operator wallet {“Address”: “#########”}
2021-04-21T07:50:28.847Z INFO Telemetry enabled
2021-04-21T07:50:28.893Z INFO db.migration Database Version {“version”: 42}
Error: Error during preflight check for storagenode databases: storage node preflight database error: reputation: expected schema does not match actual: &dbschema.Schema{
Tables: *dbschema.Table{
&{
Name: “reputation”,
Columns: *dbschema.Column{
-
s"Name: audit_history\nType: BLOB\nNullable: true\nDefault: \"\"\nReference: nil", &{Name: "audit_reputation_alpha", Type: "REAL"}, &{Name: "audit_reputation_beta", Type: "REAL"}, ... // 4 identical elements &{Name: "audit_unknown_reputation_beta", Type: "REAL"}, &{Name: "audit_unknown_reputation_score", Type: "REAL"}, &{
-
Name: "disqualified",
-
Name: "disqualified_at", Type: "TIMESTAMP", IsNullable: true, ... // 2 identical fields }, &{Name: "joined_at", Type: "TIMESTAMP"}, &{
-
Name: "satellite_id",
-
Name: "offline_suspended_at",
-
Type: "BLOB",
-
Type: "TIMESTAMP",
-
IsNullable: false,
-
IsNullable: true, Default: "", Reference: nil, }, &{
-
Name: "suspended",
-
Name: "offline_under_review_at", Type: "TIMESTAMP", IsNullable: true, ... // 2 identical fields },
-
s"Name: online_score\nType: REAL\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: satellite_id\nType: BLOB\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: suspended_at\nType: TIMESTAMP\nNullable: true\nDefault: \"\"\nReference: nil", &{Name: "updated_at", Type: "TIMESTAMP"},
-
s"Name: uptime_reputation_alpha\nType: REAL\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: uptime_reputation_beta\nType: REAL\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: uptime_reputation_score\nType: REAL\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: uptime_success_count\nType: INTEGER\nNullable: false\nDefault: \"\"\nReference: nil",
-
s"Name: uptime_total_count\nType: INTEGER\nNullable: false\nDefault: \"\"\nReference: nil", }, PrimaryKey: []string{"satellite_id"}, Unique: nil, },
},
Indexes: nil,
}storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:322
main.cmdRun:190
storj.io/private/process.cleanup.func1.4:359
storj.io/private/process.cleanup.func1:377
github.com/spf13/cobra.(*Command).execute:840
github.com/spf13/cobra.(*Command).ExecuteC:945
github.com/spf13/cobra.(*Command).Execute:885
storj.io/private/process.ExecWithCustomConfig:88
storj.io/private/process.ExecCustomDebug:70
main.main:320
runtime.main:203
The same issue is present for both nodes. Do you have an idea how to fix this?
Thanks