Julian Gimbel created NIFIREG-187:
-------------------------------------

             Summary: Add to Migration Guidance: Copy flow_storage directory
                 Key: NIFIREG-187
                 URL: https://issues.apache.org/jira/browse/NIFIREG-187
             Project: NiFi Registry
          Issue Type: Improvement
    Affects Versions: 0.2.0, 0.1.0
            Reporter: Julian Gimbel


When we tried to migrate H2 Database from 0.1.0 to 0.2.0 we got the problem 
that the nifi-registry-app.log showed that all our buckets flows and flow 
snapshots were successfully copied from legacy to new database.

However when we wanted to import or refresh the repository we could select the 
flows from the dropdown list, but got an error when we clicked on import.

The log showed the following:
{code:java}
2018-07-26 07:51:21,859 WARN [NiFi Registry Web Server-36] 
o.a.n.registry.service.RegistryService The specified flow id 
[d7d8ed4b-68e4-4d88-932c-486863a9f194] does not exist.
2018-07-26 07:51:21,860 INFO [NiFi Registry Web Server-36] 
o.a.n.r.w.m.ResourceNotFoundExceptionMapper 
org.apache.nifi.registry.exception.ResourceNotFoundException: The specified 
flow ID does not exist in this bucket.. Returning Not Found response.{code}
Only after we found this conversation in the [Upgrade Mailing List 
|http://apache-nifi-developer-list.39713.n7.nabble.com/Upgrading-NiFi-Registry-tp19098p19215.html]
 we figured out that we also need to copy HOME/flow_storage directory as the 
database only contains the metadata but the flow_storage contains the actual 
data.

It might help people if this peace of information would be added to the 
[migration 
guidance|https://cwiki.apache.org/confluence/display/NIFIREG/Migration+Guidance].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to