Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting site under construction message after azure webapp deployment

I had a network failure while publishing (using visual studio webdeploy ) my webapp to azure. Later i tried again, Then i got the below error message.

Error 5 Web deployment task failed. (Web Deploy cannot modify the file 'NewRelic.Agent.Core.dll' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may need to either restart your application to release the lock, or use the AppOffline rule handler for .Net applications on your next publish attempt. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FILE_IN_USE.) 0 0 ABCD.ABCD.ABCD.ABCD

So i restarted my webapp several times, but same exception. then i tried with FTP. That was also a failure. After few minutes i tried again with visual studio web deploy, then publishing succeeded. But now i am getting a 503 error- site under construction. Any idea?

Note: I tried app offline also. No hope

like image 660
Manu Mohan Thekkedath Avatar asked Oct 09 '15 18:10

Manu Mohan Thekkedath


People also ask

How long does it take to deploy Azure Web App?

Generally you're looking between 10 and 60 minutes.

How do I publish my website to Azure?

Down the published profile from the dashboard page of the created web app using portal.azure.com. Click on the Import option in the dialog box. Select the "Publish file" from the local systems. Click on the "Publish" button to deploy the website.


1 Answers

I resolved my issue. Solution was to remove offline html (APP_OFFLINE.html) from root directory(on server) that is created because of the app offline rule i added to publish profile.

actual problem : <EnableMSDeployAppOffline>true</EnableMSDeployAppOffline> in your publish profile that is actually used to take your app offline while deploying. After finishing deployment, MSDeploy tool should delete APP_OFFLINE.html automatically. But, somehow it did not happened in above case.

So what I suggest is, take a look at the root directory of your website and if there's a file called APP_OFFLINE.html, just remove that.

like image 83
Manu Mohan Thekkedath Avatar answered Oct 13 '22 03:10

Manu Mohan Thekkedath