Re: [Nix-dev] dnsmasq fails to start
On Wed, Mar 22, 2017 at 3:09 AM, Bjørn Forsmanwrote: > Have you tried restarting the machine after adding that config? I > think e.g. avahi misbehaves on the first "nixos-rebuild switch" due to > some dbus issue (fixed by rebooting), perhaps this is like that? > Thanks Bjørn. That solved the problem. dnsmasq is working now. Mark -- Mark Gardner -- ___ nix-dev mailing list nix-dev@lists.science.uu.nl https://mailman.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] dnsmasq fails to start
On 22 March 2017 at 01:55, Mark Gardnerwrote: > [Sorry for the earlier empty message...] > > I am trying to use dnsmasq per the manual: > > services = { > dnsmasq = { > enable = true; > servers = [ "208.67.222.123" "208.67.220.123" ]; > }; > }; > > The daemon fails to start: > > Mar 21 20:41:25 foobar systemd[1]: Starting Dnsmasq Daemon... > Mar 21 20:41:25 foobar dnsmasq-pre-start[30845]: dnsmasq: syntax check OK. > Mar 21 20:41:25 foobar dnsmasq[30856]: dnsmasq: DBus error: Connection > ":1.34" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to > security policies in the configuration file > Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Main process exited, > code=exited, status=5/NOTINSTALLED > Mar 21 20:41:25 foobar systemd[1]: Failed to start Dnsmasq Daemon. > Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Unit entered failed > state. > Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Failed with result > 'exit-code'. > > I have been unsuccessful in figuring out what I am doing wrong. It appears > to be something to do with Dbus policy. Anyone running dnsmasq that can give > me pointers? Have you tried restarting the machine after adding that config? I think e.g. avahi misbehaves on the first "nixos-rebuild switch" due to some dbus issue (fixed by rebooting), perhaps this is like that? - Bjørn ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] dnsmasq fails to start
Mark, On 17-03-21 at 20:55, Mark Gardner wrote: Mar 21 20:41:25 foobar dnsmasq[30856]: dnsmasq: DBus error: Connection ":1.34" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to security policies in the configuration file Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Main process exited, code=exited, status=5/NOTINSTALLED do you have any files matching *dnsmasq* in /run/current-system/sw/etc/dbus-1/system.d and /etc/systemd/system ? -- Regards, Peter ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] dnsmasq fails to start
[Sorry for the earlier empty message...] I am trying to use dnsmasq per the manual: services = { dnsmasq = { enable = true; servers = [ "208.67.222.123" "208.67.220.123" ]; }; }; The daemon fails to start: Mar 21 20:41:25 foobar systemd[1]: Starting Dnsmasq Daemon... Mar 21 20:41:25 foobar dnsmasq-pre-start[30845]: dnsmasq: syntax check OK. Mar 21 20:41:25 foobar dnsmasq[30856]: dnsmasq: DBus error: Connection ":1.34" is not allowed to own the service "uk.org.thekelleys.dnsmasq" due to security policies in the configuration file Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Main process exited, code=exited, status=5/NOTINSTALLED Mar 21 20:41:25 foobar systemd[1]: Failed to start Dnsmasq Daemon. Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Unit entered failed state. Mar 21 20:41:25 foobar systemd[1]: dnsmasq.service: Failed with result 'exit-code'. I have been unsuccessful in figuring out what I am doing wrong. It appears to be something to do with Dbus policy. Anyone running dnsmasq that can give me pointers? Mark -- Mark Gardner -- ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] dnsmasq fails to start
-- Mark Gardner -- ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev