Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

google cloud run 503 error

Open iBasit opened this issue 3 years ago • 1 comments

Following the google hello world example, the PHP code works smoothly instantly.

However, if we use a similar version of PHP webdevops image "webdevops/php-apache:8.0" or any other version, on the first initial call, we get 503 apache service unavailable error, then on refresh, the application starts working as expected.

I'm not sure what is causing this issue but I have tried every possible thing to fix it (raising memory, CPU...)

iBasit avatar Nov 01 '22 19:11 iBasit

Please see cold start section on cloudrun docs here. During the first start of container, if services not start in 10 seconds, cloudrun does not keep requests pending. That's why you see it on second reload but not initially.

emresavas avatar May 30 '23 21:05 emresavas