Check logs to troubleshoot 500 and 503 errors on Adobe Commerce
This article explains how to check the access.log
and related logs to troubleshoot 503 and 500 errors, which can be caused by traffic or insufficient server resources. Viewing the access.log
and related logs can provide information on what may be causing problems related to Adobe Commerce on cloud infrastructure.
Affected products and versions
- Adobe Commerce on cloud infrastructure, all supported versions.
To view logs for these server errors, check the access.log
on the web server, e.g., <ip address>
<timestamp>
<request uri>
<response code>
<referer url>
To check related logs:
- Run the following command in the CLI if it is on the current day (for Adobe Commerce on cloud infrastructure Pro plan architecture). Or up to a certain point in the past (for Adobe Commerce on cloud infrastructure Starter plan architecture), since the duration of the logs’ coverage is limited, and log rotation is not available:
grep -r "\" [50[0-9]" /path/to/access.log
If the error has occurred in the past run the following command in the CLI (Pro architecture only):zgrep "\" 50[0-9]" /path/to/access.log.<rotation ID>.gz
- Then check the
exception.log
anderror.log
or the equivalent rotated log (logs that are automatically rotated and compressed when they reach a certain file size) for the same timestamp to locate the potential error and see what might have been occurring to have caused it. Note: To check theexception.log
anderror.log
run the above commands in the CLI but replaceaccess.log
withexception.log
orerror.log
.
Related reading
- See View and manage logs in the Adobe Commerce on Cloud Infrastructure Guide.
- See Troubleshooting 503 errors in our support knowledge base.
- See Magento Site Down Troubleshooter in our support knowledge base.
recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a