sonatype / docker-nexus

Docker image for Sonatype Nexus
Other
384 stars 201 forks source link

java.io.IOException: No space left on device #43

Open bitbytemaster opened 8 years ago

bitbytemaster commented 8 years ago

With mounted volume from host, it shows "java.io.IOException: No space left on device" error when running indexing to sync the remote index with local one.

The problem is that I have more than enough disk on the mounted volume while nexus running from inside the docker container does not think so.

pls help...

DarthHater commented 8 years ago

Hi there, we tried to replicate this internally and we were unsuccessful. Mind sharing your exact steps to reproduce?

crnlmchina commented 6 years ago

I also met the problem, the full stack trace below

2018-04-08 08:17:02,218+0000 WARN  [pxpool-1-thread-1] admin org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task Internal
java.io.IOException: No space left on device
        at java.io.RandomAccessFile.writeBytes(Native Method)
        at java.io.RandomAccessFile.write(RandomAccessFile.java:525)
        at org.apache.lucene.store.FSDirectory$FSIndexOutput.flushBuffer(FSDirectory.java:448)
        at org.apache.lucene.store.BufferedIndexOutput.flushBuffer(BufferedIndexOutput.java:99)
        at org.apache.lucene.store.BufferedIndexOutput.flush(BufferedIndexOutput.java:88)
        at org.apache.lucene.store.BufferedIndexOutput.writeBytes(BufferedIndexOutput.java:77)
        at org.apache.lucene.store.DataOutput.writeBytes(DataOutput.java:43)
        at org.apache.lucene.store.RAMOutputStream.writeTo(RAMOutputStream.java:65)
        at org.apache.lucene.index.FieldsWriter.flushDocument(FieldsWriter.java:116)
        at org.apache.lucene.index.StoredFieldsWriter.finishDocument(StoredFieldsWriter.java:112)
        at org.apache.lucene.index.StoredFieldsWriter$PerDoc.finish(StoredFieldsWriter.java:151)
        at org.apache.lucene.index.DocumentsWriter$WaitQueue.writeDocument(DocumentsWriter.java:1404)
        at org.apache.lucene.index.DocumentsWriter$WaitQueue.add(DocumentsWriter.java:1424)
        at org.apache.lucene.index.DocumentsWriter.finishDocument(DocumentsWriter.java:1043)
        at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:772)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2060)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2034)
        at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:92)
        at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:515)
        at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:203)
        at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76)
        at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:648)
        at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:877)
        at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)
        at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1291)
        at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:188)
        at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1060)
        at org.sonatype.nexus.index.DefaultIndexerManager.temporary(DefaultIndexerManager.java:2358)
        at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:1022)
        at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:961)
        at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:938)
        at org.sonatype.nexus.index.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:61)
        at org.sonatype.nexus.index.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:68)
        at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:163)
        at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:418)
        at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:44)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

while I still have enough disk space

Filesystem      1K-blocks     Used  Available Use% Mounted on
/dev/sda2        51474912 21032432   27804656  44% /
devtmpfs         20468580        0   20468580   0% /dev
tmpfs            20478140        0   20478140   0% /dev/shm
tmpfs            20478140   107776   20370364   1% /run
tmpfs            20478140        0   20478140   0% /sys/fs/cgroup
/dev/sda1          194235   134314      45585  75% /boot
/dev/sda4      1849221436 10356120 1744906816   1% /data
kylegoetz commented 3 years ago

If it helps anyone, I had this problem and increased the amount of disk space given to Docker and restarted docker and then restarted my containers and the problem went away.