# Set Nexus repo with H2 database read-only

**URL:** https://community.sonatype.com/t/set-nexus-repo-with-h2-database-read-only/13934
**Category:** Sonatype Nexus Repository
**Created:** [November 26, 2024, 2:24pm UTC](https://community.sonatype.com/t/set-nexus-repo-with-h2-database-read-only/13934 "2024-11-26T14:24:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![know-center](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@know-center](https://community.sonatype.com/u/know-center)
#### Post date: [November 26, 2024, 2:24pm UTC](https://community.sonatype.com/t/set-nexus-repo-with-h2-database-read-only/13934/1 "2024-11-26T14:24:03Z")

</div>

The newest Nexus version 3.74 offers via API the read-only mode, but as the description suggests just for the old OrientDB.

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/0/0c5e2a5cd9a7e1fd9144bce0f8bb5a657facba1e.png)

Ist it possible to set a Nexus repo instance completely to **read only**?  
Background is, that our H2 database corrupts now all the time and we want to at least set it to read-only mode if that is achievable.

---

<div class="post-metadata">

### Author: ![mprescott](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mprescott/32/178_2.png) [@mprescott](https://community.sonatype.com/u/mprescott)
#### Post date: [November 26, 2024, 9:38pm UTC](https://community.sonatype.com/t/set-nexus-repo-with-h2-database-read-only/13934/2 "2024-11-26T21:38:09Z")

</div>

There isn’t a read-only mode for H2 at the moment. Are you looking to prevent further corruption while you debug, is that why you want a read-only mode?

---

<div class="post-metadata">

### Author: ![know-center](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@know-center](https://community.sonatype.com/u/know-center)
#### Post date: [November 27, 2024, 8:34am UTC](https://community.sonatype.com/t/set-nexus-repo-with-h2-database-read-only/13934/3 "2024-11-27T08:34:29Z")

</div>

Yes, if possible we want to the user to be able to pull.

The database corruption started around 3 weeks ago and until now we cannot prevent the database being corrupted after some hours of Nexus running.

A new instance is set up in parallel.
