plakar
plakar copied to clipboard
Unable to start plakar when syslog-ng is not started
To reproduce, start a docker container on ubuntu:
$ docker run --rm -ti ubuntu bash
Install deps:
apt-get update
apt-get install -y golang ca-certificates syslog-ng
go install github.com/PlakarKorp/plakar@fbf182410
Here, fbf182410 is a recent version of plakar, just pinned in this example so you can reproduce the bug.
then use plakar:
/root/go/bin/plakar create -plaintext
/root/go/bin/plakar ls
/root/go/bin/plakar: failed to run the agent
After starting syslog-ng manually, it works well:
syslog-ng
/root/go/bin/plakar ls
We should probably add some logging if the agent fails to start. I had to run strace to find the issue was related to syslog-ng.