Ben,

Thanks for following up and providing the configuration files.

The difference is subtle, but the property name of
nifi.flow.configuration.json.file needs to be changed to
nifi.flow.configuration.file, removing the json element from the property
name, and the leaving the value as it stands.

Regards,
David Handerman

On Wed, Nov 29, 2023, 11:51 PM Ben .T.George <bentech4...@gmail.com> wrote:

> Hi,
>
> I have tried disabling xml flow and still Nifi is not starting,
>
> here is the details:
> nifi-app.log : https://pastebin.com/TKtFDYtt
> nifi-bootstrap.log : https://pastebin.com/XrMcV3qs
>
> and my configuration:
> nifi.properties : https://pastebin.com/LeRMf9CS
>
> Regards
> Ben
>
>
>
> On Thu, Nov 30, 2023 at 8:28 AM Ben .T.George <bentech4...@gmail.com>
> wrote:
>
>> HI,
>>
>> Thanks for the update, I will try to do it in that way.
>>
>> regards,
>> Ben
>>
>> On Wed, Nov 29, 2023 at 6:31 PM David Handermann <
>> exceptionfact...@apache.org> wrote:
>>
>>> Ben,
>>>
>>> Thanks for summarizing the problem and providing the error log output.
>>>
>>> With the removal of the XML-based flow configuration in NiFi 2.0.0-M1,
>>> nifi.properties now needs to reference the JSON-based configuration.
>>>
>>> The nifi.flow.configuration.file property in nifi.properties should
>>> reference flow.json.gz instead of flow.xml.gz.
>>>
>>> At minimum, this looks like something we should improve in terms of
>>> error handling, or potentially make the upgrade more seamless.
>>>
>>> For the moment, I have updated the Migration Guidance page [1] to note
>>> the need to change the configuration property.
>>>
>>> If you run into any other upgrade issues, please pass along the details.
>>>
>>> Regards,
>>> David Handermann
>>>
>>> [1] https://cwiki.apache.org/confluence/display/NIFI/Migration+Guidance
>>>
>>> On Tue, Nov 28, 2023 at 4:12 AM Ben .T.George <bentech4...@gmail.com>
>>> wrote:
>>> >
>>> > HI,
>>> >
>>> > How can I upgrade from  1.24.0 to 2.0.0-M1.
>>> >
>>> > I did the same pedicure like i did before to upgrade to 1.24.0, which
>>> is not worked it seems and NiFi is not starting,
>>> >
>>> > from bootstrap logs:
>>> > 2023-11-28 12:59:32,762 INFO [NiFi Bootstrap Command Listener]
>>> org.apache.nifi.bootstrap.RunNiFi Apache NiFi now running and listening for
>>> Bootstrap requests on port 40771
>>> > 2023-11-28 12:59:45,273 ERROR [NiFi logging handler]
>>> org.apache.nifi.StdErr Failed to start web server: Error creating bean with
>>> name 'niFiWebApiConfiguration': BeanPostProcessor before instantiation of
>>> bean failed; nested exception is
>>> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>>> creating bean with name
>>> 'org.springframework.security.config.annotation.method.configuration.PrePostMethodSecurityConfiguration':
>>> Unsatisfied dependency expressed through constructor parameter 0; nested
>>> exception is
>>> org.springframework.beans.factory.UnsatisfiedDependencyException: Error
>>> creating bean with name
>>> 'org.apache.nifi.web.security.configuration.AuthenticationSecurityConfiguration':
>>> Unsatisfied dependency expressed through constructor parameter 2; nested
>>> exception is org.springframework.beans.factory.BeanCreationException: Error
>>> creating bean with name 'authorizer': FactoryBean threw exception on object
>>> creation; nested exception is
>>> org.apache.nifi.controller.serialization.FlowSerializationException: Could
>>> not parse flow as a VersionedDataflow
>>> > 2023-11-28 12:59:45,273 ERROR [NiFi logging handler]
>>> org.apache.nifi.StdErr Shutting down...
>>> > 2023-11-28 12:59:45,955 INFO [main] org.apache.nifi.bootstrap.RunNiFi
>>> NiFi never started. Will not restart NiFi
>>> >
>>> >
>>> > and app.log:
>>> > https://pastebin.com/R4dGaPmY
>>> >
>>> > Thanks & Regards,
>>> > Ben
>>> >
>>> >
>>>
>>
>>
>> --
>> Yours Sincerely
>> Ben.T.George
>>
>> *" Live like you will die tomorrow, learn like you will live forever "*
>>
>
>
> --
> Yours Sincerely
> Ben.T.George
>
> *" Live like you will die tomorrow, learn like you will live forever "*
>

Reply via email to