Cloud Run returns Google 404 despite healthy service — requests never reach container

Problem

Our Google Cloud Run service reports that it is fully deployed, healthy, and ready. However, requests to its public endpoints return Google’s standard HTTP 404 (Not Found) HTML page instead of reaching the application.

The requests also do not appear in Cloud Run request logs.

Environment

  • Project: (PII Removed by Staff)

  • Region: us-central1

  • Service: dealeros-broker

  • Production revision: dealeros-broker-00006-xuq (100% traffic)

  • Diagnostic revision: dealeros-broker-00012-med (tagged, 0% traffic)

  • Container port: 8080

The diagnostic revision contains a small application fix and was deployed with --no-traffic to avoid affecting production.

Expected behavior

Our application implements:

GET /healthz

The handler should return HTTP 200 with:

{"ok":true,"service":"av-oauth-broker"}

We verified that the HTTP server forwards requests to the handler containing this endpoint.

Actual behavior

The following Cloud Run URLs return Google’s standard HTML 404 page:

Production URL:

https://dealeros-broker-ccqyq5ezxq-uc.a.run.app/healthz

Diagnostic revision URL:

https://phase2d-diagnostics---dealeros-broker-ccqyq5ezxq-uc.a.run.app/healthz

We also tested the newer Cloud Run URL format and our configured custom domain, with the same result.

The response is Google’s branded 404 page, not the JSON response implemented by our application.

Troubleshooting completed

We verified the following:

  1. Cloud Run service generation and observed generation both equal 12.

  2. Service conditions Ready, ConfigurationsReady, and RoutesReady are all True.

  3. Diagnostic revision conditions Ready, Active, ContainerHealthy, ContainerReady, and ResourcesAvailable are all True.

  4. The container starts successfully and listens on port 8080.

  5. Ingress is configured as all.

  6. Invoker IAM checks are disabled.

  7. Cloud Run reports the expected service URL and tagged diagnostic URL.

  8. Production traffic remains at 100% on the original revision.

  9. The diagnostic revision remains isolated at 0% traffic.

  10. Requests from Google Cloud Shell and a separate browser produce the same 404.

  11. Authenticated requests, IPv4-only requests, and requests through the Cloud Run local proxy also returned 404.

  12. No corresponding /healthz requests appear in Cloud Run request logs.

  13. No relevant Cloud Run revision errors were found.

  14. The application source code explicitly implements the /healthz endpoint.

We also inspected Cloud Run deployment audit records and verified that the service’s latest configuration is fully reconciled.

Question

What could cause Google Cloud Run to return a Google-generated HTTP 404 for a correctly assigned service URL and tagged revision URL, even though the service and container report healthy?

Specifically:

  • Could a Cloud Run frontend routing issue produce this behavior?

  • Are there additional API-level settings or diagnostics we should inspect?

  • How can we determine why requests are not appearing in Cloud Run request logs?

  • Is there a safe way to verify or repair the routing configuration without redirecting production traffic?

We would appreciate guidance on the next diagnostic step. We want to avoid unnecessary redeployments or changes to the existing production revision.

I would test the path itself first, because a Google-branded 404 with nothing in the request logs points to the request being stopped before it reaches your container. I ran into the same pattern with /healthz, and when I tried a plain /health endpoint on the same service it answered straight away. If that works for you, I would move your check to a path that is not reserved by the platform and keep /healthz out of your app routing.

Thank you, @bibleblessings! You were absolutely right about testing the endpoint path.

We added a /health endpoint alongside /healthz, rebuilt the container, and deployed it to a separate Cloud Run revision for testing. The new /health endpoint immediately returned HTTP 200 with the expected JSON response.

We subsequently promoted the verified revision to production, and the live custom domain is now returning HTTP 200 as well.

Your suggestion helped us get past an issue we had spent considerable time troubleshooting. We still haven’t conclusively established why /healthz returned a Google-branded 404 before reaching our container, but switching to /health resolved the health-check issue.

Really appreciate you taking the time to share your experience. Thank you!