You are not logged in.
i am trying to start dnsmasq but it is not starting, i am not sure where the problem is and where to look for.
[%]> sudo systemctl status dnsmasq.service
[sudo] password for mrw01f:
* dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2020-05-09 21:14:23 IST; 4min 7s ago
Docs: man:dnsmasq(8)
Process: 2036 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=127)
May 09 21:14:23 arch systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 5.
May 09 21:14:23 arch systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:14:23 arch systemd[1]: dnsmasq.service: Start request repeated too quickly.
May 09 21:14:23 arch systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 09 21:14:23 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.[%]>sudo journalctl -p 3 -xb
-- The job identifier is 1463 and the job result is failed.
May 09 21:11:45 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Subject: A start job for unit dnsmasq.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit dnsmasq.service has finished with a failure.
--
-- The job identifier is 1539 and the job result is failed.
May 09 21:11:45 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
-- Subject: A start job for unit dnsmasq.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit dnsmasq.service has finished with a failure.
--
-- The job identifier is 1615 and the job result is failed.Last edited by mrw01f (2020-05-09 17:39:16)
Offline
Have you just installed dnsmasq and the service has never worked? If the service did work in the past what changed on the system?
What is the output of
journalctl -b0 -u dnsmasq.servicePlease do not post outputs filtered by priority which removes context or include catalog messages.
Offline
Have you just installed dnsmasq and the service has never worked? If the service did work in the past what changed on the system?
What is the output ofjournalctl -b0 -u dnsmasq.servicePlease do not post outputs filtered by priority which removes context or include catalog messages.
i have just installed it and tried starting it with
sudo systemctl start dnsmasq.service[%]>sudo journalctl -b0 -u dnsmasq.service
-- Logs begin at Sun 2020-04-26 12:39:35 IST, end at Sat 2020-05-09 22:36:43 IST. --
May 09 21:11:44 arch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 09 21:11:44 arch dnsmasq[1875]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Control process exited, code=exited, status=127/n/a
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 09 21:11:44 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 1.
May 09 21:11:44 arch systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:44 arch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 09 21:11:44 arch dnsmasq[1881]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Control process exited, code=exited, status=127/n/a
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 09 21:11:44 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 2.
May 09 21:11:44 arch systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:44 arch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 09 21:11:44 arch dnsmasq[1882]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Control process exited, code=exited, status=127/n/a
May 09 21:11:44 arch systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 09 21:11:44 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:45 arch systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 3.
May 09 21:11:45 arch systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:45 arch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 09 21:11:45 arch dnsmasq[1883]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>
May 09 21:11:45 arch systemd[1]: dnsmasq.service: Control process exited, code=exited, status=127/n/a
May 09 21:11:45 arch systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
May 09 21:11:45 arch systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:45 arch systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 4.
May 09 21:11:45 arch systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
May 09 21:11:45 arch systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
May 09 21:11:45 arch dnsmasq[1884]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>
May 09 21:11:45 arch systemd[1]: dnsmasq.service: Control process exited, code=exited, status=127/n/aOffline
What command did you use to install dnsmasq?
May 09 21:11:44 arch dnsmasq[1875]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>Indicates a missing library or wrong library version. What is the output of
pacman -Qo /usr/lib/libnettle.so
pacman -Q dnsmasqOffline
What command did you use to install dnsmasq?
May 09 21:11:44 arch dnsmasq[1875]: /usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.8: cannot open shared object file: No su>Indicates a missing library or wrong library version. What is the output of
pacman -Qo /usr/lib/libnettle.so pacman -Q dnsmasq
I just did "pacman -S dnsmasq" thats all
└[%]> pacman -Qo /usr/lib/libnettle.so
/usr/lib/libnettle.so is owned by nettle 3.5.1-2└[%]> pacman -Q dnsmasq
dnsmasq 2.81-4Offline
The version of nettle is outdated while the version of dnsmasq is current so the libraries mismatch.
Please post the contents of /var/log/pacman.log.
Offline
[SOLUTION]
i just forgot to update
sudo pacman -SyuOffline
If you avoid `pacman -Sy` then pacman -S will work or fail but not produce partial updates.
Offline