Failed to generate models. sometimes after deployment
Describe the bug We sometimes experience an error after deployment on remote environment.
There is no clear explanation what happens. The log only says the following:
Failed to generate models. Umbraco.Cms.Infrastructure.ModelsBuilder.AutoModelsNotificationHandler 800001ee-0002-5f00-b63f-84710c7967bb /umbraco/backoffice/umbracoapi/authentication/PostLogin 11608 w3wp 32 e11d0c86b1a565a7bfeb26f86d7f0d905c37ec57 WIN-M6SHD2S0HP3 ERROR 7fefae18-9366-44f0-b989-e13a3c114ed0 1 0
To Reproduce Steps to reproduce the behavior: Not sure what steps are necessary for it to happen. We normally updated our models on local and dploy via Azure pipelines to staging or UAT. The remote site has the import set to happen on startup:
"ImportAtStartup": "Settings",
When the error triggers we try to import manually via uSync section, clicking Import. At this time the import seems to get stuck and not progressing - see the picture attached.
Expected behavior It should not throw the error. It should import the models and updated the doc types etc. on startup and manually.
Screenshots
About your Site (please complete the following information):
- Umbraco Version: 10.4.0
- uSync Version: 10.0.0
- Browser [e.g. chrome, safari] Chrome
Additional context