Can not reach BC client application based on a docker/container

JavaidJavaid Member Posts: 23
edited 2022-10-10 in NAV Three Tier
Hi

I have installed BC19 as a container. See below.

cjpjy0yb7d6g.png

It is working fine for to there days than the application will not start.

When I use docker logs than I get this below error

3hy9l6jumzgu.png

Do someone know why the service is not starting? or what I can do?



Best Regards
Javaid Sethi

Answers

  • SanderDkSanderDk Member Posts: 502
    The Error typicaly will be printet before this line.
    You need to post the entire output of you new-bccontainer script.
    For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
  • JavaidJavaid Member Posts: 23
    This is the Docker report log.

    C:\Users\jsethi6>docker ps -a
    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    876ea4a92183 mcr.microsoft.com/businesscentral:10.0.19041.1415 "powershell -Command…" 2 weeks ago Up 44 seconds (health: starting) 80/tcp, 443/tcp, 1433/tcp, 7045-7049/tcp, 7083/tcp, 8080/tcp ABC-LS195-OP

    C:\Users\jsethi6>docker logs 876
    Using artifactUrl https://bcartifacts.azureedge.net/onprem/19.5.36567.36700/dk
    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\onprem\19.5.36567.36700\platform\ServiceTier\Program Files
    c:\dl\onprem\19.5.36567.36700\platform\ServiceTier\System64Folder
    Copying PowerShell Scripts
    c:\dl\onprem\19.5.36567.36700\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
    c:\dl\onprem\19.5.36567.36700\platform\WindowsPowerShellScripts\WebSearch
    Copying Web Client Files
    c:\dl\onprem\19.5.36567.36700\platform\WebClient\Microsoft Dynamics NAV
    Copying Client Files
    c:\dl\onprem\19.5.36567.36700\platform\LegacyDlls\program files\Microsoft Dynamics NAV
    c:\dl\onprem\19.5.36567.36700\platform\LegacyDlls\program files\Microsoft Dynamics NAV
    c:\dl\onprem\19.5.36567.36700\platform\LegacyDlls\systemFolder
    Copying ModernDev Files
    c:\dl\onprem\19.5.36567.36700\platform
    c:\dl\onprem\19.5.36567.36700\platform\ModernDev\program files\Microsoft Dynamics NAV
    Copying additional files
    Copying ConfigurationPackages
    C:\dl\onprem\19.5.36567.36700\dk\ConfigurationPackages
    Copying Test Assemblies
    C:\dl\onprem\19.5.36567.36700\platform\Test Assemblies
    Copying Applications
    C:\dl\onprem\19.5.36567.36700\dk\Applications
    Copying dependencies
    Copying ReportBuilder
    Importing PowerShell Modules
    Skipping restore of Cronus database
    Modifying Business Central Service Tier Config File for Docker
    Creating Business Central Service Tier
    Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
    Installation took 31 seconds
    Installation complete
    Initializing...
    Setting host.docker.internal to 192.168.179.210 in container hosts file (copy from host hosts file)
    Setting gateway.docker.internal to 192.168.179.210 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.25.16.1 in container hosts file
    Starting Container
    Hostname is ABC-LS195-OP
    PublicDnsName is ABC-LS195-OP
    Using NavUserPassword Authentication
    Downloading Dac Framework 18.2
    Installing Dac Framework 18.2
    Restoring Database from c:\run\my\app.bacpac as app
    Restoring Database from c:\run\my\tenant.bacpac as tenant
    Creating Self Signed Certificate
    Self Signed Certificate Thumbprint 6A65E2CAFF4A225E0DB4BBB8E9708B4648F17619
    DNS identity ABC-LS195-OP
    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
    Using license file 'c:\run\my\license.flf'
    Import License
    Copying template database
    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
    Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = True
    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.25.26.108
    Container Hostname : ABC-LS195-OP
    Container Dns Name : ABC-LS195-OP
    Web Client : http://ABC-LS195-OP/BC/?tenant=default
    Dev. Server : http://ABC-LS195-OP
    Dev. ServerInstance : BC
    Dev. Server Tenant : default
    Setting ABC-LS195-OP to 172.25.26.108 in host hosts file
    Setting ABC-LS195-OP-default to 172.25.26.108 in host hosts file
    Setting ABC-LS195-OP-default to 172.25.26.108 in container hosts file

    Files:
    http://ABC-LS195-OP:8080/ALLanguage.vsix

    WARNING: You are running a container which is 188 days old.
    Microsoft recommends that you always run the latest version of our containers.

    Container Total Physical Memory is 8.5Gb
    Container Free Physical Memory is 4.6Gb

    Initialization took 629 seconds
    Ready for connections!
    Initializing...
    Setting host.docker.internal to 192.168.179.210 in container hosts file (copy from host hosts file)
    Setting gateway.docker.internal to 192.168.179.210 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.25.16.1 in container hosts file
    Restarting Container
    PublicDnsName unchanged
    Hostname is ABC-LS195-OP
    PublicDnsName is ABC-LS195-OP
    Using NavUserPassword Authentication
    Starting Local SQL Server
    Starting Internet Information Server
    Starting Service Tier
    Container IP Address: 172.25.19.52
    Container Hostname : ABC-LS195-OP
    Container Dns Name : ABC-LS195-OP
    Web Client : http://ABC-LS195-OP/BC/?tenant=default
    Dev. Server : http://ABC-LS195-OP
    Dev. ServerInstance : BC
    Dev. Server Tenant : default
    Setting ABC-LS195-OP to 172.25.19.52 in host hosts file
    Setting ABC-LS195-OP-default to 172.25.19.52 in host hosts file
    Setting ABC-LS195-OP-default to 172.25.19.52 in container hosts file

    Files:
    http://ABC-LS195-OP:8080/ALLanguage.vsix

    Container Total Physical Memory is 8.5Gb
    Container Free Physical Memory is 7.3Gb

    Initialization took 11 seconds
    Ready for connections!
    Initializing...
    Setting host.docker.internal to 192.168.87.122 in container hosts file (copy from host hosts file)
    Setting gateway.docker.internal to 192.168.87.122 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.17.80.1 in container hosts file
    Restarting Container
    Restart count 1
    Hostname is ABC-LS195-OP
    PublicDnsName is ABC-LS195-OP
    Using NavUserPassword Authentication
    Starting Local SQL Server
    Starting Internet Information Server
    Creating Self Signed Certificate
    Self Signed Certificate Thumbprint EA7878B56F1EB6770F307EE2E3D3848F7534DA5F
    DNS identity ABC-LS195-OP
    Modifying Service Tier Config File with Instance Specific Settings
    Starting Service Tier
    Failed to start service 'Dynamics 365 Business Central Server [BC] (MicrosoftDynamicsNavServer$BC)'.
    at <ScriptBlock>, C:\Run\navstart.ps1: line 170
    at <ScriptBlock>, C:\Run\start.ps1: line 377
    at <ScriptBlock>, <No file>: line 1
    Initializing...
    Setting host.docker.internal to 10.62.128.159 in container hosts file (copy from host hosts file)
    Setting gateway.docker.internal to 10.62.128.159 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.17.80.1 in container hosts file




  • krikikriki Member, Moderator Posts: 9,112
    [Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • EsiuEsiu Member Posts: 2
    Hi!

    "WARNING: You are running a container which is 188 days old.
    Microsoft recommends that you always run the latest version of our containers."

    Do you need BC19?
    In my case I'm always using the newest version and it basically works fine.

    I recommend installing bc "Using the BCContainerHelper PowerShell module" in the link below:
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-running-container-development
Sign In or Register to comment.