Failing to create info.db

Hi,

I’ve followed the instructions/guide on how to install a storagenode on my Synology NAS and apart from the email/wallet the settings are identical. However when it runs it fails with this error:

Error: Error creating tables for master database on storagenode: migrate: database: info opening file “config/storage/info.db” failed: unable to open database file: no such file or folder

I can see the mount points are correct:

"Mounts": [
            {
                "Type": "bind",
                "Source": "/volume1/docker/storj/identity",
                "Destination": "/app/identity",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/volume1/docker/storj/data",
                "Destination": "/app/config",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],

And are valid:

Phil@Pan:~$ ls /volume1/docker/storj/identity
ca.1682632435.cert  ca.cert  ca.key  identity.1682632435.cert  identity.cert  identity.key
Phil@Pan:~$ ls /volume1/docker/storj/data
config.yaml  orders  revocations.db  storage
Phil@Pan:~$ ls /volume1/docker/storj/data/storage/
blobs  garbage  storage-dir-verification  temp  trash

It seems to have already created a recovations.db file storage folder… So I don’t understand why it is not creating the info.db database in the storage folder?

Any hints on what could be wrong here?

Many thanks,
Phil.

Hello @philware,
Welcome to the forum!

Please do not use --user $(id -u):$(id -g) option in your docker run command, since you need to use sudo on Synology, so data should be available to root.
If no one database are exist in the /volume1/docker/storj/data/storage location, they should be re-created on start of the node.

Excellent! :slight_smile: This worked.
Many thanks,
Phil.

1 Like