Skip to content

UniFi: ctrld tries mongodb, even though mongodb does not exist #292

@dcabri

Description

@dcabri

#OS Type : linux
#OS Vendor : ubios
#OS Version : 5.0.12.30269
#Router Model : Gateway Max
#Arch : aarch64
#CPU : Kryo V2
#Free RAM : 750 MB / 1946 MB
#Binary URL : https://dl.controld.com/linux-arm64/ctrld
#Install Path : /data/controld
ctrld version v1.4.9

ctrld is trying to launch mongodb, even though this is not present:

/bin/sh /usr/bin/mongo localhost:27117/ace --quiet --eval
DBQuery.shellBatchSize = 256;
db.user.find({name: {$exists: true, $ne: ""}}, {_id:0, mac:1, name:1});

root@Max:/data/controld# systemctl status ctrld
● ctrld.service - A highly configurable, multi-protocol DNS forwarding proxy
Loaded: loaded (/etc/systemd/system/ctrld.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2026-02-18 08:33:53 EET; 2s ago
Main PID: 1987116 (ctrld)
Tasks: 14 (limit: 2327)
Memory: 36.1M
CPU: 1.503s
CGroup: /system.slice/ctrld.service
├─1767778 /bin/sh /usr/bin/mongo localhost:27117/ace --quiet --eval
DBQuery.shellBatchSize = 256;
db.user.find({name: {$exists: true, $ne: ""}}, {_id:0, mac:1, name:1});
├─1767779 sleep 99999
└─1987116 /data/controld/ctrld run --cd xxxxxxxxxxxxx --iface=auto --homedir=/etc/controld --config=/etc/controld/ctrld.toml

Feb 18 08:33:53 Max systemd[1]: Started A highly configurable, multi-protocol DNS forwarding proxy.
Feb 18 08:33:54 Max ctrld[1987116]: Feb 18 08:33:54.518 NTC internal logging enabled
Feb 18 08:33:55 Max ctrld[1987116]: Feb 18 08:33:55.467 WRN failed to init Ubios discover error="out: , err: fork/exec /usr/bin/mongo: no such file or directory"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions