Runbooks for hosts: overview
A runbook is the page on-call staff open when something is wrong. Each one starts with the symptoms, then the first minutes, then diagnosis and fix, and ends with what to do afterwards. The commands are those of the installation book's troubleshooting chapter (Chapter 12), arranged for an incident.
Pages in this section
| Runbook | When |
|---|---|
| Site down | pages return errors, or nothing at all |
| Slow site | pages load, but slowly |
| Disk full | writes fail, uploads fail, logs stop |
| Restore from backup | data was lost or damaged and must come back from a backup |
| Compromised site | you suspect an attacker changed something |
| PHP upgrade | a planned move to a newer PHP version |
| Certificate expiry | HTTPS warnings, or a certificate about to expire |
| Velocity will not start | the Velocity engine does not come up |
| Demo mode problems | demo mode does not show, a demo build fails with a generated password, or demo mode shows on a real site |
Rules for every incident
- Write down the time you started and every step you take. The log viewer and the audit trail use exact times.
- Read before you change. The first look is always
var/log/error.logand the engine's or web server's log (12.2 Where the logs are). - Change one thing at a time, and clear the smallest cache that covers it.
- Run commands as the installation's owner, not as root; a script run as root leaves files the site cannot change (12.3).
- Tell the customer early, with what you know and when you will update them.
The commands you will use most
./console exp:logs --tail=var/log/error.log --lines=50 # the last 50 errors
./console exp:logs --reference=ERR-0123456789 # one error page's details
php bin/php/console exp:velocity status --allow-root-user # is Velocity running and answering?
php bin/php/maintenance.php status --allow-root-user # is maintenance mode on?
php bin/php/ezcache.php --clear-all --allow-root-user # when unsure which cache
php bin/php/console exp:velocity cache clear --apply --allow-root-user # Velocity's response cache, after a restartRelated pages
- Checklists for hosts
- Monitoring overview
- When something goes wrong
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.