Report this

What is the reason for this report?

503 Bakcend fetch Failed

Posted on March 8, 2022

I created a droplet and installed Magento using 1-click install. Everything went smooth for a few hours and then I got the error:

Error 503 Backend fetch failed

Nothing was changed on the website.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

In such cases it is always best to check your Apache error log to see the actual error:

tail -100 /var/log/apache2/error.log

In there you will see the actual error rather than the generic 503 error.

It sounds like that the Apache service might not be running so Varnish is unable to connect to the backend, you can try restarting Apache with:

sudo systemctl restart apache2

Let me know how it goes.

Best,

Bobby

Hi @FloatingLightCyanKelp,

This sounds like your WebSerivce has failed. In the Magento MarketPlace image here :

https://marketplace.digitalocean.com/apps/magento-2-open-source

I can see it’s using Apache.

That means you’ll need to check your Apache service if it’s running.

  1. systemctl status apache2

If it’s not working or says failed, it’s best to check the error log to see the reason:

  1. tail -n100 /var/log/apache2/error.log

Most commonly, Apache2 gets killed by the Droplet when there is a shortage of Memory. In such cases, an upgrade or adding a SWAP file is a nice approach. It really depends on how you go about such issues. My recommendation would be to first try with a SWAP file and then if still needed go for an upgrade(if that’s the cause if the issue ofcourse).

https://www.digitalocean.com/community/tutorial_collections/how-to-add-swap-space

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.