microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
381 stars 243 forks source link

Remove-NavContainer fails "Access to path 'fisql.exe' is denied" #303

Closed eclipses24 closed 5 years ago

eclipses24 commented 5 years ago

Hi,

I've create a new nav container with the followin script:

$mylicense = "C:\Users\scastelluccio\Desktop\NAV 2018.flf" $imageName = "microsoft/dynamics-nav:2018-cu2-w1" $containerName = "NAV2018CU2W1"

New-NavContainer -accept_eula -containerName $containerName -imageName $imageName -auth Windows -licensefile $mylicense -updateHosts -includeCSide `

Everything works well but when I try to remove it using this script Remove-NavContainer NAV2018CU2W1

It fails with the following error: Remove-Item : Cannot remove item C:\ProgramData\NavContainerHelper\Extensions\NAV2018CU2W1\Program Files\110\RoleTailored Client\finsql.exe: Access to the path 'finsql.exe' is denied. At C:\Program Files\WindowsPowerShell\Modules\navcontainerhelper\0.4.3.0\ContainerHandling\Remove-NavContainer.ps1:39 char:13

Kind Regards Sergio Castelluccio

freddydk commented 5 years ago

This is likely because you had finsql.exe running while trying to remove the container. Shut down finsql and try again.

eclipses24 commented 5 years ago

Great thanks, it works