Error in data flush background thread - Sonatype Nexus Repository - Sonatype Community
Error in data flush background thread
post by seb on Nov 25, 2020
Sebastian Nielsen
Recently Nexus was upgraded from 2.14.5 to 3.25.0.
After this upgrade we experience intermittent issues where we are unable to upload/download artifacts from the repositories. This presents itself as a generic error 500.
The logs indicate a file cannot be found/read such as
nexus3\db\component\asset.pcl
or
nexus3\db\component\asset_name_ci_idx.sbt
Restarting the Nexus service fixes the problem, though only temporarily.
Any help towards a more permanent fix is greatly appreciated.
The full log contains the following
2020-11-19 19:31:14,938+0100 ERROR [qtp1578666736-8898] *UNKNOWN com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - Exception `7B9F486D` in storage `plocal:E:/nexus/sonatype-work/nexus3/db/component`: 2.2.36 (build d3beb772c02098ceaea89779a7afd4b7305d3788, branch 2.2.x)
com.orientechnologies.orient.core.exception.OStorageException: Error in data flush background thread, please restart database and send full stack trace inside of bug report
DB name="component"
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.checkLowDiskSpaceRequestsAndReadOnlyConditions(OAbstractPaginatedStorage.java:5104)
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:182)
...
Caused by: java.io.FileNotFoundException: E:\nexus\sonatype-work\nexus3\db\component\asset_name_ci_idx.sbt (The process cannot access the file because it is being used by another process)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
...
post by rseddon on Nov 25, 2020
Rich Seddon
Caused by: java.io.FileNotFoundException: E:\nexus\sonatype-work\nexus3\db\component\asset_name_ci_idx.sbt (The process cannot access the file because it is being used by another process)
Some other process is holding file locks against database files. Is there a virus scanner on this system? If so, you should exclude the work directory from scanning.