All pages are working fine and the only home page is giving error:
Error 503 Backend fetch failed
with varnish 4 enabled
50x backend error indicates your site has a server error on the home page.
to investigate, you may find the server error log (apache log or nginx log more than likely).
Also, if you clear varnish cache first and then refresh the home page, you may see whether the error appears straight away of whether the page is slow to load and then after long time, shows the error
--> the first case would mean you have a code issue: php error, module conflict, invalid query
--> the second may be a timeout: API timeout, collection loading too much data..
Now, because the origin is so varied and likely depending on the modules you have installed, it is not a question that will have a good answer unless you get you site looked at by a developer
I've found the issue and solved.
i was using return 301 https://www.domain.com$request_uri; on port 80 so varnish stop using it as a backend, by creating a new server block on port 8080 as varnish backend issue resolved.