Wednesday, May 26, 2021

Troubleshooting Nexus OSS

  

DB issue after running cleanup script 

I ran the following cleanup script on a nexus instance 

having around 80% consumed space on 300GB partition. 

The nexus instance is running in docker. 


Upon tailing the logs, I see the following errors. 
 

*SYSTEM ROOT - Exception `540DE086` in storage `plocal:/nexus-data/db/component`: 2.2.31 (build 285537d2767275f460df32c6a3be01bfff6a517c, branch 2.2.x) 

com.orientechnologies.orient.core.exception.OStorageException: Error during transaction rollback 

  [...] 

Caused by: java.io.FileNotFoundException: /nexus-data/db/component/component.10.wal (Permission denied) 

 

Here are the steps I did that solved the issue. 

 

1. stop nexus: # docker stop nexus 

2. chown 200:200 /var/lib/docker/volumes/nexus-data/_data/db/component/component.10.wal 

3. start nexus: # docker start nexus 

 

Package not found in proxy 

Things to check 

--------------- 

 

  • check if proxy can connect to remote via 8081/tcp 

  • check if there are network errors between the instances 

  • try unchecking "Cache responses for content not present in the proxied repository" and force download the package from the proxy 

 

Nexus data locking - MIGRATED 

Problem 

------- 

 

Nexus data directory already in use: /nexus-data 

 

This happened on nexus running in k8s. Node maintenance needs the 

nodes to be drained and rebooted one by one. Once all are up, 

nexus statefulset pod failed to start spitting the message above. 

 

Solution 

-------- 

 

Delete lock and tempfiles: 

 

rm -f nexus-data/lock 

rm -fr nexus-data/tmp/* 

 

That is safe to do and no data will be lost. 

 

No comments:

Post a Comment