windows access denied while trying to remove file #4525
Replies: 5 comments 6 replies
-
@mathisloge I not quite understand the workflow yet, but while am still investigate the the problem, can you please doublecheck
and next try to fix "access denied" with the following
Also it was noted the similar problem could happen with some old version of boost: |
Beta Was this translation helpful? Give feedback.
-
@mathisloge
|
Beta Was this translation helpful? Give feedback.
-
Yes, the boost support could understand the problem better than i do But i'd try the following tools to find out the process which holds a lock on the file: https://docs.microsoft.com/en-gb/sysinternals/downloads/handle Is not it possible to get the credentials for nuget repo in order i can reproduce and investigate the problem? |
Beta Was this translation helpful? Give feedback.
-
@mathisloge just for clarification: i am requesting the read-only token for nugets repo. Having not this token causes my build to fail on "Setup NuGet Credentials" step https://github.com/akv-demo/mapnik/runs/4237293494?check_suite_focus=true |
Beta Was this translation helpful? Give feedback.
-
i'll mark this as answered as it is related to memory mapped files and some special handling of stl versions on the ci. |
Beta Was this translation helpful? Give feedback.
-
Hey, I don't really know if this is the place to ask a question, but I'm currently adding github actions testing workflow for mapnik and while doing so, I'm experiencing
boost::filesystem::remove: Access is denied
error.This only happens on the windows-latest ci machine. The file which should get removed is created by the test itself and it is checked before removal if the file exists.
Normally I would use process explorer to see which program hold the lock of the file, but as far as i know there is not a possibility to check this on the CI.
In summary it works on linux and macos but not on window (only ci). On my local windows machine everything works as expected.
Do anyone of you have a hint what I can do about it or how to debug this further?
The workflow:
https://github.com/mathisloge/mapnik/blob/gh_ci/.github/workflows/build_and_test.yml
latest run:
https://github.com/mathisloge/mapnik/actions/runs/1466056507
Beta Was this translation helpful? Give feedback.
All reactions