From 2a1c06116bed854482dbb73b19fa793e0dcaa8aa Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Tue, 18 Aug 2020 18:36:00 +0300 Subject: [PATCH] Add a handy command to the readme that checks the logs in a dockerized environment. --- setup-scripts/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-scripts/README.md b/setup-scripts/README.md index 6738dec3..bb62bdc5 100644 --- a/setup-scripts/README.md +++ b/setup-scripts/README.md @@ -104,8 +104,10 @@ At this point we have almost everything running, we just need to set up your wal > `docker exec caddy caddy reload --config /etc/caddy/Caddyfile` - Restarting nginx gracefully after making changes to nginx configs > `docker exec nginx openresty -s reload` -- Checking siad service logs (follow last 50 lines) +- Checking siad service logs (follow last 50 lines) in non-dockerized environments > `journalctl -f -n 50 --user-unit siad` +- Checking siad service logs (last hour) in dockerized environments + > `docker logs --since 1h $(docker ps -q --filter "name=^sia$")` - Checking caddy logs (for example in case ssl certificate fails) > `docker logs caddy -f` - Checking nginx logs (nginx handles all communication to siad instances)