在Cloud Foundry运行状况检查中,“ [HEALTH / 0] ERR无法在端口8080上向'/ health'发出HTTP请求:在0毫秒内收到状态码404”

问题描述 投票:0回答:1

[问题]是否可以在此错误日志中将“端口8080”输出为“端口80”?

[程序]

$ cf push
$ cf set-health-check <myapp> --endpoint / health
$ cf logs <myapp>
-
  [HEALTH / 0] ERR Failed to make HTTP request to '/ health' on port 8080: received status code 404 in 0ms
  [CELL / 0] ERR Timed out after 10m0s: health check never passed.
-
cloudfoundry
1个回答
0
投票

似乎您在其中一个命令中可能有错字。 /命令中healthcf set-health-check之间有一个空格。这似乎是在向运行状况检查所使用的URL中注入一个空格,因此它试图到达不存在的文字URL /%20health,因此是404响应。

© www.soinside.com 2019 - 2024. All rights reserved.