Closed kristjankullerkann closed 4 years ago
Hi @litewhatever Thank you for reporting this. I also hit into permissions issue on Ubuntu 18.04 some time ago. Setting 1 second delay is fragile. Personally I prefer defining a udev rule. If you have time and passion - feel free to implement a PR. Otherwise, I will try to fix the issue soon.
Due to some reason I cannot reproduce this issue on the latest Ubuntu 18.04 vagrant box. Will spend some time testing the issue and your PR thoroughly.
Closed by #72
Hello
This is happening on Ubuntu 18.04
I noticed that patroni systemd service logs the following warning on initial deployment:
This comes from the fact that
/dev/watchdog
is not owned bypostgres:postgres
(though it should).If goes away after node reboot, for which ever reason (
/dev/watchdog
is now owned bypostgres:postgres
).Investigated this a bit and noticed that the following one liner does not work as expected (I suspect specifing multiple
ExecStart
inpatroni-watchdog.service
work in similar fashion):In the same time, adding
sleep 1
does whats expected (same goes forpatroni-watchdog.service
when addingExecStart=/bin/sleep 1
betweenmodprobe
andchown
):I personally don't like adding
sleep
, so I worked around it by defining udev rule as/etc/udev/rules.d/60-watchdog.rules
:Which solution would you prefer?