NCP script - "Job for dnsmasq.service failed because a timeout was exceeded"

Hi all,

I am running a fresh Debian 10 install on a VPS and I have run the superb NCP install script but it always breaks here on dnsmasq:

reparing to unpack …/dnsmasq-base_2.80-1+deb10u1_amd64.deb …
Unpacking dnsmasq-base (2.80-1+deb10u1) …
Selecting previously unselected package dnsmasq.
Preparing to unpack …/dnsmasq_2.80-1+deb10u1_all.deb …
Unpacking dnsmasq (2.80-1+deb10u1) …
Setting up dnsmasq-base (2.80-1+deb10u1) …
Setting up dnsmasq (2.80-1+deb10u1) …
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service /lib/systemd/system/dnsmasq.service.
Job for dnsmasq.service failed because a timeout was exceeded.
See “systemctl status dnsmasq.service” and “journalctl -xe” for details.
invoke-rc.d: initscript dnsmasq, action “start” failed.
dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Wed 2021-04-14 21:56:43 CEST; 9ms ago
Process: 25339 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Process: 25340 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 25345 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=killed, signal=TERM)
Main PID: 25344 (code=exited, status=0/SUCCESS)
Apr 14 21:55:13 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Apr 14 21:55:13 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: read /etc/hosts - 5 addresses
Apr 14 21:55:13 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: reading /run/dnsmasq/resolv.conf
Apr 14 21:55:13 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: using nameserver xxx.xxx.xxx.10#53
Apr 14 21:55:13 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: using nameserver xxx.xxx.xxx.11#53
Apr 14 21:56:43 vmiXXXXXX.XXXXXXserver.net systemd[1]: dnsmasq.service: Start-post operation timed out. Stopping.
Apr 14 21:56:43 vmiXXXXXX.XXXXXXserver.net dnsmasq[25344]: exiting on receipt of SIGTERM
Apr 14 21:56:43 vmiXXXXXX.XXXXXXserver.net systemd[1]: dnsmasq.service: Control process exited, code=killed, status=15/TERM
Apr 14 21:56:43 vmiXXXXXX.XXXXXXserver.net systemd[1]: dnsmasq.service: Failed with result ‘timeout’.
Apr 14 21:56:43 vmiXXXXXX.XXXXXXserver.net systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

… but if I install dnsmasq before running the script, it is OK (I guess since dnsmasq is installed already it skips some steps of the script?)

Unfortunately, the install does not continue name resolution is gone :frowning: :

E: Failed to fetch http://asi-fs-n.YYYYYY.net/debian/pool/main/f/fail2ban/fail2ban_0.10.2-2.1_all.deb Temporary failure resolving ‘asi-fs-n.YYYYYY.net
E: Failed to fetch http://asi-fs-n.YYYYYY.net/debian/pool/main/w/whois/whois_5.4.3_amd64.deb Temporary failure resolving ‘asi-fs-n.YYYYYY.net
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Running nc-init
Setting up a clean Nextcloud instance… wait until message ‘NC init done’
Setting up database…
Setting up Nextcloud…
Set an admin username.
Set an admin password.
root@vmiXXXXXX:~#

I saw something similar here: https://github.com/MichaIng/DietPi/issues/1778