Re: Apache Nifi Installation Issues

2023-12-28 Thread Alex Becker
Hey Mike,

Thanks for the response.  Apparently OneDrive was the culprit, I had Nifi
in a OneDrive directory which I have mounted back to my WSL via /mnt/c, and
when I moved to a local directory on my C disk it worked fine.  Not sure
what the issue is, the permissions should be the same on the OneDrive
directory as far as WSL is concerned, but maybe something else is at work

In any event, thanks for the help!
Alex

On Thu, Dec 28, 2023 at 9:15 AM Michael Moser  wrote:

> 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  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
>>
>


Re: Apache Nifi Installation Issues

2023-12-28 Thread Michael Moser
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  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
>


Apache Nifi Installation Issues

2023-12-28 Thread Alex Becker
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


Re: NiFi installation issues

2017-01-09 Thread Pushkara R
I notice that the server takes a minute or so to come up after running
nifi.sh start. I think the first few times I tried running nifi, I tried
connecting to the server immediately after running nifi.sh. Obviously I
couldn't connect as the server wasn't up yet. Maybe I tried to rerun the
script which could have caused clashes for the 8080 port.

This is just a guess, I'm not sure if this is the reason. But everything
seems to be working fine now. Thanks a lot Oleg.

Pushkar

On Mon, Jan 9, 2017 at 8:23 PM, Pushkara R  wrote:

> Thanks for pointing that out Oleg. I'll see what's occupying that port.
>
> Pushkar
>
> On Mon, Jan 9, 2017 at 8:10 PM, Oleg Zhurakousky <
> ozhurakou...@hortonworks.com> wrote:
>
>> Pushkar
>>
>> It appears that something is running on port 8080 so Jetty can not start.
>> You can see at the bottom of the log the following (see below)
>>
>>
>>   1.
>> 2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer
>> Failed to start web server... shutting down.
>>   2.
>> java.net.BindException: Address already in use
>>   3.
>> at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
>>   4.
>> at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
>>   5.
>> at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
>>   6.
>> at 
>> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
>> ~[na:1.8.0_112]
>>
>> On Jan 9, 2017, at 9:37 AM, Pushkara R  pushkar1...@gmail.com>> wrote:
>>
>> Oleg
>>
>> I've pasted the app log here http://pastebin.com/YXkEvNZJ
>> and the bootstrap log here http://pastebin.com/iPJeJvwX.
>>
>> I built the project using 'maven clean install' (after setting
>> MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
>> exceptions).
>> Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
>> Followed by '$ ./bin/nifi.sh start'
>>
>> I then try to connect to 'http://localhost:8080/nifi/' which gives me the
>> screen I pasted in my previous mail.
>>
>> These were the documentation as available in the README.md in the github
>> clone of the project.
>>
>> Thanks
>> Pushkar
>>
>>
>


Re: NiFi installation issues

2017-01-09 Thread Pushkara R
Thanks for pointing that out Oleg. I'll see what's occupying that port.

Pushkar

On Mon, Jan 9, 2017 at 8:10 PM, Oleg Zhurakousky <
ozhurakou...@hortonworks.com> wrote:

> Pushkar
>
> It appears that something is running on port 8080 so Jetty can not start.
> You can see at the bottom of the log the following (see below)
>
>
>   1.
> 2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer
> Failed to start web server... shutting down.
>   2.
> java.net.BindException: Address already in use
>   3.
> at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
>   4.
> at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
>   5.
> at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
>   6.
> at sun.nio.ch.ServerSocketChannelImpl.bind(
> ServerSocketChannelImpl.java:223) ~[na:1.8.0_112]
>
> On Jan 9, 2017, at 9:37 AM, Pushkara R > wrote:
>
> Oleg
>
> I've pasted the app log here http://pastebin.com/YXkEvNZJ
> and the bootstrap log here http://pastebin.com/iPJeJvwX.
>
> I built the project using 'maven clean install' (after setting
> MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
> exceptions).
> Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
> Followed by '$ ./bin/nifi.sh start'
>
> I then try to connect to 'http://localhost:8080/nifi/' which gives me the
> screen I pasted in my previous mail.
>
> These were the documentation as available in the README.md in the github
> clone of the project.
>
> Thanks
> Pushkar
>
>


Re: NiFi installation issues

2017-01-09 Thread Oleg Zhurakousky
Pushkar

It appears that something is running on port 8080 so Jetty can not start. You 
can see at the bottom of the log the following (see below)


  1.
2017-01-09 17:24:23,606 WARN [main] org.apache.nifi.web.server.JettyServer 
Failed to start web server... shutting down.
  2.
java.net.BindException: Address already in use
  3.
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.8.0_112]
  4.
at sun.nio.ch.Net.bind(Net.java:433) ~[na:1.8.0_112]
  5.
at sun.nio.ch.Net.bind(Net.java:425) ~[na:1.8.0_112]
  6.
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) 
~[na:1.8.0_112]

On Jan 9, 2017, at 9:37 AM, Pushkara R 
> wrote:

Oleg

I've pasted the app log here http://pastebin.com/YXkEvNZJ
and the bootstrap log here http://pastebin.com/iPJeJvwX.

I built the project using 'maven clean install' (after setting
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
exceptions).
Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
Followed by '$ ./bin/nifi.sh start'

I then try to connect to 'http://localhost:8080/nifi/' which gives me the
screen I pasted in my previous mail.

These were the documentation as available in the README.md in the github
clone of the project.

Thanks
Pushkar



Re: NiFi installation issues

2017-01-09 Thread Pushkara R
Oleg

I've pasted the app log here http://pastebin.com/YXkEvNZJ
and the bootstrap log here http://pastebin.com/iPJeJvwX.

I built the project using 'maven clean install' (after setting
MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=128m" because of OutOfMemory
exceptions).
Then I extracted the nifi-1.2.0-snapshot-bin.tar.gz.
Followed by '$ ./bin/nifi.sh start'

I then try to connect to 'http://localhost:8080/nifi/' which gives me the
screen I pasted in my previous mail.

These were the documentation as available in the README.md in the github
clone of the project.

Thanks
Pushkar


Re: NiFi installation issues

2017-01-09 Thread Oleg Zhurakousky
Pushkar

Any chance you can look and provide relevant logs? You can find them in the 
/log directory.
Also, could you please be more specific as to what directions did you follow. 
Just want to make sure that if there are any issues with documentation it is 
corrected.

Cheers
Oleg

> On Jan 9, 2017, at 8:46 AM, Pushkara R  wrote:
> 
> Hi,
> 
> I'm installing NiFi on my arch linux machine following the instructions in
> https://github.com/apache/nifi.
> 
> After I built the project, I executed the NiFi startup script and tried
> connecting to the local server but I got a 404 error with the following
> message.
> 
> HTTP ERROR: 404
> 
> Problem accessing /nifi/. Reason:
> 
>Not Found
> 
> --
> Powered by Jetty:// 9.3.9.v20160517 
> 
> Could someone please help me debug this?
> 
> Thank You
> Pushkar



NiFi installation issues

2017-01-09 Thread Pushkara R
Hi,

I'm installing NiFi on my arch linux machine following the instructions in
https://github.com/apache/nifi.

After I built the project, I executed the NiFi startup script and tried
connecting to the local server but I got a 404 error with the following
message.

HTTP ERROR: 404

Problem accessing /nifi/. Reason:

Not Found

--
Powered by Jetty:// 9.3.9.v20160517 

Could someone please help me debug this?

Thank You
Pushkar


Re: Nifi Installation issues

2016-06-22 Thread Andy LoPresto
Hi Afsar,

It appears that when you were running the installation, your machine was unable 
to connect to the Maven Repository in order to download the necessary 
dependencies.

You can troubleshoot connecting to the repository using these steps [1].

[1] http://stackoverflow.com/a/30111316/70465 


Andy LoPresto
alopre...@apache.org
alopresto.apa...@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Jun 22, 2016, at 10:04 AM, Mohammeda Afsar Jahangir Ali 
>  wrote:
> 
> Hi All,
> Good Afternoon!
> I am Afsar and i am trying to install Nifi on Linux and encountered the
> below issues. Can you please help me with these issues.
> 
> [root@vtmnalrhl254 nifi-0.6.1]# mvn clean install
> [INFO] Scanning for projects...
> Downloading:
> https://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom
> Downloading:
> https://repository.apache.org/content/repositories/releases/org/apache/apache/17/apache-17.pom
> Downloading: http://jcenter.bintray.com/org/apache/apache/17/apache-17.pom
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [FATAL] Non-resolvable parent POM for org.apache.nifi:nifi:0.6.1: Could not
> transfer artifact org.apache:apache:pom:17 from/to central (
> https://repo1.maven.org/maven2): Connect to repo1.maven.org:443 [
> repo1.maven.org/151.101.40.209] failed: Connection timed out and
> 'parent.relativePath' points at no local POM @ line 14, column 13
> @
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]
> [ERROR]   The project org.apache.nifi:nifi:0.6.1
> (/home/ABCD/software/nifi-0.6.1/pom.xml) has 1 error
> [ERROR] Non-resolvable parent POM for org.apache.nifi:nifi:0.6.1: Could
> not transfer artifact org.apache:apache:pom:17 from/to central (
> https://repo1.maven.org/maven2): Connect to repo1.maven.org:443 [
> repo1.maven.org/151.101.40.209] failed: Connection timed out and
> 'parent.relativePath' points at no local POM @ line 14, column 13 -> [Help
> 2]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> 
> 
> 
> --
> Thanks and Regards,
> Mohammed Afsar



signature.asc
Description: Message signed with OpenPGP using GPGMail