# OPageIsBrokenException Causing DB to Switch into Read Only Mode

**URL:** <https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980>\
**Category:** Sonatype Nexus Repository\
**Created:** [July 22, 2021, 8:03am UTC](https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980 "2021-07-22T08:03:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![airycanon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/airycanon/32/1953_2.png) [@airycanon](https://community.sonatype.com/u/airycanon)\
**Post date:** [July 22, 2021, 8:03am UTC](https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980/1 "2021-07-22T08:03:10Z")

</div>

Hi, I met the following db error frequently when using nexus 3.29

```auto
021-07-22 07:07:02,519+0000 WARN [qtp32805236-1684] *UNKNOWN org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/golang/gomod.alauda.cn/asm-operatorlib/@v/v0.0.2.zip
com.orientechnologies.orient.core.exception.OPageIsBrokenException: Following files and pages are detected to be broken ['asset_name_ci_idx.sbt' :41;], storage is switched to 'read only' mode. Any modification operations are prohibited. To restore database and make it fully operational you may export and import database to and from JSON.
        DB name="component"
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.checkLowDiskSpaceRequestsAndReadOnlyConditions(OAbstractPaginatedStorage.java:5144)
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:1729)
        at com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:541)
        at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:99)
        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2908)
        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2870)
        at org.sonatype.nexus.repository.storage.StorageTxImpl.commit(StorageTxImpl.java:195)
        at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

```

There is alao a orientdb issue here [DB going to “Read Only Mode” · Issue #8031 · orientechnologies/orientdb (github.com)](https://github.com/orientechnologies/orientdb/issues/8031)  
Can i upgrade the orientdb to version 3.x to fix it? Thanks for any help.

---

<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:** [July 22, 2021, 5:24pm UTC](https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980/2 "2021-07-22T17:24:51Z")

</div>

No, its not possible to use other versions of Orient with Nexus, further I doubt that OrientDB issue is related to what you’re encountering.

You’ve encountered some sort of database corruption that you’ll need to repair, the error message gives a suggestion what to do.

---

<div class="post-metadata">

**Author:** ![airycanon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/airycanon/32/1953_2.png) [@airycanon](https://community.sonatype.com/u/airycanon)\
**Post date:** [July 23, 2021, 1:37am UTC](https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980/3 "2021-07-23T01:37:16Z")

</div>

Thanks for your reply, I have repaired the database manually, but it happens so frequently that I can not use it in production, do you a suggestion what should I do next?

---

<div class="post-metadata">

**Author:** ![martin.blaschke](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@martin.blaschke](https://community.sonatype.com/u/martin.blaschke)\
**Post date:** [August 29, 2023, 8:47pm UTC](https://community.sonatype.com/t/opageisbrokenexception-causing-db-to-switch-into-read-only-mode/6980/4 "2023-08-29T20:47:40Z")

</div>

@airycanon As we are facing the same or at least a similar issue, could you please let me know what you did to manually fix the DB?

Thanks in advance for your help!

Martin
