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

New-DcnClone: Remove diskpart.txt when done #204

Closed
4 tasks done
lowlydba opened this issue May 17, 2022 · 0 comments · Fixed by #205
Closed
4 tasks done

New-DcnClone: Remove diskpart.txt when done #204

lowlydba opened this issue May 17, 2022 · 0 comments · Fixed by #205

Comments

@lowlydba
Copy link
Contributor

Before submitting the bug

  • Ensure you are able to reproduce it on the latest released version (we release often)
  • Verified this bug is not already reported in an issue
  • Verified errors are not related to permissions
  • Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Describe the bug
When creating a clone on a build agent, the next attempt to create a new clone with a unique name returned with:

WARNING: [13:08:30][New-DcnClone] Could not create clone | The process cannot access the file 'C:\Users...\Documents\diskpart.txt' because it is being used by another process.

Cleaning up this file after use should prevent this from happening hopefully, or at least provide more context about the file being locked when it happens versus the next time we try to create a clone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant