[error]ERROR: Failed to delete temp folder java.nio.file.AccessDeniedException: C:\agent\_work\1\s\.scannerwork\.sonartmp\15438227354536854748\jni.dll


our sonar scan pipeline was broken today, it has been good yesterday.

INFO: SonarScanner
INFO: Java 16.0.2 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64 (self-hosted agent)

2022-03-15T13:49:59.3118538Z ##[error]ERROR: Failed to delete temp folder
java.nio.file.AccessDeniedException: C:\agent_work\1\s.scannerwork.sonartmp\15438227354536854748\jni.dll
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)

[CPP-3600] Get rid of error message on Windows about failure to delete temporary folder containing jni.dll - SonarSource Is it similar to this bug?
Please send PM to me if you need more logs. Thanks!

Hey there.

See this update here:

1 Like