AL-Go icon indicating copy to clipboard operation
AL-Go copied to clipboard

[Bug]: cloudDevEnv.ps1 - Unable to locate the server instance: MicrosoftDynamicsNavServer$BC

Open louagej opened this issue 7 months ago • 4 comments

AL-Go version

preview

Describe the issue

When running the cloudDevEnv.ps1 script, I receive this error:

Error: Unable to locate the server instance: MicrosoftDynamicsNavServer$BC

Expected behavior

I expect the script to find my server instance

Steps to reproduce

  1. Run cloudDevEnv.ps1 in VSCode
  2. Select Reuse existing environment (not the default option)
  3. Wait until after Container is creatd (Creating Container took 107 seconds)

Additional context (logs, screenshots, etc.)

Ready for connections!
Reading CustomSettings.config from bcServerFilesOnly
Cleanup old dotnet core assemblies

Creating Container took 107 seconds
Unable to locate the server instance: MicrosoftDynamicsNavServer$BC

Container Free Physical Memory: 9.7Gb
Disk C: Free 124Gb from 127Gb

Services in container bcServerFilesOnly:
Publish-BcContainerApp Telemetry Correlation Id: db884766-95a4-4467-ae47-c6cd2ce015d6
Removing container
Removing Session bcServerFilesOnly
Removing container bcServerFilesOnly
Removing entries from hosts
Removing bcServerFilesOnly from container hosts file
Removing bcServerFilesOnly-* from container hosts file
Removing Desktop shortcuts
Removing C:\ProgramData\BcContainerHelper\Extensions\bcServerFilesOnly
Run-AlPipeline Telemetry Correlation Id: ef192ab9-7e9d-413f-a3b5-873f9c1ff5d7
Error: Unable to locate the server instance: MicrosoftDynamicsNavServer$BC
Stacktrace: at Invoke-ScriptInBcContainer, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\ContainerHandling\Invoke-ScriptInNavContainer.ps1: line 307
at Get-BcContainerAppInfo, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Get-NavContainerAppInfo.ps1: line 76
at Publish-BcContainerApp, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Publish-NavContainerApp.ps1: line 131
at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1188
at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1463
at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1389
at <ScriptBlock>, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1281
at Run-AlPipeline, C:\ProgramData\BcContainerHelper\6.1.7-preview1335\BcContainerHelper\AppHandling\Run-AlPipeline.ps1: line 1266
at CreateDevEnv, C:\Users\Job.Louage\AppData\Local\Temp\e01359bb-0385-4397-961c-cb42c061ae5e\AL-Go-Helper.ps1: line 2053
at <ScriptBlock>, C:\Users\Job.Louage\AL\9altitudes\PTE-BC-9altitudes\.AL-Go\cloudDevEnv.ps1: line 86
at <ScriptBlock>, <No file>: line 1

louagej avatar Jun 04 '25 10:06 louagej

Hi @louagej

Can you please share the full log (in a zip file)?

mazhelez avatar Jun 04 '25 15:06 mazhelez

@mazhelez ,

I copied the log from the script in a txt fil (see attachment).

1767_cloudDevEnv_Log.txt

louagej avatar Jun 04 '25 16:06 louagej

I see the created container is filesOnly, so no wonder there is failure. However, the apps only need to be built when creating an online dev environment.

As a mitigation, you can set doNotPublishApps to true in the settings for cloudDevEnv (.github/cloudDevEnv.settings.json)

mazhelez avatar Jul 03 '25 09:07 mazhelez

Hi @mazhelez ,

I'm not sure I understand what you mean by filesOnly. Could you please clarify that a bit more?

louagej avatar Aug 07 '25 07:08 louagej