Moin,
ich habe die db “gelöscht” um zu testen, ob es ein geschwindigkeitsproblem mit der api löst.
Ein neu erstellen der DB schlägt allerdings fehl. Ist ein einfachs löschen nicht möglich?
→
2022-07-12T12:00:13.735+0200 INFO db.migration Database Version {"Process": "storagenode", "version": 53}
Error: Error during preflight check for storagenode databases: preflight: database "bandwidth": expected schema does not match actual: &dbschema.Schema{
- Tables: []*dbschema.Table{
- (
- s"""
- Name: bandwidth_usage
- Columns:
- Name: action
- Type: INTEGER
- Nullable: false
- Default: ""
- Reference: nil
- Name: amount
- Type: BIGINT
- Nullable: false
- Default: ""
- Reference: nil
- Name: created_at
- Type: TIMESTAMP
- Nullable: false
- ... // 12 elided lines
- s"""
- ),
- (
- s"""
- Name: bandwidth_usage_rollups
- Columns:
- Name: action
- Type: INTEGER
- Nullable: false
- Default: ""
- Reference: nil
- Name: amount
- Type: BIGINT
- Nullable: false
- Default: ""
- Reference: nil
- Name: interval_start
- Type: TIMESTAMP
- Nullable: false
- ... // 12 elided lines
- s"""
- ),
- },
+ Tables: nil,
- Indexes: []*dbschema.Index{
- s`Index<Table: bandwidth_usage, Name: idx_bandwidth_usage_created, Columns: created_at, Unique: false, Partial: "">`,
- s`Index<Table: bandwidth_usage, Name: idx_bandwidth_usage_satellite, Columns: satellite_id, Unique: false, Partial: "">`,
- },
+ Indexes: nil,
Sequences: nil,
}
storj.io/storj/storagenode/storagenodedb.(*DB).preflight:406
storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:353
main.cmdRun:241
storj.io/private/process.cleanup.func1.4:372
storj.io/private/process.cleanup.func1:390
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:93
main.main:479
runtime.main:255
2022-07-12 12:00:13,754 INFO exited: storagenode (exit status 1; not expected