# Cannot load database configuration. The database seems corrupted

**URL:** <https://community.sonatype.com/t/cannot-load-database-configuration-the-database-seems-corrupted/10763>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, docker, nexus-repository, upgrade\
**Created:** [June 8, 2023, 3:29am UTC](https://community.sonatype.com/t/cannot-load-database-configuration-the-database-seems-corrupted/10763 "2023-06-08T03:29:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pranav](https://community.sonatype.com/u/pranav)\
**Post date:** [June 8, 2023, 3:29am UTC](https://community.sonatype.com/t/cannot-load-database-configuration-the-database-seems-corrupted/10763/1 "2023-06-08T03:29:20Z")

</div>

we have a containerized Nexus Repository ManagerOSS 3.48.0-0 which is running on centos 7 base image and our data’s are stored on mount which is totally 700+GB.

our client want to move nexus to dedicated server which Rocky Linux 8 , I have tried to migrate but when ever i tried to start the nexus service it is saying that

“Cannot load database configuration. The database seems corrupted”

all the data transfer was done to new machine using rsync

[rsync -avz --progress sonatype-work ip:/nexus]

I have followed below doc to migration process , can anybody help or suggestion to fix this issue

> **[Moving a Nexus Repository 3 Instance to a New Location](https://support.sonatype.com/hc/en-us/articles/360010352014-Moving-a-Nexus-Repository-3-Instance-to-a-New-Location?_ga=2.200801070.1210262952.1685871551-1055598635.1684382833)**
>
> .This article provides best practice and considerations for moving an existing Nexus Repository 3 self-hosted standalone server to a new server location under these conditions:
> Standalone Repositor...

nex

 ![Screenshot 2023-06-08 084715](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/c/c8ab9f703c81bbc9ad558b7164cf8040a364acdb.png)

```auto
2023-06-08 03:11:19,188+0000 ERROR [ForkJoinPool.commonPool-worker-2] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `7BB1F7DC` in storage `plocal:/nexus/sonatype-work/nexus3/db/security`: 2.2.37 (build a7541e7ceeabf592dd9a7b2928b6c023cbc73193, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/nexus/sonatype-work/nexus3/db/security' with mode=rw
        DB name="security"
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259)
        at org.sonatype.nexus.orient.DatabaseManagerSupport.connect(DatabaseManagerSupport.java:178)
        at org.sonatype.nexus.orient.DatabaseManagerSupport.createInstance(DatabaseManagerSupport.java:312)
        at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
        at org.sonatype.nexus.orient.DatabaseManagerSupport.instance(DatabaseManagerSupport.java:289)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
        at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
        at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
Caused by: com.orientechnologies.orient.core.exception.OSerializationException: Cannot load database configuration. The database seems corrupted
        DB name="security"
        at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:169)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:267)
        ... 14 common frames omitted
Caused by: java.io.EOFException: null
        at java.io.RandomAccessFile.readFully(RandomAccessFile.java:438)
        at java.io.RandomAccessFile.readFully(RandomAccessFile.java:416)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.readData(OStorageConfigurationSegment.java:287)
        at com.orientechnologies.orient.core.storage.impl.local.OStorageConfigurationSegment.load(OStorageConfigurationSegment.java:135)

```

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [June 8, 2023, 1:23pm UTC](https://community.sonatype.com/t/cannot-load-database-configuration-the-database-seems-corrupted/10763/2 "2023-06-08T13:23:43Z")

</div>

If the server was running while copying data that can result in a corrupted database.

---

<div class="post-metadata">

**Author:** ![pranav](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pranav](https://community.sonatype.com/u/pranav)\
**Post date:** [June 8, 2023, 1:54pm UTC](https://community.sonatype.com/t/cannot-load-database-configuration-the-database-seems-corrupted/10763/3 "2023-06-08T13:54:42Z")

</div>

@mpiggott thank you for the response , actually i have copied files when the nexus container was not running. can we try to backup from nexus UI and restore it to destination will that works?  
as per this document .

[https://help.sonatype.com/repomanager3/planning-your-implementation/backup-and-restore](https://help.sonatype.com/repomanager3/planning-your-implementation/backup-and-restore)
