Troubleshooting
This page is for an owner who sees something wrong. Find what you see in the table for that part, then read why it happens and what to do. Words in quotes are what the installer, the site or the Doctor shows.
Start with the Doctor
Most problems show up there first. Open Admin Panel → Doctor, or run sudo blackbranch doctor on the server (it works even when the site is down). Every check only reads. Each row is green, amber ("look at this"), red (with a one-line fix under it) or grey ("not checked here", with the reason). Fix lines print server commands with sudo, ready to type, and say press Check where a value in the Admin Panel needs checking again. What every row means: Health and the Doctor.
Two habits save a lot of guessing:
- Change one thing at a time, then check again.
- Read the service's log.
sudo blackbranch logs <service>shows its recent lines; the services areweb,stream-api,stream-ingest,postgres,caddy,synapse,masand, in tunnel mode,cloudflared. Add-fto keep watching. See Logs, restarts and repairs.
The Doctor shows problems when you open it. The server also alerts you by itself, through an ntfy topic or an email command, when a backup or restore check fails, an update goes back, the disk runs low or a certificate nears expiry: see Alerts from the server. A webhook that stopped working, or a failed payment, shows in the Doctor and in Payment history.
Installing
| What you see | Why | What to do |
|---|---|---|
| "run as root: sudo …" | The installer was started without sudo |
Run it again with sudo in front, from your ordinary account |
| "supported: Debian stable and Ubuntu LTS (this is …)" or "supported: x86-64 (this is …)" | The server runs another system or an ARM processor | Use a Debian or Ubuntu server on x86-64. See Before you start |
| "at least 4 GB of memory is needed (found … MiB; the floor is 3600 MiB)" | The server is too small | Pick a larger server. The Doctor keeps checking this later (Memory: at least 4 GB) |
| "this server cannot reach the image registry (https://ghcr.io)" | The server has no IPv4 route out (for example an IPv6-only VPS), or its DNS is broken. The registry answers over IPv4 only. | Give the server an IPv4 address or route out (or a NAT64/DNS64 network), check its DNS, then run the installer again |
| "Docker Compose … is too old: Black Branch needs 2.20 or newer" | Docker was already installed, with an old Compose plugin | Update it with sudo apt-get install docker-compose-plugin, then run the installer again |
| "… does not resolve" | Direct mode: one of the three names (the domain, api. and matrix.) has no DNS record pointing at the server yet |
Add an A (or AAAA) record for each, wait for it to resolve, run the installer again. See Direct mode |
| "the Cloudflare sign-in did not finish" | Tunnel mode: the Cloudflare link was not opened, or no domain was picked | Run the installer again and finish the sign-in in the browser |
| "routing … to the tunnel failed" | Cloudflare already has a record for that name, often an old A record on the bare domain |
Delete that record on Cloudflare's DNS page, then run the installer again |
| "the tunnel … exists in Cloudflare, but its credentials are not on this server" | A tunnel with the install's name was made earlier, from another server or a deleted install | Moving here from another server: run the installer again with --moving. Otherwise delete the tunnel in Zero Trust → Networks → Tunnels and run the installer again. See If a step fails |
| "this box is installed for …; the domain cannot change" | The installer was run again with a different domain | The domain is permanent. To use another one, install on a fresh server |
Running the installer again is safe: it sees what is already there and only finishes what is missing. More: If the install stops.
The setup pages
| What you see | Why | What to do |
|---|---|---|
| "This site is being set up" on every page | Setup is not finished | Open the setup link the installer printed. Lost it? sudo blackbranch setup-link prints it again |
| "This setup link is not valid" | The link was mistyped, or replaced by a newer one | Print the current one: sudo blackbranch setup-link |
| "This setup link no longer works" | Your admin account already exists, so the link is used up | Sign in with that account and carry on at https://example.com/setup |
| A Check button says the value has the wrong shape | The value is not what the provider gives, for example a product id (prod_…) where a price id (price_…) belongs |
Read the line under the field: it says what the value should look like |
| "the urgent and the quiet topic must differ" on Finish | The same ntfy topic was pasted twice | Give one topic only (it gets every alert), or two different ones. Change them later in Admin Panel → Site → Site, card Alerts to your phone |
| The Finish page will not finish | Finish waits for a test backup to be made and restored, and that failed | Read the reason on the page. Check the backup target's address and keys; for SFTP, the key sudo blackbranch backup key prints must be on that account |
| The site icon upload says the server did not take it | The server could not place the icons | Carry on. Later, put the icon files in /opt/blackbranch/site-files/ and run sudo blackbranch set SITE_ICON_SET /site-files. See Site name, theme and looks |
More: The setup pages.
The site will not start
| What you see | Why | What to do |
|---|---|---|
docker compose stops with "SITE_NAME is required", or says a required variable is missing a value |
A required value is missing from /opt/blackbranch/.env |
Put the value back, or restore .env from a backup, then sudo blackbranch up |
The website's log ends with [boot] FATAL: and "… is required" |
The site checks its install values when it starts, and refuses to run without a required one | Restore the named value in .env. Values you may change are set with sudo blackbranch set <KEY> <value>. See The install's settings file |
The chat service's log ends with [FATAL] STREAM_API_ENFORCE is on but STREAM_API_SECRET is not set |
The internal API secret is missing | Restore STREAM_API_SECRET in .env from a backup. Never make a new one: it is also the key behind viewers' public ids. See The internal API secret |
The chat service's log says INSTANCE_MASTER_KEY must be 64 hex characters |
The key that unlocks your saved credentials is damaged | Restore .env from a backup |
| Doctor: Every bootstrap secret is present says "missing: …" | A generated secret is gone from .env |
Restore .env (and matrix/mas-keys.yaml) from the backup: a lost secret cannot be made again without losing what it protects |
| Doctor: A stored token decrypts with TOKEN_ENC_KEY is red | .env holds a different TOKEN_ENC_KEY from the one tokens were stored with |
Restore .env from a backup made with the right one |
| Doctor: Saved credentials decrypt is red | INSTANCE_MASTER_KEY changed |
Restore .env, or save the credentials again in the Admin Panel |
| Doctor: The database is at this release's version is red | Database migrations have not been applied | sudo blackbranch migrate (it also runs on every start) |
sudo blackbranch status shows a service that is not healthy |
That service stopped or keeps restarting | sudo blackbranch logs <service>, then sudo blackbranch restart <service> |
Sign-in and accounts
| What you see | Why | What to do |
|---|---|---|
| Viewers cannot make an account | Sign-up is closed: you chose Only accounts I make in setup, or a lockdown's New signups lever is on | Open it: Admin Panel → Site → Community, card Federation and sign-up, Let people make accounts → Yes. See Sign-up |
| A first-time sign-in goes back to the sign-in page with no message | Lockdown's New signups lever is on | Expected during a lockdown. See Raid lockdown |
| "Sign-in from this server isn't enabled on this site." | Someone tried to sign in with an account on another Matrix server, and that is off (the default) or their server is not allowed | Leave it, or change Admin Panel → Site → Site, card Sign-in from other servers |
| A viewer forgot their password | The site has no mail server set (a new install), or their account has no address, so there is no reset link | Set a new one on the server (see Resetting a password), or set a mail server in Admin Panel → Site → Site, card Mail |
| "This account was deleted" | The account was deleted from Privacy → Delete my account…; it cannot be undone | The person signs up again with a new account |
| "For your safety, sign in again first…" when deleting an account | Deleting needs a sign-in from the last 15 minutes | Sign in again, then delete |
| Sign-ins fail for everyone, and the Doctor's Clock: in sync is red | Sign-in tokens depend on the server's clock | sudo timedatectl set-ntp true |
| A viewer cannot read old direct messages on a new device | That device is not verified yet, or the messages are past the 180-day retention | See Encryption and your recovery key. Nothing on the server can unlock them |
Chat and platforms
| What you see | Why | What to do |
|---|---|---|
| No messages from a platform in site chat | The channel name is missing or misspelled, or the platform's module is off | Check the channel in Admin Panel → Platforms. A saved change applies without a restart |
| Doctor: Chat readers started is red | A chat reader failed to start (for example YouTube's reader or Kick's chatroom lookup). The row names the platform and the reason. | The site's Stream tab shows the reason too. Read sudo blackbranch logs stream-ingest. sudo blackbranch status shows stream-ingest as "running, but a chat reader did not start": the other readers carry on |
| "Kick refused the lookup" | Kick's bot protection blocked the chatroom lookup | Open kick.com/api/v2/channels/<your channel> in your own browser. Copy chatroom.id into Kick chatroom id and the first id into Kick channel id, in Admin Panel → Platforms → Kick. See Kick |
| Doctor: Platform chat: reader and last message is red | The ingest service is not running, or a reader reports a broken connection | Start the ingest service (sudo blackbranch restart stream-ingest), check the channel in Admin Panel → Platforms, then read the ingest log. No message is normal while you are offline |
| Doctor: Platform keys accepted is red | A platform rejected its app keys, or the channel does not exist | Admin Panel → Platforms, the platform's page: correct the channel or the app's keys, then press Check |
The ingest log says [poller] platform states: twitch=unconfigured |
The site cannot tell whether you are live on Twitch: it needs the Twitch app's client id and secret, and the broadcaster id the site finds from your channel | Fill in the app's keys on Admin Panel → Platforms → Twitch and press Check; the broadcaster id is found when you save. If it stays empty, press Find again beside it. See Twitch |
| A platform shows "redirect_mismatch" when someone links | The redirect URL in that platform's developer app differs from your site's | Paste the exact URL from the setup page into the app. See the platform's page in Connect your platforms |
Payments
| What you see | Why | What to do |
|---|---|---|
| No Subscribe button under the player | That button needs a usable Supporter price at Stripe, a PayPal plan, or an Outside subscribe link | Set the price in Admin Panel → Payments → Connections, card Stripe, Supporter subscription price (a price_… id for a monthly recurring price), or a plan in the PayPal card's Subscription plans. See Card payments (Stripe) and PayPal |
| A viewer paid, but no alert and nothing in Payment history | The webhook did not reach your site | Open the webhook destination in Stripe (or PayPal) and read the failed delivery. See Stripe and PayPal |
Stripe's failed deliveries show 403, in tunnel mode |
Cloudflare's bot protection blocked the webhook. The same applies to PayPal, Ko-fi and Patreon webhooks | See Letting payment webhooks through |
| Doctor: Stripe: this site's webhook exists, is enabled and sends every event is red | No destination has your address, it is switched off, or it is missing events | Admin Panel → Payments → Connections, card Stripe: follow the webhook step (the address and the event list), then press Check |
| Doctor: PayPal: the webhook id exists and points at this site is red | The webhook id is wrong or points elsewhere, or (with subscription plans set) it is missing the subscription events | Follow the PayPal webhook step again, paste the id PayPal shows, then press Check |
| You refunded a tip, but the support bar did not go down | Expected: a refund never moves the bar or the timer. It comes off the viewer's lifetime support and shows in Payment history as a negative reversal line |
Nothing to fix. See Refunds and disputes |
Stripe or PayPal shows a delivery failing with 500 |
The site could not reach the chat service to record it, so it asked for a retry | Check the Doctor. Stripe and PayPal keep retrying for days; once the chat service is up, the next retry lands |
Ko-fi or Patreon shows deliveries failing with 500 |
The site could not record the payment yet (usually the database was down), so it asked for a retry | Check the Doctor. The service's own retries bring the payment in; if Patreon paused the webhook, switch it back on in Patreon's developer portal. See Ko-fi, Patreon and Streamlabs |
| Manage subscription does not open, in live mode | Stripe needs its customer portal settings saved once in live mode | Save the portal settings in the Stripe Dashboard. See Stripe |
Community rooms and federation
| What you see | Why | What to do |
|---|---|---|
| Doctor: Federation matches its switch says it is on but other servers cannot reach it | The homeserver did not get the new configuration, or outside servers cannot reach it | sudo blackbranch render (or sudo blackbranch federation on), then check again. If it stays red, read sudo blackbranch logs caddy and sudo blackbranch logs synapse. See Matrix |
| It says federation is off but other servers can reach it | The switch is off, but the configuration still has federation on | sudo blackbranch render |
| Doctor: The rendered config files match a fresh render is red | A generated file was edited by hand | sudo blackbranch render. A hand edit is overwritten; put lasting changes in .env |
| Doctor: Synapse answers or MAS, the sign-in service, answers is red | The homeserver or its sign-in service is down | sudo blackbranch restart synapse (or mas); if it stays down, read its log |
| Old messages "disappeared" from a room | Retention: 180 days for rooms and direct messages, 30 days for #general |
Expected. See Community rooms |
Spoken alerts and the AI features
| What you see | Why | What to do |
|---|---|---|
| Doctor: Read-aloud has its key and a voice is red | Speaking is switched on, but the ElevenLabs key or a voice id is missing | Admin Panel → Utility → TTS, card Voice: set the key and a voice id |
| Nothing is spoken, though the Doctor is green | Speech plays through the rig page in OBS, or a change to Speak alerts and paid messages has not been applied yet | Check the rig page is in OBS (Admin Panel → Utility → OBS), and press Restart the chat service if the card shows Pending restart. See Alerts and text-to-speech |
| Admin Panel → AI → Embeddings says "Memory is paused", and you got a "Memory paused" notification | The embedder refused the key, ran out of credit, lost the model, or no longer matches what is stored. The bot answers without memory meanwhile | Fix the cause the page names, then press Resume. See The chat bot |
| The bot never answers | The chat bot is off, its task has no model, or the provider rejects the key | Admin Panel → AI: switch on the task, and press Test on the connection |
Backups and updates
| What you see | Why | What to do |
|---|---|---|
| Doctor: The last good backup is less than 36 hours old is red | The nightly backup failed or did not run | Run sudo blackbranch backup and read why it stops. See Backups and restore |
| Doctor: The newest backup restores (checked weekly) is red | The weekly check could not restore the latest snapshot | sudo blackbranch restore latest --verify names the part that failed. Make a new backup and check again |
| Doctor: The backup target answers is red | The bucket or SFTP server cannot be reached, or its keys are wrong | Check Admin Panel → Site → Site, card Backups |
| No update ever arrives, on a server installed from a copy of the source | It follows the stable channel, which has no release yet | sudo blackbranch update --channel beta. See Updates and rollback |
| Doctor: The update feed was read in the last 3 days is red | The server could not read the release feed | Run sudo blackbranch update --check: it says why |
| Doctor: The last update finished is amber and says the server went back | An update failed its health check, and the server went back to the previous release and its data | Nothing is lost. sudo blackbranch status shows what happened. If only a chat reader failed, the nightly timer tries again on the next nights. See Updates and rollback |
| Doctor: Disk: at least 15 % free is red | The disk is filling up | Remove unused Docker images (sudo docker image prune), delete files you added, or grow the disk. See Disk space and the database |
Still stuck
Ask in the Discord, or open a setup-help or bug-report issue, and attach the report from sudo blackbranch doctor --report. It holds no secret, chat text, viewer id or domain. Never paste anything from .env. See Community and contact.
Next: Community and contact
← Help