Alex, The error occurs when NiFi tries to move the self-signed certificate it generated from /tmp/test-keystore-4089669996254362100.p12 to ./conf/keystore.p12. This is a very basic file operation, so something is up with your environment.
I have not used WSL, so I suggest Googling "windows subsystem for linux tmpdir not working" and see if you can find any tips for making your /tmp directory readable by NiFi. Good luck, -- Mike On Thu, Dec 28, 2023 at 9:29 AM Alex Becker <acbecke...@gmail.com> wrote: > Howdy all, > > I am trying to get an instance of Apache Nifi up and running on my laptop. > This is a Windows machine issued by my company, but I am attempting to run > the Linux binary for Nifi from my Ubuntu 20.04 WSL, where I do all of my > development. I have tried multiple different versions, including 1.24.0, > 1.23.3, and 1.18.0, all with Java version 11.0.21 and Java 1.8.0_392. I > get the same error on all builds: > > 2023-12-28 08:01:28,727 ERROR [main] org.apache.nifi.bootstrap.Command > Self-Signed Certificate Generation Failed > java.nio.file.NoSuchFileException: > /tmp/test-keystore-4089669996254362100.p12 -> ./conf/keystore.p12 > at > > java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) > at > > java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) > at java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:478) > at > > java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:267) > at java.base/java.nio.file.Files.move(Files.java:1422) > at > > org.apache.nifi.bootstrap.util.SecureNiFiConfigUtil.configureSecureNiFiProperties(SecureNiFiConfigUtil.java:141) > at org.apache.nifi.bootstrap.RunNiFi.start(RunNiFi.java:1271) > at org.apache.nifi.bootstrap.RunNiFi.main(RunNiFi.java:302) > > I believe this is the source of why my Nifi binary is failing to start. I > have verified that the directory Nifi is trying to access has the correct > permissions, so I am at a bit of a loss for how to resolve this issue. > > Would greatly appreciate any help in resolving this issue. Apologies, I am > getting an error when attempting to attach the full application logs for > whatever reason, so hopefully the above snippet is helpful. > Let me know if you need anything else, > > Thanks! > Alex >