Closed MikeGlue closed 4 years ago
Try without the usebestcontaineros
Hent Outlook til iOShttps://aka.ms/o0ukef
Fra: Mike Glue notifications@github.com Sendt: Tuesday, August 11, 2020 6:49:34 PM Til: microsoft/navcontainerhelper navcontainerhelper@noreply.github.com Cc: Freddy Kristiansen Freddy.Kristiansen@microsoft.com; Assign assign@noreply.github.com Emne: Re: [microsoft/navcontainerhelper] Move-item error when creating new container (#1215)
Assigned #1215https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fnavcontainerhelper%2Fissues%2F1215&data=02%7C01%7Cfreddy.kristiansen%40microsoft.com%7C939e07ab8fd342c31b5008d83e16887c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327613780495132&sdata=R2y%2Fyuejs7CFV9FqksMycJHk1BnYSrYaN60g1Cf11Pc%3D&reserved=0 to @freddydkhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffreddydk&data=02%7C01%7Cfreddy.kristiansen%40microsoft.com%7C939e07ab8fd342c31b5008d83e16887c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327613780495132&sdata=AokhtauClaLXgT7FknZuLh%2FusuX3uLZepLp3qjDmDuQ%3D&reserved=0.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fnavcontainerhelper%2Fissues%2F1215%23event-3644105379&data=02%7C01%7Cfreddy.kristiansen%40microsoft.com%7C939e07ab8fd342c31b5008d83e16887c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327613780505079&sdata=KSQ21%2FV637vqGmcvIyFVXOx2kuUCOF1hajyVmnVHQC0%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACSGUA6BAWCQJT65ZAN63HDSAFZB3ANCNFSM4P3HWZ2A&data=02%7C01%7Cfreddy.kristiansen%40microsoft.com%7C939e07ab8fd342c31b5008d83e16887c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327613780505079&sdata=q5%2FXGIGt8r7Q%2F5XOVW1r2zZibZ2WbqrzyT5Ts9Uase8%3D&reserved=0.
Well, that eliminated the error above, but I get a new error now......
` PS C:\WINDOWS\system32> C:\Users\mglue\OneDrive - Sparkrock\Powershell\Docker\Container\CreateContainer-SR365v2.ps1 Using custom license Stopping existing container srsumm20ca srsumm20ca BcContainerHelper is version 1.0.2 BcContainerHelper is running as administrator Host is Microsoft Windows 10 Enterprise - 2004 Docker Client Version is 19.03.5 Docker Server Version is 19.03.5 Removing container srsumm20ca Removing srsumm20ca from host hosts file Removing C:\ProgramData\BcContainerHelper\Extensions\srsumm20ca ArtifactUrl and ImageName specified Fetching all docker images Image local:sandbox-16.3.14085.14363-ca-mt already exists Using image local:sandbox-16.3.14085.14363-ca-mt Creating Container srsumm20ca Version: 16.3.14085.14363-ca Style: sandbox Multitenant: Yes Platform: 16.0.14073.14279 Generic Tag: 0.1.0.14 Container OS Version: 10.0.19041.388 (2004) Host OS Version: 10.0.19041.423 (2004) WARNING: Host OS and Base Image Container OS doesn't match and process isolation is specified. If you encounter issues, you could try to specify -isolation hyper v Using process isolation Using locale en-CA Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file C:_dev\bcLicense.flf Additional Parameters: --env SqlTimeout=10000 --env customNavSettings=EnableTaskScheduler=True Files in C:\ProgramData\BcContainerHelper\Extensions\srsumm20ca\my:
Setting host.containerhelper.internal to 172.27.144.1 in container hosts file
Starting Container
Hostname is srsumm20ca
PublicDnsName is srsumm20ca
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint DB8AA7AF2252F6E23C755A7370326A0F7B3CF980
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to True
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
The CRONUS database has version 0 which is not supported by this version of Microsoft Dynamics 365 Business Central Server. Please contact your administrator.
at
Setting host.containerhelper.internal to 172.27.144.1 in container hosts file
Starting Container
Hostname is srsumm20ca
PublicDnsName is srsumm20ca
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint DB8AA7AF2252F6E23C755A7370326A0F7B3CF980
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to True
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Using license file 'c:\run\my\license.flf'
Import License
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
The CRONUS database has version 0 which is not supported by this version of Microsoft Dynamics 365 Business Central Server. Please contact your administrator.
at
+ CategoryInfo : OperationStopped: (Initialization ...summ20ca failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container srsumm20ca failed
`
Probably something with the usenewdatabase. Try -multitenant:$false - I have not tested the usenewdatabase with multitenant sandbox containers (will do that)
turning off the multitenant option worked.
There are a few issues here. -useBestContainerOS is used to replatform old images and should never be used when using artifacts. The reason why it fails is that a new windows update was shipped yesterday and the generic image for that isn't available yet (will be today) - and that it doesn't support multitenant images. Right now, I will clear the useBestContainerOS flag if using artifacts.
-useNewDatabase and -useCleanDatabase doesn't support multitenant images also. They do support switching to multitenancy, but not that the image is multitenant. I will fix this so that New-BcContainer uses a singletenant image and then keep the current functionality in useNew and useClean.
Fix shipped in https://www.powershellgallery.com/packages/BcContainerHelper/1.0.3-preview156 Will be included in 1.0.3
Shipped
Describe the issue Receive the following error when trying to create a new container using BcContainerHelper:
Move-Item : Cannot create a file when that file already exists.
Scripts used to create container and cause the issueFull output of scripts
Screenshots n/a
Additional context