forem / selfhost

Selfhost your Forem Community on your own infrastructure 🎉
https://www.forem.com/get-started/
GNU Affero General Public License v3.0
1.44k stars 172 forks source link

Where are the production logs? #23

Closed omenking closed 3 years ago

omenking commented 3 years ago

I ran into a 500 error and so I figured I should setup streaming logs to CloudWatch Logs.

When I entered the rails container sudo podman exec -it forem-rails /bin/bash

and I tried to tail the logs tail -f log/production.log They were empty.

I set up HoneyBadger but this is only a temporary solution.

I could not determine where are the logs in the forem.yml.j2. I can see they should get set to Stdout.

Can I have a Linux command and location where I can observe the logs on a self-hosted production server? I think if I can observe the logs I'll be able to do the rest myself.

jdoss commented 3 years ago

Everything should be going into the systemd journal. Try this:

journalctl -f -u forem-rails.service

cmgorton commented 3 years ago

Looks like this was answered @omenking. Going to go a head and close this issue.