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

WCOW: local and tar exporters on Windows failing with error: "Access is denied." #4985

Closed
profnandaa opened this issue Jun 3, 2024 · 1 comment · Fixed by #4994
Closed

Comments

@profnandaa
Copy link
Collaborator

When you use --output type=local, it fails during file copy operation.

buildctl build `
 --frontend=dockerfile.v0 `
 --local context=... `
 --local dockerfile=... `
 --output type=local,dest=C:\dev\tmp `
 --progress plain --no-cache
...
#6 [2/2] COPY hello.txt C:\
#6 DONE 0.5s

#7 exporting to client directory
#7 copying files
#7 copying files 6.30kB 0.0s done
#7 ERROR: open C:\Users\nandaa\AppData\Local\Temp\buildkit-mount1788466376\System Volume Information: Access is denied.

Stack trace:

time="2024-06-03T16:09:54+03:00" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = open C:\\Users\\nandaa\\AppData\\Local\\Temp\\buildkit-mount1788466376\\System Volume Information: Access is denied."
open C:\Users\nandaa\AppData\Local\Temp\buildkit-mount1788466376\System Volume Information: Access is denied.
27908 v0.0.0+unknown C:\dev\container-core\buildkit\cmd\buildkitd\__debug_bin16257889.exe -debug
github.com/moby/buildkit/session/filesync.sendDiffCopy
        C:/dev/container-core/buildkit/session/filesync/diffcopy.go:25
github.com/moby/buildkit/session/filesync.CopyToCaller
        C:/dev/container-core/buildkit/session/filesync/filesync.go:365
github.com/moby/buildkit/exporter/local.(*localExporterInstance).Export.func1.1
        C:/dev/container-core/buildkit/exporter/local/export.go:158
golang.org/x/sync/errgroup.(*Group).Go.func1
        C:/dev/container-core/buildkit/vendor/golang.org/x/sync/errgroup/errgroup.go:75
runtime.goexit
        C:/Program Files/Go/src/runtime/asm_amd64.s:1695
@profnandaa
Copy link
Collaborator Author

Cross-linking #4837 -- has similar error from fs.Walk().

@profnandaa profnandaa changed the title WCOW: local exporter on Windows failing with error: "Access is denied." WCOW: local and tar exporter on Windows failing with error: "Access is denied." Jun 8, 2024
@profnandaa profnandaa changed the title WCOW: local and tar exporter on Windows failing with error: "Access is denied." WCOW: local and tar exporters on Windows failing with error: "Access is denied." Jun 8, 2024
@profnandaa profnandaa self-assigned this Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant