Tell the server where your video folders are and how devices find it. Only administrators see this tab.
What it is
Settings → Storage & discovery (In Maktaba: open it) holds a few server settings that used to live only in the server's settings file:
- Folder translations (path map): when your libraries store folders one way (for example the NAS's
/Volumes/Originals/...) and this computer reaches them another way (for example/Users/me/nas-nfs/...). - Media folders: the top folders that hold your videos. The folder picker on Manage libraries starts from them.
- Discovery: lets phones, TVs and the Mac app on the same network find the server by themselves.
- Addresses and public URLs: where the server, the web app and streaming answer.
The table Library folders from this computer shows each library folder, where this computer finds it with the saved translations, and whether it is reachable.
Below it, Where Maktaba keeps its data shows Maktaba's own folders (the library database, its backups, the models, the caches), how big each one is and which disk it is on, with each disk's free space. From there you can move all of it to another disk.
Last, Backups of the library database sets where the database's backup copies (dumps) go, when they are made and how many are kept, and lists the dumps there are.
How to use it
Change a setting
- Change the fields you need. Add a row with Add a translation or Add a media folder; remove one with Remove.
- Click Save. The server checks every value first. A value it refuses is shown in red under its field, and nothing is saved.
- A banner says Saved changes are waiting for a restart.
Restart the server
Click Restart the server, then confirm. Videos stop for everyone for about a minute. The page waits until the server answers again, then reloads by itself.
If the button is not there, the server cannot restart itself: quit Maktaba and open it again (from the Mac app's menu, or the way you started it).
Translate a folder
In Library path, type the start of the path as the library stores it, for example /Volumes/Originals. In On this computer, type where that same folder is here, for example /Users/me/nas-nfs/Originals. After the restart, check the table: the folders should say Reachable.
Where Maktaba keeps its data
Maktaba keeps its own data in one Data folder: the library database, its backups, the transcription models, the search index and the caches. They grow with the library. The table lists each folder with its Path, Size and Disk; under Disks, each disk shows how much of it is free.
Your videos are not in it: they stay in your library folders.
Move Maktaba's data to another disk
- Click Move to another disk. The disks this computer has are listed, with their free space; a disk that cannot hold the data (a network disk, one too small) cannot be chosen.
- Choose a disk. Folder is filled in with a new folder on it; you can type another one. It must be empty or not exist yet.
- Click Check. Maktaba says whether the data fits, and anything that stops the move (for example a folder that is not empty). A warning (the disk would be nearly full) does not stop it.
- Click Move, then confirm. Maktaba stops for everyone while it copies; with a large library this can take a long time. The page shows Moving… and waits until Maktaba answers again.
- When it is done, the page says where the data is now and lists the old copies. They are kept, so nothing is lost if something went wrong: once everything works, delete them yourself.
If the move fails, Maktaba keeps running from where it was; the page says so, with the reason under Details.
You can also move the data from a terminal, with Maktaba stopped: maktaba-server storage show lists the folders and disks, and maktaba-server storage move /Volumes/Big/Maktaba moves them.
Backups of the library database
Maktaba copies the library database to a dump file on a schedule (every night by default) and before each update, so an update whose migrations fail can put the database back. It keeps the latest dumps and deletes older ones by itself.
The table Database dumps lists each dump with its Kind (Scheduled, Before an update, Unfinished, Replaced by a restore), its size, when it was made and its disk, with the disk's free space and the size of all of them together. Delete removes one dump after you confirm. A dump an update under way may still need cannot be deleted until it ends.
Change the backups
- Backups folder: leave it empty to keep the dumps beside the database, or type another folder (for example on a larger disk).
- Back up the database on a schedule, How often (every day, every week, or every few days) and At (the hour, on this computer's clock).
- Scheduled dumps to keep: the oldest is deleted when there are more.
- Back up the database before each update, and Pre-update dumps to keep (0 keeps as many as the Updates settings say). Without the dump before an update, an update whose migrations fail cannot put the database back.
- Advanced: room on the disk: how much of the disk to keep free (a percent, and at least some GB; 5% and 2 GB by default) and the most of the disk the dumps may take (20% by default).
- Click Save, then restart the server: the new settings are used from the restart.
When you change the folder and the old one holds dumps, Maktaba asks: Move them to the new folder, or Leave them where they are. Dumps left there are no longer listed, deleted when old, or used to put the database back from here.
You can do the same from a terminal:
maktaba-server backups show
maktaba-server backups set --dir <folder> --move-dumps yes|no --nightly on|off \
--every-days N --hour H --keep N --update-keep N --pre-update on|off \
--reserve-percent P --reserve-min-gb G --max-share-percent P
maktaba-server backups delete <name>
What the states and messages mean
- Saved changes are waiting for a restart: the saved settings differ from the ones the server is running with.
- Restarting…: the server is starting again; the page reloads when it is back.
- You changed an address: devices and the Mac app may need the new address after the restart.
- Reachable / Not reachable: whether this computer can open that library folder.
- Moving Maktaba's data…: a move is under way; Maktaba is stopped for everyone until it ends.
- Maktaba's data was moved: the move is done; the old copies listed under it are yours to delete.
- Moving Maktaba's data failed: nothing changed; Maktaba runs from where it was.
FAQ
Why does nothing change after I click Save?
The server reads these settings when it starts. Restart it to use them.
What address format should I use?
host:port, for example :8080 (every network) or 127.0.0.1:8080 (this computer only). The server address and the web app address must differ. A public URL looks like https://maktaba.example.com, with no path after it.
When something goes wrong
These settings are not available here
- What it means: this server was not started as the Maktaba server (for example it runs in Docker or alone), so the web cannot change its settings file.
- Does Maktaba fix it itself? No.
- What you can do: change the settings where that server is configured, then restart it.
A field is refused when I save
- What it means: the value is not valid: a folder that does not exist on this computer, a port already in use, an address in the wrong form.
- Does Maktaba fix it itself? No. Nothing is saved until every value is accepted.
- What you can do: read the message under the field, fix the value and save again.
The disk with Maktaba's data is not connected
- What it means: Maktaba's data is on a disk that is not connected (an external disk unplugged, or not mounted yet). The app says Waiting for the disk that holds Maktaba's data.
- Does Maktaba fix it itself? Yes, once the disk is back: Maktaba waits for it and starts as soon as it is there. It never makes a new, empty database in its place.
- What you can do: connect the disk (the same one, mounted at the same place). Maktaba starts by itself within a few seconds.
Moving the data failed
- What it means: the copy could not finish (the disk filled up, was unplugged, or could not be written to).
- Does Maktaba fix it itself? It keeps running from where it was; nothing is lost. The move is not tried again by itself.
- What you can do: read the reason under Details, fix it (free space, connect the disk), then move again. Moving again to the same folder goes on from where the copy stopped; if you choose another folder instead, delete the half-copied one on the first disk yourself.
A backup was skipped: not enough room
- What it means: the disk of the backups folder would have less free space than the room kept free, or the dumps would take more than their share of the disk.
- Does Maktaba fix it itself? Partly: it deletes the oldest dumps first, always keeping the newest of each kind. If there is still not enough room, the backup is skipped and tried again at the next one.
- What you can do: free space on that disk, delete old dumps from the table, keep fewer dumps, or choose a backups folder on a larger disk under Advanced: room on the disk and Backups folder.
The server does not come back after a restart
- What it means: the server is taking longer than usual, or could not start with the new settings.
- Does Maktaba fix it itself? Sometimes: it may just need more time.
- What you can do: wait a minute and reload the page. If it still does not answer, open the Mac app and check its status, or see System health.