Path to storagenode log file location

Log files, if not moved, are created by default in these locations:

Linux/Docker :

# Path to log files:
docker ps -a	#get instance-id, the beggining of container-id
ls -l			#get dirs and files details

# Ubuntu:
sudo su
cd /var/lib/docker/containers/
cd <containerID>
# full path - assuming use json-file as log driver: 
/var/lib/docker/containers/<containerID>/<containerID>-json.log

# Synology:
sudo su
cd /volume1/@docker/containers/
cd <containerID>
# full path - assuming use json-file as log driver and Docker installs on volume1:
/volume1/@docker/containers/<containerID>/<containerID>-json.log

Windows - as service:

C:/Program Files/Storj/Storage Node/storagenode.log
2 Likes

should be
C:/Program Files/Storj/Storage Node/storagenode.log

Also to get docker logs you may use the docker logs command which is much easier that searching the container’s logs inside the docker service directory.

I took the Windows path from Storj docs site > How to check logs, because I don’t have a Win node, but I think I missread that command.
Yes, for checking the logs the docker command is easiest, but I put the paths here for anyone trying to find the location, because I strugeled too. I needed to find the files because I wasn’t sure if my log settings work.

1 Like