Ashraf,

Glad to hear it fixed it. I have an existing Jira [1] filed which would include 
strengthening the default sensitive key algorithm, but would also require 
creating a tool to seamlessly upgrade the encrypted values from the previous 
algorithm. This tool could also support migrating values encrypted with a 
different key when it is changed. I’m not sure it will go in 1.0 because of the 
amount of work remaining, but I will update the ticket with this note.

[1] https://issues.apache.org/jira/browse/NIFI-1465 
<https://issues.apache.org/jira/browse/NIFI-1465>

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

> On Jul 14, 2016, at 11:21 AM, Ashraf Hasson <ahas...@windmobile.ca> wrote:
> 
> Andy,
> 
> Thanks for your reply. I think I must have changed the file at an earlier 
> stage indeed. Reverted the nifi.sensitive.props.key to an empty string and it 
> came back up.
> 
> Thanks,
> From: Andy LoPresto <alopre...@apache.org>
> Sent: July 13, 2016 4:42:15 PM
> To: users@nifi.apache.org
> Subject: Re: Nifi startup fails with EncryptionOperationNotPossibleException
> 
> Ashraf,
> 
> Were the configuration values changed after the process shutdown? The error 
> looks like Jetty cannot start because it cannot decrypt some value from the 
> flow controller serialization (the flow.xml.gz file in $NIFI_HOME/conf/). 
> This could be the proxy password, or a sensitive processor property like a 
> key or password (specifically from your stacktrace, it does appear to be a 
> processor property). Did the flow document change at all? Did you change the 
> “nifi.sensitive.props.key” value in nifi.properties?
> 
> 
> Andy LoPresto
> alopre...@apache.org <mailto:alopre...@apache.org>
> alopresto.apa...@gmail.com <mailto:alopresto.apa...@gmail.com>
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69
> 
>> On Jul 13, 2016, at 4:14 PM, Ashraf Hasson <ahas...@windmobile.ca 
>> <mailto:ahas...@windmobile.ca>> wrote:
>> 
>> Hi there,
>> 
>> I'm encountering the following error when trying to start Nifi, it's giving 
>> me this error after Nifi was killed abruptly due to CPU load issue. I can no 
>> longer start Nifi and not sure why that happened. Would appreciate any help 
>> please. Below are some logs:
>> 
>> Thanks in advance ..
>> 
>> 2016-07-13 16:06:55,684 WARN [main] org.apache.nifi.web.server.JettyServer 
>> Failed to start web server... shutting down.
>> org.apache.nifi.encrypt.EncryptionException: 
>> org.jasypt.exceptions.EncryptionOperationNotPossibleException
>>     at 
>> org.apache.nifi.encrypt.StringEncryptor.decrypt(StringEncryptor.java:144) 
>> ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.decrypt(FlowFromDOMFactory.java:453)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.getProperties(FlowFromDOMFactory.java:390)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.getProcessor(FlowFromDOMFactory.java:372)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.getProcessGroup(FlowFromDOMFactory.java:147)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.getProcessGroup(FlowFromDOMFactory.java:172)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowFromDOMFactory.getProcessGroup(FlowFromDOMFactory.java:172)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:192)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1287)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.persistence.StandardXMLFlowConfigurationDAO.load(StandardXMLFlowConfigurationDAO.java:72)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:629)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:479)
>>  ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     at 
>> org.apache.nifi.web.contextlistener.ApplicationStartupContextListener.contextInitialized(ApplicationStartupContextListener.java:79)
>>  ~[na:na]
>>     at 
>> org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800)
>>  ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:444)
>>  ~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:791)
>>  ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:294)
>>  ~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349) 
>> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342) 
>> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
>>  ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505) 
>> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
>>  ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at org.eclipse.jetty.server.Server.start(Server.java:387) 
>> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
>>  ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at org.eclipse.jetty.server.Server.doStart(Server.java:354) 
>> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at 
>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
>>  ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>>     at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:662) 
>> ~[nifi-jetty-0.6.0.jar:0.6.0]
>>     at org.apache.nifi.NiFi.<init>(NiFi.java:137) 
>> [nifi-runtime-0.6.0.jar:0.6.0]
>>     at org.apache.nifi.NiFi.main(NiFi.java:227) 
>> [nifi-runtime-0.6.0.jar:0.6.0]
>> Caused by: org.jasypt.exceptions.EncryptionOperationNotPossibleException: 
>> null
>>     at 
>> org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decrypt(StandardPBEByteEncryptor.java:1055)
>>  ~[jasypt-1.9.2.jar:na]
>>     at 
>> org.jasypt.encryption.pbe.StandardPBEStringEncryptor.decrypt(StandardPBEStringEncryptor.java:725)
>>  ~[jasypt-1.9.2.jar:na]
>>     at 
>> org.apache.nifi.encrypt.StringEncryptor.decrypt(StringEncryptor.java:142) 
>> ~[nifi-framework-core-0.6.0.jar:0.6.0]
>>     ... 34 common frames omitted
>> 2016-07-13 16:06:55,685 INFO [Thread-1] org.apache.nifi.NiFi Initiating 
>> shutdown of Jetty web server...
>> 2016-07-13 16:06:55,688 INFO [Thread-1] 
>> org.eclipse.jetty.server.ServerConnector Stopped 
>> ServerConnector@38e052b2{SSL-http/1.1}{nifi.nqint.example.ca 
>> <http://nifi.nqint.example.ca/>:8888}
>> 2016-07-13 16:06:55,695 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@4add4dff{/,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-web-error-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-error-0.6.0.war}
>> 2016-07-13 16:06:55,697 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@4a10c019{/nifi-docs,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-web-docs-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-docs-0.6.0.war}
>> 2016-07-13 16:06:55,698 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.s.h.ContextHandler@21d48c40{/nifi-docs,null,UNAVAILABLE}
>> 2016-07-13 16:06:55,698 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@71135794{/nifi-content-viewer,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-web-content-viewer-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-content-viewer-0.6.0.war}
>> 2016-07-13 16:06:55,701 INFO [Thread-1] 
>> o.a.n.w.c.ApplicationStartupContextListener Initiating shutdown of flow 
>> service...
>> 2016-07-13 16:06:55,702 INFO [Thread-1] 
>> o.apache.nifi.controller.FlowController Initiated graceful shutdown of flow 
>> controller...waiting up to 10 seconds
>> 2016-07-13 16:06:55,735 INFO [Thread-1] 
>> o.apache.nifi.controller.FlowController Controller has been terminated 
>> successfully.
>> 2016-07-13 16:06:55,739 INFO [Thread-1] 
>> o.a.n.w.c.ApplicationStartupContextListener Flow service termination 
>> completed.
>> 2016-07-13 16:06:55,739 INFO [Thread-1] /nifi-api Closing Spring root 
>> WebApplicationContext
>> 2016-07-13 16:06:56,542 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@fdf029a{/nifi-api,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-web-api-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-api-0.6.0.war}
>> 2016-07-13 16:06:56,563 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@64524dd{/nifi,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-web-ui-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/framework/nifi-framework-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-web-ui-0.6.0.war}
>> 2016-07-13 16:06:56,586 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@3964d79{/nifi-update-attribute-ui-0.6.0,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-update-attribute-ui-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/extensions/nifi-update-attribute-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-update-attribute-ui-0.6.0.war}
>> 2016-07-13 16:06:56,589 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@5c60b0a0{/nifi-standard-content-viewer-0.6.0,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-standard-content-viewer-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/extensions/nifi-standard-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-standard-content-viewer-0.6.0.war}
>> 2016-07-13 16:06:56,591 INFO [Thread-1] 
>> o.e.jetty.server.handler.ContextHandler Stopped 
>> o.e.j.w.WebAppContext@6dfcffb5{/nifi-image-viewer-0.6.0,file:/home/qosadmin/nifi-0.6.0/work/jetty/nifi-image-viewer-0.6.0.war/webapp/,UNAVAILABLE}{./work/nar/extensions/nifi-image-nar-0.6.0.nar-unpacked/META-INF/bundled-dependencies/nifi-image-viewer-0.6.0.war}
>> 2016-07-13 16:06:56,593 INFO [Thread-1] org.apache.nifi.NiFi Jetty web 
>> server shutdown completed (nicely or otherwise).

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to