Franck,

Can you take a look at the nifi-app.log? That should provide more information 
than the bootstrap log does.

Thanks
-Mark


> On Mar 14, 2024, at 5:09 AM, Franck Routier via users <users@nifi.apache.org> 
> wrote:
> 
> Any idea anyone ?
> 
> Le jeudi 7 mars 2024, 09:08:45 CET Franck Routier a écrit :
>> Hi,
>> 
>> here is the result of the launch:
>> 
>> root@nifi:/opt/nifi# bin/nifi.sh run 
>> nifi.sh: JAVA_HOME not set; results may vary 
>> 
>> Java home:  
>> NiFi home: /opt/nifi-2.0.0-M2 
>> 
>> Bootstrap Config File: /opt/nifi-2.0.0-M2/conf/bootstrap.conf 
>> 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Starting Apache NiFi... 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Working Directory: /opt/nifi-2.0.0-M2 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Command: java -classpath /opt/nifi-2.0.0-M2/./conf:/opt/nifi-2.0.0-M2/./lib/
>> jul-to-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-runtime-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/log4j-over-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2
>> /./lib/nifi-framework-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-python-framework-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-server-api-2.
>> 0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/jcl-over-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-per-process-group-logging-2.0.0-M2.jar:/opt/nifi-2.0.0
>> -M2/./lib/nifi-property-utils-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-stateless-bootstrap-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/logback-classic
>> -1.4.14.jar:/opt/nifi-2.0.0-M2/./lib/logback-core-1.4.14.jar:/opt/nifi-2.0.0-M2/./lib/nifi-nar-utils-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/slf4j-a
>> pi-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-stateless-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nif
>> i-properties-2.0.0-M2.jar -Xmx1g -Djava.awt.headless=true -Xms1g 
>> -Djavax.security.auth.useSubjectCredsOnly=true 
>> -Dsun.net.http.allowRestrictedHead
>> ers=true -Djava.protocol.handler.pkgs=sun.net.www.protocol 
>> -Dcurator-log-only-first-connection-issue-as-error-level=true 
>> -Dnifi.properties.file.pa
>> th=/opt/nifi-2.0.0-M2/./conf/nifi.properties 
>> -Dnifi.bootstrap.listen.port=37235 -Dapp=NiFi 
>> -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/nifi-2.
>> 0.0-M2/logs org.apache.nifi.NiFi  
>> 2024-03-07 08:05:28,757 INFO [main] org.apache.nifi.bootstrap.Command 
>> Application Process [330] launched
>> 
>> and here is logs/nifi-bootstrap.log:
>> 
>> 2024-03-07 08:05:28,612 WARN [main] o.a.n.b.process.RuntimeValidatorExecutor 
>> Runtime Configuration [AvailableLocalPorts] validation failed: Local 
>> Ports [28231] less than recommended [55000] according to 
>> [/proc/sys/net/ipv4/ip_local_port_range] 
>> 2024-03-07 08:05:28,615 WARN [main] o.a.n.b.process.RuntimeValidatorExecutor 
>> Runtime Configuration [ForkedProcesses] validation failed: Configurat
>> ion file [/proc/276/limits] cannot be parsed 
>> 2024-03-07 08:05:28,615 WARN [main] o.a.n.b.process.RuntimeValidatorExecutor 
>> Runtime Configuration [Swappiness] validation failed: Swappiness [60]
>> more than recommended [0] according to [/proc/sys/vm/swappiness] 
>> 2024-03-07 08:05:28,615 WARN [main] o.a.n.b.process.RuntimeValidatorExecutor 
>> Runtime Configuration [SocketTimedWaitDuration] validation failed: TC
>> P Socket Wait [120 seconds] more than recommended [1 seconds] according to 
>> [/proc/sys/net/netfilter/nf_conntrack_tcp_timeout_time_wait] 
>> 2024-03-07 08:05:28,725 INFO [main] org.apache.nifi.bootstrap.RunNiFi 
>> {javaVersion=21.0.2, availableProcessors=8, maxOpenFileDescriptors=1048576, 
>> totalPhysicalMemoryMB=64039, minimumHeapSize=1g, maximumHeapSize=1g} 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Starting Apache NiFi... 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Working Directory: /opt/nifi-2.0.0-M2 
>> 2024-03-07 08:05:28,742 INFO [main] org.apache.nifi.bootstrap.Command 
>> Command: java -classpath /opt/nifi-2.0.0-M2/./conf:/opt/nifi-2.0.0-M2/./lib/
>> jul-to-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-runtime-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/log4j-over-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2
>> /./lib/nifi-framework-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-python-framework-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-server-api-2.
>> 0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/jcl-over-slf4j-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-per-process-group-logging-2.0.0-M2.jar:/opt/nifi-2.0.0
>> -M2/./lib/nifi-property-utils-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-stateless-bootstrap-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/logback-classic
>> -1.4.14.jar:/opt/nifi-2.0.0-M2/./lib/logback-core-1.4.14.jar:/opt/nifi-2.0.0-M2/./lib/nifi-nar-utils-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/slf4j-a
>> pi-2.0.11.jar:/opt/nifi-2.0.0-M2/./lib/nifi-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nifi-stateless-api-2.0.0-M2.jar:/opt/nifi-2.0.0-M2/./lib/nif
>> i-properties-2.0.0-M2.jar -Xmx1g -Djava.awt.headless=true -Xms1g 
>> -Djavax.security.auth.useSubjectCredsOnly=true 
>> -Dsun.net.http.allowRestrictedHead
>> ers=true -Djava.protocol.handler.pkgs=sun.net.www.protocol 
>> -Dcurator-log-only-first-connection-issue-as-error-level=true 
>> -Dnifi.properties.file.pa
>> th=/opt/nifi-2.0.0-M2/./conf/nifi.properties 
>> -Dnifi.bootstrap.listen.port=37235 -Dapp=NiFi 
>> -Dorg.apache.nifi.bootstrap.config.log.dir=/opt/nifi-2.
>> 0.0-M2/logs org.apache.nifi.NiFi  
>> 2024-03-07 08:05:28,757 INFO [main] org.apache.nifi.bootstrap.Command 
>> Application Process [330] launched 
>> 2024-03-07 08:05:29,087 INFO [NiFi Bootstrap Command Listener] 
>> org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for 
>> Bootstr
>> ap requests on port 40615 
>> 2024-03-07 08:05:36,535 ERROR [NiFi logging handler] org.apache.nifi.StdErr 
>> Failed to start web server: Error creating bean with name 'org.springf
>> ramework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>>  Unsatisfied dependency expressed through method 'setFilterChains'
>> parameter 0: Error creating bean with name 'securityFilterChain' defined in 
>> org.apache.nifi.web.security.configuration.WebSecurityConfiguration: 
>> Unsatisfied dependency expressed through method 'securityFilterChain' 
>> parameter 2: Error creating bean with name 'org.apache.nifi.web.security.con
>> figuration.JwtAuthenticationSecurityConfiguration': Unsatisfied dependency 
>> expressed through constructor parameter 2: Error creating bean with nam
>> e 'flowController' defined in class path resource [nifi-context.xml]: Cannot 
>> resolve reference to bean 'propertyEncryptor' while setting bean prop
>> erty 'encryptor' 
>> 2024-03-07 08:05:36,535 ERROR [NiFi logging handler] org.apache.nifi.StdErr 
>> Shutting down... 
>> 2024-03-07 08:05:37,759 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi 
>> never started. Will not restart NiFi
>> 
>> 
>> Regards
>> Franck
>> 
>> 
>> Le mercredi 6 mars 2024, 19:55:36 CET Mark Payne a écrit :
>>> Hey there Franck,
>>> 
>>> Can you provide the full error message with stack trace that gets printed?
>>> 
>>> Thanks
>>> -Mark
>>> 
>>> 
>>> On Mar 6, 2024, at 1:26 PM, Franck Routier via users 
>>> <users@nifi.apache.org> wrote:
>>> 
>>> Hi,
>>> 
>>> I'm a first time wanabe user of Nifi, and I followed the installation 
>>> guide, until the point when I try to launch Nifi:
>>> 
>>> - install ubuntu 22.04 (in an incus container)
>>> - install java (21.0.2)
>>> - download and install nifi
>>> - set mandatory properties in conf/nifi.properties
>>> - and run:
>>> 
>>> ../bin/nifi.sh run
>>> but it returns quickly, and the logs tells me that...:
>>> 
>>> Error creating bean with name 
>>> 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration':
>>>  Unsatisfied dependency expressed through method 'setFilterChains' 
>>> parameter 0: Error creating bean with name
>>> 'securityFilterChain' defined in 
>>> org.apache.nifi.web.security.configuration.WebSecurityConfiguration: 
>>> Unsatisfied dependency expressed through method 'securityFilterChain' 
>>> parameter 2: Error creating bean with name 
>>> 'org.apache.nifi.web.security.configuration.JwtAuthenticationSecurityConfiguration':
>>>  Unsatisfied dependency expressed thr
>>> ough constructor parameter 2: Error creating bean with name 
>>> 'flowController' defined in class path resource [nifi-context.xml]: Cannot 
>>> resolve reference to bean 'propertyEncryptor' while setting bean property 
>>> 'encryptor'
>>> 
>>> So, I guess a configuration is missing somewhere, but I have no clue where.
>>> (I checked that nifi.sensitive.props.key is set, it, is, and now I'm lost).
>>> 
>>> Thanks
>>> Franck
>>> 
>>> 
>> 
> 
> 
> 

Reply via email to