Dr.Ko
January 15, 2024, 5:56am
1
This might be a silly question, but I can’t find where the log data is stored…
Windows node was in the storage folder, but Sinology node can’t find where the log file is stored:(
Can you find where it is stored
Attached is a screenshot of the data folder
Vadim
January 15, 2024, 5:59am
2
Log file on windows, usualy in instalation foldes, Program Files/Storj/Storagenode
1 Like
They should be inside the container. In my Qnap they are there
docker logs --tail 20 storagenode
1 Like
peem
January 15, 2024, 6:30am
4
With the ssh command to Synology, and there:
sudo docker inspect <your-container-name> -f '{{ .LogPath }}'
example:
sudo docker inspect storagenode -f '{{ .LogPath }}'
1 Like
Dr.Ko
January 15, 2024, 6:35am
5
That’s right! Windows nodes were in an easy place to find, but Sinology seems to be hidden… Thank you for your answer. I’m using the node management program for Windows you uploaded, and I’m using it well!
Dr.Ko
January 15, 2024, 6:43am
6
https://forum.storj.io/t/log-exporter-for-prometheus-with-grafana-dashboard/11250
The link here tells me to enter the path of the log file, but it’s hard for me to find it… I tried to connect to the root and find the container location, but it’s not easy either… There’s a mountain behind the mountain!
I also attach the result of the command you posted
Thank you!
The command shows you the last 20 logs. Maybe it can be useful to you
These are all the useful parameters that one storagenode can use, and the modifications that I use for the second node. Fill free to use them or not, is up to you. I put them here fore easy reference.
These work for Synology NAS and I run them in sudo su mode.
There is also the --user $(id -u):$(id -g) parameter, but I started without it. It seems that dosen’t work on Synology NAS.
NODE 1, MACHINE 1:
Run only once at install of first node:
echo "net.core.rmem_max=2500000" >> /etc/sysctl.co…
1 Like
Dr.Ko
January 15, 2024, 6:53am
8
Oh…! I found it. Thank you!
1 Like
Dr.Ko
January 15, 2024, 7:01am
9
I don’t think it’s the answer I want. I’m getting an error
peem
January 15, 2024, 7:09am
10
Because this is Synology, and they do it their way to some .db, not .json
See what @SlavikCA discovered:
I found right settings for logging on Synology:
--log-driver json-file \
--log-opt max-size=10m \
--log-opt max-file=5 \
3 Likes
Dr.Ko
January 15, 2024, 7:09am
11
That’s something I need to read, thank you!
Dr.Ko
January 15, 2024, 7:36am
12
--log-driver json-file \
--log-opt max-size=10m \
--log-opt max-file=5 \
!!thank you!!
It must have been hard for beginners to deal with. Thank you.
Alexey
January 15, 2024, 8:27am
13
You may also redirect logs to the file to always find them.
1 Like