Azure App Service Log流 - 不确定'欢迎您现在连接到Log -streaming Service'

发布于 2025-02-13 17:22:17 字数 2829 浏览 0 评论 0原文

是否有人在Azure中的日志流有问题,该消息“欢迎,您现在已连接到日志流服务”。只是每秒垃圾邮件不断垃圾邮件吗?我现在看不到我的日志。

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.

Has anyone had an issue with the Log Streams in Azure where the message 'Welcome, you are now connected to log-streaming service.' is just spammed 10 times a second constantly? I am unable to see my logs now.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

黯然 2025-02-20 17:22:18

根据我的经验,这会在应用程序悬挂在开始阶段时发生。下面有关我如何解决此问题的一些信息。

我也有同样的问题。实际上,我不仅在日志流视图中遇到了这个问题,而且当我运行az webapp log tail时,我会获得与azure-cli有关的python错误,带有urllib3.exceptions.protococolorror :(“损坏的连接

InvalidChunklength

  • 流循环类似于调用测试端点的问题,
  • 直到我得到响应
  • 现在记录

以完成有用的内容,该文章描述了一种尝试通过更改日志记录设置来修复它的方法: https://learn.microsoft.com/en-us/aswers/questions/918228/app-service-service-log-stream-prints-the-welcome-message.html

确切的确切我从这篇文章中尝试的步骤:

  • 启动该应用程序
  • 在监视下重新 该应用再次
  • 重复最后两个步骤几次

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

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

In my experience, this happens when the app is hanging in the start phase. Below some information about how I tackled this problem.

I had the same issue. In fact not only do I have this issue in the Log Stream view, but when I run az webapp log tail I get a Python error relating to azure-cli, with urllib3.exceptions.ProtocolError: ("Connection broken: InvalidChunkLength in it.

I debugged it by:

  • stripping my NodeJS app down to a "Hello, World" express app.
  • deploying
  • Log Streams loops like in the question
  • calling the test endpoint until I get a response
  • now Log Streams logs something useful

To be complete, this post describes a way to try to fix it by changing the logging settings: https://learn.microsoft.com/en-us/answers/questions/918228/app-service-log-stream-prints-the-welcome-message.html

The exact steps I tried from this post:

  • restarting the app
  • under monitoring > App Service Logs, disable logs and set retention to 0 and back
  • restarting the app again
  • repeating the last two steps several times

It had no effect. I expect these steps can help for some people because it takes enough time for the app to get out of the warm-up phase.

Deploying under different app names/resource groups also did not help for me, which in my opinion indicates that the problem lies with the code, not the environment.

日暮斜阳 2025-02-20 17:22:17

显然,您实际上必须点击网站的URL才能触发重新启动。只需按下重新启动或停止并启动应用程序什么都不做。

Apparently you have to actually hit your website's URL in order to trigger a re-start. Simply pressing restart or stopping and starting the app does nothing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文