Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml

Resolution:

Fill the .env file with required information with a init file like this, ensure to provide proper site prefixes in the file!

Error:


ERROR: for xdbautomationworker  Container "f494031e76b0" is unhealthy.

ERROR: for xdbsearchworker  Container "f494031e76b0" is unhealthy.

ERROR: for cortexprocessingworker  Container "f494031e76b0" is unhealthy.

ERROR: for traefik  Container "9879053671db" is unhealthy.


docker logs -f result:

[Error] XConnect Web Application Error: "System.ApplicationException: Exception trying to initialize Service Collection and Provider for WebAPI Dependency Resolver, Inner Exception: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'. ---> System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)

   at ?????????????????????????????????????????.?????????????????????????????????????????(????????????????????????????????????????? , String )

   at ?????????????????????????????????????????..ctor(String )

   at ?????????????????????????????????????????..ctor(String )

   at Sitecore.XConnect.Configuration.Extensions.InitializeLicenseCheck(IServiceCollection collection, String licenseFileOrXml)

   at Sitecore.XConnect.Configuration.Extensions.UseXConnectServiceInitializationConfiguration(IServiceCollection collection, IConfiguration configuration, String[] configurationSectionNames, String initializationSectionName, Boolean validateConfiguration)

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   --- End of inner exception stack trace ---

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)

   at Sitecore.XConnect.Web.Global.Application_Start(Object sender, EventArgs e)"

2021-09-26 00:49:43 ::1 GET /healthz/ready - 80 - ::1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.2090 - 500 0 0 4043

2021-09-26 00:50:50.899 +00:00 [Error] XConnect Web Application Error: "System.ApplicationException: Exception trying to initialize Service Collection and Provider for WebAPI Dependency Resolver, Inner Exception: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'. ---> System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)

   at ?????????????????????????????????????????.?????????????????????????????????????????(????????????????????????????????????????? , String )

   at ?????????????????????????????????????????..ctor(String )

   at ?????????????????????????????????????????..ctor(String )

   at Sitecore.XConnect.Configuration.Extensions.InitializeLicenseCheck(IServiceCollection collection, String licenseFileOrXml)

   at Sitecore.XConnect.Configuration.Extensions.UseXConnectServiceInitializationConfiguration(IServiceCollection collection, IConfiguration configuration, String[] configurationSectionNames, String initializationSectionName, Boolean validateConfiguration)

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   --- End of inner exception stack trace ---

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)

   at Sitecore.XConnect.Web.Global.Application_Start(Object sender, EventArgs e)"

2021-09-26 00:51:24.528 +00:00 [Error] XConnect Web Application Error: "System.ApplicationException: Exception trying to initialize Service Collection and Provider for WebAPI Dependency Resolver, Inner Exception: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'. ---> System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)

   at ?????????????????????????????????????????.?????????????????????????????????????????(????????????????????????????????????????? , String )

   at ?????????????????????????????????????????..ctor(String )

   at ?????????????????????????????????????????..ctor(String )

   at Sitecore.XConnect.Configuration.Extensions.InitializeLicenseCheck(IServiceCollection collection, String licenseFileOrXml)

   at Sitecore.XConnect.Configuration.Extensions.UseXConnectServiceInitializationConfiguration(IServiceCollection collection, IConfiguration configuration, String[] configurationSectionNames, String initializationSectionName, Boolean validateConfiguration)

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   --- End of inner exception stack trace ---

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)

   at Sitecore.XConnect.Web.Global.Application_Start(Object sender, EventArgs e)"

2021-09-26 00:50:17 ::1 GET /healthz/ready - 80 - ::1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.2090 - 500 0 0 3073

2021-09-26 00:50:50 ::1 GET /healthz/ready - 80 - ::1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.2090 - 500 0 0 3241

2021-09-26 00:51:58.169 +00:00 [Error] XConnect Web Application Error: "System.ApplicationException: Exception trying to initialize Service Collection and Provider for WebAPI Dependency Resolver, Inner Exception: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'. ---> System.IO.FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\App_Data\license.xml'.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)

   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)

   at ?????????????????????????????????????????.?????????????????????????????????????????(????????????????????????????????????????? , String )

   at ?????????????????????????????????????????..ctor(String )

   at ?????????????????????????????????????????..ctor(String )

   at Sitecore.XConnect.Configuration.Extensions.InitializeLicenseCheck(IServiceCollection collection, String licenseFileOrXml)

   at Sitecore.XConnect.Configuration.Extensions.UseXConnectServiceInitializationConfiguration(IServiceCollection collection, IConfiguration configuration, String[] configurationSectionNames, String initializationSectionName, Boolean validateConfiguration)

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   --- End of inner exception stack trace ---

   at Sitecore.XConnect.Web.Host.WebApiConfig.ConfigureServices(HttpConfiguration config)

   at System.Web.Http.GlobalConfiguration.Configure(Action`1 configurationCallback)

   at Sitecore.XConnect.Web.Global.Application_Start(Object sender, EventArgs e"

2021-09-26 00:51:24 ::1 GET /healthz/ready - 80 - ::1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.2090 - 500 0 0 3062

2021-09-26 00:51:58 ::1 GET /healthz/ready - 80 - ::1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-US)+WindowsPowerShell/5.1.17763.2090 - 500 0 0 3073

Comments

Popular Posts