From windows to docker MIG I'll just ask one trivial question

I’m a little confused, so I’m writing this just to check.

  1. When all data has been transferred, authenticate using the command below.
identity authorize storagenode <email:characterstring>

grep -c BEGIN ~/.local/share/storj/identity/storagenode/ca.cert

grep -c BEGIN ~/.local/share/storj/identity/storagenode/identity.cert

sudo docker pull storjlabs/storagenode:latest

  1. After installing storj, enter the command below without using SETUP.
docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967/tcp \
    -p 28967:28967/udp\
    -p \
    -e EMAIL="" \
    -e ADDRESS="" \
    -e STORAGE="2TB" \
    --user $(id -u):$(id -g) \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest

All I have to do is start with the command above, right?

I think it’s true, but if I make a mistake, offline time will be longer, so I’m writing this to confirm. Thank you for your reply

this is not needed for the existing node, it should be done only for a new node.
You need only run the docker run command without a SETUP variable but with all your parameters. If the paths are correct and your user has enough permissions - all should work correctly.
You actually may change the owner forcibly to be sure that permissions are correct, i.e.

sudo chown $(id -u):$(id -g) -R /mnt/storj

where /mnt/storj is a path to the data location. If your identity placed elsewhere, you need to apply this command to that path too.

If you migrated node’s data, you also need to migrate its identity too, not generate a new one.

1 Like

Thank you. I think it was a good question because you don’t have to do identity work :slight_smile:
And the data location is

sudo chown $(id -u):$(id -g) -R /share/CACHEDEV2_DATA/storj

Is it okay to write it like above and then run enter…?!

I have no idea, what is your local path and it does not match the shown picture, it’s more confusing, than helping.
Please give me result of the command:

df --si
1 Like


The df --si command doesn’t work, so I try -i and it comes out. Is this correct…?!

No, then you may try to use -H, but it will produce the report in binary units, not SI (decimal units).
However, for the purpose to see Mount points this one is good enough too.

So, I guess that the path /share/CACHEDEV2_DATA/storj is maybe correct for your device.
Could you please show

ls -l /share/CACHEDEV2_DATA/storj
1 Like

thank you!

Also, I found out the /mt command to speed up robocopy. Can I use this?
/nfl /ndl /mt:16

The list looks correct. But if it really belongs to everyone, then you likely do not need to apply sudo chown.

I think you can use the /mt option. /nfl and /ndl are affects only logs, why do you need them?

I’m glad I don’t have to set up sudo chown :slight_smile:

I asked because the code was suggested as a quick copy method on the Internet. I didn’t know that copying 4 tera would take this long… :dizzy_face: Thanks for the reply Alexey!!

1 Like