Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response from daemon #495

Closed
anwar0206 opened this issue Apr 14, 2021 · 1 comment
Closed

Error response from daemon #495

anwar0206 opened this issue Apr 14, 2021 · 1 comment

Comments

@anwar0206
Copy link

Hi, I am trying to create a container with New-BcContainerWizard and getting error
$containerName = 'bcserver1'
$password = 'P@$$w0rd'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'w1' -select 'Latest'
$licenseFile = 'https://*******'
New-BcContainer -accept_eula
-containerName $containerName -credential $credential
-auth $auth -artifactUrl $artifactUrl
-licenseFile $licenseFile -PublicDnsName 'bc2021****.azure.com' -useTraefik
-memoryLimit 4G `
-updateHosts

Below is the output
BcContainerHelper is version 2.0.10
BcContainerHelper is running as administrator
Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
Docker Client Version is 19.03.14
Docker Server Version is 19.03.14
Removing C:\ProgramData\BcContainerHelper\Extensions\bcserver1
Fetching all docker images
Fetching all docker volumes
WARNING: useTraefik not specified, but Traefik container was initialized, using Traefik. Specify -useTraefik:$false if you do NOT want to use Traefik.
Enabling SSL as otherwise all clients will see mixed HTTP / HTTPS request, which will cause problems e.g. on the mobile and modern windows clients
Using image mcr.microsoft.com/businesscentral:10.0.17763.1817
PublicDnsName is bc2021****.azure.com
Creating Container bcserver1
Version: 18.0.23013.24339-W1
Style: sandbox
Multitenant: Yes
Platform: 18.0.22893.24281
Generic Tag: 1.0.1.4
Container OS Version: 10.0.17763.1817 (ltsc2019)
Host OS Version: 10.0.17763.1879 (ltsc2019)
Using hyperv isolation
Using locale en-US
Adding special CheckHealth.ps1 to enable Traefik support
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Additional Parameters:
--hostname bcserver1
-e webserverinstance=bcserver1
-e publicdnsname=bc2021****.azure.com
-l "traefik.protocol=https"
-l "traefik.web.frontend.rule=PathPrefix:/bcserver1"
-l "traefik.web.port=443"
-l "traefik.soap.frontend.rule=PathPrefix:/bcserver1soap;ReplacePathRegex: ^/bcserver1soap(.) /BC$1"
-l "traefik.soap.port=7047"
-l "traefik.rest.frontend.rule=PathPrefix:/bcserver1rest;ReplacePathRegex: ^/bcserver1rest(.
) /BC$1"
-l "traefik.rest.port=7048"
-l "traefik.dev.frontend.rule=PathPrefix:/bcserver1dev;ReplacePathRegex: ^/bcserver1dev(.) /BC$1"
-l "traefik.dev.port=7049"
-l "traefik.snap.frontend.rule=PathPrefix:/bcserver1snap;ReplacePathRegex: ^/bcserver1snap(.
) /BC$1"
-l "traefik.snap.port=7083"
-l "traefik.dl.frontend.rule=PathPrefixStrip:/bcserver1dl"
-l "traefik.dl.port=8080"
-l "traefik.dl.protocol=http"
-l "traefik.enable=true"
-l "traefik.frontend.entryPoints=https"
--env customNavSettings=PublicODataBaseUrl=https://bc2021****.azure.com/bcserver1rest/odata,PublicSOAPBaseUrl=https://bc2021****.azure.com/bcserver1soap/ws,PublicWebBas
eUrl=https://bc2021****.azure.com/bcserver1
Files in C:\ProgramData\BcContainerHelper\Extensions\bcserver1\my:

  • AdditionalOutput.ps1
  • CheckHealth.ps1
  • MainLoop.ps1
  • SetupVariables.ps1
  • updatecontainerhosts.ps1
    Creating container bcserver1 from image mcr.microsoft.com/businesscentral:10.0.17763.1817
    123de0733378ffeff23394ec7a7bd96e05a5e9b1fb5bf5ec629e72b1635b8d3f
    DockerDo : docker: Error response from daemon: hcsshim::CreateComputeSystem 123de0733378ffeff23394ec7a7bd96e05a5e9b1fb5bf5ec629e72b1635b8d3f: The paging file is too small for this operation to
    complete.
    (extra info: {"SystemType":"Container","Name":"123de0733378ffeff23394ec7a7bd96e05a5e9b1fb5bf5ec629e72b1635b8d3f","Owner":"docker","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\ProgramDa
    ta\docker\windowsfilter\123de0733378ffeff23394ec7a7bd96e05a5e9b1fb5bf5ec629e72b1635b8d3f","Layers":[{"ID":"92e58a21-0db3-59cd-a127-3633a660c268","Path":"C:\ProgramData\docker\windowsfilte
    r\ba7b0a9e738abae1efa891a77e4cbd5c94850ff512e18ee04b8db8058f2c13aa"},{"ID":"868e9367-b22f-5bd1-a7d4-70eeff2c05c9","Path":"C:\ProgramData\docker\windowsfilter\89edfc4cd681ec89e9d9e9cfd9600f
    4dac111b0769b0a841f7e2ca121f071425"},{"ID":"d6aa9fde-4640-570b-9d6a-bee3e3e8a913","Path":"C:\ProgramData\docker\windowsfilter\08ea0d64b5f03848bc7ea02e7d8748ff329773f8df8a4ec45add97956edb90d
    9"},{"ID":"10368545-f119-5b12-95ef-5b14b7f58aa9","Path":"C:\ProgramData\docker\windowsfilter\30669175cd9d7a10d1917c1150e53a77bc50d8d723b60543d432fa69ca23d599"},{"ID":"f44ff284-d01d-5cb9-9eb
    d-1da95e851dfb","Path":"C:\ProgramData\docker\windowsfilter\b131471c0462c6de60088f880301f5ed76b6dfca3d6b06e935cbf7c5d3eb6b5f"},{"ID":"00e6136b-91d5-5191-a908-6e48406cf605","Path":"C:\Progr
    amData\docker\windowsfilter\b063996e8177ea33bcf221108e9b37717ed2086538bb4a146f91c7b6228e195b"},{"ID":"03742819-8ebe-5de9-8ded-9122a73cded5","Path":"C:\ProgramData\docker\windowsfilter\aa
    4c65692704c53c88283a41a08f0db28df7240f6a02fcdaa040f40711d2e5f6"},{"ID":"7cab5fdd-c268-502e-aa86-2abc3be9195c","Path":"C:\ProgramData\docker\windowsfilter\d55b7b3d66cbedefeb9d73b8390fc19f285
    ebf4fc58d80baa240a131080d106c"},{"ID":"14b8fbf5-398a-548a-8711-d84b9e664bb8","Path":"C:\ProgramData\docker\windowsfilter\f2eb0a2748c57620f12dc77da2d0ee6dc30df4a2aca31e25b75e7ffa29a09edf"},{
    "ID":"0132a246-eb59-51c0-8e55-2c883995db09","Path":"C:\ProgramData\docker\windowsfilter\52119e940c7f1f84c816c8490650e5ce0c596e80288ed1d4ab843b6d12d5eb60"},{"ID":"0de45e36-f151-5297-9ad7-b15
    830a85859","Path":"C:\ProgramData\docker\windowsfilter\95d12b25c0270bd5bd42ef2c96a5941054f106efe6ba54f43166cd937b82fe74"},{"ID":"a2c1237c-e52d-59e7-a77b-77a79dcb615b","Path":"C:\ProgramDat
    a\docker\windowsfilter\6c052cff2b7dd0c91382955b7b7cf20f667238007c096ca59bd408394298385b"},{"ID":"94aa4981-ed3d-52a2-bab1-74270ef0c7d2","Path":"C:\ProgramData\docker\windowsfilter\d809f31
    6e27caa08d99b5ede74f399f4934e7f91758c16bd4c81476a66ab91d3"},{"ID":"dd9411cf-6df6-51a9-a2cf-11f2d78f6591","Path":"C:\ProgramData\docker\windowsfilter\ec6bead4645aa2a9196fd72c6c842c4ec522b44a
    1f3d0a8791555778d11277b2"},{"ID":"010dd580-4cd7-5537-8ea1-b127e0e8cf2d","Path":"C:\ProgramData\docker\windowsfilter\be60757c62f68ab27aad4f724290d989beb0fe57a6107baa58925cca541bb7b5"}],"Memo
    ryMaximumInMB":8192,"HostName":"bcserver1","MappedDirectories":[{"HostPath":"c:\bcartifacts.cache","ContainerPath":"c:\dl","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUti
    lityVM":false},{"HostPath":"c:\programdata\bccontainerhelper","ContainerPath":"c:\programdata\bccontainerhelper","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":fa
    lse},{"HostPath":"c:\programdata\bccontainerhelper\extensions\bcserver1\my","ContainerPath":"c:\run\my","ReadOnly":false,"BandwidthMaximum":0,"IOPSMaximum":0,"CreateInUtilityVM":false}],"HvP
    artition":true,"EndpointList":["AA60044E-FF60-4092-9F86-597132D0BADE"],"HvRuntime":{"ImagePath":"C:\ProgramData\docker\windowsfilter\ec6bead4645aa2a9196fd72c6c842c4ec522b44a1f3d0a8791555778
    d11277b2\UtilityVM"},"AllowUnqualifiedDNSQuery":true}).
    ExitCode: 125
    Commandline: docker run --env PublicDnsName=bc2021****.azure.com --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=18.0.23013.24339
    --label platform=18.0.22893.24281 --label country=W1 --env artifactUrl=https://bcartifacts.azureedge.net/sandbox/18.0.23013.24339/w1 --env multitenant=Y --env licenseFile="" --name bcserver1
    --hostname bcserver1 --env auth=NavUserPassword --env username="admin" --env ExitOnError=N --env locale=en-US --env databaseServer="" --env databaseInstance="" --volume
    "C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume "C:\ProgramData\BcContainerHelper\Extensions\bcserver1\my:C:\Run\my" --isolation hyperv --restart unless-stopped --env
    filesOnly=False --memory 8G --env enableApiServices=Y --env useSSL=Y --env securePassword=*****YQBmADcAMgBlAGYAMQBmADMANwBkAGIAMgA1AGUANABkADEANAA5AGMAMwA= --env
    passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --hostname bcserver1 -e webserverinstance=bcserver1 -e publicdnsname=bcserver1.eastus.cloudapp.azure.com -l
    "traefik.protocol=https" -l "traefik.web.frontend.rule=PathPrefix:/bcserver1" -l "traefik.web.port=443" -l "traefik.soap.frontend.rule=PathPrefix:/bcserver1soap;ReplacePathRegex: ^/bcserver1soap(.)
    /BC$1" -l "traefik.soap.port=7047" -l "traefik.rest.frontend.rule=PathPrefix:/bcserver1rest;ReplacePathRegex: ^/bcserver1rest(.
    ) /BC$1" -l "traefik.rest.port=7048" -l
    "traefik.dev.frontend.rule=PathPrefix:/bcserver1dev;ReplacePathRegex: ^/bcserver1dev(.) /BC$1" -l "traefik.dev.port=7049" -l "traefik.snap.frontend.rule=PathPrefix:/bcserver1snap;ReplacePathRegex:
    ^/bcserver1snap(.
    ) /BC$1" -l "traefik.snap.port=7083" -l "traefik.dl.frontend.rule=PathPrefixStrip:/bcserver1dl" -l "traefik.dl.port=8080" -l "traefik.dl.protocol=http" -l "traefik.enable=true" -l
    "traefik.frontend.entryPoints=https" --env customNavSettings=PublicODataBaseUrl=https://bc2021****.azure.com/bcserver1rest/odata,PublicSOAPBaseUrl=https://bc2021****.azure.com/bcserver1soap/ws,PublicWebBaseUrl=bc2021****.azure.com/bcserver1 --env accept_eula=Y --env accept_outdated=Y --detach
    mcr.microsoft.com/businesscentral:10.0.17763.1817
    At C:\Program Files\WindowsPowerShell\Modules\bccontainerhelper\2.0.10\ContainerHandling\New-NavContainer.ps1:1688 char:15
  • ... if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo
@freddydk
Copy link
Contributor

The paging file is too small for this operation to complete.

With HyperV isolation it will allocate all the memory for the container in the pagefile.
If you You can try to use process isolation instead it might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants