Troubleshooting
Where to look first
The hub records its own problems in three private feeds, which admins can open on the Feeds page or subscribe to on a phone:
| Feed | Records |
|---|---|
| User Authentication | Every refused request: what was asked for, where it came from (this machine, Tailscale, local network, or internet), which credentials were sent, and a "To fix" line. Also each user's first request after the hub starts, with their permissions. |
| Plugin Runner | Plugin loads, starts, crashes, and restarts, with the end of the error. |
| Crash Reports | Crash reports sent by LemmeKnow. |
The same entries are in logs/auth.log, logs/plugin_runner.log and logs/crash_report.log in the hub folder. The hub's own output is in logs/restart.log, and each plugin's output in logs/plugins/<name>/output.log. Repeated identical refusals from one address are counted rather than logged every time.
To see what a particular user sees, click View as on their row on the Users page. See Permissions and grants.
The phone won't connect
- Check the Address is the broker listener that checks hub sign-ins, and that the phone can reach it. See MQTT and the broker and Remote access.
- Check the username and access key. The username must be the one the key belongs to. If in doubt, rotate the key on the Users page and enter the new one.
- TLS is always on when an access key is set, so the listener must offer TLS.
- After 10 failed sign-ins within a minute, the broker locks that username out for 5 minutes. Wait, then try again with the right key.
- Connecting to a hub needs LemmeKnow Premium.
See Connecting phones.
Connected, but something is missing
- A feed, stream, plugin, or filter doesn't appear. It's probably private and the user hasn't been granted it, or a public one has been revoked. Check the user's Features dialog.
- No states appear. Every state needs a grant (
states.*or narrower). The Listener preset has none. - A plugin doesn't appear. It needs an enabled task on the Tasks page, and if it's private, a
plugins.private.<name>grant. - No approval requests arrive. Check the server's Accept Requests setting in the app, and that the user may receive the request's audience: private requests need
actions.private. See Approvals. - The app has no button for the hub's web UI. The user has no hub page permissions (
sections.<name>.view). - The Hub URL in the app stays empty. The phone learns it from LemmeKnow Server on the hub's PC. Make sure LemmeKnow Server is running and its
HUB_URLis set to the hub'shttps://address; the app ignores anhttp://one. See Server configuration. - The server's status dot stays red although the phone is connected. The heartbeat comes from LemmeKnow Server, not the hub. Start
lemmeknow.py, for example as a daemon task. See Scripts and daemons.
Changes to permissions reach connected phones within a few seconds. Reconnecting the server in the app forces a full refresh.
API errors
| Response | Cause and fix |
|---|---|
401 Missing X-Access-Key header | No credentials were sent. Send X-Access-Key and X-Username, or sign in. |
401 Invalid credentials | The key is valid but X-Username is missing or belongs to someone else. |
401 Invalid or inactive API key | The key matches no user or plugin key. It may have been rotated, revoked, or mistyped. |
403 This key is not authorised for this path | A plugin key was used outside its scopes. See Plugin API keys. |
403 You don't have access to this section | The user lacks the section permission this needs, often sections.<name>.edit. |
403 Viewing as another user is read only | You're using View as. Add an empty ?sim= to the address to go back to yourself. |
| 404 | It doesn't exist, or the caller isn't allowed to see it. |
| 429 | Too many calls per minute to a rate-limited endpoint. See REST API. |
A feed doesn't update
- Check the path on the feed card. File feeds notice changes within a second; press Scan to force one.
- A file that gets rewritten from scratch needs the Recreate type. A Static feed only reads lines added after the point it has already read.
- With the Tab Body or LK Log format, lines that don't start with
[YYYY-MM-DD HH:MM:SS]are skipped. - RSS feeds are fetched every 30 seconds and only add items they haven't seen.
- A filter script that drops everything leaves the feed empty. Try the same filters on the Filters page.
A filter misbehaves
- Run it on the Filters page, which shows the items after each step.
- A script that exits with an error, prints anything other than one JSON array, or runs past its timeout is skipped, and the items it received go on unchanged.
- When
filters_pathis set, the bundled filters aren't offered. Copy any you want into your folder.
See Named filters.
Streams
| The Streams page says | Do this |
|---|---|
| Streams disabled | Add a streams block to config.json and restart the hub. If you have one, the error under the message says what's wrong, such as a go2rtc program or config file that can't be found. |
| Broker not running | With on_demand, go2rtc starts when someone opens a stream. Otherwise check the error shown and go2rtc's own log. |
| No streams are declared | Add sources to go2rtc's config file. |
A stream that plays on the hub but not on a phone is usually private and not granted to that user. See Streams.
Plugins
- Not in the Script list. The
.pyfile must be directly in the plugins directory set byplugins_path. - Won't start. Look in the Plugin Runner feed and the plugin's
output.log. A missing Python package means installing it for the Python that runs the hub. - Stopped and listed on the Diagnostics page. The hub stopped restarting it after repeated crashes. See Installing hub plugins for when that happens and how to start it again.
Invites
- **The link points at
localhost.** The link is built from the address you used for the web UI. Replace that part with an address the recipient can reach. - "This invite link is invalid or has already been used." Each link works once. Create a new one.
- "That username is already taken." The link is used up by the attempt. Create a new one and ask for a different username.
See Invites.