Page 1 of 1

Access is denied when running gclient installing depot_tools

PostPosted: Mon Oct 31, 2016 7:14 am
by dovko
Hi.

We were installing the depot_tools following steps from https://www.chromium.org/developers/how-tos/install-depot-tools on Windows environment.
When running gclient (As Administrator) we get this error:
[P8768 17:35:54.194 fs.go:290 W] fs: failed to rename(c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\358652122\x,c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e16362) - Access is denied.
[P8768 17:35:54.194 fs.go:240 W] fs: failed to rename directory c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\358652122 - Access is denied.
[P8768 17:35:54.244 client.go:997 E] Failed to install infra/depot_tools/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 - Access is denied
.
Error: failed to update packages, see the log.
Traceback (most recent call last):
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 203, in <module> sys.exit(main(sys.argv[1:]))
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 195, in main install_git(args, git_version, git_directory)
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 115, in install_git 'v' + git_version.replace('.', '_'))
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 74, in cipd_install _check_call(cipd_args)
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 24, in _check_call subprocess.check_call(argv, **kwargs)
File "C:\code\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\code\\depot_tools\\cipd', 'ensure', '-list', 'c:\\users\\dovk\\appdata\\local\\temp\\tmpdts4ui', '-root', 'c:\\users\\dovk\\appdata\\local\\temp\\tmptjilab']' returned non-zero exit status 1
Usage: gclient.py <command> [options]

How can we proceed and avoid these errors.

Thanks!

Re: Access is denied when running gclient installing depot_t

PostPosted: Mon Oct 31, 2016 11:40 am
by magreenblatt
You should be able to run gclient from a normal user account.

Re: Access is denied when running gclient installing depot_t

PostPosted: Mon Oct 31, 2016 11:26 pm
by gorvinsky
I'm facing the same error when running automate-git.py. You may refer to my post here: viewtopic.php?f=6&t=13515&start=10#p32754

Re: Access is denied when running gclient installing depot_t

PostPosted: Wed Nov 02, 2016 9:36 pm
by fddima
Look in windows event log - access denied should be logged in audit section, and may be you be able to get more detailed info / reason why it is denied.

If event log doesnt has this entries - try to enable audit.

There is something tied to your local environment, but it is possible countless reasons why this happens.

Re: Access is denied when running gclient installing depot_t

PostPosted: Wed Nov 09, 2016 3:11 am
by gorvinsky
dovko wrote:Hi.

We were installing the depot_tools following steps from https://www.chromium.org/developers/how-tos/install-depot-tools on Windows environment.
When running gclient (As Administrator) we get this error:
[P8768 17:35:54.194 fs.go:290 W] fs: failed to rename(c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\358652122\x,c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e16362) - Access is denied.
[P8768 17:35:54.194 fs.go:240 W] fs: failed to rename directory c:\users\dovk\appdata\local\temp\tmptjilab\.cipd\pkgs\5zs6D0TNxz\358652122 - Access is denied.
[P8768 17:35:54.244 client.go:997 E] Failed to install infra/depot_tools/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 - Access is denied
.
Error: failed to update packages, see the log.
Traceback (most recent call last):
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 203, in <module> sys.exit(main(sys.argv[1:]))
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 195, in main install_git(args, git_version, git_directory)
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 115, in install_git 'v' + git_version.replace('.', '_'))
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 74, in cipd_install _check_call(cipd_args)
File "C:\code\depot_tools\bootstrap\win\git_bootstrap.py", line 24, in _check_call subprocess.check_call(argv, **kwargs)
File "C:\code\depot_tools\python276_bin\lib\subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\code\\depot_tools\\cipd', 'ensure', '-list', 'c:\\users\\dovk\\appdata\\local\\temp\\tmpdts4ui', '-root', 'c:\\users\\dovk\\appdata\\local\\temp\\tmptjilab']' returned non-zero exit status 1
Usage: gclient.py <command> [options]

How can we proceed and avoid these errors.

Thanks!

Hi dovko, are you able to solve this?