nextdns icon indicating copy to clipboard operation
nextdns copied to clipboard

Unable to install on UDM (device or resource busy)

Open Zzgwalk opened this issue 5 years ago • 18 comments

Somehow to install on a UDM 1.8.1 rc3 Controller: 6.0.24

Error message Error: setup resolv.conf: rename /etc/resolv.conf /etc/resolv.conf.nextdns-bak: device or resource busy

No joy after restarting as well

Zzgwalk avatar Oct 06 '20 18:10 Zzgwalk

I used the command: 'nextdns stop' and then rebooted the UDMP, then it worked great for me :)

Allram avatar Oct 19 '20 10:10 Allram

Just tried it but nope, also not working. The resolv.conf in /etc is just a symlink from /tmp/resolv.conf I assume that's why it is failing to replace the file.

Zzgwalk avatar Oct 22 '20 13:10 Zzgwalk

I am also getting this error. I did very briefly after installing get the all good on the nextdns config website. It is now showing that im using cloudflare no matter if i remove nextdns or not.

after seeing Zzgwalk's comment about

The resolv.conf in /etc is just a symlink from /tmp/resolv.conf I assume that's why it is failing to replace the file.

I copied the actual resolv.conf from /tmp to /etc and attempted to rerun, still no joy with various reboots.

Ludacon avatar Nov 03 '20 15:11 Ludacon

Please disable auto-activate, it is not necessary on a router and does not work on UDMP.

rs avatar Nov 03 '20 16:11 rs

Hurm, i dont recall setting it, but i see its active, im still searching for the config file in the udm file structure, or a working command with nextdns config set to turn it off.

Ludacon avatar Nov 03 '20 18:11 Ludacon

nextdns config set -auto-activate=false then nextdns restart. The config file is located in /data/nextdns.conf.

rs avatar Nov 03 '20 18:11 rs

thanks! Auto-Activate is now false, the dashboard still shows cloudflare (maybe cached somewhere? it HAS shown all good a couple times today) but i see my network device queries in the logs. Actually looking through the logs it looks like its been working for a while now.

I suspect the OP and myself were using the nextdns Activate command thinking that was necessary to get it working.

Ludacon avatar Nov 03 '20 18:11 Ludacon

The dashboard should’t show cloudflare tho.

rs avatar Nov 03 '20 19:11 rs

After further diagnosing, it looks like its only in my main firefox install, so i suspect something with the browser there? test.nextdns.io shows everything properly configured. As do a handful of random devices i test (including 2 cell phones). I see regular dns queries going out so it IS working. But yea the cloudflare thing is weird.

Ludacon avatar Nov 03 '20 20:11 Ludacon

Here is a screenshot of edge and firefox next to each other. Firefox has all addons disabled.

image

Ludacon avatar Nov 03 '20 20:11 Ludacon

Did you disable DoH on firefox?

rs avatar Nov 03 '20 20:11 rs

NOPE. TOTALLY forgot that was a thing. Many Many thanks @rs

Ludacon avatar Nov 04 '20 03:11 Ludacon

I have upgraded today NextDNS on my UDP Pro to 1.9.6 and the service stopped working. Already tried al the things above but i'm not be able to activate the service again.

Get the message: Activate: setup resolv.conf: rename /etc/resolv.conf.nextdns-tmp /etc/resolv.conf: dev

Uninstall --> install --> reboot etc etc... nothing work...

Is there a way to downgrade to a previous version?

nextdns log

Jan 12 16:04:27 ubnt systemd[1]: Starting NextDNS DNS53 to DoH proxy.... Jan 12 16:04:27 ubnt nextdns[7550]: Starting NextDNS 1.9.6/linux on localhost:5553 Jan 12 16:04:27 ubnt nextdns[7550]: Starting mDNS discovery Jan 12 16:04:27 ubnt nextdns[7550]: Listening on UDP/127.0.0.1:5553 Jan 12 16:04:27 ubnt nextdns[7550]: Listening on TCP/127.0.0.1:5553 Jan 12 16:04:27 ubnt ssh[7551]: Welcome to UbiOS Jan 12 16:04:27 ubnt ssh[7551]: By logging in, accessing, or using the Ubiquiti product, you Jan 12 16:04:27 ubnt ssh[7551]: acknowledge that you have read and understood the Ubiquiti Jan 12 16:04:27 ubnt ssh[7551]: License Agreement and agree to be bound by its terms. Jan 12 16:04:27 ubnt systemd[1]: Started NextDNS DNS53 to DoH proxy.. Jan 12 16:04:32 ubnt nextdns[7550]: Setting up router Jan 12 16:04:33 ubnt nextdns[7550]: Activating Jan 12 16:04:33 ubnt nextdns[7550]: Activate: setup resolv.conf: rename /etc/resolv.conf.nextdns-tmp /etc/resolv.conf: device or resource busy Jan 12 16:04:46 ubnt systemd[1]: Stopping NextDNS DNS53 to DoH proxy.... Jan 12 16:04:46 ubnt nextdns[7550]: Received signal: terminated Jan 12 16:04:46 ubnt nextdns[7550]: Stopping NextDNS 1.9.6/linux Jan 12 16:04:46 ubnt nextdns[7550]: Restore router settings Jan 12 16:04:46 ubnt nextdns[7550]: Deactivating Jan 12 16:04:46 ubnt nextdns[7550]: Deactivate: restore resolv.conf: rename /etc/resolv.conf.nextdns-bak /etc/resolv.conf: device or resource busy Jan 12 16:04:46 ubnt nextdns[7550]: NextDNS 1.9.6/linux stopped

josdegroot avatar Jan 12 '21 15:01 josdegroot

Stil not working.... have updated to 1.10.1... but still get the message: Activate: setup resolv.conf: rename /etc/resolv.conf /etc/resolv.conf.nextdns-bak: device or resource busy

nextdns activate

Error: setup resolv.conf: rename /etc/resolv.conf /etc/resolv.conf.nextdns-bak: device or resource busy Error: non zero exit code: 1: OCI runtime error

NextDNS is not working anymore...

josdegroot avatar Jan 29 '21 14:01 josdegroot

I do have the same issue as well on UDM Pro running 1.9.2.3432

Morpilot avatar Apr 03 '21 12:04 Morpilot

I have the same issue on UDM Pro running 1.10.0-8

rickross avatar Apr 25 '21 20:04 rickross

I ran into this after mistakenly removing the local ssh public (ssh-rsa <key data> root@ubntkey) from /root/.ssh/authorized_keys

ubnt ssh[23203]: Permission denied, please try again. in the log was the hint

Replacing the removed key resolved this. In that case this isn't a problem on the nextdns side as that key is needed for internal unifi processes. It would be helpful if the purpose of that key was documented by Ubiquiti.

@rs Perhaps check a key with root@ubntkey exists in the authorized_keys file?

ArrEssJay avatar Dec 02 '21 00:12 ArrEssJay

Is the auto-activate issue still valid? The error still persists but I'm not sure its breaking NextDNS.

Maybe worth a note on https://github.com/nextdns/nextdns/wiki/UnifiOS ?

dcramer avatar Apr 13 '22 22:04 dcramer