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

[Bug]: You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions

Open nemanja899 opened this issue 8 months ago • 2 comments

AL-Go version

7.0

Describe the issue

Error during determine artifact url action. Full Error : `Running on Windows, PowerShell 5.1.20348.2849 nt authority\network service does NOT have Full Control to C:\ProgramData\BcContainerHelper and all subfolders You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions nt authority\network service does NOT have modify permissions to C:\Windows\System32\drivers\etc\hosts You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions ERROR: docker : error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.47/containers/json": open //./pipe/docker_engine: Access is denied. At C:\ProgramData\BcContainerHelper\6.1.3\BcContainerHelper\Check-BcContainerHelperPermissions.ps1:145 char:19 $ps = docker ps 2> $tempFile ~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : NotSpecified: (error during co...cess is denied.:String) [], RemoteException FullyQualifiedErrorId : NativeCommandError

npipe: //./pipe/docker_engine nt authority\network service does NOT have permissions to run docker commands You need to run as administrator or you can run Check-BcContainerHelperPermissions -Fix to fix permissions error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.47/containers/json?all=1": open //./pipe/docker_engine: Access is denied. error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.47/containers/json?all=1&filters=%7B%22id%22%3A%7B%22bc14446463225%22%3Atrue%7D%7D": open //./pipe/docker_engine: Access is denied. error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.47/volumes": open //./pipe/docker_engine: Access is denied.`

Expected behavior

Expected to run

Steps to reproduce

Run CICD action on self-hosted runner or Pull Request Build

Additional context (logs, screenshots, etc.)

logs_37141150569.zip

nemanja899 avatar Apr 15 '25 09:04 nemanja899

It looks like your self-hosted runner is using nt authority\network service. I don't think that will work - network service will not be able to run docker on the computer - it needs to be an admin user.

freddydk avatar Apr 15 '25 09:04 freddydk

It looks like your self-hosted runner is using nt authority\network service. I don't think that will work - network service will not be able to run docker on the computer - it needs to be an admin user.

Thanks, for a time being I disabled my self-hosted runner. Strange since I chose default options from Github like I always do, when creating runner. Must be something Github has updated with their default options.

nemanja899 avatar Apr 17 '25 07:04 nemanja899