Now that I read that article again, I might know why I had that problem.
After I installed the docker, an update for the docker was available, so I installed it.
And right after the update, that problem occured.
Seems that this would be the solution?
“It’s also important to not stop the Storj docker from the ui, but instead type docker stop -t 300 storagenode in the terminal. If using an autoupdater, make sure to also set its timeout to 300 before stopping.”
Hi @bbvedf
Your bandwidth.db file appears to be corrupt or an incorrect schema compared to the storagenode version. The previous fix from @Alexey was here:
I have checked all the db files. This is the only one that has errors. Can the problem be there? Can be solved?
C:\Users\bbvedf\Downloads\sqlite-tools-win32-x86-3380000>sqlite3 f:\storage_usage.db "PRAGMA integrity_check;"
*** in database main ***
On tree page 167 cell 37: Rowid 116129 out of order
On tree page 167 cell 36: Rowid 116130 out of order
On tree page 167 cell 35: Rowid 116130 out of order
On tree page 167 cell 34: Rowid 116130 out of order
On tree page 167 cell 33: Rowid 116131 out of order
I just checked. The schema in the linked post still matches the latest version as far as I can tell.
CREATE TABLE bandwidth_usage (
satellite_id BLOB NOT NULL,
action INTEGER NOT NULL,
amount BIGINT NOT NULL,
created_at TIMESTAMP NOT NULL
);
CREATE TABLE bandwidth_usage_rollups (
interval_start TIMESTAMP NOT NULL,
satellite_id BLOB NOT NULL,
action INTEGER NOT NULL,
amount BIGINT NOT NULL,
PRIMARY KEY ( interval_start, satellite_id, action )
);
CREATE INDEX idx_bandwidth_usage_satellite ON bandwidth_usage(satellite_id);
CREATE INDEX idx_bandwidth_usage_created ON bandwidth_usage(created_at);
@bbvedf Just in case something went wrong in the process. I created an empty db file for you with the right schema. Stop your node, rename the old bandwidth.db to something else as a backup and replace it with this one. https://transfer.sh/Fdd0Cu/new_bandwidth.db rename the new one to bandwidth.db.
The node should now start again, but you will lose historic bandwidth stats. (This has already happened if you tried to recreate the db with those instructions anyway)
I have seen another very strange thing (perhaps again due to power outages?) and that is that the yaml file had changed.
Specifically the ‘storage.allocated-disk-space’ line. I don’t know if any other.
With a docker setup the config file doesn’t store any of the settings you pass through the docker run command. So it probably already was that way. The node uses the settings from the run command with precedence over the config.yaml file.