Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • efoss
    Member
    • Jul 2011
    • 98

    AddOrReplaceReadGroups error (that is probably a more general system or Java error)

    In running Picard Tools' AddOrReplaceReadGroups, I got an error that included the following:

    Code:
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.IOException: No space left on device
    This sounds like I have run out of disk space, but I haven't. My command was the following:

    Code:
    java -d64 -Xmx25g -jar /home/efoss/source_codes/picard-tools-1.82/AddOrReplaceReadGroups.jar \
    	INPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT.sam \
    	OUTPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT_AORRGaddedsorted.sam \
    	SORT_ORDER=coordinate \
    	RGID=RGID_PAERAH_73407 \
    	RGLB=PAERAH_73407_library \
    	RGPL=Illumina \
    	RGPU=run_barcode_arbitrary \
    	RGSM=AML_PAERAH_73407_RNAseq \
    	RGCN=FHCRC \
    	RGDS=AML_PAERAH_73407_RNAseq \
    	RGDT=2012-12-22
    I found some threads discussing these problems, but couldn't find a solution there. Can anyone suggest a solution? The full error message is pasted below.

    Thank you.

    Eric


    Code:
    [efoss@gizmod64:~/sequencing/MAE_in_AML$ java -d64 -Xmx25g -jar /home/efoss/source_codes/picard-tools-1.82/AddOrReplaceReadGroups.jar \
    >         INPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT.sam \
    >         OUTPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT_AORRGaddedsorted.sam \
    >         SORT_ORDER=coordinate \
    >         RGID=RGID_PAERAH_73407 \
    >         RGLB=PAERAH_73407_library \
    >         RGPL=Illumina \
    >         RGPU=run_barcode_arbitrary \
    >         RGSM=AML_PAERAH_73407_RNAseq \
    >         RGCN=FHCRC \
    >         RGDS=AML_PAERAH_73407_RNAseq \
    >         RGDT=2012-12-22
    [Mon Dec 24 12:29:53 PST 2012] net.sf.picard.sam.AddOrReplaceReadGroups INPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT.sam OUTPUT=AML_PAERAH_73407_RNA_partialperlclean_noMT_AORRGaddedsorted.sam SORT_ORDER=coordinate RGID=RGID_PAERAH_73407 RGLB=PAERAH_73407_library RGPL=Illumina RGPU=run_barcode_arbitrary RGSM=AML_PAERAH_73407_RNAseq RGCN=FHCRC RGDS=AML_PAERAH_73407_RNAseq RGDT=2012-12-21T16:00:00-0800    VERBOSITY=INFO QUIET=false VALIDATION_STRINGENCY=STRICT COMPRESSION_LEVEL=5 MAX_RECORDS_IN_RAM=500000 CREATE_INDEX=false CREATE_MD5_FILE=false
    [Mon Dec 24 12:29:53 PST 2012] Executing as efoss@gizmod64 on Linux 3.2.0-24-generic amd64; OpenJDK 64-Bit Server VM 1.6.0_24-b24; Picard version: 1.82(1311)
    INFO    2012-12-24 12:29:53     AddOrReplaceReadGroups  Created read group ID=RGID_PAERAH_73407 PL=Illumina LB=PAERAH_73407_library SM=AML_PAERAH_73407_RNAseq
    
    [Mon Dec 24 12:30:01 PST 2012] net.sf.picard.sam.AddOrReplaceReadGroups done. Elapsed time: 0.13 minutes.
    Runtime.totalMemory()=1910898688
    FAQ:  [url]http://sourceforge.net/apps/mediawiki/picard/index.php?title=Main_Page[/url]
    Exception in thread "main" net.sf.samtools.util.RuntimeIOException: java.io.IOException: No space left on device
            at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:228)
            at net.sf.samtools.util.SortingCollection.add(SortingCollection.java:150)
            at net.sf.samtools.SAMFileWriterImpl.addAlignment(SAMFileWriterImpl.java:170)
            at net.sf.picard.sam.AddOrReplaceReadGroups.doWork(AddOrReplaceReadGroups.java:100)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:177)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMainWithExit(CommandLineProgram.java:119)
            at net.sf.picard.sam.AddOrReplaceReadGroups.main(AddOrReplaceReadGroups.java:66)
    Caused by: java.io.IOException: No space left on device
            at java.io.FileOutputStream.write(Native Method)
            at org.xerial.snappy.SnappyOutputStream.writeInt(SnappyOutputStream.java:105)
            at org.xerial.snappy.SnappyOutputStream.dump(SnappyOutputStream.java:126)
            at org.xerial.snappy.SnappyOutputStream.flush(SnappyOutputStream.java:100)
            at org.xerial.snappy.SnappyOutputStream.close(SnappyOutputStream.java:137)
            at net.sf.samtools.util.SortingCollection.spillToDisk(SortingCollection.java:219)
            ... 6 more
    efoss@gizmod64:~/sequencing/MAE_in_AML$
  • aaronh
    Member
    • Sep 2008
    • 46

    #2
    I've had issues when sorting if my tmp space fills up. Did you try specifying the tmp dir?

    Comment

    • efoss
      Member
      • Jul 2011
      • 98

      #3
      Originally posted by aaronh View Post
      I've had issues when sorting if my tmp space fills up. Did you try specifying the tmp dir?
      Hi aaronh,

      I'm afraid I don't know what the tmp dir is. Googling around, it looks like it's a temporary directory used for 'scratch' space. How can I specify it?

      Since posting this, I ended up finding these two links.

      Hudson is repeatedly failing after building few projects with following stack trace with error "No space left on device", though there is enough space on disk. There are no limits of quotas on any ...




      I couldn't get the solution in the second link to work, but what I read here suggested that there was not a lack of disk space, as one might think from the error message, but instead a shortage of 'i-nodes' (don't know anything about those either). That suggested to me that using a more powerful system might fix things. I was running my commands on 12 cores with 48 gigs of ram. I switched to a more powerful linux server and then everything worked fine. So that's good, but I still would like to understand what is going on here. Also, use of the more powerful server for tasks that can take a long time (> 20 minutes) is discouraged, so my solution to use it is suboptimal.

      Thanks.

      Eric

      Comment

      • aaronh
        Member
        • Sep 2008
        • 46

        #4
        Try using java -Djava.io.tmpdir=/path/to/tmpdir -jar Add...
        I've used the TMP environment variable to control things like where gcc writes it's temporary files, but I can't seem to find an equivalent for java's createTempFile API. Does such an environment

        Some linux servers have a dedicated tmp partition that can fill up with all the little files that the sorting creates before merging. You can see if your server has this by using the 'df' command and also see where you default tmp space is by using the 'env' command.

        Comment

        • efoss
          Member
          • Jul 2011
          • 98

          #5
          Hi aaronh,

          Thanks very much for the help. I really appreciate it.

          Best wishes,

          Eric

          Comment

          Latest Articles

          Collapse

          • mylaser
            Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by mylaser
            Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
            If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
            This guide explains everything you need to know about...
            Today, 01:13 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-09-2026, 10:04 AM
          0 responses
          11 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-08-2026, 10:08 AM
          0 responses
          9 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-07-2026, 11:05 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Working...