Update-resolv-conf fails to execute

Hi,

pinxi: (cannot edit my posts to replace inxi output with current)

.
I start OpenVPN from terminal.
After 2020-08-28 update update-resolve-conf fails, OpenVPN log at verb 4:

Fri Aug 28 15:46:49 2020 us=646697 /etc/openvpn/up.sh tun0 1500 1585 10.50.0.15 255.255.0.0 init
    + run /etc/openvpn/update-resolv-conf
    + /etc/openvpn/update-resolv-conf
    dhcp-option DNS 10.50.0.1
    /usr/lib/resolvconf/libc.d/avahi-daemon: line 31: kill: (434) - Operation not permitted
    + '[' 1 -ne 0 ']'
    + echo '/etc/openvpn/update-resolv-conf Failed with exit code 0'
    /etc/openvpn/update-resolv-conf Failed with exit code 0
    + return 1
    Fri Aug 28 15:46:49 2020 us=696834 WARNING: Failed running command (--up/--down): external program exited with error status: 1
    Fri Aug 28 15:46:49 2020 us=696857 Exiting due to fatal error

.
I never saw avahi-deamon in OpenVPN logs.

cat /usr/lib/resolvconf/libc.d/avahi-daemon

#!/bin/sh
...
...
...

: ${avahi_daemon_pidfile:=/var/run/avahi-daemon/pid}
if [ -s "$avahi_daemon_pidfile" ]; then
        kill -HUP $(cat "$avahi_daemon_pidfile")
fi

Help troubleshooting appreciated,
Thanks

Ok,

now using update-systemd-resolved:
https://wiki.archlinux.org/index.php/OpenVPN#The_update-systemd-resolved_custom_script

Works fine but still wondering why the previous solution failed…

Thanks

systemd runs at root level, so the kill that was failing:

now just works.

Also, in the future, please mark a solution like this:
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

:innocent:

1 Like

Hi,

Using update-systemd-resolved doesn’t solve the problem with update-resolv-conf.

But yes, it is a solution from user point of view.
:wink:

Thanks

1 Like

Coming back to this:

So does OpenVPN and it used to work fine before the 2020-08-28 update:

root      347026  0.0  0.1  19460 10620 ?        Ss   17:37   0:00 /usr/bin/openvpn --config client.conf

.

After a shutdown last night it doesn’t work anymore today.
I can ping:

ping 9.9.9.9
ping manjaro.org

but Firefox is unable to resolve DNS the same for dig.

Did a pre update restore, working fine.
Will wait for next update.

Thanks

1 Like

openresolv added support to notify avahi-daemon and mdnsd of resolv.conf changes last month.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.