Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bitbytemaster opened this issue Nov 3, 2016 · 3 comments
Open

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

bitbytemaster opened this issue Nov 3, 2016 · 3 comments

Comments

@bitbytemaster
Copy link

bitbytemaster commented Nov 3, 2016

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
Copy link
Member

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

@crnlmchina
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants