Kudu: Failing site start after GitHub deploy

Created on 1 Nov 2018  路  5Comments  路  Source: projectkudu/kudu

For deployment issues, please provide us with the following information:

Repro steps.

Vue.js app created in VS Code based on standard Vue-CLI/Webpack template.
Deployed automatically to Azure App Service when pushed to GitHub.
Builds without errors.
Cannot restart the container.

Project structures.

Standard Vue.js/Webpack.

The log/error given by the failure.

Container starts:

2018-11-01 07:56:49.418 INFO - Starting container for site
2018-11-01 07:56:49.419 INFO - docker run -d -p 44143:8080 --name [containername] -e WEBSITE_NODE_DEFAULT_VERSION=8.9 -e APPSETTING_WEBSITE_NODE_DEFAULT_VERSION=8.9 -e WEBSITE_SITE_NAME=[sitename] -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_INSTANCE_ID=31c0e[...]89f1 -e HTTP_LOGGING_ENABLED=1 appsvc/node:8.9.4_1804040228

Then this:

2018-11-01 08:01:25.406 ERROR - Container [containername] for site [sitename] has exited, failing site start 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'

This error does not show up if I go through the Kudu logs but I can see it in the Log Stream in Azure.

I've tried a few time and I can see that sometimes the status.txt file is present. It seems to be there when a site start is attempted. As of now, I'm unsure if this is Kudu related but I would appreciate any pointers!

Debug your Azure website remotely.

Subscription GUID (partial): ec46...1414

Mention any other details that might be useful.

Most helpful comment

Hi All!
Just ran into the same issue! I did the following and it worked:
In the Azure App Service "Overview" section, (Where you can start and stop the app), click the "Reset Publish Profile" button. It worked immediately after this. The issue MAY be due to trying different deployment methods. (IE Trying FTP or Github first, then trying local git)
Regards

All 5 comments

I had the same issue with py flask project deployment form bitbucket. seems that it was caused by a compilation error while deploying.

I don't know exactly what was the error but when I reverted to a previous version; everything worked well

Hi @thomassondergaard and @shadyshrif
Hi everyone
Did you find a solution? My Linux webapp is running into same situation and sometimes it starts, sometimes it doesn't.
Thank you very much.

Hi All!
Just ran into the same issue! I did the following and it worked:
In the Azure App Service "Overview" section, (Where you can start and stop the app), click the "Reset Publish Profile" button. It worked immediately after this. The issue MAY be due to trying different deployment methods. (IE Trying FTP or Github first, then trying local git)
Regards

Hi @deantakacs ... I'll try it... It's strange because it just happens with Linux WebApps... Win ones always start file...

This happens to me when deploying dockerized linux functionapps (dotnet v2) to an elastic premium app service plan. The functionapp is then either unavailable or returning an application error. Temporarily it seems scaling out the workers helped, although it already crashed after running fine for ~20 minutes.

Was this page helpful?
0 / 5 - 0 ratings