Read what Maktaba is doing line by line, find errors and download a diagnostics bundle for a bug report. Only administrators see these pages.
What it is
Maktaba writes a log: one line for each thing it does, with the time, the level (Debug, Info, Warning, Error), the service and a message. You can read it in two places.
- In Maktaba: Administration → Logs: the most recent lines of this server, refreshed every few seconds. This is also where you export the diagnostics bundle.
- In Maktaba: Machines → Logs tab: the log of any machine or process in the cluster, live or for an earlier day. See Machines.
How to use it
Find errors
- Open In Maktaba: Administration → Logs.
- Set Level to Error. The level shows that level and everything more serious, so Warning shows warnings and errors.
- Pick a Service to see one part only, or keep All services.
- Type in Search to keep only lines that contain some text, for example a video's name.
Click the small arrow at the end of a line to see all of its details.
Search, and follow one request
Type words in Search logs and press Enter. Put a phrase in quotes ("connection refused"), put a minus before a word to leave it out (-disk), or end a word with \* to find what starts with it. Pick a Level, a Service and a Time to narrow the list; they stay in the page's address, so a link keeps them.
When an error screen in an app shows Reference: xxxxxxxx, type those 8 characters in Search logs. Follow this request opens: every line of that one action, from every part of Maktaba, in time order, with a dashed line where more than a second passed. A line's Request chip opens the same view, and Lines around this (under a line's details) shows what every part wrote at that moment.
Watch it live
Tick Live to see lines as they are written, newest at the top, within about two seconds. Scroll down to read and the list holds still; N new lines takes you back to the top with what arrived.
Errors
In Maktaba: Administration → Errors groups the errors that look alike: one row per problem, with how often it happened today and in all, a 14-day chart, how many people it hit and when it was last seen. The number on Errors in the menu is how many are New. Open one to see its recent lines and act on it: Mark seen, Resolve (it comes back as new, marked Came back, if it happens again in a later version) or Mute it for 24 hours, 7 days or until it is resolved. Administrators get a notification for a new error that happens again and again, or one that came back.
Keep diagnostics, and detailed logs for an hour
In Maktaba: Diagnostics settings says how long Maktaba keeps its logs (7 days at first), its errors (30 days) and problem reports (90 days), and how much disk they may use in all (1 GB at first), with what each uses now. When the limit is reached the oldest go first, even if they are newer than the days you chose.
Detailed logs for one hour makes one part (the API, streaming, processing or log search) write its debug lines for an hour, then go back by itself. Use it when you are asked for more detail about a problem.
Dashboards
In Maktaba: Administration → Dashboards draws how the home has been doing: Overview (components up, restarts, errors per hour, the API's memory and CPU), Queue, Processing, Streaming, Storage (backups and the log files) and Use (plays and people per day, the most played videos; counts only, never one person's history). Pick a time from 1 hour to 90 days; point at a chart to read its values, and Open in Logs shows the lines of that time. Maktaba keeps a minute's detail for 7 days and an hour's for 30.
With several machines joined, the Overview shows totals across them (components up and down, the least disk and memory free, the highest load) and the five machines most in need of attention, a machine that is offline first, and says how many of how many it shows. Offline machines are named, and marked under Machine; their lines end at their last values. Each machine goes by its name from the Machines page, with its id beside it under Machine. Pick a machine under Machine to see it on its own, with each of its components that was down or restarted.
Problem reports and crash reports
Anyone can send a problem report from Settings → Privacy → Report a problem, or from an error screen's Report this, which adds that error's reference. Say what happened if you like, pick what it is about and when it happened. What will be sent shows everything the report carries before you send it: this app and its version, its log of the last 30 minutes, and its last requests. The home adds its own lines of those requests and the warnings around that time. Your reports and the admin's replies are in My reports.
Admins read the reports in In Maktaba: Administration → Problem reports: who sent it, the app and the device, and the app's and the home's lines merged by time. From there they set its status, write back, or download it. Reports are kept 90 days.
Send crash reports to your home (Settings → Privacy) is off until you turn it on. When it is on, an error this app runs into is sent to your home's admin and grouped on the Errors page.
Stop the scrolling
New lines keep arriving. Click Pause to freeze the list while you read, and Resume to carry on. Untick Auto-scroll to stay where you are while lines keep coming.
Export a bundle for a bug report
Click Export bundle. Your browser downloads maktaba-diagnostics.tar.gz. It holds the recent logs of the API, Live TV and streaming, and the processing pipeline, plus a summary of recent errors, a health snapshot and the server's version and system details. The Level and Service you chose apply to it. Attach the file to your report.
Read a machine's or process's log
- Open In Maktaba: Machines and the Logs tab, or click Machine logs on a machine under Running now.
- In Show logs of, choose a whole machine or one process.
- Choose Live to follow it as it happens (Follow, Pause, Clear), or Earlier days to read a past Day (Load older for more).
- Use Level and Search as above.
Below the viewer, every machine is listed with its processes and the days on record; click a day to open it.
What the states and messages mean
- Debug: fine detail, useful when tracking down a problem.
- Info: normal activity.
- Warning: something unusual that Maktaba worked around.
- Error: something failed. Start here.
- No log entries match the current filters.: nothing matches; widen Level or clear Search.
- Paused; N new lines waiting. (Machines → Logs): the view is paused and N lines arrived meanwhile.
- N lines, live. / N lines from …: what the machine viewer shows now.
- Diagnostics bundle downloaded.: the export finished.
FAQ
How far back does the Logs page go?
It shows the most recent lines the server keeps in memory, not the whole history, and they start again when the server restarts. For earlier days use Machines → Logs → Earlier days.
Is the bundle safe to share?
It holds log lines, which can include file names, user names and addresses on your network. Share it only with the people helping you.
Can a non-administrator export logs?
No. These pages are for administrators.
When something goes wrong
Could not load logs
- What it means: the page could not fetch the lines from the server.
- Does Maktaba fix it itself? Yes. It tries again every few seconds while not paused.
- What you can do: wait a moment. If it stays, check System health.
Export failed
- What it means: the bundle could not be built or downloaded. The reason follows the message.
- Does Maktaba fix it itself? No.
- What you can do: click Export bundle again. If a part of Maktaba is down, the bundle may fail until it is back.
The log could not be read (Machines → Logs)
- What it means: the machine's live log or its saved day could not be read.
- Does Maktaba fix it itself? The live view reconnects by itself.
- What you can do: check that the machine is Online on the Machines tab, then choose it again. Saved days need the shared storage to be reachable.