{"action":"closed","issue":{"url":"https://api.github.com/repos/microsoft/navcontainerhelper/issues/527","repository_url":"https://api.github.com/repos/microsoft/navcontainerhelper","labels_url":"https://api.github.com/repos/microsoft/navcontainerhelper/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/microsoft/navcontainerhelper/issues/527/comments","events_url":"https://api.github.com/repos/microsoft/navcontainerhelper/issues/527/events","html_url":"https://github.com/microsoft/navcontainerhelper/issues/527","id":472699683,"node_id":"MDU6SXNzdWU0NzI2OTk2ODM=","number":527,"title":"Run-TestsInNavContainer fails when using NAV 2017 images","user":{"login":"ernestasjuska","id":53167314,"node_id":"MDQ6VXNlcjUzMTY3MzE0","avatar_url":"https://avatars0.githubusercontent.com/u/53167314?v=4","gravatar_id":"","url":"https://api.github.com/users/ernestasjuska","html_url":"https://github.com/ernestasjuska","followers_url":"https://api.github.com/users/ernestasjuska/followers","following_url":"https://api.github.com/users/ernestasjuska/following{/other_user}","gists_url":"https://api.github.com/users/ernestasjuska/gists{/gist_id}","starred_url":"https://api.github.com/users/ernestasjuska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernestasjuska/subscriptions","organizations_url":"https://api.github.com/users/ernestasjuska/orgs","repos_url":"https://api.github.com/users/ernestasjuska/repos","events_url":"https://api.github.com/users/ernestasjuska/events{/privacy}","received_events_url":"https://api.github.com/users/ernestasjuska/received_events","type":"User","site_admin":false},"labels":[{"id":782848738,"node_id":"MDU6TGFiZWw3ODI4NDg3Mzg=","url":"https://api.github.com/repos/microsoft/navcontainerhelper/labels/Fix%20Ready","name":"Fix Ready","color":"000000","default":false},{"id":703690582,"node_id":"MDU6TGFiZWw3MDM2OTA1ODI=","url":"https://api.github.com/repos/microsoft/navcontainerhelper/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-07-25T07:04:06Z","updated_at":"2019-07-28T13:00:16Z","closed_at":"2019-07-28T13:00:16Z","author_association":"NONE","body":"Hi,\r\n\r\nUsing Run-TestsInNavContainer on NAV 2017 containers shows this error:\r\n\r\n```\r\ndocker : ClientSession is Uninitialized\r\nAt C:\\Users\\ernjus\\Documents\\WindowsPowerShell\\Modules\\navcontainerhelper\\0.6.2.6\\ContainerHandling\\Invoke-ScriptInNavContainer.ps1:91 char:13\r\n+             docker exec $containerName powershell $file\r\n+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (ClientSession is Uninitialized:String) [], RemoteException\r\n    + FullyQualifiedErrorId : NativeCommandError\r\n```\r\n\r\nNAV 2018 and BC containers work fine.\r\n\r\nTo reproduce:\r\n\r\n```powershell\r\n$imageName = \"mcr.microsoft.com/dynamicsnav:2017-ltsc2019\"\r\n$containerName = \"demo-test\"\r\nNew-NavContainer -accept_outdated `\r\n                 -accept_eula `\r\n                 -imageName $imageName `\r\n                 -containerName $containerName `\r\n                 -updateHosts `\r\n                 -includeTestToolkit `\r\n                 -doNotExportObjectsToText\r\nRun-TestsInBCContainer -containerName $containerName -credential $credential # shows error\r\n\r\n$imageName = \"mcr.microsoft.com/dynamicsnav:2018-rtm-ltsc2019\"\r\n$containerName = \"demo-test\"\r\nNew-NavContainer -accept_outdated `\r\n                 -accept_eula `\r\n                 -imageName $imageName `\r\n                 -containerName $containerName `\r\n                 -updateHosts `\r\n                 -includeTestToolkit `\r\n                 -doNotExportObjectsToText\r\nRun-TestsInBCContainer -containerName $containerName -credential $credential # does not show error\r\n```\r\n\r\nThanks.\r\n\r\n\r\nPS. Full log (auth and license did not change anything)\r\n```\r\nNavContainerHelper is version 0.6.2.6\r\nHost is Microsoft Windows 10 Enterprise - 1903\r\nDocker Client Version is 18.09.2\r\nDocker Server Version is 18.09.2\r\nUsing image mcr.microsoft.com/dynamicsnav:2017-ltsc2019\r\nRemoving container demo-test\r\nRemoving demo-test from hosts\r\nRemoving C:\\ProgramData\\NavContainerHelper\\Extensions\\demo-test\r\nCreating Container demo-test\r\nUsing license file C:\\Users\\ernjus\\Desktop\\SB2017.flf\r\nVersion: 10.0.29930.0-W1\r\nGeneric Tag: 0.0.9.9\r\nContainer OS Version: 10.0.17763.557 (ltsc2019)\r\nHost OS Version: 10.0.18362.239 (1903)\r\nThe container operating system does not match the host operating system, forcing hyperv isolation.\r\nUsing locale en-US\r\nUsing hyperv isolation\r\nDisabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)\r\nFiles in C:\\ProgramData\\NavContainerHelper\\Extensions\\demo-test\\my:\r\n- AdditionalOutput.ps1\r\n- AdditionalSetup.ps1\r\n- license.flf\r\n- MainLoop.ps1\r\n- updatehosts.ps1\r\nCreating container demo-test from image mcr.microsoft.com/dynamicsnav:2017-ltsc2019\r\nb26703953ff4d33ff0dd34af19d01806716198cff22ba1d5cffadac89009471c\r\nWaiting for container demo-test to be ready\r\nInitializing...\r\nStarting Container\r\nHostname is demo-test\r\nPublicDnsName is demo-test\r\nUsing NavUserPassword Authentication\r\nStarting Local SQL Server\r\nStarting Internet Information Server\r\nCreating Self Signed Certificate\r\nSelf Signed Certificate Thumbprint 07ED16C7DE15F60C1A3097E8D39E591A99876171\r\nModifying Service Tier Config File with Instance Specific Settings\r\nStarting Service Tier\r\nCreating Web Site\r\nCreating Web Server Instance\r\nCreating ManagementServicesPort and setting it to 7045\r\nUsing license file 'c:\\run\\my\\license.flf'\r\nImport License\r\nCreating http download site\r\nSetting SA Password and enabling SA\r\nCreating admin as SQL User and add to sysadmin\r\nCreating SUPER user\r\nContainer IP Address: 192.168.192.155\r\nContainer Hostname  : demo-test\r\nContainer Dns Name  : demo-test\r\nWeb Client          : http://demo-test/NAV/WebClient/\r\n\r\nFiles:\r\n\r\nInitialization took 58 seconds\r\nReady for connections!\r\nReading CustomSettings.config from demo-test\r\nCreating Desktop Shortcuts for demo-test\r\nImporting Objects from C:\\TestToolKit\\CALTestCodeunits.W1.fob (container path)\r\nImporting Objects from C:\\TestToolKit\\CALTestLibraries.W1.fob (container path)\r\nImporting Objects from C:\\TestToolKit\\CALTestRunner.fob (container path)\r\nTestToolkit successfully imported\r\nContainer demo-test successfully created\r\nImporting Objects from C:\\ProgramData\\NavContainerHelper\\Extensions\\demo-test\\PsTestTool-1\\PSTestToolPage.fob (container path)\r\nObjects successfully imported\r\ndocker : ClientSession is Uninitialized\r\nAt C:\\Users\\ernjus\\Documents\\WindowsPowerShell\\Modules\\navcontainerhelper\\0.6.2.6\\ContainerHandling\\Invoke-ScriptInNavContainer.ps1:91 char:13\r\n+             docker exec $containerName powershell $file\r\n+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : NotSpecified: (ClientSession is Uninitialized:String) [], RemoteException\r\n    + FullyQualifiedErrorId : NativeCommandError\r\n```"}}
{"actor":{"display_login":"freddydk"}}