هذه الصفحة متوفرة بالعربية أيضًا. قراءتها بالعربية

Help

System health

This is the same help you’ll find in the app, under Help.

See at a glance whether Maktaba is working, and if not, what is wrong and what to do: its services, workers, dependencies, Plex, queues and Live TV, its processes, free disk space and the version you run. Only administrators see this page.

What it is

In Maktaba: Administration → System health collects the health of every part of Maktaba on one page. It refreshes by itself every 30 seconds (Auto-refreshes every 30s).

  • The banner at the top: All systems OK, Degraded or Down, with the reason. It is Down only when a core part is down: the API, the database, every worker, or streaming while channels are on air. Anything else that is not OK makes it Degraded. When it is Down, System health in the menu shows a red dot.
  • Services, Workers, Dependencies, Integrations and Queues & TV: one tile per part, green (OK), yellow (Degraded) or red (Down), with a one-line reason, when it was last checked and Learn more, which opens its entry below. See Each part.
  • Overall status: one word for the whole server.
  • Disk free: free space on the server's data disk.
  • Queue depth: how many jobs wait to be processed.
  • Transcribe budget left: shown only when a paid transcription budget is set.
  • TV: machines online, channels on air, failovers in the last 24 hours, and whether remote viewing is ready.
  • Services: one card per service, each with its own status and checks.
  • Processes: the API, Live TV and streaming and the Processing pipeline processes, how long they have run, how often they restarted, and Recent crashes.
  • Caches, Performance budgets and Version (version, build, build date and the database Schema revision).

How to use it

See what is down

  1. Open In Maktaba: Administration → System health.
  2. Read the banner. All systems OK means every part answers and is fine.
  3. If it says Degraded or Down, it names the parts that are not OK. Find their tiles: yellow or red, each with its reason.
  4. Press Learn more on a tile to read what that part is and what you can do.
  5. Check Processes for a process that is Restarting, Failed or in a crash loop.

Workers kept as history

A worker that restarted gets a new name; its old record stays behind. When a newer worker runs on the same machine, or the old one has been silent longer than Forget a worker after (hours), the old record is listed under History in grey. It is never counted as a failure.

Change when a part turns yellow or red

The limits are rules: open Settings → Rules → System health. Heartbeat late after and Heartbeat gone after decide when a worker or streaming machine is late or gone; Database slow from when the database is slow; Dependency check stale after when a dependency check is too old; One check waits how long the page waits for each part.

Find the version you run

The Version card shows the version number and build. Give these when you report a problem. To see each machine's version, open Machines.

Read the details behind a problem

The page shows states, not logs. To see why something fails, open Logs and filter by Error.

What the states and messages mean

Services

  • Operational: the service answers and its checks pass.
  • Degraded: it answers but a check fails, or its state is unknown. It may work partly.
  • Down: it does not answer, or a check failed hard. When the whole page cannot reach the server, Overall status shows Down.
  • Did not answer in time: the part did not answer within One check waits (2 seconds). It is shown yellow, or red for the database.

Processes

  • Running: up and answering.
  • Starting: just started; it is coming up.
  • Not responding: running but its health check fails (failing (N in a row)). Maktaba restarts it if it stays that way.
  • Restarting: it stopped and Maktaba waits a moment before starting it again (Next restart).
  • Failed: it could not be kept running.
  • Stopped: it was stopped on purpose.
  • Crash loop: it keeps exiting soon after it starts. The other processes keep running, and this one is retried slowly.
  • Recent crashes lists why each stop happened: exited with code N, killed by …, stopped responding and was restarted, or could not start.

Each part

Each tile is one part of Maktaba. What each one checks, and what to do when it is not OK:

API

The server this page talks to, with its version and how long it has run. If you can read the page, it is up.

Database

Maktaba's Postgres database: does it answer, and how fast (Database slow from, 250 ms). It also says whether this server is the primary and how many replicas stream from it, when Postgres lets Maktaba see it. Down makes the whole page Down: nothing works without the database. Check that Postgres runs and that the disk is not full.

Streaming

The streaming service that plays videos and airs the channels: does it answer at its address, how many channels are on air and how many encoder sessions run. Down while channels are on air makes the whole page Down: the channels are off the air. On the Mac, Pause server then Resume server restarts it.

Pipeline

The processing pipeline's search port, used for searching by meaning. When it does not answer, search still finds words. Not configured means this server was started without its address.

Process

A process maktaba-server runs (the API, streaming, the pipeline): Running, restarting, failed or in a crash loop. See Processes.

This machine's load

How busy the computer that runs Maktaba is: its load (how much work wants the processor, averaged over the last minute) beside its number of cores. Shown on a Mac or Linux server; Windows keeps no such figure.

  • Load … on … cores: fine.
  • This machine is overloaded: the load has been more than twice the cores for both the last minute and the last five minutes. Everything on the machine is slow while this lasts: jobs take longer, pages open slowly, and the database may stop answering in time. The line names the programs using the most CPU when Maktaba could list them. If one of them is not part of Maktaba (another app, a build, a backup), close it or find out why it runs; if it is Maktaba's own work, pause the queues on In Maktaba: Processing until the machine recovers. Maktaba stops no program by itself. The notice clears a minute or so after the load goes. On Linux a share or disk that stopped answering can raise the load too, with the processor idle.

Components

The parts of Maktaba you can turn on and off (transcription, Live TV, YouTube and the rest), on every machine. Only a part that failed, or stayed degraded for more than 10 minutes, needs a look. A part you turned off or stopped, or one waiting for a part you turned off, is your choice and never counts. Open In Maktaba: Components to see why a part failed and to start it again.

Plugin runners

Maktaba's own plugins run their stages in sandboxed runners, with no database password and no secrets. A runner that failed (it kept exiting soon after starting, or its sandbox cannot start) leaves the stages set to run as plugins in it running in the worker, outside their sandbox. No job is lost and nothing stops, but the stages do not have the protection the sandbox gives them. The line names the machine, the runner and how many stages run in the worker meanwhile. A runner that is idle, held or restarting is not counted. Maktaba tries a failed runner again a few times, then leaves it down until it is started again: read its error in the machine's log, then start Plugin runners again on In Maktaba: Components. In Maktaba: Plugins shows the same warning.

Workers

All workers together: how many are online. Down when no worker runs: nothing is processed. Start the pipeline (or the Mac app) on at least one machine.

Worker

One worker on one machine: its role (main or transcription), when it last reported, and what it is running now. Late after Heartbeat late after (60 s), Gone after Heartbeat gone after (300 s). A gone worker's machine may be asleep, off or disconnected. See Workers kept as history.

Streaming machine

A machine that airs channels: online, draining, switched off, unable to take channels, or without a heartbeat. See Machines.

Dependency

Something jobs need that Maktaba checks every minute (Queue health): the language model at the Tag check address, each library share, the free disk space and the database's shared memory. Down while it is not available: jobs that need it wait instead of failing and start again by themselves when it is back. Stale when no check ran for a while: the worker that runs the checks may be stopped. See Failure classes.

Plex Live TV

Maktaba's tuner in Plex: Plex answers, the tuner is registered, the channels are in sync, and the last error. See Plex. On the Mac app, Plex on your network that does not answer with "no route to host" usually means macOS keeps Maktaba off the Local Network: see Local Network.

Folder access

Whether the server can read each library folder, tried every time the page refreshes. Shown when maktaba-server runs the server (the Mac, Windows and Linux apps), not for a Docker install. One tile for all the folders, and one per folder:

  • Can be read: fine.
  • macOS does not let Maktaba read this folder: Maktaba has no Full Disk Access, or the server started before you turned it on. Turn it on in System Settings → Privacy & Security → Full Disk Access (click + and choose Maktaba in Applications if it is not listed), then choose Pause server and Resume server in the menu bar. See Permissions.
  • No permission to read this folder (Windows, Linux): the account the server runs as cannot read it. Give that account read access to the folder.
  • The volume is not mounted / The share is not mounted: the NAS share is not connected on this machine. Connect it (on a Mac it appears in Finder under Locations), then wait for the next check.
  • The folder does not exist: it was moved, renamed or deleted. Put it back, or change the library to its new place.
  • Did not answer: the read is still waiting, often a NAS that is asleep or disconnected. Maktaba keeps one read waiting per folder and shows its answer when it comes.

Queues

The processing queues' health: how many are failing, how many wait on a dependency and how many items need you. Learn more on a failing queue: Queue tile turns Failing; the items: In Maktaba: Failing items. If workers are up but do not run their jobs, the tile says … workers are not running their jobs (or no worker is running): open In Maktaba: Processing to see which and restart them; see Some workers are not running their jobs.

Channels on air

How many channels are on air, and any that stopped reporting. See Live TV.

TV change

The TV change that is open. Waits for your approval when it was checked and is ready: open it and approve it. See TV changes.

Live TV slot

The slot that airs the channels now (staging, Epic 33): healthy while it reports every few seconds. The TV runs in one process when slots are off.

TV tuner

The tuner Plex and other apps use: on or off, and how many of its tuners are in use. Every tuner is in use: one more viewer is refused; raise the tuner count on the Live TV page.

TV line

  • remote viewing ready / off / not set up / has a problem: the state of watching Live TV away from home. See Remote TV.

FAQ

Can I restart a process from this page?

No. Maktaba restarts a stopped or stuck process by itself. The page shows how often it did and why. On the Mac app use Pause server and Resume server in the menu bar; see The Mac app.

Why is the Processes card empty?

It shows Process supervision is not available when Maktaba is not run by its own server launcher (for example in a container). The other cards still work.

What is Queue depth?

The jobs waiting in the processing queues. A large number while the library is being scanned is normal. See Processing.

When something goes wrong

Overall status Down

  • What it means: the page could not reach the server's health check, or a core service is down.
  • Does Maktaba fix it itself? It restarts crashed processes by itself and the page checks again every 30 seconds.
  • What you can do: wait a minute. If it stays down, open Logs and look at the errors, or restart the server (on the Mac, Pause server then Resume server).

A service is Degraded

  • What it means: the service answers but one of its checks fails, for example a connection it needs.
  • Does Maktaba fix it itself? Usually yes, once the thing it waits for answers again.
  • What you can do: read the reason on the card. For Plex or storage problems see Failures.

Crash loop

  • What it means: a process keeps exiting soon after it starts.
  • Does Maktaba fix it itself? It keeps retrying, more slowly each time. The rest of Maktaba keeps running.
  • What you can do: read Last crash and the process's errors in Logs. A recent update or a full disk are common causes; check Disk free.

Could not load this section

  • What it means: one card could not get its data. The rest of the page is fine.
  • Does Maktaba fix it itself? Yes. The page tries again every 30 seconds.
  • What you can do: wait for the next refresh. If one card always fails, report it with the version shown on the page.

Disk free is low

  • What it means: the server's data disk is almost full. Processing, transcription and the database need room.
  • Does Maktaba fix it itself? No.
  • What you can do: free space on that disk, or move large files off it.