Support-diagnostics

Getting below error while run diagnostics my windows workstation , please help .

JAVA_HOME found, using C:\Program Files\Java\jdk-17.0.2
2022-01-20 10:38:47,017 main ERROR Unable to locate appender "diag" for logger config "root"
Processing diagnosticInputs...
Elasticsearch user password: ************

Creating temp directory: C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics
Configuring log file.
Diagnostic logger reconfigured for inclusion into archive
Checking for diagnostic version updates.
Issue encountered while checking diagnostic version for updates.
Failed to get current diagnostic version from Github.
If Github is not accessible from this environment current supported version cannot be confirmed.
Getting Elasticsearch Version.
Closing loggers.
Archiving diagnostic results.
Archive: C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics-20220120-103920.zip was created
Delete of directory:C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics failed. Usually this indicates a permission issue
org.apache.commons.io.IOExceptionList: C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192) ~[commons-io-2.11.0.jar:2.11.0]
at co.elastic.support.util.SystemUtils.nukeDirectory(SystemUtils.java:51) [diagnostics-8.2.6.jar:8.2.6]
at co.elastic.support.diagnostics.DiagnosticService.exec(DiagnosticService.java:98) [diagnostics-8.2.6.jar:8.2.6]
at co.elastic.support.diagnostics.DiagnosticApp.main(DiagnosticApp.java:51) [diagnostics-8.2.6.jar:8.2.6]
Caused by: java.io.IOException: Cannot delete file: C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics\diagnostics.log
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) ~[commons-io-2.11.0.jar:2.11.0]
... 4 more
Caused by: java.nio.file.FileSystemException: C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6\local-diagnostics\diagnostics.log: The process cannot access the file because it is being used by another process
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) ~[?:?]
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) ~[?:?]
at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) ~[?:?]
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) ~[?:?]
at java.nio.file.Files.deleteIfExists(Files.java:1191) ~[?:?]
at org.apache.commons.io.file.PathUtils.deleteFile(PathUtils.java:487) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:392) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341) ~[commons-io-2.11.0.jar:2.11.0]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) ~[commons-io-2.11.0.jar:2.11.0]
... 4 more
Fatal error occurred: Could not retrieve the Elasticsearch version due to a system or network error - unable to continue. Host connection
Check diagnostics.log in the archive file for more detail.. Check diagnostics.log in the archive file for more detail.

C:\Users\x3y2\Downloads\diagnostics-8.2.6-dist\diagnostics-8.2.6>

can you please help this error

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.