As the title suggests, I moved my storj operations from my RPI3B to my RPI4 as I was having performance issues.
I’ve followed through the installation steps to make sure I didn’t miss anything.
I moved my identity over which seems okay.
I can run both the setup and docker run command but after running the latter I get this in the logs;
Error: Error starting master database on storagenode: database: file is not a database
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabase:323
storj.io/storj/storagenode/storagenodedb.(*DB).openExistingDatabase:305
storj.io/storj/storagenode/storagenodedb.(*DB).openDatabases:281
storj.io/storj/storagenode/storagenodedb.OpenExisting:248
main.cmdRun:160
storj.io/private/process.cleanup.func1.4:363
storj.io/private/process.cleanup.func1:381
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.ExecWithCustomConfig:88
storj.io/private/process.ExecCustomDebug:70
main.main:385
runtime.main:255
The only thing I changed in the setup command was the location of the data. I chose /mnt/storj instead.
One thing to note, my node has been down for around 14 days now as I’m only now getting the time to move it. Will this be a problem going forward or only for this month?
Sorry, I should have mentioned I’ve moved the data across too.
Just to clarify, I don’t run the setup command on my RPi4? If I have, can I write a fresh OS to my SD card and start again?
I was following this guide but I must have misread the setup part. How do I migrate my node to a new device? - Node Operator
I’ve cleaned up my root folder as I had a number of backup db’s from when I had an error a few weeks ago.
The folder structure is now similar to yours.
root@******:/mnt/storj# ls -l /mnt/storj
total 80
drwxr-xr-x 3 root root 4096 Oct 15 12:23 backups
drwx------ 2 root root 36864 Jun 5 20:12 lost+found
drwx------ 4 root root 4096 Mar 24 2021 orders
-rw------- 1 root root 32768 Oct 6 07:14 revocations.db
drwx------ 7 root root 4096 Oct 15 10:45 storage
drwxr-xr-x 2 root root 4096 Oct 15 12:21 storagenode
-rw------- 1 root root 2730 Oct 6 12:15 trust-cache.json
If you added your user to the docker group and want to run docker without sudo, you will need to change an owner to your user instead of root with the command sudo chown your_user -R /mnt/storj.