Created 12-16-2017 07:00 AM
nifi-bootstrap.log 2017-12-16 06:29:38,004 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:38,065 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:38,162 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:38,175 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:38,482 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:38,500 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:38,779 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:38,801 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:39,925 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:39,943 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:40,576 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :2061:17: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{processGroup, remoteProcessGroup, connection, controllerService}' is expected. 2017-12-16 06:29:40,588 ERROR [NiFi logging handler] org.apache.nifi.StdErr [Error] :8129:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'template'. One of '{connection, controllerService}' is expected. 2017-12-16 06:29:44,728 ERROR [NiFi logging handler] org.apache.nifi.StdErr Failed to start web server: Unable to start Flow Controller. 2017-12-16 06:29:44,729 ERROR [NiFi logging handler] org.apache.nifi.StdErr Shutting down... 2017-12-16 06:29:45,653 INFO [main] org.apache.nifi.bootstrap.RunNiFi NiFi never started. Will not restart NiFi nifi-app.log 2017-12-16 06:29:44,836 INFO [Thread-1] o.a.n.w.c.ApplicationStartupContextListener Initiating shutdown of flow service... 2017-12-16 06:29:44,837 INFO [Thread-1] o.a.n.w.c.ApplicationStartupContextListener Flow service termination completed. 2017-12-16 06:29:44,837 INFO [Thread-1] /nifi-api Closing Spring root WebApplicationContext 2017-12-16 06:29:45,075 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@3ed2a30c{/nifi-api,null,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-web-api-1.1.1.war} 2017-12-16 06:29:45,230 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@526e8108{/nifi,null,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-web-ui-1.1.1.war} 2017-12-16 06:29:45,243 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@413bef78{/nifi-jolt-transform-json-ui-1.1.1,null,UNAVAILABLE}{./work/nar/extensions/nifi-standard-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-jolt-transform-json-ui-1.1.1.war} 2017-12-16 06:29:45,247 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@4ed15347{/nifi-image-viewer-1.1.1,null,UNAVAILABLE}{./work/nar/extensions/nifi-media-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-image-viewer-1.1.1.war} 2017-12-16 06:29:45,253 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@20ead579{/nifi-update-attribute-ui-1.1.1,null,UNAVAILABLE}{./work/nar/extensions/nifi-update-attribute-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-update-attribute-ui-1.1.1.war} 2017-12-16 06:29:45,257 INFO [Thread-1] o.e.jetty.server.handler.ContextHandler Stopped o.e.j.w.WebAppContext@33eb6758{/nifi-standard-content-viewer-1.1.1,null,UNAVAILABLE}{./work/nar/extensions/nifi-standard-nar-1.1.1.nar-unpacked/META-INF/bundled-dependencies/nifi-standard-content-viewer-1.1.1.war} 2017-12-16 06:29:45,259 INFO [Thread-1] org.apache.nifi.NiFi Jetty web server shutdown completed (nicely or otherwise).
Created 12-16-2017 07:05 AM
@Matt Burgess @Timothy Spann please give some suggestion..
Created 12-16-2017 04:14 PM
It looks like the flow.xml is not in the right format. Did you copy it from an older version of NiFi into a newer version of NiFi? Also if you don't mind starting with a blank canvas, you can delete or move your conf/flow.xml.gz and then start NiFi. You might also attach your flow.xml.gz (or gunzipped flow.xml) to this question so we can have a look. Take care to make sure there is no sensitive information in it first (hostnames, IPs, etc.) since this is a public forum.
Created 12-18-2017 12:20 PM
i change that flow.xml.gz from an older version,i also remove that flow.xml.gz.but still my nifi wont start.
Created 12-18-2017 01:02 PM
do you have any weird configuration settings? anyting blocking the port? what is the message on failed restart?
firewall? out of RAM? ps -ef to make sure dead process is not hanging
Created 12-31-2017 12:26 AM
Did the issue is solved? If you have multiple nifi nodes in a cluster, you need to remove flow.xml.gz in all nodes before restarting them. If that also didn't help, as Matt mentioned, please attach flow.xml.gz.