Deploying Umbraco 9 to Azure through pipeline (TypesCache error)
Hey! I really need some help, I have been struggling with this issue for days..
I have ported a site from Umbraco 8 to Umbraco 9. When I deploy the app to my Azure App Service, I get an 500.30 error, see picture.
When I go to the eventlog.xml in the Kudu console in Azure, the log tells me that the app crashes because of this error:
Application '/LM/W3SVC/106956735/ROOT' with physical root 'C:\home\site\wwwroot\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs:
Unhandled exception. System.IO.FileNotFoundException: Could not find file 'C:\home\site\wwwroot\umbraco\Data\TEMP\TypesCache'.
File name: 'C:\home\site\wwwroot\umbraco\Data\TEMP\TypesCache'
at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
at System.IO.Directory.CreateDirectory(String path)
I do not understand why the app is looking for a file under the TEMP folder, because I have understood that the Temp folder should not be published to the Azure app. Anyway, I have no clue how to fix this error. Anyone, help...?
I anyone else encounters this error, I fixed it with making a new Azure App Service that runs on Linux... I have tried multiple Windows Azure App Services, but I get this error on Windows everytime...
Hey,
After a while we found the root to this problem. We had not checked "Web Deploy" on our release pipeline, which meant that Umbraco did not have the permission to write to the /wwwroot folder, resulting in the System.IO.FileSystem.CreateDirectory error message.
How do you deploy the site? I recommend reading this article :)
Deploying Umbraco 9 to Azure through pipeline (TypesCache error)
Hey! I really need some help, I have been struggling with this issue for days.. I have ported a site from Umbraco 8 to Umbraco 9. When I deploy the app to my Azure App Service, I get an 500.30 error, see picture.
When I go to the eventlog.xml in the Kudu console in Azure, the log tells me that the app crashes because of this error:
I do not understand why the app is looking for a file under the TEMP folder, because I have understood that the Temp folder should not be published to the Azure app. Anyway, I have no clue how to fix this error. Anyone, help...?
I anyone else encounters this error, I fixed it with making a new Azure App Service that runs on Linux... I have tried multiple Windows Azure App Services, but I get this error on Windows everytime...
Hi Lars,
Did you use the recommended configuration for Azure?
}
I have been following these instructions, and it says to use FileSystemMainDomLock for MainDomLock.
Which is the right one to use for Azure?
Hello There,
I have the exact same error when I deploy umbraco 9 to a hosting iis. the server is a windows server
Is it possible that it is not only the case on azure, maybe on all windows servers?
Kind regards
Edvin Mujalo
Hey, After a while we found the root to this problem. We had not checked "Web Deploy" on our release pipeline, which meant that Umbraco did not have the permission to write to the /wwwroot folder, resulting in the System.IO.FileSystem.CreateDirectory error message.
How do you deploy the site? I recommend reading this article :)
https://tomasherceg.com/blog/post/azure-app-service-cannot-create-directories-and-write-to-filesystem-when-deployed-using-azure-devops
is working on a reply...