# Docker node is offline on synology

**URL:** <https://forum.storj.io/t/docker-node-is-offline-on-synology/6637>\
**Category:** troubleshooting\
**Tags:** synology-nas\
**Created:** [May 9, 2020, 5:14pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637 "2020-05-09T17:14:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 9, 2020, 5:14pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/1 "2020-05-09T17:14:36Z")

</div>

Hello,  
My node ID 12hMfEBJC2Gp43AELPkMvTa9eP7raNsMV9uahxNwCxt1ff54PU2 stopped working shortly after updating the docker 1.3.3  
Unable to restart it and the updates do not work.

I tried another version 1.4 did not work.

My ports 14002 and 28967 are open  
I did not receive an email to tell me that my node and offline  
Thank you for your help

 ![image](https://storj-s3.bcdn.literatehosting.net/original/2X/c/c4933691d79b1c7ad689bf9133759fd6e281d31f.png)

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [May 10, 2020, 6:26am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/2 "2020-05-10T06:26:58Z")

</div>

> [@ebasket](#):
>
> I tried another version 1.4 did not work

Where did you find this version ?

What do you mean its not working ? I see its online

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 6:42am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/3 "2020-05-10T06:42:38Z")

</div>

Hi

No traffic, no interface, 0 activity with version 1.3.3 for my node since May 4

[https://registry.hub.docker.com/r/storjlabs/storagenode/tags?page=1&name=1.4.2](https://registry.hub.docker.com/r/storjlabs/storagenode/tags?page=1&name=1.4.2)

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [May 10, 2020, 6:50am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/4 "2020-05-10T06:50:05Z")

</div>

> [@ebasket](#):
>
> [Docker](https://registry.hub.docker.com/r/storjlabs/storagenode/tags?page=1&name=1.4.2)

Only follow official ways to update the node unless you want to ruin your node.

> **[Software Updates - Storj Docs](https://docs.storj.io/node/get-started/install-node-software/cli/software-updates)**
>
> Make the world your data center

Show me last 20 lines of your log.

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 6:59am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/5 "2020-05-10T06:59:43Z")

</div>

For the update I download via DOCKER on synology and I create a container with SSH.

 ![Capture d’écran 2020-05-10 à 08.57.14](https://storj-s3.bcdn.literatehosting.net/original/2X/c/c3c8ccb4fe956d652bb99cea77c5cea60d78fa17.png)

More traffic

 ![Capture d’écran 2020-05-10 à 08.49.46](https://storj-s3.bcdn.literatehosting.net/original/2X/4/4b39c25a89e09ed1649167c9700ea3e56152f8dc.png)

here is what I could find as a log in docker

| 2020-05-10 06:37:05 | stdout | runtime.main:203 |
| --- | --- | --- |
| 2020-05-10 06:37:05 | stdout | main.main:329 |
| 2020-05-10 06:37:05 | stdout | [storj.io/private/process.ExecCustomDebug:68](http://storj.io/private/process.ExecCustomDebug:68) |
| 2020-05-10 06:37:05 | stdout | [storj.io/private/process.ExecWithCustomConfig:86](http://storj.io/private/process.ExecWithCustomConfig:86) |
| 2020-05-10 06:37:05 | stdout | [github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).Execute:885 |
| 2020-05-10 06:37:05 | stdout | [github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).ExecuteC:945 |
| 2020-05-10 06:37:05 | stdout | [github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).execute:840 |
| 2020-05-10 06:37:05 | stdout | [storj.io/private/process.cleanup.func1:362](http://storj.io/private/process.cleanup.func1:362) |
| 2020-05-10 06:37:05 | stdout | [storj.io/private/process.cleanup.func1.4:344](http://storj.io/private/process.cleanup.func1.4:344) |
| 2020-05-10 06:37:05 | stdout | main.cmdRun:199 |
| 2020-05-10 06:37:05 | stdout | [storj.io/storj/storagenode/storagenodedb.(\*DB](http://storj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:324 |
| 2020-05-10 06:37:05 | stdout | |
| 2020-05-10 06:37:05 | stdout | } |
| 2020-05-10 06:37:05 | stdout | Indexes: nil, |
| 2020-05-10 06:37:05 | stdout | }, |
| 2020-05-10 06:37:05 | stdout | }, |
| 2020-05-10 06:37:05 | stdout | Unique: nil, |
| 2020-05-10 06:37:05 | stdout | PrimaryKey: string{“satellite\_id”}, |
| 2020-05-10 06:37:05 | stdout | }, |
| 2020-05-10 06:37:05 | stdout | … // 6 identical elements |
| 2020-05-10 06:37:05 | stdout | &{Name: “suspended”, Type: “TIMESTAMP”, IsNullable: true}, |
| 2020-05-10 06:37:05 | stdout | &{Name: “satellite\_id”, Type: “BLOB”}, |
| 2020-05-10 06:37:05 | stdout | + s"Name: joined\_at\nType: TIMESTAMP\nNullable: false\nDefault: “”\nReference: nil", |
| 2020-05-10 06:37:05 | stdout | + s"Name: disqualified\nType: TIMESTAMP\nNullable: true\nDefault: “”\nReference: nil", |
| 2020-05-10 06:37:05 | stdout | }, |
| 2020-05-10 06:37:05 | stdout | Reference: nil, |
| 2020-05-10 06:37:05 | stdout | Default: “”, |
| 2020-05-10 06:37:05 | stdout | + IsNullable: false, |
| 2020-05-10 06:37:05 | stdout | - IsNullable: true, |
| 2020-05-10 06:37:05 | stdout | + Type: “REAL”, |
| 2020-05-10 06:37:05 | stdout | - Type: “TIMESTAMP”, |
| 2020-05-10 06:37:05 | stdout | + Name: “audit\_unknown\_reputation\_beta”, |
| 2020-05-10 06:37:05 | stdout | - Name: “joined\_at”, |
| 2020-05-10 06:37:05 | stdout | &{ |
| 2020-05-10 06:37:05 | stdout | }, |
| 2020-05-10 06:37:05 | stdout | Reference: nil, |
| 2020-05-10 06:37:05 | stdout | Default: “”, |
| 2020-05-10 06:37:05 | stdout | + IsNullable: false, |
| 2020-05-10 06:37:05 | stdout | - IsNullable: true, |
| 2020-05-10 06:37:05 | stdout | + Type: “REAL”, |
| 2020-05-10 06:37:05 | stdout | - Type: “TIMESTAMP”, |
| 2020-05-10 06:37:05 | stdout | + Name: “audit\_unknown\_reputation\_alpha”, |
| 2020-05-10 06:37:05 | stdout | - Name: “disqualified”, |
| 2020-05-10 06:37:05 | stdout | &{ |
| 2020-05-10 06:37:05 | stdout | &{Name: “audit\_total\_count”, Type: “INTEGER”}, |
| 2020-05-10 06:37:05 | stdout | &{Name: “audit\_success\_count”, Type: “INTEGER”}, |
| 2020-05-10 06:37:05 | stdout | … // 3 identical elements |
| 2020-05-10 06:37:05 | stdout | Columns: \*dbschema.Column{ |
| 2020-05-10 06:37:05 | stdout | Name: “reputation”, |
| 2020-05-10 06:37:05 | stdout | &{ |
| 2020-05-10 06:37:05 | stdout | Tables: \*dbschema.Table{ |
| 2020-05-10 06:37:05 | stdout | Error: Error during preflight check for storagenode databases: storage node preflight database error: reputation: expected schema does not match actual: &dbschema.Schema{ |
| 2020-05-10 06:37:04 | stderr | 2020-05-10T06:37:04.004Z INFO db.migration Database Version {“version”: 36} |
| 2020-05-10 06:37:03 | stderr | 2020-05-10T06:37:03.236Z INFO Operator wallet {“Address”: “”} |
| 2020-05-10 06:37:03 | stderr | 2020-05-10T06:37:03.235Z INFO Operator email {“Address”: “”} |
| 2020-05-10 06:37:03 | stderr | 2020-05-10T06:37:03.215Z INFO tracing disabled |
| 2020-05-10 06:37:03 | stderr | 2020-05-10T06:37:03.215Z INFO Configuration loaded {“Location”: “/app/config/config.yaml”} |

---

<div class="post-metadata">

**Author:** ![nerdatwork](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/nerdatwork/32/1135_2.png) [@nerdatwork](https://forum.storj.io/u/nerdatwork)\
**Post date:** [May 10, 2020, 8:08am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/6 "2020-05-10T08:08:04Z")

</div>

Can you show result of this command ?

> docker logs --tail 20 storagenode

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 9:20am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/7 "2020-05-10T09:20:35Z")

</div>

Voici

/$ sudo docker logs --tail 20 storagenode

```
			... // 6 identical elements
		},
		PrimaryKey: []string{"satellite_id"},
		Unique: nil,
	},
},
Indexes: nil,

```

}

```
storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:324
main.cmdRun:199
storj.io/private/process.cleanup.func1.4:344
storj.io/private/process.cleanup.func1:362
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:86
storj.io/private/process.ExecCustomDebug:68
main.main:329
runtime.main:203
```

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2020, 2:18pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/8 "2020-05-10T14:18:46Z")

</div>

This is consequence of update to not published version, which is applied migrations to your databases and rollback to the actual version without rollback of databases.

You now should perform a rollback of migrations for databases.

I would not recommend to forcefully update your node without suggestion to do so.  
Please, show the whole errors from your logs, please, take more than 20 lines to have a full error.

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 2:43pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/9 "2020-05-10T14:43:12Z")

</div>

Thank you for your reply  
How to restore migrations for databases ?

if you want more information tell me how to do it

see more than 20 lines to have a full error with conteneur on synology

“line delete”

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2020, 2:46pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/10 "2020-05-10T14:46:17Z")

</div>

Please, use the `docker logs` instead of GUI, I can’t compile the whole picture from that table…

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 2:56pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/11 "2020-05-10T14:56:59Z")

</div>

| Information | 2020/04/26 07:45:58 | admin | Add image from [docker.io/storjlabs/storagenode:b736d43f-v1.3.3-go1.13.8](http://docker.io/storjlabs/storagenode:b736d43f-v1.3.3-go1.13.8) |
| --- | --- | --- | --- |

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2020, 3:03pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/12 "2020-05-10T15:03:59Z")

</div>

```auto
docker logs --tail 100 storagenode

```

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 10, 2020, 3:09pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/13 "2020-05-10T15:09:30Z")

</div>

```auto
Name: "disqualified",
+ Name: "audit_unknown_reputation_alpha",
- Type: "TIMESTAMP",
+ Type: "REAL",
- IsNullable: true,
+ IsNullable: false,
  					Default: "",
  					Reference: nil,
  				},
  				&{
- Name: "joined_at",
+ Name: "audit_unknown_reputation_beta",
- Type: "TIMESTAMP",
+ Type: "REAL",
- IsNullable: true,
+ IsNullable: false,
  					Default: "",
  					Reference: nil,
  				},
+ s"Name: disqualified\nType: TIMESTAMP\nNullable: true\nDefault: \"\"\nReference: nil",
+ s"Name: joined_at\nType: TIMESTAMP\nNullable: false\nDefault: \"\"\nReference: nil",
  				&{Name: "satellite_id", Type: "BLOB"},
  				&{Name: "suspended", Type: "TIMESTAMP", IsNullable: true},
  				... // 6 identical elements
  			},
  			PrimaryKey: []string{"satellite_id"},
  			Unique: nil,
  		},
  	},
  	Indexes: nil,
  }

	storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:324
	main.cmdRun:199
	storj.io/private/process.cleanup.func1.4:344
	storj.io/private/process.cleanup.func1:362
	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:86
	storj.io/private/process.ExecCustomDebug:68
	main.main:329
	runtime.main:203
2020-05-10T15:08:03.639Z	INFO	Configuration loaded	{"Location": "/app/config/config.yaml"}
2020-05-10T15:08:03.640Z	INFO	tracing	disabled
2020-05-10T15:08:03.660Z	INFO	Operator email	{"Address": "mrbobiuss@hotmail.com"}
2020-05-10T15:08:03.660Z	INFO	Operator wallet	{"Address": "0x7B40fD8E7E3D762B17929cA2fA1B9F6e9F8F5ec7"}
2020-05-10T15:08:04.471Z	INFO	db.migration	Database Version	{"version": 36}
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{
  				... // 3 identical elements
  				&{Name: "audit_success_count", Type: "INTEGER"},
  				&{Name: "audit_total_count", Type: "INTEGER"},
  				&{
- Name: "disqualified",
+ Name: "audit_unknown_reputation_alpha",
- Type: "TIMESTAMP",
+ Type: "REAL",
- IsNullable: true,
+ IsNullable: false,
  					Default: "",
  					Reference: nil,
  				},
  				&{
- Name: "joined_at",
+ Name: "audit_unknown_reputation_beta",
- Type: "TIMESTAMP",
+ Type: "REAL",
- IsNullable: true,
+ IsNullable: false,
  					Default: "",
  					Reference: nil,
  				},
+ s"Name: disqualified\nType: TIMESTAMP\nNullable: true\nDefault: \"\"\nReference: nil",
+ s"Name: joined_at\nType: TIMESTAMP\nNullable: false\nDefault: \"\"\nReference: nil",
  				&{Name: "satellite_id", Type: "BLOB"},
  				&{Name: "suspended", Type: "TIMESTAMP", IsNullable: true},
  				... // 6 identical elements
  			},
  			PrimaryKey: []string{"satellite_id"},
  			Unique: nil,
  		},
  	},
  	Indexes: nil,
  }

	storj.io/storj/storagenode/storagenodedb.(*DB).Preflight:324
	main.cmdRun:199
	storj.io/private/process.cleanup.func1.4:344
	storj.io/private/process.cleanup.func1:362
	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:86
	storj.io/private/process.ExecCustomDebug:68
	main.main:329
	runtime.main:203

```

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 10, 2020, 3:28pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/14 "2020-05-10T15:28:22Z")

</div>

1. Stop the storagenode
2. Make a backup of the `reputation.db`
3. Run either with a local installed sqlite3 (make sure the version is not older than v3.25.2) or with a docker version (you can take it from [https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-)), replace the `/path/to/` to the right path to that database (`/storage/` in a docker version from the article above):

```auto
sqlite3 /path/to/reputation.db
ALTER TABLE reputation RENAME TO reputation_new;
CREATE TABLE reputation (
                                                satellite_id BLOB NOT NULL,
                                                uptime_success_count INTEGER NOT NULL,
                                                uptime_total_count INTEGER NOT NULL,
                                                uptime_reputation_alpha REAL NOT NULL,
                                                uptime_reputation_beta REAL NOT NULL,
                                                uptime_reputation_score REAL NOT NULL,
                                                audit_success_count INTEGER NOT NULL,
                                                audit_total_count INTEGER NOT NULL,
                                                audit_reputation_alpha REAL NOT NULL,
                                                audit_reputation_beta REAL NOT NULL,
                                                audit_reputation_score REAL NOT NULL,
                                                disqualified TIMESTAMP,
                                                updated_at TIMESTAMP NOT NULL, suspended TIMESTAMP, joined_at TIMESTAMP,
                                                PRIMARY KEY (satellite_id)
                                        );

PRAGMA foreign_keys=off;
BEGIN TRANSACTION;
INSERT INTO reputation (satellite_id,
                                                uptime_success_count,
                                                uptime_total_count,
                                                uptime_reputation_alpha,
                                                uptime_reputation_beta,
                                                uptime_reputation_score,
                                                audit_success_count,
                                                audit_total_count,
                                                audit_reputation_alpha,
                                                audit_reputation_beta, 
                                                audit_reputation_score, 
                                                disqualified, 
                                                updated_at, 
                                                suspended)
SELECT satellite_id,
                                                uptime_success_count,
                                                uptime_total_count,
                                                uptime_reputation_alpha,
                                                uptime_reputation_beta,
                                                uptime_reputation_score,
                                                audit_success_count,
                                                audit_total_count,
                                                audit_reputation_alpha,
                                                audit_reputation_beta, 
                                                audit_reputation_score, 
                                                disqualified, 
                                                updated_at, 
                                                suspended
FROM reputation_new;
DROP TABLE reputation_new;
COMMIT;
PRAGMA foreign_keys=on;
.exit

```

1. Then start the storagenode
2. Check your logs

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 15, 2020, 7:00pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/15 "2020-05-15T19:00:02Z")

</div>

I applied the procedure here ==\> [https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-)  
I have relaunched my container, here is the report below.

Storj does not work / Can you help me ?

**admin@SYNOLOGY\_4K** : **/** $ sudo docker logs --tail 20 storagenode

2020-05-15T18:53:36.899Z INFO Configuration loaded from: /app/config/config.yaml

2020-05-15T18:53:36.920Z INFO Operator email: [xxxxxxxxxxxx@hotmail.com](mailto:xxxxxxxxxxxx@hotmail.com)

2020-05-15T18:53:36.920Z INFO operator wallet: 0x7B40fD8E7E3D1221212122B17929cA2fA1B9F6e9F8F5ec7

2020-05-15T18:53:37.732Z INFO version running on version v1.2.1

2020-05-15T18:53:37.749Z INFO db.migration Database Version {“version”: 33}

Error: Error during preflight check for storagenode databases: storage node preflight database error: reputation: schema check failed: file is not a database

[storj.io/storj/storagenode/storagenodedb.(\*DB](http://storj.io/storj/storagenode/storagenodedb.(*DB)).Preflight:295

main.cmdRun:199

[storj.io/private/process.cleanup.func1.2:312](http://storj.io/private/process.cleanup.func1.2:312)

[storj.io/private/process.cleanup.func1:330](http://storj.io/private/process.cleanup.func1:330)

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).execute:840

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).ExecuteC:945

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).Execute:885

[storj.io/private/process.ExecWithCustomConfig:84](http://storj.io/private/process.ExecWithCustomConfig:84)

[storj.io/private/process.ExecCustomDebug:66](http://storj.io/private/process.ExecCustomDebug:66)

main.main:329

runtime.main:203

2020-05-15T18:54:39.938Z INFO Configuration loaded from: /app/config/config.yaml

2020-05-15T18:54:39.960Z INFO Operator email: [xxxxxxxxx@hotmail.com](mailto:xxxxxxxxx@hotmail.com)

2020-05-15T18:54:39.960Z INFO operator wallet: 0x7B40fD8nhnhnhnhnhnh2B17929cA2fA1B9F6e9F8F5ec7

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 16, 2020, 5:22pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/16 "2020-05-16T17:22:28Z")

</div>

Now the `reputation.db` is lost.

1. Stop the storagenode
2. Delete the `reputation.db`
3. Execute with a native sqlite3 or docker version

```auto
sqlite3 reputation.db
CREATE TABLE reputation (
                                                satellite_id BLOB NOT NULL,
                                                uptime_success_count INTEGER NOT NULL,
                                                uptime_total_count INTEGER NOT NULL,
                                                uptime_reputation_alpha REAL NOT NULL,
                                                uptime_reputation_beta REAL NOT NULL,
                                                uptime_reputation_score REAL NOT NULL,
                                                audit_success_count INTEGER NOT NULL,
                                                audit_total_count INTEGER NOT NULL,
                                                audit_reputation_alpha REAL NOT NULL,
                                                audit_reputation_beta REAL NOT NULL,
                                                audit_reputation_score REAL NOT NULL,
                                                disqualified TIMESTAMP,
                                                updated_at TIMESTAMP NOT NULL, suspended TIMESTAMP, joined_at TIMESTAMP,
                                                PRIMARY KEY (satellite_id)
                                        );
CREATE TABLE versions (version int, commited_at text);
.exit

```

1. Start the storagenode
2. Check your logs

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 23, 2020, 6:53am UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/17 "2020-05-23T06:53:17Z")

</div>

> [@ebasket](#):
>
> r during preflight check for storagenode databases: storage node preflight database error: reputation: schema check failed: file is not a database

check the result

**admin@SYNOLOGY\_4K** : **/** $ sudo docker logs --tail 20 storagenode

2020-05-23T06:49:55.978Z INFO Operator email {“Address”: “[xxxxxxxxx@hotmail.com](mailto:xxxxxxxxx@hotmail.com)”}

2020-05-23T06:49:55.978Z INFO Operator wallet {“Address”: “0x7B40f45  
rfD8E7E3brfsrD762B17929cA2DdDfA1B9F6e9F8F5ec7”}

2020-05-23T06:49:56.781Z INFO db.migration.34 Add suspended field to satellites db

Error: Error creating tables for master database on storagenode: migrate: no such table: reputation

[storj.io/storj/private/migrate.SQL.Run:252](http://storj.io/storj/private/migrate.SQL.Run:252)

[storj.io/storj/private/migrate.(\*Migration).Run.func1:171](http://storj.io/storj/private/migrate.(*Migration).Run.func1:171)

[storj.io/storj/private/dbutil/txutil.withTxOnce:75](http://storj.io/storj/private/dbutil/txutil.withTxOnce:75)

[storj.io/storj/private/dbutil/txutil.WithTx:36](http://storj.io/storj/private/dbutil/txutil.WithTx:36)

[storj.io/storj/private/migrate.(\*Migration).Run:170](http://storj.io/storj/private/migrate.(*Migration).Run:170)

[storj.io/storj/storagenode/storagenodedb.(\*DB).MigrateToLatest:294](http://storj.io/storj/storagenode/storagenodedb.(*DB).MigrateToLatest:294)

main.cmdRun:180

[storj.io/private/process.cleanup.func1.4:343](http://storj.io/private/process.cleanup.func1.4:343)

[storj.io/private/process.cleanup.func1:361](http://storj.io/private/process.cleanup.func1:361)

[github.com/spf13/cobra.(\*Command).execute:840](http://github.com/spf13/cobra.(*Command).execute:840)

[github.com/spf13/cobra.(\*Command).ExecuteC:945](http://github.com/spf13/cobra.(*Command).ExecuteC:945)

[github.com/spf13/cobra.(\*Command).Execute:885](http://github.com/spf13/cobra.(*Command).Execute:885)

[storj.io/private/process.ExecWithCustomConfig:86](http://storj.io/private/process.ExecWithCustomConfig:86)

[storj.io/private/process.ExecCustomDebug:68](http://storj.io/private/process.ExecCustomDebug:68)

main.main:320

runtime.main:203

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 23, 2020, 12:18pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/18 "2020-05-23T12:18:05Z")

</div>

Seems you didn’t specified path to the `reputation.db`. It should point to the `reputation.db` in your storage location.  
The path is depend on your method of running a sqlite3 to correct the issue.  
If it was a docker, you should mount a path to the storage to the docker container with sqlite3, for example, I will assume that your storage located in the `/mnt/storagenode/storage`, then the command would look like:

1. Stop the storagenode

```auto
docker stop -t 300 storagenode
docker rm storagenode

```

1. Remove the corrupted `reputation.db`

```auto
rm /mnt/storagenode/storage/reputation.db

```

1. Run this command:

```auto
docker run -it --rm --mount type=bind,source=/mnt/storagenode/storage,destination=/data sstc/sqlite3 sqlite3 reputation.db
CREATE TABLE reputation (
                                                satellite_id BLOB NOT NULL,
                                                uptime_success_count INTEGER NOT NULL,
                                                uptime_total_count INTEGER NOT NULL,
                                                uptime_reputation_alpha REAL NOT NULL,
                                                uptime_reputation_beta REAL NOT NULL,
                                                uptime_reputation_score REAL NOT NULL,
                                                audit_success_count INTEGER NOT NULL,
                                                audit_total_count INTEGER NOT NULL,
                                                audit_reputation_alpha REAL NOT NULL,
                                                audit_reputation_beta REAL NOT NULL,
                                                audit_reputation_score REAL NOT NULL,
                                                disqualified TIMESTAMP,
                                                updated_at TIMESTAMP NOT NULL, suspended TIMESTAMP, joined_at TIMESTAMP,
                                                PRIMARY KEY (satellite_id)
                                        );
CREATE TABLE versions (version int, commited_at text);
.exit

```

1. If no error, then run the storagenode back using all your parameters: [https://documentation.storj.io/setup/cli/storage-node#running-the-storage-node](https://documentation.storj.io/setup/cli/storage-node#running-the-storage-node)
2. Check your logs

---

<div class="post-metadata">

**Author:** ![ebasket](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/ebasket/32/1139_2.png) [@ebasket](https://forum.storj.io/u/ebasket)\
**Post date:** [May 23, 2020, 6:35pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/19 "2020-05-23T18:35:06Z")

</div>

thank you for answer

**3-** i run this command

admin@SYNOLOGY\_4K:/$ sudo docker run -it --rm --mount type=bind,source=/volume1/STORJ/DATA1/storage,destination=/data sstc/sqlite3 sqlite3 reputation.db  
audit\_reputation\_score REAL NOT NULL,  
disqualified TIMESTAMP,  
updated\_at TIMESTAMP NOT NULL, suspended TIMESTAMP, joined\_at TIMESTAMP,  
PRIMARY KEY (satellite\_id)  
);  
CREATE TABLE versions (version int, commited\_at text);  
.exit  
CREATE TABLE reputation (  
satellite\_id BLOB NOT NULL,  
uptime\_success\_count INTEGER NOT NULL,  
uptime\_total\_count INTEGER NOT NULL,  
uptime\_reputation\_alpha REAL NOT NULL,  
uptime\_reputation\_beta REAL NOT NULL,  
uptime\_reputation\_score REAL NOT NULL,  
audit\_success\_count INTEGER NOT NULL,  
audit\_total\_count INTEGER NOT NULL,  
audit\_reputation\_alpha REAL NOT NULL,  
audit\_reputation\_beta REAL NOT NULL,  
audit\_reputation\_score REAL NOT NULL,  
disqualified TIMESTAMP,  
updated\_at TIMESTAMP NOT NULL, suspended TIMESTAMP, joined\_at TIMESTAMP,  
PRIMARY KEY (satellite\_id)  
);  
CREATE TABLE versions (version int, commited\_at text);  
.exit  
SQLite version 3.30.1 2019-10-10 20:19:45  
Enter “.help” for usage hints.  
sqlite\> CREATE TABLE reputation (  
LL,…\> satellite\_id BLOB NOT NUL  
EGER NOT NULL, uptime\_success\_count INTE  
ER NOT NULL, uptime\_total\_count INTEGE  
REAL NOT NULL, uptime\_reputation\_alpha R  
EAL NOT NULL, uptime\_reputation\_beta RE  
REAL NOT NULL, uptime\_reputation\_score R  
GER NOT NULL, audit\_success\_count INTEG  
R NOT NULL, audit\_total\_count INTEGER  
EAL NOT NULL, audit\_reputation\_alpha RE  
AL NOT NULL, audit\_reputation\_beta REA  
EAL NOT NULL, audit\_reputation\_score RE  
…\> disqualified TIMESTAMP,  
NULL, suspended TIMESTAMP, joined\_at TIMESTAMP, updated\_at TIMESTAMP NOT  
d) …\> PRIMARY KEY (satellite\_id  
…\> );  
sqlite\> CREATE TABLE versions (version int, commited\_at text);  
sqlite\> .exit

**4-** I have an error with my node which seems to be disqualified

**5-** I check your logs after install my parameters of my node

**admin@SYNOLOGY\_4K** : **/** $ sudo docker logs --tail 30 storagenode

[storj.io/private/process.ExecWithCustomConfig:86](http://storj.io/private/process.ExecWithCustomConfig:86)

[storj.io/private/process.ExecCustomDebug:68](http://storj.io/private/process.ExecCustomDebug:68)

main.main:320

runtime.main:203

2020-05-23T18:25:31.325Z INFO Configuration loaded {“Location”: “/app/config/config.yaml”}

2020-05-23T18:25:31.326Z INFO tracing disabled

2020-05-23T18:25:31.346Z INFO Operator email {“Address”: “[mrbobiuss@hotmail.com](mailto:mrbobiuss@hotmail.com)”}

2020-05-23T18:25:31.346Z INFO Operator wallet {“Address”: “xxxxxxxxxxxxx”}

2020-05-23T18:25:32.220Z INFO db.migration.34 Add suspended field to satellites db

Error: Error creating tables for master database on storagenode: migrate: duplicate column name: suspended

[storj.io/storj/private/migrate.SQL.Run:252](http://storj.io/storj/private/migrate.SQL.Run:252)

[storj.io/storj/private/migrate.(\*Migration](http://storj.io/storj/private/migrate.(*Migration)).Run.func1:171

[storj.io/storj/private/dbutil/txutil.withTxOnce:75](http://storj.io/storj/private/dbutil/txutil.withTxOnce:75)

[storj.io/storj/private/dbutil/txutil.WithTx:36](http://storj.io/storj/private/dbutil/txutil.WithTx:36)

[storj.io/storj/private/migrate.(\*Migration](http://storj.io/storj/private/migrate.(*Migration)).Run:170

[storj.io/storj/storagenode/storagenodedb.(\*DB](http://storj.io/storj/storagenode/storagenodedb.(*DB)).MigrateToLatest:294

main.cmdRun:180

[storj.io/private/process.cleanup.func1.4:343](http://storj.io/private/process.cleanup.func1.4:343)

[storj.io/private/process.cleanup.func1:361](http://storj.io/private/process.cleanup.func1:361)

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).execute:840

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).ExecuteC:945

[github.com/spf13/cobra.(\*Command](http://github.com/spf13/cobra.(*Command)).Execute:885

[storj.io/private/process.ExecWithCustomConfig:86](http://storj.io/private/process.ExecWithCustomConfig:86)

[storj.io/private/process.ExecCustomDebug:68](http://storj.io/private/process.ExecCustomDebug:68)

main.main:320

runtime.main:203

2020-05-23T18:26:34.713Z INFO Configuration loaded {“Location”: “/app/config/config.yaml”}

2020-05-23T18:26:34.714Z INFO tracing disabled

2020-05-23T18:26:34.734Z INFO Operator email {“Address”: “[xxxxxxxxxx@hotmail.com](mailto:xxxxxxxxxx@hotmail.com)”}

2020-05-23T18:26:34.734Z INFO Operator wallet {“Address”: “xxxxxxxxxxxxxxxxxxx”}

55/5000

Do you have a solution to help me restart my node  
Thank you for you help.  
Cdt  
Christophe

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [May 23, 2020, 6:43pm UTC](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637/20 "2020-05-23T18:43:46Z")

</div>

Why you think it is disqualified? Did you lost the data? If not, then we can continue to fix the database

1. Stop the storagenode
2. Execute

```auto
sudo docker run -it --rm --mount type=bind,source=/volume1/STORJ/DATA1/storage,destination=/data sstc/sqlite3 sqlite3 reputation.db
drop table reputation;
CREATE TABLE reputation (
                                                satellite_id BLOB NOT NULL,
                                                uptime_success_count INTEGER NOT NULL,
                                                uptime_total_count INTEGER NOT NULL,
                                                uptime_reputation_alpha REAL NOT NULL,
                                                uptime_reputation_beta REAL NOT NULL,
                                                uptime_reputation_score REAL NOT NULL,
                                                audit_success_count INTEGER NOT NULL,
                                                audit_total_count INTEGER NOT NULL,
                                                audit_reputation_alpha REAL NOT NULL,
                                                audit_reputation_beta REAL NOT NULL,
                                                audit_reputation_score REAL NOT NULL,
                                                disqualified TIMESTAMP,
                                                updated_at TIMESTAMP NOT NULL, 
                                                joined_at TIMESTAMP,
                                                PRIMARY KEY (satellite_id)
                                        );
.exit

```

1. Start the storagenode
2. Check logs

[Next page](https://forum.storj.io/t/docker-node-is-offline-on-synology/6637.md?page=2)
