gpt4 book ai didi

Azure 应用服务日志流 - 不定 'Welcome, you are now connected to log-streaming service'

转载 作者:行者123 更新时间:2023-12-02 06:36:37 25 4
gpt4 key购买 nike

是否有人遇到过 Azure 中的日志流问题,其中出现消息“欢迎,您现在已连接到日志流服务”。是否只是持续每秒发送 10 次垃圾邮件?我现在无法查看我的日志。

2022-07-07T12:48:40  Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:40 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:40 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:40 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:40 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:40 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:39 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:38 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:37 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:36 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:36 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:36 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.
2022-07-07T12:48:35 Welcome, you are now connected to log-streaming service.

最佳答案

根据我的经验,当应用程序在启动阶段挂起时,就会发生这种情况。下面是有关我如何解决此问题的一些信息。

我也遇到了同样的问题。事实上,我不仅在日志流 View 中遇到这个问题,而且当我运行az webapp log tail时也遇到这个问题。我收到与 azure-cli 相关的 Python 错误,其中 urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength就在其中。

我调试它:

  • 将我的 NodeJS 应用程序剥离为“Hello, World”快捷应用程序。
  • 正在部署
  • 日志流像问题中那样循环
  • 调用测试端点直到收到响应
  • 现在日志流会记录一些有用的内容

为了完整起见,这篇文章描述了一种通过更改日志记录设置来尝试修复它的方法:https://learn.microsoft.com/en-us/answers/questions/918228/app-service-log-stream-prints-the-welcome-message.html

我在这篇文章中尝试的具体步骤:

  • 重新启动应用
  • 在监控 > 应用服务日志下,禁用日志并将保留设置为 0 并返回
  • 再次重新启动应用
  • 重复最后两个步骤几次

没有效果。我希望这些步骤可以对某些人有所帮助,因为应用程序需要足够的时间才能摆脱预热阶段。

在不同的应用程序名称/资源组下进行部署对我来说也没有帮助,在我看来,这表明问题在于代码,而不是环境。

关于Azure 应用服务日志流 - 不定 'Welcome, you are now connected to log-streaming service',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72898127/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com