Solution: check that you have permission to write this file

41 views
Skip to first unread message

Jack Yen

unread,
Jan 23, 2018, 3:26:07 PM1/23/18
to rna-star
Hi,

I keep getting this error message that I couldn't figure out why. I tried run it as root but still the same. 

any suggestion would be very helpful. Thanks 


this is my command 
"STAR --runThreadN 20 --genomeDir /home/lee/reference/hg19/starindex --outFileNamePrefix /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/pipeline_output/CTL1_S1_ --outSAMattrRGline ID:1 "SM:CTL1_S1_" --outSAMattributes NH NM MD --outSAMtype BAM SortedByCoordinate --outSAMunmapped Within --outSAMmapqUnique 50 --readFilesCommand zcat --readFilesIn /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/sample1_p1.fastq.gz /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/sample1_p2.fastq.gz --sjdbGTFfile "/media/fs02/reference/hg19/annotation/genes.gtf" --outFilterType BySJout --outSJfilterCountUniqueMin -1 2 2 2 --outSJfilterCountTotalMin -1 2 2 2 --outFilterIntronMotifs RemoveNoncanonical --twopassMode Basic
"


this is the error
EXITING because of FATAL ERROR: could not create output file /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/pipeline_output/CTL1_S1__STARtmp//FilterBySJoutFiles.mate1.thread0
Solution: check that you have permission to write this file

Jan 23 15:20:34 ...... FATAL ERROR, exiting

Alexander Dobin

unread,
Jan 24, 2018, 11:23:00 AM1/24/18
to rna-star
Hi Jack,

please try to increase the number of allowed open files
$ ulimit -n 10000

Cheers
Alex

Jack Yen

unread,
Jan 31, 2018, 10:02:18 AM1/31/18
to rna-star
Thanks Alex, I tried that. still got the same error. Please see my attached log...thanks

WARNING: long repeat for junction # 408931 : chr16 21414159 21414284; left shift = 4; right shift = 255
Jan 30 17:14:17   Finished preparing junctions
Jan 30 17:14:17 ..... inserting junctions into the genome indices
Jan 30 17:14:18   Finished SA search: number of new junctions=750, old junctions=253315
Jan 30 17:14:18   Finished sorting SA indicesL nInd=267000
Jan 30 17:15:41   Finished inserting junction indices
Jan 30 17:15:46   Finished SAi
Jan 30 17:15:46 ..... finished inserting junctions into genome
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread0 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread0 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread1 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread1 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread2 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread2 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread3 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread3 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread4 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread4 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread5 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread5 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread6 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread6 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread7 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread7 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread8 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread8 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread9 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread9 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread10 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread10 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread11 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread11 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread12 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread12 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread13 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread13 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread14 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread14 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread15 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread15 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread16 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread16 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread17 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread17 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread18 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread18 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread19 ... ok
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate2.thread19 ... ok
Created thread # 1
Created thread # 2
Created thread # 3
Created thread # 4
Created thread # 5
Created thread # 6
Created thread # 7
Created thread # 8
Created thread # 9
Created thread # 10
Created thread # 11
Created thread # 12
Created thread # 13
Created thread # 14
Created thread # 15
Created thread # 16
Created thread # 17
Created thread # 18
Created thread # 19
Thread #8 end of input stream, nextChar=-1
Completed: thread #10
Completed: thread #11
Completed: thread #13
Completed: thread #12
Completed: thread #14
Completed: thread #15
Completed: thread #17
Completed: thread #16
Completed: thread #0
Completed: thread #18
Completed: thread #19
Completed: thread #1
Completed: thread #3
Completed: thread #5
Completed: thread #4
Completed: thread #7
Completed: thread #2
Joined thread # 1
Joined thread # 2
Joined thread # 3
Joined thread # 4
Joined thread # 5
Completed: thread #6
Joined thread # 6
Joined thread # 7
Completed: thread #9
Completed: thread #8
Joined thread # 8
Joined thread # 9
Joined thread # 10
Joined thread # 11
Joined thread # 12
Joined thread # 13
Joined thread # 14
Joined thread # 15
Joined thread # 16
Joined thread # 17
Joined thread # 18
Joined thread # 19
Jan 30 17:20:36   Loaded database junctions from the 1st pass file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARpass1//SJ.out.tab: 462866 total junctions

WARNING: long repeat for junction # 92012 : chr7 1195831 1195893; left shift = 34; right shift = 255
WARNING: long repeat for junction # 108773 : chr8 86759769 86765941; left shift = 1; right shift = 255
WARNING: long repeat for junction # 159518 : chr12 125396597 125396824; left shift = 93; right shift = 255
WARNING: long repeat for junction # 190342 : chr16 21846536 21847304; left shift = 30; right shift = 255
WARNING: long repeat for junction # 344643 : chr8 86759769 86765941; left shift = 1; right shift = 255
WARNING: long repeat for junction # 408931 : chr16 21414159 21414284; left shift = 4; right shift = 255
Jan 30 17:20:46   Finished preparing junctions
Jan 30 17:20:46 ..... inserting junctions into the genome indices
Jan 30 17:20:47   Finished SA search: number of new junctions=115, old junctions=254065
Jan 30 17:20:48   Finished sorting SA indicesL nInd=40940
Jan 30 17:22:11   Finished inserting junction indices
Jan 30 17:22:16   Finished SAi
Jan 30 17:22:17 ..... finished inserting junctions into genome
Opening the file: /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread0 ... failed!

EXITING because of FATAL ERROR: could not create output file /media/NGS_21NOV/test_data/CS412006_S1/pipeline_output/CS412006_S1__STARtmp//FilterBySJoutFiles.mate1.thread0
Solution: check that you have permission to write this file

Jan 30 17:23:49 ...... FATAL ERROR, exiting

Alexander Dobin

unread,
Feb 5, 2018, 12:22:23 PM2/5/18
to rna-star
Hi Jack,

the "/media" filesystem, is it standard Linux partition? If not, it  may create some problems.

Please try to run it with mostly default parameters, i.e.
STAR --genomeDir /home/lee/reference/hg19/starindex --outFileNamePrefix /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/pipeline_output/CTL1_S1_ --readFilesCommand zcat --readFilesIn /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/sample1_p1.fastq.gz /media/NGS_21NOV/test_data/CTL1_S1_L001/downsample/sample1_p2.fastq.gz

Cheers
Alex
Reply all
Reply to author
Forward
0 new messages