首页 > 解决方案 > azure 应用服务突然停止工作,出现错误 /status.txt'Status_WatchFile :: 错误:ENOENT:没有这样的文件或目录,打开'/appsvctmp

问题描述

我在自定义容器中运行我的应用程序的 azure app 服务已经运行了数周,但突然停止了。当我再次运行管道以启动它时,我遇到了错误:/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp

我怎样才能解决这个问题 ?

/home/LogFiles/2021_06_09_lw0mdlwk00000H_docker.log  (https://<my_app>.scm.azurewebsites.net/api/vfs/LogFiles/2021_06_09_lw0mdlwk00000H_docker.log)
2021-06-09T10:34:13.274Z INFO  - docker run -d -p 1992:8080 --name <my_app>_1_1afe4d4f -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=<my_app> -e WEBSITE_AUTH_ENABLED=True -e PORT=8080 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=<my_app>.azurewebsites.net -e WEBSITE_INSTANCE_ID=88792b837b4de44eba1004ce842f47b2378b7ae95d6de67681373d54802a0f1d -e HTTP_LOGGING_ENABLED=1 statfin.azurecr.io/statfi/hypergraphql:build-20200512215734
2021-06-09T10:34:23.608Z INFO  - Starting container for site
2021-06-09T10:34:23.608Z INFO  - docker run -d -p 9589:8081 --name <my_app>_1_1afe4d4f_middleware -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=false -e WEBSITE_SITE_NAME=<my_app> -e WEBSITE_AUTH_ENABLED=True -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=<my_app>.azurewebsites.net -e WEBSITE_INSTANCE_ID=88792b837b4de44eba1004ce842f47b2378b7ae95d6de67681373d54802a0f1d -e HTTP_LOGGING_ENABLED=1 appsvc/middleware:1.4.5 /Host.ListenUrl=http://0.0.0.0:8081 /Host.DestinationHostUrl=http://172.16.0.3:8080 /Host.UseFileLogging=true
2021-06-09T10:34:28.328Z INFO  - Initiating warmup request to container <my_app>_1_1afe4d4f for site <my_app>
2021-06-09T10:34:44.471Z INFO  - Waiting for response to warmup request for container <my_app>_1_1afe4d4f. Elapsed time = 16.1427174 sec
2021-06-09T10:34:47.831Z INFO  - Container <my_app>_1_1afe4d4f for site <my_app> initialized successfully and is ready to serve requests.
2021-06-09T10:34:47.831Z INFO  - Initiating warmup request to container <my_app>_1_1afe4d4f_middleware for site <my_app>
2021-06-09T10:34:48.868Z INFO  - Container <my_app>_1_1afe4d4f_middleware for site <my_app> initialized successfully and is ready to serve requests.

/home/LogFiles/2021_06_09_lw0mdlwk00000H_easyauth_docker.log  (https://<my_app>.scm.azurewebsites.net/api/vfs/LogFiles/2021_06_09_lw0mdlwk00000H_easyauth_docker.log)
2021-06-09T10:34:28.890076673Z Updating certificates in /etc/ssl/certs...
2021-06-09T10:34:40.518811174Z 11 added, 0 removed; done.
2021-06-09T10:34:40.535289055Z Running hooks in /etc/ca-certificates/update.d...
2021-06-09T10:34:40.540515280Z done.
2021-06-09T10:34:40.559921875Z Updated CA certificates


/home/LogFiles/webssh/pm2.log  (https://<my_app>.scm.azurewebsites.net/api/vfs/LogFiles/webssh/pm2.log)
Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'Status_WatchFile :: Error Error: ENOENT: no such file or directory, open '/appsvctmp/status.txt'

标签: azureazure-appservice

解决方案


推荐阅读