microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
385 stars 246 forks source link

Error Access to the path 'System.Private.ServiceModel.resources.dll' is denied #2535

Closed JavierFuentes closed 2 years ago

JavierFuentes commented 2 years ago

Describe the issue Container starts but I can't access to BC (Timeout)

There is an error at Docker logs... Access to the path 'System.Private.ServiceModel.resources.dll' is denied.

... but after restart, there are no errors but I can't access BC login screen...

Scripts used to create container and cause the issue

$containerName = 'bc20'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -version '20' -country 'es' -select 'Latest'
$licenseFile = 'c:\licencia\bc.flf'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -multitenant:$false `
    -includeTestToolkit `
    -includePerformanceToolkit `
    -assignPremiumPlan `
    -licenseFile $licenseFile `
    -updateHosts

Full output of scripts

PS C:\windows\system32> $containerName = 'bc20'
$password = 'P@ssw0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -version '20' -country 'es' -select 'Latest'
$licenseFile = 'c:\licencia\bc.flf'
New-BcContainer `
    -accept_eula `
    -containerName $containerName `
    -credential $credential `
    -auth $auth `
    -artifactUrl $artifactUrl `
    -multitenant:$false `
    -includeTestToolkit `
    -includePerformanceToolkit `
    -assignPremiumPlan `
    -licenseFile $licenseFile `
    -updateHosts
BcContainerHelper is version 3.0.10
BcContainerHelper is running as administrator
Hyper-V is Enabled
UsePsSession is True
Host is Microsoft Windows 11 Pro - 21H2
Docker Client Version is 20.10.14
Docker Server Version is 20.10.14
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
Pulling image mcr.microsoft.com/businesscentral:10.0.20348.707
10.0.20348.707: Pulling from businesscentral
97f65a0ec59e: Pulling fs layer
12fb50a031bd: Pulling fs layer
37213f33d2a7: Pulling fs layer
8a2eb072c814: Pulling fs layer
bd41621c0ab5: Pulling fs layer
eff7da49bebe: Pulling fs layer
491c44f093ad: Pulling fs layer
8a2eb072c814: Waiting
0261770c003c: Pulling fs layer
bd41621c0ab5: Waiting
eff7da49bebe: Waiting
a006dc2c1436: Pulling fs layer
491c44f093ad: Waiting
0261770c003c: Waiting
a006dc2c1436: Waiting
1d1985dcf9d4: Pulling fs layer
5fa0873c1b9c: Pulling fs layer
1d1985dcf9d4: Waiting
5fa0873c1b9c: Waiting
08b6141a7569: Pulling fs layer
26f97c07b305: Pulling fs layer
08b6141a7569: Waiting
26f97c07b305: Waiting
65dfe50c63d2: Pulling fs layer
65dfe50c63d2: Waiting
c5bbf01420d3: Pulling fs layer
c5bbf01420d3: Waiting
61dbb9d15985: Pulling fs layer
2bd9b24600b4: Pulling fs layer
61dbb9d15985: Waiting
2bd9b24600b4: Waiting
37213f33d2a7: Verifying Checksum
37213f33d2a7: Download complete
8a2eb072c814: Verifying Checksum
8a2eb072c814: Download complete
bd41621c0ab5: Verifying Checksum
bd41621c0ab5: Download complete
eff7da49bebe: Verifying Checksum
eff7da49bebe: Download complete
491c44f093ad: Verifying Checksum
491c44f093ad: Download complete
0261770c003c: Verifying Checksum
0261770c003c: Download complete
a006dc2c1436: Download complete
1d1985dcf9d4: Verifying Checksum
1d1985dcf9d4: Download complete
12fb50a031bd: Verifying Checksum
12fb50a031bd: Download complete
08b6141a7569: Verifying Checksum
08b6141a7569: Download complete
26f97c07b305: Verifying Checksum
26f97c07b305: Download complete
65dfe50c63d2: Verifying Checksum
65dfe50c63d2: Download complete
c5bbf01420d3: Verifying Checksum
c5bbf01420d3: Download complete
61dbb9d15985: Verifying Checksum
61dbb9d15985: Download complete
2bd9b24600b4: Download complete
97f65a0ec59e: Verifying Checksum
97f65a0ec59e: Download complete
5fa0873c1b9c: Verifying Checksum
5fa0873c1b9c: Download complete
97f65a0ec59e: Pull complete
12fb50a031bd: Pull complete
37213f33d2a7: Pull complete
8a2eb072c814: Pull complete
bd41621c0ab5: Pull complete
eff7da49bebe: Pull complete
491c44f093ad: Pull complete
0261770c003c: Pull complete
a006dc2c1436: Pull complete
1d1985dcf9d4: Pull complete
5fa0873c1b9c: Pull complete
08b6141a7569: Pull complete
26f97c07b305: Pull complete
65dfe50c63d2: Pull complete
c5bbf01420d3: Pull complete
61dbb9d15985: Pull complete
2bd9b24600b4: Pull complete
Digest: sha256:ff37f262dec05d68de5e3169421f6e2d8cd020eaf47fbe0abf7b15af55661595
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.20348.707
mcr.microsoft.com/businesscentral:10.0.20348.707
Using image mcr.microsoft.com/businesscentral:10.0.20348.707
Creating Container bc20
Style: sandbox
Multitenant: No
Version: 20.2.41144.42196
Platform: 20.0.41086.42065
Generic Tag: 1.0.2.7
Container OS Version: 10.0.20348.707 (ltsc2022)
Host OS Version: 10.0.22000.739 (21H2)
Using process isolation
Using locale es-ES
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file c:\licencia\bc.flf
Files in C:\ProgramData\BcContainerHelper\Extensions\bc20\my:
- AdditionalOutput.ps1
- license.flf
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bc20 from image mcr.microsoft.com/businesscentral:10.0.20348.707
e7e5a7ecec5ab629801c05b91a7d5531e36c043d5934c3eadd7fbf00df0143b8
Waiting for container bc20 to be ready
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.2.41144.42196/es
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
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\Program Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.2.41144.42196\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.2.41144.42196\platform
c:\dl\sandbox\20.2.41144.42196\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.2.41144.42196\es\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.2.41144.42196\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.2.41144.42196\es\Extensions
Copying Applications
C:\dl\sandbox\20.2.41144.42196\platform\Applications
Copying Applications.ES
C:\dl\sandbox\20.2.41144.42196\es\Applications.ES
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.2.41144.42196/es
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\Program Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.2.41144.42196\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.2.41144.42196\platform
c:\dl\sandbox\20.2.41144.42196\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.2.41144.42196\es\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.2.41144.42196\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.2.41144.42196\es\Extensions
Copying Applications
C:\dl\sandbox\20.2.41144.42196\platform\Applications
Copying Applications.ES
C:\dl\sandbox\20.2.41144.42196\es\Applications.ES
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 86 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.19.48.1 in container hosts file
Starting Container
Hostname is bc20
PublicDnsName is bc20
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 9140ECA8EA92FDBFCA15B5F5E44F05C324EF4A7F
DNS identity bc20
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
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
Assign Premium plan for ADMIN
Container IP Address: 172.19.61.164
Container Hostname  : bc20
Container Dns Name  : bc20
Web Client          : http://bc20/BC/
Dev. Server         : http://bc20
Dev. ServerInstance : BC
Setting bc20 to 172.19.61.164 in host hosts file

Files:
http://bc20:8080/ALLanguage.vsix

Container Total Physical Memory is 15.3Gb
Container Free Physical Memory is 5.8Gb

Initialization took 62 seconds
Ready for connections!
Reading CustomSettings.config from bc20
Creating Desktop Shortcuts for bc20
Synchronizing Permissions Mock on default
App successfully synchronized
Installing Permissions Mock on default
App successfully installed
Synchronizing Test Runner on default
App successfully synchronized
Installing Test Runner on default
App successfully installed
Synchronizing Any on default
App successfully synchronized
Installing Any on default
App successfully installed
Synchronizing Library Assert on default
App successfully synchronized
Installing Library Assert on default
App successfully installed
Skipping app 'C:\Applications.ES\Microsoft_Permissions Mock_20.2.41144.42196.app' as it is already installed
Synchronizing Library Variable Storage on default
App successfully synchronized
Installing Library Variable Storage on default
App successfully installed
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\4a6899da-a733-4813-b267-9b2b4b999703\Microsoft_System Application Test Library_20.2.41144.42196.app
Synchronizing System Application Test Library on tenant default
Installing System Application Test Library on tenant default
App Microsoft_System Application Test Library_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\97103522-ba61-44cc-8a29-767eb58004d9\Microsoft_Tests-TestLibraries_20.2.41144.42196.app
Synchronizing Tests-TestLibraries on tenant default
Installing Tests-TestLibraries on tenant default
App Microsoft_Tests-TestLibraries_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\0526ae96-06e0-49a4-a7ba-ba640057bd37\Microsoft_Tests-Bank_20.2.41144.42196.app
Synchronizing Tests-Bank on tenant default
Installing Tests-Bank on tenant default
App Microsoft_Tests-Bank_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\c94a25de-f629-4957-bb66-d59af9b813e2\Microsoft_Tests-Cash Flow_20.2.41144.42196.app
Synchronizing Tests-Cash Flow on tenant default
Installing Tests-Cash Flow on tenant default
App Microsoft_Tests-Cash Flow_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\8758d187-76b5-4855-9918-367d8eda2cf5\Microsoft_Tests-Cost Accounting_20.2.41144.42196.app
Synchronizing Tests-Cost Accounting on tenant default
Installing Tests-Cost Accounting on tenant default
App Microsoft_Tests-Cost Accounting_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\bf29b71a-ed48-4caa-bbb5-8212719f9a16\Microsoft_Tests-CRM integration_20.2.41144.42196.app
Synchronizing Tests-CRM integration on tenant default
Installing Tests-CRM integration on tenant default
App Microsoft_Tests-CRM integration_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\6b7b7535-a7dc-49b0-8e76-aab8d1797fa4\Microsoft_Tests-Data Exchange_20.2.41144.42196.app
Synchronizing Tests-Data Exchange on tenant default
Installing Tests-Data Exchange on tenant default
App Microsoft_Tests-Data Exchange_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\77125120-9f78-4cec-8da2-0034a1bdef42\Microsoft_Tests-Dimension_20.2.41144.42196.app
Synchronizing Tests-Dimension on tenant default
Installing Tests-Dimension on tenant default
App Microsoft_Tests-Dimension_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\0fea1402-692e-40ff-a340-b0010fceb391\Microsoft_Tests-ERM_20.2.41144.42196.app
Synchronizing Tests-ERM on tenant default
Installing Tests-ERM on tenant default
App Microsoft_Tests-ERM_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\4857fe73-475f-4844-ae00-e7fa81837ae8\Microsoft_Tests-Fixed Asset_20.2.41144.42196.app
Synchronizing Tests-Fixed Asset on tenant default
Installing Tests-Fixed Asset on tenant default
App Microsoft_Tests-Fixed Asset_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\a71da641-6a59-4271-a935-9e1240464599\Microsoft_Tests-General Journal_20.2.41144.42196.app
Synchronizing Tests-General Journal on tenant default
Installing Tests-General Journal on tenant default
App Microsoft_Tests-General Journal_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\61b218b4-101c-4217-b205-879357b63adf\Microsoft_Tests-Graph_20.2.41144.42196.app
Synchronizing Tests-Graph on tenant default
Installing Tests-Graph on tenant default
App Microsoft_Tests-Graph_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\25ed29dc-afb0-4d56-bae2-8796f3db8a30\Microsoft_Tests-Integration_20.2.41144.42196.app
Synchronizing Tests-Integration on tenant default
Installing Tests-Integration on tenant default
App Microsoft_Tests-Integration_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\6428507f-3c85-4e78-b460-d4f48b800141\Microsoft_Tests-Invoicing_20.2.41144.42196.app
Synchronizing Tests-Invoicing on tenant default
Installing Tests-Invoicing on tenant default
App Microsoft_Tests-Invoicing_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\8caca894-09d8-4d5f-b331-79db2fc2fe1a\Microsoft_Tests-Job_20.2.41144.42196.app
Synchronizing Tests-Job on tenant default
Installing Tests-Job on tenant default
App Microsoft_Tests-Job_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\00bd1d57-27b0-4eed-a2e2-e96e6ca0867e\Microsoft_Tests-Local_20.2.41144.42196.app
Synchronizing Tests-Local on tenant default
Installing Tests-Local on tenant default
App Microsoft_Tests-Local_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\49474f65-ac1d-40a2-bae5-212f9412e6c7\Microsoft_Tests-Marketing_20.2.41144.42196.app
Synchronizing Tests-Marketing on tenant default
Installing Tests-Marketing on tenant default
App Microsoft_Tests-Marketing_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\dad1b1ed-ef39-4490-b4a6-51dfb895a5b1\Microsoft_Tests-Misc_20.2.41144.42196.app
Synchronizing Tests-Misc on tenant default
Installing Tests-Misc on tenant default
App Microsoft_Tests-Misc_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\f0ee2940-9614-40ca-8103-2193c8daedf2\Microsoft_Tests-Monitor Sensitive Fields_20.2.41144.42196.app
Synchronizing Tests-Monitor Sensitive Fields on tenant default
Installing Tests-Monitor Sensitive Fields on tenant default
App Microsoft_Tests-Monitor Sensitive Fields_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\1fdae15a-2c14-4a74-bb75-99685544283b\Microsoft_Tests-Permissions_20.2.41144.42196.app
Synchronizing Tests-Permissions on tenant default
Installing Tests-Permissions on tenant default
App Microsoft_Tests-Permissions_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\ea92fbaf-50d8-42e3-9082-d32133a8cbad\Microsoft_Tests-Physical Inventory_20.2.41144.42196.app
Synchronizing Tests-Physical Inventory on tenant default
Installing Tests-Physical Inventory on tenant default
App Microsoft_Tests-Physical Inventory_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\d10dc23d-357f-4215-a7fd-8aa4aac5bff6\Microsoft_Tests-Prepayment_20.2.41144.42196.app
Synchronizing Tests-Prepayment on tenant default
Installing Tests-Prepayment on tenant default
App Microsoft_Tests-Prepayment_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\b0d817c0-053c-40b0-8d4e-5e58227b259f\Microsoft_Tests-Rapid Start_20.2.41144.42196.app
Synchronizing Tests-Rapid Start on tenant default
Installing Tests-Rapid Start on tenant default
App Microsoft_Tests-Rapid Start_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\fc8a3106-526e-42de-8d4c-09a2906abc05\Microsoft_Tests-Report_20.2.41144.42196.app
Synchronizing Tests-Report on tenant default
Installing Tests-Report on tenant default
App Microsoft_Tests-Report_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\7b572084-8d08-4ed5-baaf-0188a20da642\Microsoft_Tests-Resource_20.2.41144.42196.app
Synchronizing Tests-Resource on tenant default
Installing Tests-Resource on tenant default
App Microsoft_Tests-Resource_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\f7d325e7-57c9-41ef-a46c-663a7eb07e47\Microsoft_Tests-Reverse_20.2.41144.42196.app
Synchronizing Tests-Reverse on tenant default
Installing Tests-Reverse on tenant default
App Microsoft_Tests-Reverse_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\49858d7d-12b5-4790-be64-2d67be0e3c93\Microsoft_Tests-SCM_20.2.41144.42196.app
Synchronizing Tests-SCM on tenant default
Installing Tests-SCM on tenant default
App Microsoft_Tests-SCM_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\a187d20a-c0ca-4df4-b561-e684a6af11a7\Microsoft_Tests-SMB_20.2.41144.42196.app
Synchronizing Tests-SMB on tenant default
Installing Tests-SMB on tenant default
App Microsoft_Tests-SMB_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\85bc9099-da3a-45d0-b8c3-9a2aaac4a39b\Microsoft_Tests-Upgrade_20.2.41144.42196.app
Synchronizing Tests-Upgrade on tenant default
Installing Tests-Upgrade on tenant default
App Microsoft_Tests-Upgrade_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\b40c71fb-23e3-4b90-b99e-6f387ab7a97b\Microsoft_Tests-User_20.2.41144.42196.app
Synchronizing Tests-User on tenant default
Installing Tests-User on tenant default
App Microsoft_Tests-User_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\8904a4ae-0a3a-4f2f-8bc1-c1fe03a49fc7\Microsoft_Tests-VAT_20.2.41144.42196.app
Synchronizing Tests-VAT on tenant default
Installing Tests-VAT on tenant default
App Microsoft_Tests-VAT_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\faebb8f2-cbba-4cb6-9528-27229685b085\Microsoft_Tests-Workflow_20.2.41144.42196.app
Synchronizing Tests-Workflow on tenant default
Installing Tests-Workflow on tenant default
App Microsoft_Tests-Workflow_20.2.41144.42196.app successfully published
Synchronizing Performance Toolkit on default
App successfully synchronized
Installing Performance Toolkit on default
App successfully installed
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\159312e4-d38c-415a-9c59-cc332da33a2d\Microsoft_Performance Toolkit Samples_20.2.41144.42196.app
Synchronizing Performance Toolkit Samples on tenant default
Installing Performance Toolkit Samples on tenant default
App Microsoft_Performance Toolkit Samples_20.2.41144.42196.app successfully published
Publishing C:\ProgramData\BcContainerHelper\Extensions\bc20\fa7b542a-7386-41e8-b62d-cdd63d1c7f3e\Microsoft_Performance Toolkit Tests_20.2.41144.42196.app
Synchronizing Performance Toolkit Tests on tenant default
Installing Performance Toolkit Tests on tenant default
App Microsoft_Performance Toolkit Tests_20.2.41144.42196.app successfully published
TestToolkit successfully imported
Container bc20 successfully created

Use:
Get-BcContainerEventLog -containerName bc20 to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bc20 to get debug information about the container
Enter-BcContainer -containerName bc20 to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bc20 to remove the container again
docker logs bc20 to retrieve information about URL's again

Screenshots image

Additional context Docker Logs:

Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.2.41144.42196/es
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
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\Program Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.2.41144.42196\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.2.41144.42196\platform
c:\dl\sandbox\20.2.41144.42196\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.2.41144.42196\es\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.2.41144.42196\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.2.41144.42196\es\Extensions
Copying Applications
C:\dl\sandbox\20.2.41144.42196\platform\Applications
Copying Applications.ES
C:\dl\sandbox\20.2.41144.42196\es\Applications.ES
Copying dependencies
Copying ReportBuilder
Using artifactUrl https://bcartifacts.azureedge.net/sandbox/20.2.41144.42196/es
Using installer from 
Installing Business Central
Installing from artifacts
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\Program Files
c:\dl\sandbox\20.2.41144.42196\platform\ServiceTier\System64Folder
Copying PowerShell Scripts
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
c:\dl\sandbox\20.2.41144.42196\platform\WindowsPowerShellScripts\WebSearch
Copying Web Client Files
c:\dl\sandbox\20.2.41144.42196\platform\WebClient\Microsoft Dynamics NAV
Copying Client Files
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\program files\Microsoft Dynamics NAV
c:\dl\sandbox\20.2.41144.42196\platform\LegacyDlls\systemFolder
Copying ModernDev Files
c:\dl\sandbox\20.2.41144.42196\platform
c:\dl\sandbox\20.2.41144.42196\platform\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\dl\sandbox\20.2.41144.42196\es\ConfigurationPackages
Copying Test Assemblies
C:\dl\sandbox\20.2.41144.42196\platform\Test Assemblies
Copying Extensions
C:\dl\sandbox\20.2.41144.42196\es\Extensions
Copying Applications
C:\dl\sandbox\20.2.41144.42196\platform\Applications
Copying Applications.ES
C:\dl\sandbox\20.2.41144.42196\es\Applications.ES
Copying dependencies
Copying ReportBuilder
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
Starting Business Central Service Tier
Importing license file
Stopping Business Central Service Tier
Installation took 86 seconds
Installation complete
Initializing...
Setting host.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.19.48.1 in container hosts file
Starting Container
Hostname is bc20
PublicDnsName is bc20
Using NavUserPassword Authentication
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 9140ECA8EA92FDBFCA15B5F5E44F05C324EF4A7F
DNS identity bc20
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
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
Assign Premium plan for ADMIN
Container IP Address: 172.19.61.164
Container Hostname  : bc20
Container Dns Name  : bc20
Web Client          : http://bc20/BC/
Dev. Server         : http://bc20
Dev. ServerInstance : BC
Setting bc20 to 172.19.61.164 in host hosts file

Files:
http://bc20:8080/ALLanguage.vsix

Container Total Physical Memory is 15.3Gb
Container Free Physical Memory is 5.8Gb

Initialization took 62 seconds
Ready for connections!
Initializing...
Setting host.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.30.128.1 in container hosts file
Restarting Container
PublicDnsName unchanged
Hostname is bc20
PublicDnsName is bc20
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Starting Service Tier
Initializing...
Setting host.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.30.128.1 in container hosts file
Restarting Container
Restart count 1
Hostname is bc20
PublicDnsName is bc20
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 27AF9E31B42874EFACFC218289EC38E1BBD6837B
DNS identity bc20
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
WARNING: SetupWebClient failed, retrying...
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Access to the path 'System.Private.ServiceModel.resources.dll' is denied.
at New-NavWebSite, C:\run\my\NAVWebClientManagement.psm1: line 562
at New-NAVWebServerInstance, C:\run\my\NAVWebClientManagement.psm1: line 501
at <ScriptBlock>, C:\Run\SetupWebClient.ps1: line 50
at <ScriptBlock>, C:\Run\navstart.ps1: line 189
at <ScriptBlock>, C:\Run\start.ps1: line 377
at <ScriptBlock>, <No file>: line 1
Initializing...
Setting host.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.100.208 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.30.128.1 in container hosts file
Restarting Container
Restart count 2
Hostname is bc20
PublicDnsName is bc20
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint E3C8A70674017968FC34337FF6276D641640F930
DNS identity bc20
Modifying Service Tier Config File with Instance Specific Settings
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Remove C:\inetpub\wwwroot\BC
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Removing existing application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Enabling Financials User Experience
Container IP Address: 172.30.128.76
Container Hostname  : bc20
Container Dns Name  : bc20
Web Client          : http://bc20/BC/
Dev. Server         : http://bc20
Dev. ServerInstance : BC
Setting bc20 to 172.30.128.76 in host hosts file

Files:
http://bc20:8080/ALLanguage.vsix

Container Total Physical Memory is 15.3Gb
Container Free Physical Memory is 7.2Gb

Initialization took 25 seconds
Ready for connections!
freddydk commented 2 years ago

seems to be the same problem as #2536 Will investigate next week

freddydk commented 2 years ago

Could you try to add this to your containers and see if that resolves the issue:

-myscripts @("https://raw.githubusercontent.com/microsoft/nav-docker/master/generic/Run/navstart.ps1")

This allows us to test this before re-generating all images, thanks

freddydk commented 2 years ago

New generic layers with this fix was published over the weekend