Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDM Pro Max Install Issue - Error Test Query #165

Open
CautionSentry opened this issue Jul 26, 2024 · 7 comments
Open

UDM Pro Max Install Issue - Error Test Query #165

CautionSentry opened this issue Jul 26, 2024 · 7 comments

Comments

@CautionSentry
Copy link

CautionSentry commented Jul 26, 2024

Hi all,
I am trying to install ControlD via Automatic installer and when I run the cli command while SSH'd into my Unifi Dream Machine Pro Max I am getting an error.

Command I ran
sh -c 'sh -c "$(curl -sSL https://api.controld.com/dl)" -s ******* forced'

Output:

` __ .__ .___
/ |_| | | /
/ \ _ __ \ | / __ |
\ _| | | | / |
/ /
/ |
_
>| |
| |_/_ |
/ installer /


| System Info |

OS Type : linux
OS Vendor : ubios
OS Version : 4.0.6.16512
Router Model : UniFi Dream Machine Pro Max
Arch : aarch64
CPU : Cortex-A57
Free RAM : 3478 MB / 7972 MB

| Install Details |

Resolver ID : ********
Binary URL : https://dl.controld.com/linux-arm64/ctrld
Install Path : /data/controld

  • Starting download
  • PATH updated - please run 'source /root/.bashrc' to update your current shell
  • Making binary executable
  • Launching /data/controld/ctrld

Jul 26 23:10:57.000 NTC Reading config: /etc/controld/ctrld.toml
Jul 26 23:10:57.611 NTC Starting service
Jul 26 23:10:59.632 NTC Generating controld config: /etc/controld/ctrld.toml
Jul 26 23:11:49.263 ??? ================================
Jul 26 23:11:49.263 ??? An error occurred while performing test query: no answer from ctrld listener
Jul 26 23:11:49.264 ??? ================================
Jul 26 23:12:00.562 NTC Service uninstalled`

@photomme
Copy link

photomme commented Jul 26, 2024

Hey There.

Reboot UDM PRO and then rerun the installer.
It will work. Just make sure you rerun the script right after the reboot.

@CautionSentry
Copy link
Author

Hey! Thanks for your quick reply, I reboot the UDM Pro Max and ran the command and the same error occured.

Hey There.

Reboot UDM PRO and then rerun the installer. It will work. Just make sure you rerun the script right after the reboot.

@yegors
Copy link
Contributor

yegors commented Jul 26, 2024

This error suggests the DNS listener that ctrld spawns is not reachable for some reason, which is quite unusual, but can be caused by conflicting software or firewall rules.

Try starting ctrld manually with: /data/controld/ctrld start --cd RESOLVER_ID_HERE --skip-self-checks

The service will not exit, but you will likely have broken DNS. Perform the troubleshooting guide in this state, as per https://github.com/Control-D-Inc/ctrld/wiki/Troubleshooting-Guide

@CautionSentry
Copy link
Author

CautionSentry commented Jul 27, 2024

I went through the troubleshooting steps and even though the last command failed, I noticed I that Endpoint is now reflecting as online, odd but if it works I guess that's good. Eitherway, here are the screenshots of the troubleshooting steps.

netstat -tupln | grep ctrld

CleanShot 2024-07-27 at 13 16 31@2x

dig verify.controld.com @127.0.0.1 -p5354

CleanShot 2024-07-27 at 13 15 35@2x

netstat -tupln | grep ":53\b"

CleanShot 2024-07-27 at 13 15 21@2x

ctrld start --log /tmp/ctrld.log -vv
CleanShot 2024-07-27 at 02 14 33@2x

'/data/controld/ctrld start --cd **** --skip_self_checks'
CleanShot 2024-07-27 at 13 17 15@2x

Few Questions since I moved from AdGuard and NextDNS,
Do I have to re-install after every Unifi update ?

@cuonglm
Copy link
Collaborator

cuonglm commented Jul 27, 2024

Do I have to re-install after every Unifi update ?

No.

After starting ctrld with --skip_self_check, do dig verify.controld.com run ok?

The i/o timeout means something went wrong and block test query from reaching ctrld listener. But the dig command still run ok, which is weird.

@cuonglm
Copy link
Collaborator

cuonglm commented Jul 27, 2024

Oh wait, your netstat command shows that there's no listener on port 5354 for ipv4 ...

@CautionSentry
Copy link
Author

I reboot'd the UDM and it still functioning well, but I'm not sure what did it? I see the analytics flow but if run the command it'd still fail?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants