Reading Open edX logs and troubleshooting with Tutor: where to start when learners see errors
When a learner reports an error or the platform slows down, the fastest route to a cause is almost always the logs: start with tutor local logs for the combined output, then move to per-container logs for the service that is failing. Tutor runs each part of Open edX as its own container, so the first job is to decide which container is complaining. Open edX consists of two core services, Studio (CMS) for course authoring and the LMS for learners, and both depend on supporting services such as MySQL, MongoDB, Memcached or Redis. A failure can start in any of them: a learner-facing 500 error may come from the LMS, but the root cause may be a database connection that the LMS could not open, a cache that is full, or a worker that stopped processing tasks.
This is why the first read should be wide before it is deep. Compare the timestamps of errors across the LMS, Studio and the data services, and check whether the failure began after a configuration change, a plugin installation, an image update or a deployment to a new host. Confirm which Tutor version and which named Open edX release your platform runs before searching community answers, because the Open edX release notes describe which release is currently supported and error messages can differ between releases. Write down the exact time window, the affected URL or feature and the container names so the investigation can be repeated.
Your own team can handle routine failures such as a stopped container, a mis-set environment value or a plugin that fails at startup, provided someone on the team can read logs and roll back a change. Bring in a support partner when the cause spans several services, when data integrity is in doubt, when the platform is slow under load in ways logs do not explain, or when the fix would require changes to the platform code. Before that call, collect the logs, the Tutor configuration in use and a description of what changed, so the partner starts from evidence rather than from the symptom.
How to read tutor local logs and per-container logs step by step
This sequence moves an operator from a vague symptom to the single container and the first error that explains it, so the fix targets the right service.
Confirm which services are running
Start with the stack status before reading any log. Run
tutor local psfrom the Tutor project environment to list the containers, then check that the LMS, Studio, the worker services, the database containers and the proxy show a running state. Note any container that is restarting or has exited, since it often explains the symptom on its own. Confirm the exact subcommand and flags against the Tutor documentation for your Tutor version. The step is complete when you have a written list of which services are up and which are not.Pull logs for the whole local stack
Next, collect the combined output with
tutor local logsso you can see every service at once. Save the output to a file before you start filtering, so you keep the evidence if the container rotates its logs or the problem clears. Look for the time window in which the failure was reported, and for errors from more than one service at the same moment, since a database or cache fault can show up first in an application log. The step is complete when you have a saved log file that covers the reported time window.Match timestamps to the failing request
Take one failing request, such as a learner page that returned an error or an enrollment that did not complete, and record its exact time from the user report, the proxy access log or the browser. Find the log lines within a few seconds of that time in the LMS or Studio output. Confirm that the timestamps are in the same time zone across containers, because a mismatch can send you to the wrong lines. The step is complete when you have one or more log lines that you can tie to the specific request.
Narrow to one container
Restrict the output to the container that owns the failing behavior. Use the service name from the status list, for example the LMS for learner pages, Studio for course authoring, a worker service for background tasks such as email or grading, or the MySQL or MongoDB containers for data errors. Confirm the exact service names in your environment, since they depend on the plugins you enabled. Repeat the time check from the previous step on this single container. The step is complete when you have a short log excerpt from one service that covers the failure window.
Separate startup noise from runtime errors
Find where the current process started and ignore the messages before that point when they only describe initialization, such as migrations, configuration loading or deprecation warnings that appear on every boot. Then focus on the lines that appear during the failure window and have an error or traceback level. A warning that repeats on every restart is usually noise, while an error that appears only when the request runs is the lead to follow. The step is complete when you have separated the expected startup messages from the messages that appear at runtime.
Identify the first error, not the last
In a failure, the last error is often a downstream symptom, such as a timeout or a 500 response caused by a failed database connection that happened earlier. Scroll upward from the failing request to the earliest error or traceback in the same process, and record its message, file and the service it came from. Check whether the same error appears in other containers at the same time. The step is complete when you have one first error with its timestamp, service and message, which becomes the starting point for the fix or for a support request.
Which Tutor failure cases appear most often and what each log shows
Most Tutor failures fall into a small set of patterns, and each one leaves a different trail. Starting from the symptom, then checking the service that usually holds the cause, keeps the search short and avoids restarting containers that are not the problem.
Containers that fail to start
The stack comes up partially, one service restarts in a loop, or tutor local up exits before every container is healthy. The cause is usually in that container's own log, often a missing environment value, a bad plugin configuration or a port already in use on the host. Run tutor local logs for the failing service, then check its exit message before changing anything else. Confirm the container status with your container engine so you know which service to read.
Database connection errors
The LMS or Studio returns server errors on page load, and the log shows refused connections or authentication failures to MySQL or MongoDB. This often follows a changed password, a restarted database container without its volume, or a configuration value that Tutor regenerated after a plugin change. Check the MySQL and MongoDB container logs first, then confirm the credentials in the Tutor project configuration match what the database was initialized with. Do not reset data volumes to clear the error.
Cache and session problems
Learners are logged out at random, or sessions appear to belong to another user after a restart. The clue is usually in the Memcached or Redis container logs and in the LMS log lines that mention cache timeouts or session lookups. Multi-node deployments depend on a shared cache backend, so a cache service that is down or unreachable from one node will show up as inconsistent behavior. Check cache service health and connectivity from the LMS container before blaming the session settings.
Email and outbound network failures
Account activation, password reset and digest messages do not arrive, or a plugin call to an external service times out. The LMS log records the SMTP or HTTP error, which tells you whether the failure is at the connection, TLS or authentication step. Check the LMS log for the exact error, then test the outbound route from inside the container, since host firewall rules and DNS can differ from the host itself. Confirm the SMTP settings with your mail provider before changing them.
Static asset and theme build errors
Pages load without styles, scripts return 404 responses, or a theme change never appears after a rebuild. The failure is usually in the build output of the image or in the static file step of the LMS and Studio logs, not in the proxy. Read the build log for the failing asset, confirm the theme files were copied into the image, and then rebuild the image rather than restarting containers. Check that the proxy serves the paths the build generated.
Permission and volume issues
A service cannot write uploads, the database refuses to start on an existing data directory, or logs stop appearing after a host change. These symptoms point to file ownership or mounted volume paths, and the container log usually reports a permission denied or a missing path error. Compare the host directory owner and mount paths with the container user, and confirm the volume still holds the data you expect. Make a backup of the volume before changing ownership.
How a learner request maps to the containers you need to inspect
The diagram starts with a learner's browser request arriving at the reverse proxy, which routes it to the LMS for course delivery or to Studio for authoring. Both services read and write to MySQL and MongoDB, use the shared cache, and hand background jobs to Celery workers. When a page fails, start at the proxy and the service that handled the request, then follow the branch to the failing data store or worker. Check that container's logs with tutor local logs before changing configuration.
Request path through Tutor's containers, with the worker branch where failures often surface.
How troubleshooting differs between local, staging and production Tutor environments
A local Tutor environment runs on one developer machine, usually with the containers started through the Tutor local commands. Logs are read directly from the container runtime on that machine, and the developer who started the stack is normally the only person who can read them. Nothing is shipped off the machine by default, so logs disappear when the containers are removed or the machine is reset, and they tell you little about how a shared installation behaves under real traffic.
- Access: the operator reads logs through
tutor local logsand the per-container logs of the local stack, using the same account that runs Docker. - Persistence: container logs last only while the containers exist, so a
tutor localreset or removal clears them. - Data in logs: local test accounts and sample courses are usually the only personal data present, which keeps log review low risk.
- Policy changes: an organization's log retention and access rules rarely apply to a laptop, so confirm whether developer machines fall under your endpoint and logging policies.
- Limits: local stacks may not reproduce proxy, DNS, email or scaling behavior from production.
Before relying on a local reproduction, check that the Tutor version and plugins match the environment where the failure appeared.
A staging copy is a deployment on servers you control that mirrors production configuration as closely as practical. It is the environment where most troubleshooting should happen, because it can use the same proxy, DNS, email and identity settings without exposing real learner data. Logs here persist longer than on a laptop, but access is usually wider than in production, so the team needs to decide who may read them before an incident occurs.
- Access: the platform team reads container logs on the staging host, and application owners may need read access through a shared Tutor project root or a central log view.
- Persistence: container logs persist on the host according to the container runtime's logging driver, so confirm the rotation and size limits set for that host.
- Data in logs: staging should use synthetic or masked learner data, and any copied production data needs the same handling rules as production.
- Policy changes: if your security policy restricts log access to named roles, apply the same role model to staging whenever it holds copied data.
- Parity: confirm which settings differ from production, such as the identity provider, SMTP relay and external services.
Document those differences so a finding in staging can be carried over to production with a clear view of what it did and did not reproduce.
Production logs carry the most operational and personal data, so their collection, storage and access are usually set by the organization's security and logging policy. On a single server or a set of servers managed by Tutor, logs stay in the container runtime unless a log shipper forwards them. On Kubernetes, the cluster's logging setup determines what is collected, where it goes and how long it lasts. The team must confirm that setup with the cluster operators, because Open edX does not decide it for them.
- Access: restrict container log reads to named platform roles, and record who can use the host or cluster credentials that expose them.
- Persistence on servers: logs remain on the host until rotated, so forward them to a central store if retention must meet a stated policy.
- Persistence on Kubernetes: pod logs disappear with the pod unless a cluster-level collector ships them. Confirm the collector, its retention and its access controls with the cluster team.
- Data in logs: keep learner personal data out of troubleshooting exports, and review what application logs record before sharing them.
- Governance: log reads, exports and shares may need to be recorded as their own access events under your policy.
Before an incident, confirm where production logs live, who can read them, how long they are kept and how a read is authorized and logged.
What to collect before you ask the community or a support partner
Before you post in the community or open a ticket with a support partner, assemble one evidence package. Responders can only reproduce a failure they can see, so the package should carry the exact Tutor version, the Open edX release you run (for example, the named release shown in your tutor configuration and your openedx image tag), the operating system and container engine, and the list of enabled plugins. Record the exact error text, the timestamp with its time zone, and the container where it appeared. Pull only the log lines around that timestamp from the affected container, such as lms or cms, rather than attaching whole log files. Write down the steps that trigger the failure, in order, and whether it happens for every learner, one course, or one account.
Redact before you share. The project configuration (the config.yml in your Tutor project root) holds secrets, including database passwords, the Django secret key and SMTP credentials, so copy it with those values replaced by placeholders. Do not paste logs that contain learner names, email addresses, IP addresses, session identifiers or tokens, and scan any screenshot for the same. If a learner's data is needed to reproduce a fault, reproduce it with a test account on a staging copy instead. Confirm your own policy on where support material may be sent, because a public forum and a private partner channel carry different obligations.
Finally, list every recent change, since most Tutor failures follow a change. Include plugin installs or removals, upgrades, edits to configuration or theme files, changes to waffle flags, and any infrastructure event such as a restarted host or a changed DNS or proxy setting. Note the date of each change next to the first failing log line. This list is often the fastest route to a cause, and it also gives a partner the context they need to scope the fix. Ask the partner to confirm which items they need before you gather more, so you do not spend time on material they will not use.
Which log source to use for each symptom
This table pairs each common Open edX symptom with the log source to check first, what to look for in it, and when to escalate. Start with the symptom you see, then move to the source listed, and use the escalation column to decide when a failure has outgrown local debugging. Exact log locations and commands depend on the installed Tutor version, so confirm them against that version's documentation before relying on them in production.
| Symptom | Check first | What to look for | When to escalate |
|---|---|---|---|
| Startup failure | Output of tutor local logs for the failing service, then the container status | Container exit errors, missing environment settings, database or Mongo connection refusals, failed migrations | Repeated restarts after a clean config check, or a migration error that touches stored course data |
| Login errors | LMS container log, then the MySQL container log | Authentication tracebacks, session or cache connection errors, identity provider callback failures | Learners locked out across all sites, or an identity provider error you cannot reproduce from its settings |
| Course page errors | LMS container log, with Studio log for the same course | Tracebacks tied to a course key, XBlock load errors, missing assets referenced by the course | Errors that appear after a content import, or any failure that blocks learners from a published course |
| Slow pages | LMS and Celery worker logs, then MySQL and Memcached container logs | Slow query warnings, cache misses, timeouts, workers backing up on long tasks | Degradation that grows with learner count or persists after restarting the affected service |
| Email not sent | LMS or Celery worker log for mail send attempts | SMTP connection, authentication or TLS errors, rejected recipients, task retries | Mail failing from every sender after SMTP settings are confirmed, or messages delayed for hours |
| Asset errors (missing styles, scripts or images) | Nginx or proxy container log, then the LMS and Studio logs for collectstatic or asset build messages | 404 or 403 responses for static paths, failed asset compilation, stale build output | Assets missing on every page after a rebuild, or a proxy configuration you cannot confirm against the installed version |
Protecting learner data and secrets while you read logs
Logs are the fastest route to a fix and also one of the easiest places for learner data and secrets to leak. The controls below cover what enters logs, who can reach them, how long they stay, and how access is recorded. Apply them before you paste a log into a ticket, a forum post or a support chat.
Personal data in application logs
Learner names, email addresses, usernames and IP addresses can appear in tracebacks, request lines and tracking output while you troubleshoot a failed enrollment or login. Treat every log excerpt as personal data until you have checked it. Before you share one, search for email patterns, usernames and numeric user IDs tied to real learners, and replace them with placeholder values. Confirm with your privacy lead which fields your jurisdiction treats as personal data.
Secrets in shared configuration
Tutor keeps generated secrets and service credentials in the project root configuration, and a single copied config.yml or environment file can expose database passwords, secret keys and SMTP credentials. Never attach these files to a community post or vendor ticket. When a file must be shared, send a copy with secret values removed and rotate any credential that was exposed. Confirm which keys your Tutor version writes to the project root before you define a sharing checklist.
Broad operator access to containers
Running tutor local logs or docker exec into a container usually gives the operator access to the database credentials, application settings and learner records held in that container. Limit shell and log access to named engineers who need it for an incident, and use separate accounts instead of a shared login. Confirm with your platform team whether your hosts allow per-user access to the Docker daemon, because group membership there is effectively root.
Retention beyond policy
Container logs persist for as long as the container or the logging driver keeps them, and copies pile up in tickets, chat exports and local downloads. Those copies can outlive the retention period your policy sets for learner data. Define how long raw logs stay on hosts, how long excerpts may sit in ticket systems, and who deletes them. Confirm the log rotation settings of your container engine and your log shipper, since defaults vary by installation.
Audit trail for production log access
An audit trail records who viewed or exported production logs, when, and for which incident. Without one, you cannot answer a regulator or an internal reviewer who looked at learner data during an outage. Require an incident or change reference before anyone pulls production logs, and record that reference alongside the access. Confirm whether your host, shell and log platform already keep session records that you can retain for this purpose.
Redact before you share
Redaction should happen before a log leaves your environment, not after it reaches a forum or vendor. Remove learner identifiers, secret values, session cookies, tokens and full request URLs that contain query strings. Keep the error type, the exception class, the line where it failed and the component name, because those are usually enough for a support partner to reproduce the fault. Keep the original unredacted file in a restricted location so the fix can still be verified.
Questions buyers ask about troubleshooting Open edX with Tutor
How much ongoing effort does troubleshooting an Open edX platform take?
Effort depends mostly on how often failures occur and how much of the platform your team has already instrumented. A stable deployment with centralized logs, error alerts and a tested runbook produces short, repeatable investigations. A platform with frequent learner-facing errors, many custom components or no log retention can consume an engineer's time for every incident. The main drivers are the number of services running in Tutor, the number of plugins and custom XBlocks, how many releases you run and how often you deploy changes. Ask any partner to break its quote into one-time setup work, such as building log access and runbooks, and recurring work, such as on-call response, retainer hours and upgrade support.
Can an internal team troubleshoot Open edX with Tutor without a partner?
Yes, a team with Linux, Docker and Django experience can read tutor local logs output, inspect per-container logs and work through common cases on its own. The harder part is knowing which failures sit in the platform, which sit in a plugin and which sit in the server or network. Teams usually need someone who understands the edx-platform services, the Tutor project root and the release they run. Check whether your staff have that background, whether they can cover after-hours incidents, and whether you have a written escalation path before the first outage.
What must our team provide to a support partner before a diagnosis starts?
A good handoff makes the first diagnosis faster and cheaper. Prepare the following before you ask anyone for help:
- The exact Tutor version and the named Open edX release you run, plus the Tutor project root configuration with secrets removed.
- The time window of the failure, the affected URL or service, and the steps that reproduce it.
- Relevant excerpts from
tutor local logsand the per-container logs, with timestamps and learner personal data removed. - A list of recent changes, including plugin updates, theme changes, custom XBlock deployments and infrastructure work.
Agree in writing how the partner will receive this material and where it will be stored.
How long does it take to diagnose an Open edX failure?
Diagnosis time depends on how quickly the failure can be reproduced and how much context exists. A failure that appears in a single container's log with a clear stack trace can be found quickly. An intermittent failure that only appears under load, after a deploy or for certain learners takes longer because it needs correlation across services, timing data and sometimes a staging copy. Other factors include access to the environment, whether logs are retained long enough to cover the incident, and whether the cause lies in the platform, a plugin, the database or the network. Ask a partner to state how it will record time spent on diagnosis and what it will need from you to keep that time short.
What happens when the failure is in a plugin or a custom XBlock?
Failures in a Tutor plugin or a custom XBlock are handled as part of your codebase, not as a platform defect. The first step is to confirm which component raised the error by checking the stack trace and the container that logged it. Then identify the plugin version, the XBlock release and any recent change to the Tutor configuration that loads them. Fixes usually happen in your own repository, with a test before redeploy. Ask whether the engagement covers plugin code changes, what happens if the plugin's upstream project changes, and who owns the fix after handover. Scope these items separately in the written statement of work.
What drives the cost of troubleshooting help, and does this page give a price?
This page does not give a price. Cost depends on the written scope: the size and number of services in your deployment, the number of custom components, whether you need on-call coverage or a one-off investigation, the access and approval steps in your environment, and how much fixing is included after diagnosis. DeployOpen does not publish a price list. A quote follows from the agreed scope, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ask for the quote to separate diagnosis, fix, retest and any retainer support.
Does DeployOpen guarantee how fast it will resolve a failure?
This section does not describe guarantees, service levels or response times. Response and resolution commitments depend on the retainer or engagement agreed in writing, so ask for the exact terms before you sign. What DeployOpen can describe is the work: planning and implementing self-hosted Open edX with Tutor inside your infrastructure, with logs, backups, email, maintenance windows and error monitoring set up so that incidents can be investigated. Confirm with any provider which response commitments, if any, are included in the written scope.
Setting up log access and a triage routine for your Tutor platform
This sequence gives your team working access to Open edX logs, a repeatable way to triage failures, and a shared routine for who responds and what evidence gets collected. Each step ends with a check so you know the routine works before a learner-facing fault forces you to use it.
Confirm access to the Tutor project and host
Confirm that the people on the on-call rota can reach the host where the Tutor project root lives, can run the tutor commands as the account that owns the project, and can see the container runtime on that host. Record who holds which access, where the project root and its configuration are kept, and which version of Tutor is installed. Check that each responder can run a read-only command such as listing running services and get output back. You know this step is done when every responder has completed that command on the staging host and the access list is written down with an owner for each entry.
Set up log retrieval for each service
Confirm how logs are read for the local stack with the tutor local logs command, and how individual containers are read with the container runtime's log commands for each service in the platform, including the LMS, Studio, Celery workers, MySQL, MongoDB, Redis or Memcached, and the reverse proxy. Decide where logs are kept, how long, and whether they are shipped to a central tool. Confirm the exact command syntax against the Tutor documentation for your installed version rather than relying on memory. You know this step is done when a responder can pull the last hundred lines from each service on staging and save them to a shared location.
Write the triage checklist
Draft a short checklist that starts from the symptom a learner or course team reports, then moves through the common cases: the site returning an error page, a service that is restarting, a database connection failure, a failed email send, a stuck background task, and a broken static asset after a change. For each case, name the service to check first, the log lines or status values to look for, and the next action. Keep the checklist in the same place as the runbook so it is found during an incident. You know this step is done when the checklist covers each case in the list above and a second engineer has walked through it without asking questions.
Define the evidence template
Create a template that every responder fills in before escalating to the Open edX community or a support partner. It should record the Tutor and Open edX release in use, the time of the first report, the symptom as reported, the services affected, the relevant log excerpts with timestamps, recent changes such as plugin installs, configuration edits or upgrades, and the steps already tried. Remove learner personal data from excerpts before they leave your environment. You know this step is done when a responder can fill the template for a staged fault in under the time your team agrees is acceptable, and the output contains enough to reproduce the problem without further questions.
Agree who responds to which alert
Map each alert or report category to a named owner and a backup. Separate platform faults (services down, database unreachable), learner-facing faults (login failures, course pages not loading), and operational faults (email not sending, backups missing). Decide who has authority to restart services, who can roll back a change, and when to contact a support partner under the terms of your agreement. Confirm with your partner or internal managers which hours are covered. You know this step is done when every category has a primary and backup owner written into the runbook and each owner has acknowledged the assignment.
Test the routine with a planned fault in staging
Introduce a planned fault on the staging platform, such as stopping one service, breaking a configuration value in a controlled way, or blocking the database connection, and record the time of injection. Have a responder who did not inject the fault follow the checklist, retrieve logs, fill the evidence template and assign the alert to the right owner. Measure how long it takes to identify the failing service and note every point where the checklist was unclear or missing a command. Restore staging and update the checklist with the gaps found. You know this step is done when the responder identifies the injected fault from the logs and the evidence template is complete, and the updated checklist has been reviewed by the team.
How DeployOpen works on this
DeployOpen plans, implements and supports self-hosted Open edX inside your own infrastructure, so log access, troubleshooting and fixes stay under your control. We scope the investigation in writing before work starts, then hand your team the log locations, runbooks and evidence they need to repeat the process without us.
How we scope
- We agree in writing which Tutor environments, containers and log sources the engagement covers before work starts.
- We confirm access paths to the Tutor project root, container engine and log storage in your infrastructure.
- We record the known failure symptoms, affected services and deliverables so the fixed scope is clear to both sides.
How we build
- We build a repeatable log collection procedure using tutor local logs and per-container logs for each affected service.
- We map each common failure case to its log signature, likely cause and the check that confirms or rules it out.
- We test each fix in a non-production Tutor environment and retest after the change to confirm the symptom is gone.
How we hand over
- We document the log locations, search patterns, commands and escalation steps in a runbook your operators can follow.
- We provide a collection checklist covering versions, configuration, timestamps and redacted log excerpts for community or partner requests.
- We walk your platform and support staff through the runbook so they can triage the next incident themselves.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers once the initial handover is complete.
- A retainer can cover incident triage, log review after Tutor upgrades and updates to the runbook as your setup changes.
- Support scope and response arrangements are agreed in writing, and we quote them from the written scope.

