Owner Null

Share
Owner Null
Photo by David Pupăză / Unsplash
Networking · Ubiquiti · Troubleshooting

One command fixed the browser. The previous hour was chasing a field called owner: null that turned out to be irrelevant.

10 hrs
Routing While “Down”
1 cmd
The Actual Fix
8 sec
Postgres Crash Loop

The UDM Pro was routing traffic. DHCP was handing out leases. OSPF neighbors were up. DNS was resolving. The internet worked. The mobile app worked. Everything worked—except the part where I could actually manage any of it through a browser.

The web interface just sat there, smiling at me with a “Starting Up” message that had long since stopped being accurate.


01 Why I Was Even Looking

I wasn’t doing a routine check. I was trying to update the Network application to 11.1.61—the early access build that dropped today—up from 11.1.47. The release has the usual resiliency and stability improvements, but that wasn’t what I was after. UniFi Network 11 added Matter and Thread device visibility, and I wanted it.

I have a handful of Matter over Thread devices that I’ve been trying to share to the UniFi console so the UDM has visibility into the Thread network. Right now that network is effectively invisible to UniFi because the Thread border router is a Sonoff Dongle-Max running in Home Assistant and paired to Apple HomeKit. The Thread mesh exists, the devices work, but as far as the UDM is concerned none of it is there. Network 11 is supposed to change that—accept a pairing code, watch alongside your existing Matter controller, and surface Thread devices in the topology view with battery status, firmware versions, signal strength, all of it.

So I pulled up 10.0.0.2 to kick off the update and got a “Starting Up” screen instead of a dashboard. Which is how a firmware update turned into a troubleshooting session.

02 The Symptom

I’d been staring at the “UniFi OS is Starting Up” splash screen for a while. Not the kind of “a while” where you go make coffee and come back. The kind where you start questioning whether you’ve fundamentally misunderstood how your own network works.

The routing plane was fine. Every device on every VLAN could reach every other device it was supposed to reach. The mobile app connected through the cloud and showed me everything—clients, topology, the works. But the browser, pointed directly at 10.0.0.2, would not budge past that startup screen.

I power-cycled the UDM Pro. Waited the requisite thirty seconds that the internet says you should wait, though nobody explains why thirty seconds is the magic number. Plugged it back in. No change. Still routing. Still stuck.

03 The Deep Dive

I SSH’d into the box and started pulling threads. Read-only commands first—the handoff doc I’d written for exactly this scenario said to diagnose before touching anything, and for once I listened to my own documentation.

The initial vitals looked reasonable. Memory at 64%, swap barely touched, no failed systemd units. But the boot firmware partition was at 96%, which is the kind of number that makes you squint. And then I noticed two nginx workers stuck in a “shutting down” state that had apparently been shutting down for about ten hours.

The process list showed everything running—unifi-core, the Network application Java process, postgres, nginx, Protect, the whole constellation of services that make a UDM Pro a UDM Pro. All present. All apparently functional.

Then I found the first interesting thing: [email protected] was in a crash loop. Failing every eight seconds, restarting, failing again, restarting again. The data directory it needed—/srv/postgresql/14/protect/data—simply did not exist. This service had been burning CPU and flooding the journal with identical error messages since boot, accomplishing nothing each time with admirable consistency.

04 The Red Herring

I pulled the settings file at /data/unifi-core/config/settings.yaml and found what I thought was the smoking gun: owner: null.

The device was set up. isSetup: true. It had a name, a timezone, a location, backup schedules, the whole configuration. But the owner field was null. And the API was returning deviceState: "setup", which I interpreted as the device thinking it hadn’t been set up—because it didn’t know who owned it.

The cloud config even had a pending ownership transfer invite with transferOwnership: true. I had my theory: someone initiated a transfer, the current owner got unset, the transfer was never accepted, and now the device was stuck in limbo—fully configured but ownerless.

Except when I checked ui.com, it showed me as the owner. Clear as day. “Micah Cerasani. You. Owner.” The cloud knew. The device did not. Or so I thought.

Turns out deviceState: "setup" is just what UniFi OS calls the normal running state. “Setup” means “setup is complete.” Which is—and I mean this respectfully—a baffling naming choice.
05 The Actual Answer

The real answer was sitting in the error logs the whole time. Every browser login attempt was failing with MFA token required to authenticate to SSO. The SSO authentication flow for browser-based local access was broken. The MFA challenge wasn’t being presented or completed—it was just failing silently and leaving me at the starting screen.

The mobile app worked because it authenticates through Ubiquiti’s cloud via WebRTC, which handles MFA through a completely different path. The browser, hitting the local IP directly, was trying to do the SSO dance locally and falling on its face.

One command. systemctl restart unifi-core. Not a full reboot—just the management layer. Routing, DHCP, DNS, firewall rules—all untouched. The service restarted, re-synced with the cloud, re-established the SSO flow, and the browser reloaded itself into a fully functional dashboard within seconds.

I also stopped that protect postgres crash loop while I was in there. systemctl stop [email protected] && systemctl disable [email protected]. Protect itself was running fine on the main postgres instance—this dedicated cluster had never been initialized and never would be. All it was doing was wasting CPU and writing the same error message to the journal every eight seconds for ten hours straight.

06 What I Keep Coming Back To

I spent a solid chunk of time chasing a theory about owner: null that turned out to be irrelevant. The field is null, and it probably shouldn’t be, but it wasn’t causing the problem I was trying to solve. The actual cause was three words in an error log I could have found in the first five minutes if I’d looked at the right file first.

But that’s not how diagnostics work. You pull threads. Some of them lead somewhere. Some of them teach you something true about the system that just happens to be unrelated to the thing that’s broken. The owner field being null is still worth knowing about. The protect postgres crash loop was still worth stopping. The boot partition at 96% is still worth watching.

The hardest part of troubleshooting isn’t finding the answer. It’s knowing which of the five things you found is actually the answer—and having the discipline to keep looking after you find something that feels like it should be.