# Migrate OrientDB to H2 with nexus-db-migrator-3.70.3-01.jar - How does migration finds the OrientDB?

**URL:** <https://community.sonatype.com/t/migrate-orientdb-to-h2-with-nexus-db-migrator-3-70-3-01-jar-how-does-migration-finds-the-orientdb/13816>\
**Category:** Sonatype Nexus Repository\
**Tags:** migrate\
**Created:** [November 7, 2024, 4:45pm UTC](https://community.sonatype.com/t/migrate-orientdb-to-h2-with-nexus-db-migrator-3-70-3-01-jar-how-does-migration-finds-the-orientdb/13816 "2024-11-07T16:45:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![montag](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@montag](https://community.sonatype.com/u/montag)\
**Post date:** [November 7, 2024, 4:45pm UTC](https://community.sonatype.com/t/migrate-orientdb-to-h2-with-nexus-db-migrator-3-70-3-01-jar-how-does-migration-finds-the-orientdb/13816/1 "2024-11-07T16:45:56Z")

</div>

Hello,  
we are using Nexus 3.70.3 OSS and I want to upgrade the OrientDB to H2 for upgrading to 3.74.0 OSS.

When running the migrator  
`java -jar nexus-db-migrator-3.70.3-01.jar --healthcheck`  
I get in the healthcheck log:

```auto
16:25:00 [main] ERROR c.s.n.d.m.tasklet.HealthCheckTasklet - Cannot open local storage '/home/nexus/component' with mode=rw
        DB name="component"
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/home/nexus/component' with mode=rw
        DB name="component"
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
...
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'component' because it does not exist in path: /home/nexus/component
        DB name="component"

```

which is not suprising to me, as we are running our Nexus with  
`-Dkaraf.data=/srv/nexus-data/nexus`

When I run  
`java -jar nexus-db-migrator-3.70.3-01.jar --healthcheck --migration_type=h2`  
the error change to

```auto
16:43:22 [main] INFO c.s.n.d.m.validator.PathValidator - Validating Orient directory contains .bak files: /home/nexus
16:43:22 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
16:43:22 [main] ERROR o.s.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Failed to execute ApplicationRunner
        at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:776)
        at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:763)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
        at com.sonatype.nexus.db.migrator.MigratorApplication.main(MigratorApplication.java:117)
Caused by: com.sonatype.nexus.db.migrator.exception.InvalidMigrationFilesException: The migration files in /home/nexus do not match the expected requirements: No backup files (*.bak) found.

```

How to tell the db-migrator that my db is located in /srv/nexus-data/nexus/db ?

Thanks in advance,  
Rainer

---

_[View the full topic](https://community.sonatype.com/t/migrate-orientdb-to-h2-with-nexus-db-migrator-3-70-3-01-jar-how-does-migration-finds-the-orientdb/13816)._
