Symptoms
You need to know why an app shows an error, crashed or is slow, and you want to see what the app itself reported.
Cause
Apps write messages about what they do and what went wrong: web requests, warnings and errors. These messages are called logs. For WordPress this includes the web server's request lines and PHP errors.
The console does not store a copy of your application logs. When you open a Logs tab, the console asks your server for the latest lines of that app's output, and the server sends them back. Values that look like the app's secrets are hidden before the lines leave the server.
You see only what the app and its web server print. Lines from Docker, from the app's database or cache, from the server's system and from our management agent are never shown. When one of your apps has a problem we know about, Problems with your apps at the top of the tab says so in plain words, for example "Your app shop could not be started. The server does not have enough free memory. Stop or remove an app on this server, or choose a bigger server."
How to fix
- In the console, open Applications and open the app.
- Go to the Logs tab. The page reads the latest lines from your server.
- Or open the server, choose its Logs tab and pick the app under Application.
- To narrow the lines, type a word in Show lines containing, for example
error,fatal,timeoutor part of a page address (200 characters or fewer). The search runs on your server over the latest part of the log, and only lines with that exact text are shown. Nothing is stored. - Press Refresh to read the newest lines again, for example after you reload the failing page.
- Copy the lines you need into your notes or a ticket; they are not kept for you.
Good to know:
- "Showing the latest lines only" means older lines are not shown. Reproduce the problem and press Refresh to see fresh lines, or narrow your search text.
- "Logs can be read only while the app is running" means the app is stopped. Start or restart it, then read the logs straight away.
- "Logs are busy at the moment. Try again shortly." means several log requests are running. Wait a little and press Refresh.
- "The server returned no log lines." or "We could not read the logs. Try again.": see Logs tab shows no lines or an error.
- If the tab says "Lines are kept for" a number of days, your server's lines are stored: you can choose a period, a level, Live tail and Download.
- Opening the logs is recorded in the Activity tab.
- The owner, admin and developer roles can read logs. The viewer and billing roles cannot, and do not see the tab.
When to raise a ticket
Use Raise a ticket on the Support page if the Logs tab keeps saying "We could not read the logs" for a running app, or the lines do not help you find the cause. Include the app name, the server name, the time of the problem and the lines you think matter.
Before you paste log lines, remove passwords, keys and personal data. Never include passwords, private keys or API keys.
Was this helpful?
Still need help?
24/7 support from our team. Sign in to the console to raise a ticket about this.