webtimeless

Sanctum

The panel's inner workings: the programs it runs now, its background tasks, what it keeps on disk and how to clean it up.

Where
/sanctum, and the heart icon in the top bar
Keeps
Programs in memory until the panel restarts, task runs in its database
On this page

Sanctum shows what the panel itself is doing. Open it from Sanctum in the menu's System group, or from the heart icon in the top bar. The icon's card has the short version: a status line, what runs now and the next task.

The four tiles

Tile What it shows
The panel Its version, memory and when it started, with a warning when the run before did not stop cleanly
Running now What runs at this moment
Background tasks The work it does on its own, with any task that failed
Storage Everything it keeps, in all

Under the tiles, one list at a time: Running now, Background tasks or Storage.

Running now

The default view (/sanctum) lists each program the panel has open, with its command where it has one (git status, wp plugin list, dmp-root vhost-write), since when, and what started it.

What started it is one of:

  • a job, with a link to it;
  • a background task;
  • the page whose read it is, like "Sites › local.spellbook.test › plugins".

A job is what you started; these are the programs behind it. Reads of one program for one page running at once share a line (wp plugin list ×7).

Note Sanctum keeps only the names of programs, never their arguments or output. A command shows only words that look like a command, never a value, and a page is named from the server's route and the site, never the address asked, its query or its body.

Recently finished

A card of its own lists the last 50 jobs and background tasks, and page reads that failed or took 5 seconds or more. Each has how long it took, and whether it failed or was stopped by its timeout.

Why one failed is a few words from a fixed list ("table not there", "not a git repository", "printed nothing"), read from its exit code and MySQL's error number, never its output. Alike ones share a line (mysql ×9, with the range of their times).

Page reads that went well

A table of each program with how many times it ran, its average time and its slowest.

What is kept, and what is logged

All of this stays in memory until the panel restarts. A program that ran 30 seconds or more, or failed for a job or a background task, also goes to the panel's log, by name only:

journalctl --user -u devmagic-panel

A page's read that fails is not logged: it often fails on purpose, as a sign-in check does.

Background tasks

/sanctum?view=tasks lists the work the panel does on its own: how often each task runs, what it last did and when it runs next.

Task How often What it does
Remove expired install drafts Every 10 minutes Removes new site drafts that ran out, and their dumps
Trim Run history Hourly Keeps runs to 90 days, 2000 at most
Remove old downloaded dumps Hourly Removes dumps and staged file uploads after a day, unless a job or a draft still uses one
Empty old Files tab deletes Hourly Removes the Files tab's deletes after 14 days, and the oldest past 1 GB
Remove old MySQL settings backups Hourly Removes backups of MySQL's settings after 14 days
Drop expired kept databases Hourly Drops databases kept after a swap or a refresh once their 7 days are over
Check plugins and themes for known vulnerabilities Looks hourly, checks daily Asks about plugins and themes by slug while the check is on in Aura
Remove old automatic snapshots Daily Removes the panel's own snapshots once past their time; yours stay
Pack older panel versions Daily Packs the versions it does not run into gzip archives
Remove deleted sites for good Every 6 hours Removes deleted and archived sites after 14 days
Check for a new release Every 6 hours Looks for a new release of the panel

Run now runs a task at once. Like the timer, it removes only what is past its time, and says so when nothing was. For the vulnerability check, Run now checks at once.

Click a task for its last runs: when, what it did or why it failed, and how long it took. The newest 20 runs per task are kept in the panel's database.

Watching all the time

Under the tasks, Watching all the time shows the .htaccess files of the sites on nginx: how many folders on how many sites, and when it last noticed a change.

The tasks in your crontab, like a site's WP-Cron, run from cron, not from the panel. Services, Cron lists them.

Storage

/sanctum?view=storage lists what the panel keeps, each with its size and how long it stays. Point at a name for what it is.

Kind How long it stays Where you manage it
Database snapshots Yours until you delete them; the panel's own, see below Clean up now
Clean copies Until you delete them A site's Database tab, under Backups and tools
Backups for Undo Clean-ups and row edits 14 days; the backups dmp-restore uses stay Kept for dmp-restore
Deleted sites 14 days Removed sites
Downloaded dumps A day, unless a job or a draft still uses one Clean up now
Files tab deletes 14 days, 1 GB at most Clean up now
MySQL settings backups 14 days Clean up now
Panel versions Three: the running one unpacked, the others packed Updates
Mailpit and tools Until you remove Mailpit; mail as Mailpit keeps it Mail
Run history and logs Runs 90 days, 2000 at most Clean up now
Kept databases 7 days Clean up now

The snapshots the panel takes before a change (before-import and the like) keep the newest 3 per site and every one from the last 30 days.

Older panel versions are packed with gzip at its best, which takes about a seventh of the room. Switching back to one unpacks it first.

What Clean up now removes

Clean up now removes all of one kind at once, after a confirmation that says what goes. For kept databases, it lists them.

Kind Removed Kept
Database snapshots The ones the panel took before a change The ones you took
Downloaded dumps Every one One a job or a draft uses
Files tab deletes Every one, with its Undo Nothing
MySQL settings backups Every one Nothing
Run history Every finished run Runs still going, and the logs
Kept databases Every one One of a site a job works on

Warning Once kept databases are cleaned up, you can no longer switch a site back to them.

Clean up now is the storage.clean action, so Run history has it.

Reconnecting

When the panel does not answer, because it restarts after an update or Apache reloads, the heart icon says Reconnecting... until it is back.

A page that reads asks once more after a second. A change that lost its answer says it is not known whether it ran, and Activity shows what did.

Checked against devmagic-panel 1.67.0.

Type to search the docs, guides, comparisons and tool pages.