Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,155 of 9,155 pages
About the help in other languages
All help pages

Lesson 4.4: Troubleshooting in class

Fix the problems that stop learners most often, permissions, a maintenance page, stale caches, a lost password, with the troubleshooting chapter, the logs and the log viewer, without stopping the room. 50 minutes.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/train-the-trainer/module-04-delivering/troubleshooting-in-class.md

On this page

Lesson 4.4: Troubleshooting in class

Something always breaks in a hands-on course. A trainer who knows the five most common causes and where the logs are can fix most problems in minutes. This lesson prepares trainers with the troubleshooting chapter of the installation guide and the log viewer.

At a glance

CourseTrain the trainer
ModuleModule 4: Delivering a course
Duration50 minutes (15 presenting, 35 exercise)
LevelIntermediate
AudienceTrainers and their helpers
PrerequisitesModule 2

Learning objectives

After this lesson, learners can:

  • follow the five steps of "Start here" in the troubleshooting chapter;
  • find an error in var/log/error.log by its reference, on the command line and in Setup > Log files;
  • fix the common lab problems: file ownership, maintenance mode, stale caches, a lost password;
  • decide when to give a learner a fresh installation instead.

Trainer's notes

How to present it

  1. The five steps (5 minutes, from Troubleshooting, 12.1): read the message exactly; read var/log/error.log (an error page shows a reference such as ERR-1A2B3C4D5E, and the same reference is in the log); turn on debug output for yourself only; change one thing and clear the smallest cache that covers it; on the command line, run as the installation's owner.

  2. The common lab problems (10 minutes):

    SymptomFix
    Errors after a command was run as rootchown -R <web user>:<web group> var; run scripts as the owner
    A maintenance page after a failed installphp bin/php/maintenance.php status, then off
    A change does not showclear the smallest cache: php bin/php/ezcache.php --clear-tag=template, --clear-tag=ini, or --clear-all
    Lost administrator passwordphp bin/php/resetuserpassword.php -u admin -g --allow-root-user (as root)
    Generated password unknownvar/log/initial-admin-password (until it was deleted)

Common questions

When do I give up and reinstall? When the fix takes longer than a reinstall (a few minutes with SQLite). Keep the learner's notes; reinstall; let them catch up with a neighbour.

Can learners read the logs in the browser? Administrators can: Setup > Log files shows the logs with masking of private values; editors cannot.

Pitfalls

  • Five changes at once. Change one thing, then test.
  • Sharing logs with personal data. Mask or remove e-mail addresses and IP addresses before posting logs anywhere.

Hands-on exercise

On your training installation:

  1. Open Setup > Log files (/setup/logs in the admin siteaccess, for example /admin/setup/logs) and open error.log. Find the headings Controls, Lines of error.log and Actions.
  2. On the command line, run tail -n 20 var/log/error.log.
  3. Simulate a maintenance window (only on your training installation): php bin/php/maintenance.php on --until=5m, open the site and see the maintenance page, then php bin/php/maintenance.php off and php bin/php/maintenance.php status.
  4. Clear one cache tag with php bin/php/ezcache.php --clear-tag=template and read the output.
  5. List the cache tags and ids: php bin/php/ezcache.php --list-tags and --list-ids.
  6. Write a one-page "lab fixes" card with the table from the trainer's notes for your helpers.

Expected result

  • The learner found error.log in the browser and on the command line.
  • The maintenance page appeared and disappeared again.
  • A "lab fixes" card exists for the helpers.

Quiz

  1. An error page shows ERR-1A2B3C4D5E. Where do you look?
  2. Pages broke after a learner ran a script as root. What is the likely cause and fix?
  3. Which command clears every cache?
  4. Which command resets a lost administrator password?
Answers
  1. In var/log/error.log (and its rotations error.log.1 ...), or in Setup > Log files by searching the reference (Finding an error by its reference).
  2. Root-owned cache or storage files; chown -R <web user>:<web group> var.
  3. php bin/php/ezcache.php --clear-all.
  4. php bin/php/resetuserpassword.php -u admin -g --allow-root-user (as root), see Reset a user password.

Further reading

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x