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.
How to check the access.log
To view logs for these server errors, check the
access.log on the web server, e.g.,
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.logIf 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
error.logor 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 the
error.logrun the above commands in the CLI but replace