By default, Fastly hides all Magento errors behind the 503 Service Unavailable error. To display the Magento error log report number (to be able to find it in logs and see the error details), open the website omitting Fastly using these steps:
- Add your application's domain and IP address to your hosts file on your local machine.
- Clear the browser cache and cookies (or switch to incognito mode).
- Open your store's website again to see the Magento error.
Once you see the authentic Magento error and the error report number, you may get details in the error report file by following these steps:
- SSH to the affected environment (read how).
- Locate the
./var/report/{error_number}
file.
Add application domain and IP address to your hosts file: detailed steps
- Check the server IP of your store by executing the
nslookup
command in the command line on your local machine: - Pro plan users, Staging and Production environments:
nslookup {your_project_id}.ent.magento.cloud
- Starter plan users, all environments; Pro plan users, Integration environment:
nslookup gw.{your_region}.magentosite.cloud
- Add your store domain and application server IP to the hosts file on your local machine using the following format:
{server_IP} {store_domain}