Skip to content

Instantly share code, notes, and snippets.

@micalbrecht
Forked from delfer/gist:00448d021945205c225c3e7657410d1f
Last active April 19, 2023 12:17
Show Gist options
  • Save micalbrecht/212d37865fbc24afc6d8b1aab621dea6 to your computer and use it in GitHub Desktop.
Save micalbrecht/212d37865fbc24afc6d8b1aab621dea6 to your computer and use it in GitHub Desktop.
Sonatype Nexus OrientDB
org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: PUT /repository/maven-snapshots
Cannot put key value entry in index
...
Caused by: java.lang.NullPointerException: null
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OIndexRIDContainerSBTree.<init>(OIndexRIDContainerSBTree.java:88)
docker-compose exec nexus /bin/bash

cd /tmp
java -Xmx5g -jar /opt/sonatype/nexus/lib/support/nexus-orient-console.jar

CONNECT PLOCAL:/nexus-data/db/component admin admin
REBUILD INDEX *
REPAIR DATABASE --fix-graph
REPAIR DATABASE --fix-links
REPAIR DATABASE --fix-ridbags
REPAIR DATABASE --fix-bonsai
DISCONNECT

docker-compose restart nexus
docker-compose logs -f

#Backup
backup database /nexus-data/db-component-backup.zip

#Restore
restore database /nexus-data/db-component-backup.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment