Access is denied when running gclient installing depot_tools

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Access is denied when running gclient installing depot_tools

Postby dovko » Mon Oct 31, 2016 7:14 am

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!
dovko
Newbie
 
Posts: 1
Joined: Mon Oct 31, 2016 6:57 am

Re: Access is denied when running gclient installing depot_t

Postby magreenblatt » Mon Oct 31, 2016 11:40 am

You should be able to run gclient from a normal user account.
magreenblatt
Site Admin
 
Posts: 10748
Joined: Fri May 29, 2009 6:57 pm

Re: Access is denied when running gclient installing depot_t

Postby gorvinsky » Mon Oct 31, 2016 11:26 pm

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
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: Access is denied when running gclient installing depot_t

Postby fddima » Wed Nov 02, 2016 9:36 pm

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.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Access is denied when running gclient installing depot_t

Postby gorvinsky » Wed Nov 09, 2016 3:11 am

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?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 6 guests