Umbraco cannot run after deployment - Restart required
I am facing following error after deployment to live site. Umbraco.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.\n\n-> Umbraco.Core.Exceptions.BootFailedException: Boot failed.\n\n-> System.TimeoutException: Cannot acquire MainDom\n at Umbraco.Core.Runtime.MainDom.Acquire
Whenever I face this error after deployment, I have to stop my website and kill worker process and restart my site. After this step, my site works fine. but everytime after deployment, I have to follow these steps.
My staging site is running on same server but I do not face this issue on staging site. It has same configuration as live.
Environment/Hosting detail:
Windows Virtual Server
IIS Hosting
Umbraco 8.18.8
If any one have faced this issue, please help me out on this.
I had the same issue now in umbraco 13 and it was solved by assigning full control permissions to IIS_IUSRS user on the hosting folder. Umbraco CMS requires access to delete, create, modify, and execute.
Ah it was a while ago and I don't have the exact script anymore, but you can achieve the same thing by restarting the application pool in IIS. I think this bit of Powershell should do the trick:
Umbraco cannot run after deployment - Restart required
I am facing following error after deployment to live site.
Umbraco.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.\n\n-> Umbraco.Core.Exceptions.BootFailedException: Boot failed.\n\n-> System.TimeoutException: Cannot acquire MainDom\n at Umbraco.Core.Runtime.MainDom.Acquire
Configuration on which I have doubt are as below:
Whenever I face this error after deployment, I have to stop my website and kill worker process and restart my site. After this step, my site works fine. but everytime after deployment, I have to follow these steps.
My staging site is running on same server but I do not face this issue on staging site. It has same configuration as live.
Environment/Hosting detail:
If any one have faced this issue, please help me out on this.
I had the same issue now in umbraco 13 and it was solved by assigning full control permissions to IIS_IUSRS user on the hosting folder. Umbraco CMS requires access to delete, create, modify, and execute.
Hi Aday
Which folder is the hosting folder.
I have the same problem with a solution i upgraded from 11->13
I have assigned full controll to the umbraco project for iis_iusrs but it did not help
I'm hosting under c\inetpub\wwwroot\application_name. That's where .net core apps work best due to proper inherited permissions.
I had a similar issue with v8 and to be honest I never did get to the bottom of it!
So as a workaround, I updated my deployment script to restart the worker process at the end of the deployment and that did the trick.
Hi Simon, can you share the deployment script? I would like to compare it with mine
I have an Umbraco v 8.18.4 installation and sometimes (randomly) my website goes into Boot Failed error.
I have configured the website in a single VM with Windows Server Windows Server 2022 Standard and Microsoft SQL Server 2019 Enterprise
Thank you
Adriano
Ah it was a while ago and I don't have the exact script anymore, but you can achieve the same thing by restarting the application pool in IIS. I think this bit of Powershell should do the trick:
Restart-WebAppPool -Name "YourAppPoolName"
is working on a reply...