You are not logged in.

#1 2022-08-15 20:38:52

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

dnsmasq.service fail on fresh install

i used yay -S dnsmasq to install and when i attempt to start it i get the following

[casper@HomeGate ~]$ systemctl start dnsmasq.service
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start 'dnsmasq.service'.
Authenticating as: casper
Password: 
==== AUTHENTICATION COMPLETE ====
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xeu dnsmasq.service" for details.

and of course the error logs are as follows

[casper@HomeGate ~]$ systemctl status dnsmasq.service
× dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Mon 2022-08-15 20:34:56 UTC; 2min 39s ago
       Docs: man:dnsmasq(8)
    Process: 1605 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=0/SUCCESS)
    Process: 1606 ExecStart=/usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file (code=exited, status=2)
   Main PID: 1606 (code=exited, status=2)
        CPU: 58ms

Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 5.
Aug 15 20:34:56 HomeGate systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Start request repeated too quickly.
Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Aug 15 20:34:56 HomeGate systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

and

[casper@HomeGate ~]$ journalctl -xeu dnsmasq.service
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dnsmasq.service has entered the 'failed' state with result 'exit-code'.
Aug 15 20:34:56 HomeGate 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 3426 and the job result is failed.
Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ Automatic restarting of the unit dnsmasq.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Aug 15 20:34:56 HomeGate systemd[1]: Stopped dnsmasq - A lightweight DHCP and caching DNS server.
░░ Subject: A stop job for unit dnsmasq.service has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A stop job for unit dnsmasq.service has finished.
░░ 
░░ The job identifier is 3517 and the job result is done.
Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Start request repeated too quickly.
Aug 15 20:34:56 HomeGate systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dnsmasq.service has entered the 'failed' state with result 'exit-code'.
Aug 15 20:34:56 HomeGate 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 3517 and the job result is failed.

Offline

#2 2022-08-15 20:40:30

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

i want to add that this is a new pc that completed the archinstall on the iso (i never tried that install and i gotta say it made it very easy) and have i3-gaps for wm

Offline

#3 2022-08-15 21:41:43

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

i also failed to note i have attempted to fix this myself... closest i could find was https://bbs.archlinux.org/viewtopic.php?id=255534 but i think its another issue becuase the fix was an update and thats not the issue for me

[casper@HomeGate ~]$ yay
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 there is nothing to do

Offline

#4 2022-08-16 12:37:39

cmm11
Member
Registered: 2018-02-18
Posts: 53

Re: dnsmasq.service fail on fresh install

Check your config and check something else isn't maybe listening on the same ports as what dnsmasq is suppose to be using.

Offline

#5 2022-08-16 22:25:31

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

cmm11 wrote:

Check your config and check something else isn't maybe listening on the same ports as what dnsmasq is suppose to be using.

its a fresh install so i dont know how the configs would be bad... whats the best way to check what ports are in use? and now that im reading this again... i dont know if dnsmasq is what i need then lmao im trying to make searx header (currently 192.168.1.117:8888) to somthing... well not numbers lol dont want it public but i want it local

Last edited by CrispCasper (2022-08-16 22:32:40)

Offline

#6 2022-08-17 11:22:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,175

Re: dnsmasq.service fail on fresh install

 core is up to date
 extra is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date

You're supposed to use all testing repos or none.
I suggest you stay away from testing repos until you have a very good reason to use them.

see https://wiki.archlinux.org/title/Offici … positories for more info and the "Disabling testing repositories" section a bit further down on that page for how to get rid of testing stuff safely.

Last edited by Lone_Wolf (2022-08-17 11:22:26)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2022-08-17 20:34:54

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

Lone_Wolf wrote:
 core is up to date
 extra is up to date
 community is up to date
 multilib-testing is up to date
 multilib is up to date

You're supposed to use all testing repos or none.
I suggest you stay away from testing repos until you have a very good reason to use them.

see https://wiki.archlinux.org/title/Offici … positories for more info and the "Disabling testing repositories" section a bit further down on that page for how to get rid of testing stuff safely.

good catch! i enabled multilib through the archinstall so the issue would be there

EDIT: after disabling the test repos and running a full system update it did not change anything

Last edited by CrispCasper (2022-08-17 20:39:12)

Offline

#8 2022-08-18 15:08:07

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,178

Re: dnsmasq.service fail on fresh install

CrispCasper wrote:

EDIT: after disabling the test repos and running a full system update it did not change anything

Did you use the command to enable downgrades given in the wiki? A simple update won't get rid of the packages from testing.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2022-08-19 06:45:10

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

cfr wrote:
CrispCasper wrote:

EDIT: after disabling the test repos and running a full system update it did not change anything

Did you use the command to enable downgrades given in the wiki? A simple update won't get rid of the packages from testing.

a command to "enable downgrades" doesn't exist it says on the page linked

"
Disabling testing repositories

If you enabled testing repositories, but later on decided to disable them, you should:

    Remove (comment out) them from /etc/pacman.conf
    Perform a pacman -Syuu to "rollback" your updates from these repositories.

The second item is optional, but keep it in mind if you notice any problems.
"
with that being said yes my system is up to date...

Last edited by CrispCasper (2022-08-19 06:46:08)

Offline

#10 2022-08-19 09:57:58

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,175

Re: dnsmasq.service fail on fresh install

man pacman wrote:

-u, --sysupgrade
Upgrades all packages that are out-of-date. Each currently-installed package will be examined and upgraded if a newer package exists. A report of all packages to upgrade will be presented, and the operation will not proceed without user confirmation. Dependencies are automatically resolved at this level and will be installed/upgraded if necessary.

Pass this option twice to enable package downgrades; in this case, pacman will select sync packages whose versions do not match with the local versions. This can be useful when the user switches from a testing repository to a stable one.

Additional targets can also be specified manually, so that -Su foo will do a system upgrade and install/upgrade the "foo" package in the same operation.

black code tags added by me

Did you perform a pacman -Syuu after removing /commenting multilib-testing repo from pacman.conf ?

If not, please do so.

Last edited by Lone_Wolf (2022-08-19 09:59:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#11 2022-08-22 18:51:52

CrispCasper
Member
Registered: 2021-07-28
Posts: 39

Re: dnsmasq.service fail on fresh install

Lone_Wolf wrote:
man pacman wrote:

-u, --sysupgrade
Upgrades all packages that are out-of-date. Each currently-installed package will be examined and upgraded if a newer package exists. A report of all packages to upgrade will be presented, and the operation will not proceed without user confirmation. Dependencies are automatically resolved at this level and will be installed/upgraded if necessary.

Pass this option twice to enable package downgrades; in this case, pacman will select sync packages whose versions do not match with the local versions. This can be useful when the user switches from a testing repository to a stable one.

Additional targets can also be specified manually, so that -Su foo will do a system upgrade and install/upgrade the "foo" package in the same operation.

black code tags added by me

Did you perform a pacman -Syuu after removing /commenting multilib-testing repo from pacman.conf ?

If not, please do so.


i already have but im always willing to do it again! always good practice to keep a system up to date!

Offline

#12 2022-08-24 13:06:48

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,175

Re: dnsmasq.service fail on fresh install

Normally the double u is only needed one time, just keep doing pacman -Syu .

Back to topic .

CrispCasper wrote:

dont know if dnsmasq is what i need then lmao im trying to make searx header (currently 192.168.1.117:8888) to somthing... well not numbers lol dont want it public but i want it local

Please elaborate what you're trying to accomplish


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB