pizauth icon indicating copy to clipboard operation
pizauth copied to clipboard

Make pizauth work without syslog and log to /dev/stdout and /dev/stderr

Open bokysan opened this issue 4 months ago • 2 comments

I've been trying to get pizauth to run in docker for two days straight.

Unfortunately, whatever I do, I just run into more issues:

  1. pizauth does not work without syslog.
  2. So I tried installing rsyslogd.
  3. Just trying to start in an entrypoint via rsyslogd -n didn't work.
  4. Great, let's put in there supervisord.
  5. But now I have an issue -- how do I pass arguments to pizauth?
  6. Write more scripts...

...A couple of days later...

  1. Great, that didn't work either. Back to the basis.
  2. Have I set error_notify_cmd? No, let's set that.
  3. Restart everything.
  4. Ok, we're back to Cannot connect to syslog: Initialization error: unix socket paths not found.

What I'm saying is: please provide an option that will log to /dev/stdout and /dev/stderr instead of relying on syslog.

Thank you.

bokysan avatar Aug 24 '25 08:08 bokysan

A non-syslog log should be possible, and there are the hooks to make this somewhat easy e.g. in main.rs:

let logger = syslog::unix(formatter).unwrap_or_else(|e| fatal(&format!("Cannot connect to syslog: {e:}")));

I'd happily take a PR for this (but I only use platforms with syslog, so it's not something I can really test).

The other aspects I'm a little confused by: they don't really seem anything pizauth related?

ltratt avatar Aug 25 '25 12:08 ltratt

They're not. 🙂

I'm just saying it took a while to try to get it running inside docker with syslog and it wasn't easy. Or done.

I'd be happy to provide a PR but, unfortunately, my Rust skills are somewhat lacking. I will see what I can do.

bokysan avatar Aug 27 '25 05:08 bokysan