nextdns: Ubiquiti UDMP Problem with Updating

Context

  • CLI Version: 1.35.0
  • Platform: ubios (UDMP 1.11.0-14)

<Describe the bug>

I’m having problems from upgrading NextDNS from 1.35.0 to 1.36.0

# sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'
INFO: OS: ubios
INFO: GOARCH: arm64
INFO: GOOS: linux
INFO: NEXTDNS_BIN: /data/nextdns
INFO: INSTALL_RELEASE: 1.36.0
u) Upgrade NextDNS from 1.35.0 to 1.36.0
c) Configure NextDNS
r) Remove NextDNS
e) Exit
Choice (default=u): u
INFO: Upgrading NextDNS...
no such directory for freezer.state
Error: `/usr/bin/runc pause 01242cd40801fc2ebbeba4c1c023e3b2ab14b50a08d2effa612d82bb2dd76a03` failed: exit status 1
Reading package lists...
Building dependency tree...
Reading state information...
gnupg1 is already the newest version (1.4.21-4+deb9u1).
curl is already the newest version (7.52.1-5+deb9u15).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists...
W: Unable to read /etc/apt/-/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/sources.list.d/nextdns.list - RealFileExists (2: No such file or directory)
Reading package lists...
Building dependency tree...
Reading state information...
nextdns is already the newest version (1.35.0).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
u) Upgrade NextDNS from 1.35.0 to 1.36.0
c) Configure NextDNS
r) Remove NextDNS
e) Exit
Choice (default=u): 

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 59 (14 by maintainers)

Most upvoted comments

The installer then failed to detect the UDM and did not set the setup-router properly. I will submit a patch to the installer to fix that.

that article is wrong. that’s not the solution. the solution is to remove anything there and just wait. 100% of your dns lookups will be encrypted. Inputting that setting will cause your controller to go offline within a day and only be accessible locally, among other issues.

this worked: add repo after unifi-os shell. then exit shell and run nextdns upgrade - that got it to install and run.

The repository was missing for me too, so when I tried to update it ran through the process but did nothing. I had to add it back manually with the below:

unifi-os shell

echo "deb [signed-by=/usr/share/keyrings/nextdns.gpg] https://repo.nextdns.io/deb stable main" >> /etc/apt/sources.list.d/nextdns.list

exit

I experienced the same. The issue seems to be with the podman cp command. https://github.com/nextdns/nextdns/blob/6e203b0cbc7fb9a890e7bb9f389accb3d02e459e/install.sh#L460

I ran the commands from the install.sh file manually, but instead of echo to a file to be copied into the container, I used podman exec to echo directly to the final location of the file and everything worked as expected. On this beta firmware (same as OP) the podman version is 1.6.1.