Closed rarrese closed 3 years ago
Try running
Check-BcContainerHelperPermissions -Fix
and then retry
I did run it: PS C:\WINDOWS\system32> Check-BcContainerHelperPermissions -Fix Running as administrator Checking permissions to C:\ProgramData\BcContainerHelper RARRESE\rarrese does NOT have Full Control to C:\ProgramData\BcContainerHelper and all subfolders Trying to add permissions Permissions successfully added Checking permissions to C:\WINDOWS\System32\drivers\etc\hosts RARRESE\rarrese does NOT have modify permissions to C:\WINDOWS\System32\drivers\etc\hosts Trying to add permissions Permissions successfully added Checking permissions to docker commands RARRESE\rarrese has the right permissions to run docker commands
but with the same result:
Installation complete
Initializing...
Exception calling "Open" with "4" argument(s): "Access to the path 'c:\driversetc\hosts' is denied."
at UpdateHostsFile, C:\Run\my\updatehosts.ps1: line 20
at
+ CategoryInfo : OperationStopped: (Initialization ...ontainer failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container ErroTrustContainer failed
Where should I find the directory \driversetc\hosts?
Thanks
That folder is inside the container mapped to the c:\windows\system32\drivers\etc on the host. It looks like you have a anti-virus software or like that prevents your system in updating hosts. You can remove the -updatehosts parameter from the call, then the command should work - but maybe you cannot connect to the web client using the hostname of the container. You can try
Thanks, it works
Hi Freddy,
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
I´m running the CreateBCSandbox.ps1 whith -version '18.0.23013.23532' -country 'MX' -select 'Closest'; the error message is:
Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 1256 seconds Installation complete Initializing... Exception calling "Open" with "4" argument(s): "Access to the path 'c:\driversetc\hosts' is denied." at UpdateHostsFile, C:\Run\my\updatehosts.ps1: line 20 at, C:\Run\my\updatehosts.ps1: line 116
at , C:\Run\my\SetupVariables.ps1: line 5
at , C:\Run\navstart.ps1: line 24
at , C:\Run\start.ps1: line 363
at , : line 1
Initialization of container ErroTrustContainer failed
En C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.11\ContainerHandling\Wait-NavContainerReady.ps1: 43 Carácter: 17
Scripts used to create container and cause the issue
Full output of scripts
Additional context
Thanks
Rafael