I have some questions and problems with a storagenode on Docker, Synology NAS; I’m tired to search and read all the old posts, many of those don’t apply to current versions, or are incomplete.
Thanks in advance to anyone who will shed some light on the topics.
I’m a newbie in Linux, I use only Windows systems, but I can follow instructions and input CLI commands if necesary. My storagenode:
Synology DS216+, DSM 6.2.4, Docker 18.09.0-0519, storagenode ver. 1.29.3., watchtower, only 1 HDD Ironwolf 8TB CMR, storagenode installed in volume1/Storj, logging in PuTTY with the administrator account - alpha (admin is disabled by default in new DSM). Port is forwarded for TCP and UDP.
Both tests from storjnet.info, PING and DIAL, TCP and QUIC, are working. Dashboard shows ok.
I used the following commands for installation:
sudo su (because without it, docker commands don’t work)
sysctl -w net.core.rmem_max=2500000
docker pull storjlabs/storagenode:latest
*SETUP NODE:
docker run --rm -e SETUP=“true”
–mount type=bind,source=“/volume1/Storj/Identity/storagenode/”,destination=/app/identity
–mount type=bind,source=“/volume1/Storj/”,destination=/app/config
–name storagenode storjlabs/storagenode:latest
*START NODE:
docker run -d --restart unless-stopped --stop-timeout 300
-p 28967:28967/tcp
-p 28967:28967/udp
-p 14002:14002
-e WALLET=“XXXXXXXX”
-e EMAIL=“XXXXXXXX”
-e ADDRESS=“XXXXXXX:28967”
-e STORAGE=“7TB”
–mount type=bind,source=“/volume1/Storj/Identity/storagenode/”,destination=/app/identity
–mount type=bind,source=“/volume1/Storj/”,destination=/app/config
–name storagenode storjlabs/storagenode:latest
*AUTOUPDATE:
docker pull storjlabs/watchtower
docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s
docker ps -a
Both, storagenode and watchtower are running.
*MANUAL UPDATE:
docker stop -t 300 storagenode
docker rm storagenode
docker pull storjlabs/storagenode:latest
than I run *START NODE.
And now the PROBLEMS:
[1]. “sudo su” or “sudo -i”
I don’t know if I should use one or another; a friend told me to install in [sudo su] mode.
They seems to change the prompt in something else:
alpha@diskstation:/$ sudo su
xxx-x.x#
alpha@diskstation:/$ sudo -i
root@diskstation:/#
I remember installing the node in [sudo su] mode, and after 2 days, I pulled the watchtower, but in [sudo -i] mode, I think… is there a problem?
[2]. log.output: “/app/config/node.log” - dosen’t change the destination of the log file.
I want the log file to be in the storage node folder: “/volume1/Storj/node.log”
What is the proper setting? And the “” are necesary?
[3]. The storage node is still at 1.29.3, after a week. The latest release is 1.30.2.
On “version.storj.io” site I see:
1.29.3 - “suggested”
1.30.2 - “rollout”
“docker logs watchtower” shows this:
time=“2021-05-25T13:57:29Z” level=info msg=“Waiting for running update to be finished…”
time=“2021-05-28T20:15:43Z” level=info msg=“Waiting for running update to be finished…”
I tried the manual update too, and still no version change. Is there a way to force the update? What seems to be the problem? After manual update, should I run *START NODE or *SETUP NODE commands?
[4]. On Github I see “storagenode” and “storagenode-updater” for Windows and Linux, but from what I understand from the pull command, only the storagenode is downloaded and installed.
What is the use of “storagenode-updater” for Linux? Should I install/pull that too? Is that the watchtower?
[5]. After changes in config.yaml, should I use only
“docker stop -t 300 storagenode”
“docker start storagenode”
or
“docker stop -t 300 storagenode”
“docker rm storagenode”
*START NODE command ?
[6]. When requesting the auth token, I entered my real email, but didn’t received the auth token in email or spam. The email address is used for what exactely? If we input a fake one, dose it matter?
[7]. The ethernal questions with 1000 answers: where are located the storgenode instalation file, watchtower file, node log file and watchtower log file, in my particular case and what commands shoud I use to search for them?
I only used “cd”, “ls” and “ls -la”, but no success. And I realy can’t try all the folders on DS.
“docker logs storagenode” and “docker logs watchtower” seems to read them from somewhere…
[8]. HDD hibernation, Recyle Bin, Write cache - should I deactivate them?
DS is hooked to an UPS, but it is not stoped by it remotely.
[9]. Should I let DSM and Docker package to autoupdate? Is there any risks?