Using the getting started project from Sitecore 10 docs, as per https://doc.sitecore.com/developers/100/developer-tools/en/walkthrough--using-the-getting-started-template.html the Identity server container fails to start and has a Base64 conversion error parsing the license key:
Unhandled Exception: System.FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)
at System.Convert.FromBase64String(String s)
at Sitecore.Framework.Runtime.Configuration.License.ReadFromRaw(ISitecoreHostingEnvironment host)
at Sitecore.Framework.Runtime.Licensing.SitecoreHostingEnvironmentExtensions.GetLicense(ISitecoreHostingEnvironment host)
at Sitecore.Framework.Runtime.Commands.SitecoreHostCommand.OnExecuteAsync(CommandLineApplication app)
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments) in C:\projects\commandlineutils\src\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 77
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context) in C:\projects\commandlineutils\src\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 62
at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext() in C:\projects\commandlineutils\src\CommandLineUtils\Conventions\ExecuteMethodConvention.cs:line 25
--- End of stack trace from previous location where exception was thrown ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass126_0.<OnExecute>b__0() in C:\projects\commandlineutils\src\CommandLineUtils\CommandLineApplication.cs:line 505
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext context) in C:\projects\commandlineutils\src\CommandLineUtils\CommandLineApplication.Execute.cs:line 31
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context) in C:\projects\commandlineutils\src\CommandLineUtils\CommandLineApplication.Execute.cs:line 145
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](IConsole console, String[] args) in C:\projects\commandlineutils\src\CommandLineUtils\CommandLineApplication.Execute.cs:line 130
at Sitecore.Program.<Main>(String[] args)
The cortexprocessingworker, xdbautomationworker, and xdbsearchworker all fail to start after the ID container fails and the Up.ps1 script finishes with the following errors:
Using Windows 10 Build 1809, Docker Desktop 2.2.04. Partner license, and MVP license both for v9 and unexpired.
# If you intend to push to a private registry, fill that in here.
REGISTRY=
COMPOSE_PROJECT_NAME=headlessdemo1
# Configure host names, which will be used to configure Traefik proxy routing.
CM_HOST=cm.headlessdemo1.localhost
ID_HOST=id.headlessdemo1.localhost
RENDERING_HOST=www.headlessdemo1.localhost
# Sitecore Docker registry and platform version.
# The ltsc2019-based images are used by default here. Development-only 1909 images are also available.
SITECORE_DOCKER_REGISTRY=scr.sitecore.com/sxp/
SITECORE_VERSION=10.0.0-ltsc2019
# The sitecore\admin and SQL 'sa' account passwords for this environment are configurable here.
SITECORE_ADMIN_PASSWORD=xxx
SQL_SA_PASSWORD=xxx
# Other supporting images, including Sitecore modules and Docker tools
MANAGEMENT_SERVICES_IMAGE=scr.sitecore.com/sxp/modules/sitecore-management-services-xp1-assets:2.0.0-1809
HEADLESS_SERVICES_IMAGE=scr.sitecore.com/sxp/modules/jss-xp1-assets:14.0.0-1809
TOOLS_IMAGE=scr.sitecore.com/tools/sitecore-docker-tools-assets:10.0.0-1809
TRAEFIK_IMAGE=traefik:v2.2.0-windowsservercore-1809
# MSBuild configuration and the target build stage for the Rendering Host image.
BUILD_CONFIGURATION=debug
# Mount paths for code deployment, data persistence, and your Sitecore license.
LOCAL_DEPLOY_PATH=.\docker\deploy\
LOCAL_DATA_PATH=.\docker\data\
HOST_LICENSE_FOLDER=C:\installs\licenses\
# Because we are using a mounted license file, this value can be empty.
# Included here to suppress 'variable is not set' warning from docker-compose.
SITECORE_LICENSE=
# The isolation mode for Sitecore containers.
# Compatibility of isolation mode depends on the Host and Container OS versions.
ISOLATION=default
TRAEFIK_ISOLATION=hyperv
# Generated keys and certificates for your environment.
REPORTING_API_KEY=xxx
SITECORE_IDSECRET=xxx
TELERIK_ENCRYPTION_KEY=xxx
SITECORE_ID_CERTIFICATE=xxx
SITECORE_ID_CERTIFICATE_PASSWORD=xxx
.env
file?SITECORE_LICENSE
should be empty, andHOST_LICENSE_FOLDER
should be pointed at a folder with yourlicense.xml
in it.