简体   繁体   English

GCP Cloud Run 503 错误:asp.net 网站服务不可用

[英]GCP Cloud Run 503 Error: Service unavailable for asp.net website

I'm trying to deploy the asp.net website in cloud run but am stuck with this error - " The request failed because either the HTTP response was malformed or connection to the instance had an error . (Service Unavailable 503 )"我正在尝试在云运行中部署 asp.net 网站,但遇到此错误 - “请求失败,因为 HTTP 响应格式错误或与实例的连接有错误(服务不可用 503 )”

This is https & http docker files.这是 https & http docker 文件。 one of many such services.许多此类服务之一。

在此处输入图像描述

在此处输入图像描述

for http-5176 -- http URL of cloud run is not registered in the azureAD app - I'm getting can't redirect error when I access the cloud run URL which is expected that is fine.对于 http-5176 -- 云运行的 http URL 未在 azureAD 应用程序中注册 - 当我访问云运行 URL 时出现无法重定向错误,这应该没问题。

but for https-7176 -- https URL of cloud run which is registered in azureAD is immediately throwing Service Unavailable 503, not sure whether it is redirected to auth or not.但是对于 https-7176 -- https URL 在 azureAD 中注册的 cloud run 立即抛出 Service Unavailable 503,不确定是否重定向到 auth。

Thing is, when I try these two container images locally in docker desktop it is working fine - https://localhost:PORT redirects to authentication page and website is loaded as expected with some other api call errors.事情是,当我在 docker 桌面本地尝试这两个容器图像时,它工作正常 - https://localhost:PORT 重定向到身份验证页面,网站按预期加载,并出现其他一些 api 调用错误。 But when I deploy the same in cloud run -- Service Unavailable 503 Cloud run config但是当我在云运行中部署相同的服务时——服务不可用 503 云运行配置

  • 2 CPU limit 2 CPU 限制
  • 512MB Memory limit 512MB Memory 限制
  • 1 Concurrency 1 并发
  • 500sec request timeout 500 秒请求超时

Tried some troubleshooting尝试了一些故障排除

  • Concurrency is at low并发性很低
  • No VPC access connector is used for now.目前没有使用 VPC 访问连接器。
  • No errors on memory exceeding in logs日志中超过 memory 没有错误

Expecting - to authenticate and load webpage knowing that there are few api error in that to work on later.期待 - 验证和加载网页,知道其中很少有 api 错误可以稍后处理。

Do you have any idea what could be causing this?你知道是什么原因造成的吗? And how to reslove this?以及如何解决这个问题?

Thanks for your answers in advance.提前感谢您的回答。

As cloud run redirects HTTP requests to HTTPS. after a long trial and error, with my application team.当 cloud run 将 HTTP 请求重定向到 HTTPS 时。经过长时间的尝试和错误,我的应用程序团队。 In the code, they added a redirection from HTTP to HTTPS and I'm running my cloud-run service in the HTTP port.在代码中,他们添加了从 HTTP 到 HTTPS 的重定向,我在 HTTP 端口运行我的云运行服务。 Now it is working fine.现在它工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS Lambda:503 服务不可用 - AWS Lambda: 503 Service Unavailable HTTP 错误 503 服务在 spring 引导项目中不可用 - HTTP ERROR 503 Service Unavailable in spring boot project 是否可以重命名 GCP Cloud Run 服务? - Is it possible to rename a GCP Cloud Run Service? GCP 云运行限制 - GCP Cloud Run Limits cloud_firestore/unavailable 服务当前不可用 - cloud_firestore/unavailable The service is currently unavailable Grafana 中的 GCP 云运行日志 - GCP Cloud Run Logs in Grafana 无法使用 Compute Engine 将 ASP.NET 6.0 网站发布到 Google Cloud Platform:“无法发布项目 MyProject” - Can't publish ASP.NET 6.0 website to Google Cloud Platform using Compute Engine : "Failed to publish project MyProject" 是否可以在 GCP 中使用带防火墙的完全托管服务(Cloud Run 或 App Engine)? - Is it possible to use a fully managed service (Cloud Run or App Engine) with firewall in GCP? GCP 的 Cloud Run 的 Azure 是什么? - What is the Azure equivalent of GCP's Cloud Run? GCP Cloud Run 部署 Docker 容器未启动,因为 nginx 图像无法找到 error.log - GCP Cloud Run deployed Docker container does not start because of nginx image is failing to find error.log
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM