SonarQube extension fails on local server build due to Java error java.nio.file.FileSystemException


I’m trying to use SonarQube in my build pipeline but it fails, something related to Java.
See the attached error log please.

I installed the Java SDK 21 in our build server and had set the JAVA_HOME variable.
As you can see in the logs, the preparation works but the analysis itself fails with this error:

Creating XDG_CONFIG_HOME directory U:.config failed
java.nio.file.FileSystemException: U:.config: Unable to determine if root directory exists

however if I locally run in my laptop the analysis using the
dotnet sonarscanner tool, it works and all data is uploaded to our sonarqube server instance.

it look like something related to the java environment, I’m not a java expert… could someone help me?


BuildLog.txt (30.0 KB)

Analyzing on SonarQube server 8.4.1

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.4.1 → 8.9.10 → 9.9.2 → 10.2.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.