[Bug]: cloudDevEnv.ps1 - Unable to locate the server instance: MicrosoftDynamicsNavServer$BC
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
- Run cloudDevEnv.ps1 in VSCode
- Select Reuse existing environment (not the default option)
- 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
Hi @louagej
Can you please share the full log (in a zip file)?
@mazhelez ,
I copied the log from the script in a txt fil (see attachment).
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)
Hi @mazhelez ,
I'm not sure I understand what you mean by filesOnly. Could you please clarify that a bit more?