Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied while renaming folder via rez cp from Windows #1665

Closed
loonghao opened this issue Feb 19, 2024 · 0 comments · Fixed by #1666
Closed

Access denied while renaming folder via rez cp from Windows #1665

loonghao opened this issue Feb 19, 2024 · 0 comments · Fixed by #1666
Labels
bug os:windows Windows-specific

Comments

@loonghao
Copy link
Contributor

loonghao commented Feb 19, 2024

We get a Access denied issue when using rez cp on our windows virtual ci machine.

I found some similar issue.
conan-io/conan#6560

Environment

  • Windows 10
  • 2.113 + and 3.0.0
  • python-3.9

Error logs

rez cp --overwrite --paths=S:\ci\tmp\tmpxj33kx9cthm_ci_builds\temp\build_uxpfuk0z --dest-path=S:\ci\tmp\tmpsard1kmdthm_ci_builds\temp\egp04vyq --reversion=7.3.133 --force --allow-empty marvelous_designer-7.3.133
Traceback (most recent call last):
  File "s:\rez-cache\rez\3.0.0\platform-windows\Vendor\Python\Lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "s:\rez-cache\rez\3.0.0\platform-windows\Vendor\Python\Lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "s:\rez-cache\rez\3.0.0\platform-windows\Scripts\rez_exe\rez.exe\__main__.py", line 7, in <module>
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\cli\_entry_points.py", line 69, in run_rez
    return run()
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\cli\_main.py", line 191, in run
    returncode = run_cmd()
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\cli\_main.py", line 183, in run_cmd
    return func(opts, opts.parser, extra_arg_groups)
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\cli\cp.py", line 156, in command
    result = copy_package(
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\package_copy.py", line 198, in copy_package
    _copy_variant_payload(
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\package_copy.py", line 335, in _copy_variant_payload
    maybe_symlink(src_path, dest_path)
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\utils\filesystem.py", line 273, in replacing_copy
    replace_file_or_dir(dest, tmp_dest)
  File "s:\rez-cache\rez\3.0.0\platform-windows\rez\utils\filesystem.py", line 286, in replace_file_or_dir
    os.rename(source, dest)
PermissionError: [WinError 5] 拒绝访问。: 's:\\ci\\tmp\\tmpsard1kmdthm_ci_builds\\temp\\egp04vyq\\marvelous_designer\\7.3.133\\platform-windows\\_tmp-bin-1080e263bb71424ba81d97ffe57ee5b6' -> 's:\\ci\\tmp\\tmpsard1kmdthm_ci_builds\\temp\\egp04vyq\\marvelous_designer\\7.3.133\\platform-windows\\bin'
@loonghao loonghao added the bug label Feb 19, 2024
@loonghao loonghao changed the title Access denied while renaming folder via rez cp Access denied while renaming folder via rez cp from Windows Feb 19, 2024
@JeanChristopheMorinPerso JeanChristopheMorinPerso added the os:windows Windows-specific label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug os:windows Windows-specific
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants