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

Problem with Insider Build when mapping addins folder to container #502

Closed
cmuris opened this issue Aug 18, 2021 · 2 comments
Closed

Problem with Insider Build when mapping addins folder to container #502

cmuris opened this issue Aug 18, 2021 · 2 comments

Comments

@cmuris
Copy link

cmuris commented Aug 18, 2021

Hi,

I am getting an error when trying to create a container with the latest BC insider build, when I map the addins folder to the container like this:
$additionalParameters = @("--volume c:\work\bc19:c:\run\Add-Ins")
New-BcContainer -accept_eula -accept_outdated -containerName 'BC19Insider' -imageName 'myown' -artifactUrl $artifactUrl -auth NavUserPassword -shortcuts DesktopFolder -additionalParameters $additionalParameters

In my case (I have two sub folders in my AddIns folder) it results in the following error
Container cannot be copied onto existing leaf item.
at , C:\Run\SetupAddIns.ps1: line 13
at , C:\Run\navstart.ps1: line 148
at , C:\Run\start.ps1: line 363
at , : line 1Error

The issue here is, that the SetupAddIns.ps1 script wants to copy the addins to the RoleTailoredClient "Add-Ins" folder. But it seems that, although in BC19 the RTC folder is still present, the Add-Ins folder isn't. The result is that Copy-Items tries to copy the source content into a single file in the destination instead of copying everything as it is in the source.

I don't believe that is relevant anymore to copy the addins to the RoletaileredClientFolder for newer BC versions, or is it? Otherwise the Add-Ins folder needs to be created if it doesn't exist.

@ti-jalopez
Copy link

Hi,
I've the same error creating a container for ci-nextmajor last weekend.
Container created from https://bcinsider.azureedge.net/sandbox/19.1.30507.0/es

Best regards,

@freddydk
Copy link
Contributor

Sorry for not seeing this issue, assuming it was resolved long ago.

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

3 participants