You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "mayki (Jira)" <ji...@apache.org> on 2021/12/17 15:36:00 UTC

[jira] [Created] (NIFI-9499) FAILED TO start nifi 1.15.1 with existing Keystore

mayki created NIFI-9499:
---------------------------

             Summary: FAILED TO start nifi 1.15.1 with existing Keystore
                 Key: NIFI-9499
                 URL: https://issues.apache.org/jira/browse/NIFI-9499
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.15.1
            Reporter: mayki


+Hello,+

I have installed 1.15.1, update existing flow.xml.gz with encrypt-config.sh to setup
 * nifi.sensitive.props.key=xxxxxx
 * nifi.sensitive.props.algorithm=NIFI_ARGON2_AES_GCM_256

NIFI started and failed after 60 seconds

There are no messages on nifi-bootstrap-app.log

Here only the error on nifi-app.log:

 
{code:java}
2021-12-17 15:40:14,715 INFO [main] org.apache.nifi.web.server.JettyServer https://xxxxxxx:9091/nifi
2021-12-17 15:40:14,716 INFO [main] org.apache.nifi.BootstrapListener Successfully initiated communication with Bootstrap
2021-12-17 15:40:14,716 INFO [main] org.apache.nifi.NiFi Started Application Controller in 13.043 seconds (13043620626 ns)
2021-12-17 15:40:17,344 INFO [Timer-Driven Process Thread-4] o.a.n.c.s.TimerDrivenSchedulingAgent SiteToSiteBulletinReportingTask[id=c3518aae-016f-1000-377c-cd9ac73fbbc2] started.
2021-12-17 15:40:42,815 INFO [Timer-Driven Process Thread-9] o.a.n.p.store.WriteAheadStorePartition Successfully rolled over Event Writer for Provenance Event Store Partition[directory=/data/nifi/provenance_repository] due to MAX_TIME_REACHED. Event File was 14.47 KB and contained 1 events.
2021-12-17 15:41:09,040 INFO [Cleanup Archive for repo0] o.a.n.c.repository.FileSystemRepository Successfully deleted 0 files (0 bytes) from archive
2021-12-17 15:41:19,014 INFO [Thread-1] org.apache.nifi.NiFi Application Server shutdown started
2021-12-17 15:41:19,021 INFO [Thread-1] o.eclipse.jetty.server.AbstractConnector Stopped ServerConnector@7ee3d262{SSL, (ssl, http/1.1)}{xxxxxxxx:9091}
2021-12-17 15:41:19,021 INFO [Thread-1] org.eclipse.jetty.server.session node0 Stopped scavenging
 {code}
 

A lot nifi.properties leaves by default except 

 
{code:java}
# For security, NiFi will present the UI on 127.0.0.1 and only be accessible through this loopback interface.
# Be aware that changing these properties may affect how your instance can be accessed without any restriction.
nifi.web.war.directory=./lib
nifi.web.http.host=
nifi.web.http.port=
nifi.web.http.network.interface.default=
nifi.web.https.host=xxxxxxxxxx
nifi.web.https.port=9091
nifi.web.https.network.interface.default=
nifi.web.jetty.working.directory=./work/jetty
nifi.web.jetty.threads=200
nifi.web.max.header.size=16 KB
nifi.web.proxy.context.path=
nifi.web.proxy.host=
nifi.web.max.content.size=
nifi.web.max.requests.per.second=30000
nifi.web.max.access.token.requests.per.second=25
nifi.web.request.timeout=60 secs
nifi.web.request.ip.whitelist=
nifi.web.should.send.server.version=true


# security properties #
nifi.sensitive.props.key=xxxxxxx
nifi.sensitive.props.key.protected=
nifi.sensitive.props.algorithm=NIFI_ARGON2_AES_GCM_256
nifi.sensitive.props.additional.keys=
nifi.security.autoreload.enabled=true
nifi.security.autoreload.interval=10s
nifi.security.keystore=./conf/keystore.jks
nifi.security.keystoreType=jks
nifi.security.keystorePasswd=xxxxxxxxxxxxxxxxx
nifi.security.keyPasswd=xxxxxxxxxxxxxx
nifi.security.truststore=./conf/truststore.jks
nifi.security.truststoreType=jks
nifi.security.truststorePasswd=xxxxxxxxxxxxxxxx
nifi.security.user.authorizer=managed-authorizer
nifi.security.allow.anonymous.authentication=false
nifi.security.user.login.identity.provider=
nifi.security.user.jws.key.rotation.period=PT1H
nifi.security.ocsp.responder.url=
nifi.security.ocsp.responder.certificate= {code}
And here the status of systemctl
{code:java}
â nifi.service - Apache NiFi
   Loaded: loaded (/etc/systemd/system/nifi.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Fri 2021-12-17 15:41:21 CET; 2min 17s ago
  Process: 3049107 ExecStop=/appl/nifi/nifi-current/bin/nifi.sh stop (code=exited, status=0/SUCCESS)
  Process: 104916 ExecStart=/appl/nifi/nifi-current/bin/nifi.sh start (code=exited, status=0/SUCCESS)
  Process: 104914 ExecStartPre=/usr/bin/chown -R nifi /var/run/nifi (code=exited, status=0/SUCCESS)
  Process: 104911 ExecStartPre=/usr/bin/mkdir -p /var/run/nifi (code=exited, status=0/SUCCESS)
 Main PID: 2962458Dec 17 15:39:48 s3632tos systemd[1]: Starting Apache NiFi...
Dec 17 15:39:49 s3632tos nifi.sh[104916]: Java home: /appl/pkg/jdk1.8.0_211
Dec 17 15:39:49 s3632tos nifi.sh[104916]: NiFi home: /appl/nifi/nifi-1.15.1
Dec 17 15:39:49 s3632tos nifi.sh[104916]: Bootstrap Config File: /appl/nifi/nifi-1.15.1/conf/bootstrap.conf
Dec 17 15:39:52 s3632tos systemd[1]: Can't open PID file /var/run/nifi/nifi.pid (yet?) after start: No such file or directory
Dec 17 15:41:19 s3632tos systemd[1]: nifi.service start operation timed out. Terminating.
Dec 17 15:41:21 s3632tos systemd[1]: Failed to start Apache NiFi.
Dec 17 15:41:21 s3632tos systemd[1]: Unit nifi.service entered failed state.
Dec 17 15:41:21 s3632tos systemd[1]: nifi.service failed.
 {code}
 

There is missing something to start correctly NIFI ?

Thanks for you help



--
This message was sent by Atlassian Jira
(v8.20.1#820001)