Closed tomasevicstefan closed 3 years ago
The problem probably is due to the fact that you are running outdated docker images. As the warning says - they are no longer updated. You should shift to artifacts. replace
-imageName $imageName `
with
-artifactUrl (Get-BcArtifactUrl -country is) `
Then you will get 17.0 icelandic. If you need 16.5 use:
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
I can recommend reading my blog about artifacts.
Still the same with artifacts. Created container without errors.
$containerName = "IcelandCloud"
$auth = "Windows"
$licenseFile = "C:\AdvaniaGIT\License\Advania BC16.flf"
New-NavContainer `
-containerName $containerName `
-accept_eula `
-accept_outdated `
-assignPremiumPlan `
-auth $auth `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-includeAL `
-isolation hyperv `
-licenseFile $licenseFile `
-restart no `
-shortcuts Desktop `
-updateHosts `
-alwaysPull
BcContainerHelper is version 1.0.6
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 1903
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Fetching all docker images
Pulling image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
10.0.18362.1082-generic: Pulling from dynamicsnav
Digest: sha256:9f5e3d554c73dbf36215a5b103c299010840885b71ba887e60000c48ca787977
Using image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
Creating Container IcelandCloud
Version: 16.5.15897.17238-IS
Style: sandbox
Multitenant: Yes
Platform: 16.0.15884.16928
Generic Tag: 0.1.0.21
Container OS Version: 10.0.18362.1082 (1903)
Host OS Version: 10.0.18362.1082 (1903)
Using hyperv isolation
Using locale is-IS
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\AdvaniaGIT\License\Advania BC16.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\IcelandCloud\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container IcelandCloud from image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
51244f54176973be3e515bad3168b4f87ade68151183f1073c373fc901a31e65
Waiting for container IcelandCloud to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/16.5.15897.17238/is
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\16.5.15897.17238\is\BusinessCentral-IS.bak
Changing Database Server Collation to Icelandic_100_CS_AS
Restoring CRONUS Demo Database
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.IS
Starting Business Central Service Tier
Importing license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS
Sync'ing Tenant
Tenant is Operational
Stopping Business Central Service Tier
Installation took 229 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to 172.30.192.1 in container hosts file
Starting Container
Hostname is IcelandCloud
PublicDnsName is IcelandCloud
WARNING: DNS resolution not working from within the container.
Using Windows Authentication
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Enabling rewrite rule: Don't rewrite system files
Enabling rewrite rule: Already have tenant specified
Enabling rewrite rule: Hostname (without port) to tenant
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS
Sync'ing Tenant
Tenant is Operational
Creating http download site
Creating Windows user stefant
Setting SA Password and enabling SA
Creating SUPER user
Assign Premium plan for ICELANDCLOUD\STEFANT
Container IP Address: 172.30.195.120
Container Hostname : IcelandCloud
Container Dns Name : IcelandCloud
Web Client : http://IcelandCloud/BC/?tenant=default
Dev. Server : http://IcelandCloud
Dev. ServerInstance : BC
Dev. Server Tenant : default
Setting IcelandCloud to 172.30.195.120 in host hosts file
Setting IcelandCloud-default to 172.30.195.120 in host hosts file
Files:
http://IcelandCloud:8080/ALLanguage.vsix
Initialization took 65 seconds
Ready for connections!
Reading CustomSettings.config from IcelandCloud
Creating Desktop Shortcuts for IcelandCloud
Extracting C:\Applications.IS\Base Application.Source.zip
Creating .net Assembly Reference Folder for VS Code
Copying DLLs from C:\Windows\assembly to assemblyProbingPath
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\160\Service to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Microsoft Dynamics NAV\160\RoleTailored Client to assemblyProbingPath
Copying DLLs from C:\Test Assemblies\Mock Assemblies to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Open XML SDK to assemblyProbingPath
Container IcelandCloud successfully created
Event log said that my id and password are not correct. I got new laptop yesterday, so maybe I'm missing some additional component.
And what is the URL you are using for connecting to the client? Have you tried with UserPassword auth?
Url that script output provide for me. I also tried to access from desktop shortcut, but got some message
I will try also with UserPassword auth.
The url provided is http://IcelandCloud/BC/?tenant=default
Same thing with UserPassword authentication
In your browser - you did not have ?tenant=default - did you add that? Alternatively try with a different containername.
?tenant=default is suppressed by Edge. I tried with Chrome but same result. Also I tried with different container name, and with navcontainerhelper instead of bccontainerhelper, and still nothing.
This is what I get from event log:
Only thing that comes to my mind is to reinstall docker.
I don't think this is a docker issue. What do you mean by suppressed? Could you record a short video of what exactly happens when you start the web client in Chrome?
I mean when I copy url to edge, he just hide it. I will record video and post it here.
Remove browser history maybe
Laptop is new, so I doubt that it has something in history.
Well - you have used http://containername/BC a few times - that is in history. then if you type http://containername/BC?tenant=default - it might default to the other.
What script generated this container? From the video - that is a single tenant container? Is that NavContainerHelper or BcContainerHelper - is it an image or is it artifacts?
$containerName = "IcelandCloud"
$auth = "Windows"
$licenseFile = "C:\licenseBC16.flf"
New-NavContainer `
-containerName $containerName `
-accept_eula `
-accept_outdated `
-assignPremiumPlan `
-auth $auth `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-includeAL `
-isolation hyperv `
-licenseFile $licenseFile `
-restart no `
-shortcuts Desktop `
-updateHosts `
-alwaysPull
now it is navcontainerhelper, but it was the same with bccontainerhelper
NavContainerHelper is version 0.7.0.26
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 1903
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Fetching all docker images
Pulling image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
10.0.18362.1082-generic: Pulling from dynamicsnav
Using image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
Creating Container IcelandCloud
Version: 16.5.15897.17318-IS
Style: sandbox
Platform: 16.0.15884.17299
Generic Tag: 0.1.0.23
Container OS Version: 10.0.18362.1082 (1903)
Host OS Version: 10.0.18362.1082 (1903)
Using locale is-IS
Using hyperv isolation
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\AdvaniaGIT\License\Advania BC16.flf
Files in C:\ProgramData\NavContainerHelper\Extensions\IcelandCloud\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container IcelandCloud from image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
cd3ca001fbc43660e1723d5ea5e1fb27a2599da05a087787d3c9f5bddad678f1
Waiting for container IcelandCloud to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/16.5.15897.17318/is
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\16.5.15897.17318\is\BusinessCentral-IS.bak
Changing Database Server Collation to Icelandic_100_CS_AS
Restoring CRONUS Demo Database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.IS
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 135 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to 172.30.192.1 in container hosts file
Starting Container
Hostname is IcelandCloud
PublicDnsName is IcelandCloud
WARNING: DNS resolution not working from within the container.
Using Windows Authentication
Modifying Service Tier Config File with Instance Specific Settings
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
Creating Windows user stefant
Setting SA Password and enabling SA
Creating SUPER user
Assign Premium plan for ICELANDCLOUD\STEFANT
Container IP Address: 172.30.196.196
Container Hostname : IcelandCloud
Container Dns Name : IcelandCloud
Web Client : http://IcelandCloud/BC/
Dev. Server : http://IcelandCloud
Dev. ServerInstance : BC
Setting IcelandCloud to 172.30.196.196 in host hosts file
Files:
http://IcelandCloud:8080/ALLanguage.vsix
Container Total Physical Memory is 4.5Gb
Container Free Physical Memory is 2.2Gb
Initialization took 70 seconds
Ready for connections!
Reading CustomSettings.config from IcelandCloud
Creating Desktop Shortcuts for IcelandCloud
Extracting C:\Applications.IS\Base Application.Source.zip
Creating .net Assembly Reference Folder for VS Code
Copying DLLs from C:\Windows\assembly to assemblyProbingPath
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\160\Service to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Microsoft Dynamics NAV\160\RoleTailored Client to assemblyProbingPath
Copying DLLs from C:\Test Assemblies\Mock Assemblies to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Open XML SDK to assemblyProbingPath
Container IcelandCloud successfully created
Try UserPassword authentication
Same with UserPassword auth
$containerName = "IcelandCloud"
$auth = "UserPassword"
$licenseFile = "C:\licenseBC16.flf"
New-NavContainer `
-containerName $containerName `
-accept_eula `
-accept_outdated `
-assignPremiumPlan `
-auth $auth `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-includeAL `
-isolation hyperv `
-licenseFile $licenseFile `
-restart no `
-shortcuts Desktop `
-updateHosts `
-alwaysPull
NavContainerHelper is version 0.7.0.26
NavContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 1903
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Removing container IcelandCloud
Removing IcelandCloud from host hosts file
Removing C:\ProgramData\NavContainerHelper\Extensions\IcelandCloud
Fetching all docker images
Pulling image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
10.0.18362.1082-generic: Pulling from dynamicsnav
Digest: sha256:739a377091323a5bf45575f4cfb79659b4924cf31e694a862696736d657d284f
Using image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
Creating Container IcelandCloud
Version: 16.5.15897.17318-IS
Style: sandbox
Platform: 16.0.15884.17299
Generic Tag: 0.1.0.23
Container OS Version: 10.0.18362.1082 (1903)
Host OS Version: 10.0.18362.1082 (1903)
Using locale is-IS
Using hyperv isolation
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\AdvaniaGIT\License\Advania BC16.flf
Files in C:\ProgramData\NavContainerHelper\Extensions\IcelandCloud\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container IcelandCloud from image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
6185c829c0fc1595a09423f10eba11bde8b1bbf6a2afe34c09bddb6ac00cc6cd
Waiting for container IcelandCloud to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/16.5.15897.17318/is
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\16.5.15897.17318\is\BusinessCentral-IS.bak
Changing Database Server Collation to Icelandic_100_CS_AS
Restoring CRONUS Demo Database
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.IS
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 123 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to 172.30.192.1 in container hosts file
Starting Container
Hostname is IcelandCloud
PublicDnsName is IcelandCloud
WARNING: DNS resolution not working from within the container.
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 1A52E0AFB9B50FD6481BB10DD6046392E7BE1765
Modifying Service Tier Config File with Instance Specific Settings
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 Stefan as SQL User and add to sysadmin
Creating SUPER user
Assign Premium plan for STEFAN
Container IP Address: 172.30.195.143
Container Hostname : IcelandCloud
Container Dns Name : IcelandCloud
Web Client : http://IcelandCloud/BC/
Dev. Server : http://IcelandCloud
Dev. ServerInstance : BC
Setting IcelandCloud to 172.30.195.143 in host hosts file
Files:
http://IcelandCloud:8080/ALLanguage.vsix
Container Total Physical Memory is 4.5Gb
Container Free Physical Memory is 2.2Gb
Initialization took 123 seconds
Ready for connections!
Reading CustomSettings.config from IcelandCloud
Creating Desktop Shortcuts for IcelandCloud
Creating .net Assembly Reference Folder for VS Code
Copying DLLs from C:\Windows\assembly to assemblyProbingPath
Copying DLLs from C:\Program Files\Microsoft Dynamics NAV\160\Service to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Microsoft Dynamics NAV\160\RoleTailored Client to assemblyProbingPath
Copying DLLs from C:\Test Assemblies\Mock Assemblies to assemblyProbingPath
Copying DLLs from C:\Program Files (x86)\Open XML SDK to assemblyProbingPath
Container IcelandCloud successfully created
Please try the following: Change to BcContainerHelper and run this:
$containerName = "ictest"
$auth = "UserPassword"
$licenseFile = "C:\licenseBC16.flf"
$credential = New-Object pscredential -ArgumentList 'admin', (ConvertTo-SecureString -String 'P@ssword1' -AsPlainText -Force)
New-NavContainer `
-containerName $containerName `
-accept_eula `
-auth $auth `
-credential $credential `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-licenseFile $licenseFile `
-updateHosts
open http://ictest/BC?tenant=default in the browser and make a recording of this. Paste full output and video here
if it still fails - try to run
$containerName = "ictest"
$auth = "UserPassword"
$licenseFile = "C:\licenseBC16.flf"
$credential = New-Object pscredential -ArgumentList 'admin', (ConvertTo-SecureString -String 'P@ssword1' -AsPlainText -Force)
New-NavContainer `
-containerName $containerName `
-accept_eula `
-auth $auth `
-credential $credential `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-licenseFile $licenseFile `
-updateHosts -useSSL -installCertificateOnHost
Record a video again Paste full output and video here
Thanks
Same in both cases
$containerName = "ictest"
$auth = "UserPassword"
$licenseFile = "C:\licenseBC16.flf"
$credential = New-Object pscredential -ArgumentList 'admin', (ConvertTo-SecureString -String 'P@ssword1' -AsPlainText -Force)
New-NavContainer `
-containerName $containerName `
-accept_eula `
-auth $auth `
-credential $credential `
-artifactUrl (Get-BcArtifactUrl -country is -version 16.5) `
-licenseFile $licenseFile `
-updateHosts -useSSL -installCertificateOnHost
BcContainerHelper is version 1.0.7
BcContainerHelper is running as administrator
Host is Microsoft Windows 10 Enterprise - 1903
Docker Client Version is 19.03.5
Docker Server Version is 19.03.5
Fetching all docker images
Using image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
Creating Container ictest
Version: 16.5.15897.17318-IS
Style: sandbox
Multitenant: Yes
Platform: 16.0.15884.17299
Generic Tag: 0.1.0.23
Container OS Version: 10.0.18362.1082 (1903)
Host OS Version: 10.0.18362.1082 (1903)
Using process isolation
Using locale is-IS
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file C:\AdvaniaGIT\License\Advania BC16.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\ictest\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container ictest from image mcr.microsoft.com/dynamicsnav:10.0.18362.1082-generic
3bd9617dc2bdab3fe973134ddeb08ec5384e195db1d00c75ccdd8529ddb8316b
Waiting for container ictest to be ready
Using installer from C:\Run\150-new
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
Copying PowerShell Scripts
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Determining Database Collation from c:\dl\sandbox\16.5.15897.17318\is\BusinessCentral-IS.bak
Changing Database Server Collation to Icelandic_100_CS_AS
Restoring CRONUS Demo Database
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Copying Web Client Files
Copying Client Files
Copying ModernDev Files
Copying additional files
Copying ConfigurationPackages
Copying Test Assemblies
Copying Extensions
Copying Applications
Copying Applications.IS
Starting Business Central Service Tier
Importing license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS
Sync'ing Tenant
Tenant is Operational
Stopping Business Central Service Tier
Installation took 194 seconds
Installation complete
Initializing...
Setting host.containerhelper.internal to 172.30.192.1 in container hosts file
Starting Container
Hostname is ictest
PublicDnsName is ictest
WARNING: DNS resolution not working from within the container.
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 7E26ED49EAD8ED9C1E51B8FB9B978B9C9BDC1A69
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Enabling Financials User Experience
Enabling rewrite rule: Don't rewrite system files
Enabling rewrite rule: Already have tenant specified
Enabling rewrite rule: Hostname (without port) to tenant
Using license file 'c:\run\my\license.flf'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating admin as SQL User and add to sysadmin
Creating SUPER user
Container IP Address: 172.30.206.181
Container Hostname : ictest
Container Dns Name : ictest
Web Client : https://ictest/BC/?tenant=default
Dev. Server : https://ictest
Dev. ServerInstance : BC
Dev. Server Tenant : default
Setting ictest to 172.30.206.181 in host hosts file
Setting ictest-default to 172.30.206.181 in host hosts file
Files:
http://ictest:8080/ALLanguage.vsix
http://ictest:8080/certificate.cer
Container Total Physical Memory is 15.8Gb
Container Free Physical Memory is 5.8Gb
Initialization took 40 seconds
Ready for connections!
Reading CustomSettings.config from ictest
Certificate with thumbprint 7E26ED49EAD8ED9C1E51B8FB9B978B9C9BDC1A69 imported successfully
Creating Desktop Shortcuts for ictest
Container ictest successfully created
What Antivirus are you running?
Trend Micro, I didn't notice that I have this one.
And using standard windows security
You should try to disable the trend micro thingy and see. Else, I don't have any options really - there doesn't seem to be anything wrong with docker nor the container - but for some reason you cannot connect to it.
I have only seen this before when:
I forgot about vpn and that this should be checked
Tnx for help.
Thanks for sharing the solution.
Describe the issue Cannot start client after successfully created container
Scripts used to create container and cause the issue
Full output of scripts
Screenshots