Upgrading from 1.13 to 1.19 and fallback
Hi there, any support would be much appreciated. First things first, here is our setup. We are running nifi on aws ec2 in a docker container. It's a two node cluster setup. We are planning to do an in place upgrade by upgrading the docker container and changing the nifi.properties parameters needed to get 1.19 running.
- changing the port number to 8443
- using https instead of http
- setting the sensitive properties, was empty in 1.13
- we are using the web.proxy.host with 3 entries, the hostname of the 2 nodes and the clustername
- we are running anonymously, without ldap. We'll set this up later.
We made a backup of the flow.xml.gz file and deleted the original. We are planning to use the nifi-registry to import our flow on the clean canvas.
So this works great! We have succesfully upgraded to 1.19. Now what we're trying to figure out is our fallback plan, just in case upgrading doesn't work in the production environment.
When reverting all the changes above and deleting the flow.xml.gz, we restart nifi. The 1.13 image is loaded, but keep on getting this error in our logs, which results in not getting nifi started.
{"@timestamp":"2023-04-03T09:46:29.153Z","@version":"1","message":"Failed to start web server: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Unsatisfied dependency expressed through method 'setFilterChainProxySecurityConfigurer' parameter 1; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.NiFiWebApiSecurityConfiguration': Unsatisfied dependency expressed through method 'setJwtAuthenticationProvider' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jwtAuthenticationProvider' defined in class path resource [nifi-web-security-context.xml]: Cannot resolve reference to bean 'idpUserGroupService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idpUserGroupService' defined in class path resource [nifi-administration-context.xml]: Cannot resolve reference to bean 'idpTransactionBuilder' while setting bean property 'transactionBuilder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idpTransactionBuilder' defined in class path resource [nifi-administration-context.xml]: Cannot resolve reference to bean 'idpDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'idpDataSource': FactoryBean threw exception on object creation; nested exception is org.h2.jdbc.JdbcSQLNonTransientConnectionException: File corrupted while reading record: null. Possible solution: use the recovery tool [90030-199]","logger_name":"org.apache.nifi.StdErr","thread_name":"NiFi logging handler","level":"ERROR","level_value":40000,"role":"nifi","hostname":"i-0406687dc7f729e5a.xxx.xxx.prod.xxx.xxx"}
Looks like the messages has something to do with authentication, which we weren't using in 1.13.
Any Idea's?

