Hi there!
I have been trying to the RNASeq workflow to work that was in your blog:
As I was interested in reproducing it to test Nextflow with AWS Batch. I was having trouble with an S3 403 error, so I decided to write something much more simple for testing purposes which I am sharing here:
I edited out the AWS credentials, but this is exactly what I ran other than that. When I run this, here is how it looks on the terminal:
nextflow run aws_batch_test.nf --fastq_input C097F_N_111207.2.AGTTGCTT_R2_xxx.fastq.gz --outdir s3://bioinformatics-analysis/seqtk_test/output -profile awsbatch -w s3://bioinformatics-analysis/seqtk_test/work/ N E X T F L O W ~ version 0.27.2
[warm up] executor > awsbatch
[40/61bc3b] Submitted process > seqtk
ERROR ~ Error executing process > 'seqtk'
Caused by:
Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: 142494674AE68741; S3 Extended Request ID: gbFUYCP0fOoFOnc8NNg0xYRswaKJjNT+RUb9bGQykmiHkq5oI+meQYzkPE/j5WTF3Kb7e3rPUf0=)
-- Check '.nextflow.log' file for details
I also tried with Nextflow 27.3 and the error message is the same. The funny thing is that the workflow actually appears to have successfully run:
stephen@blahblah:~/software/mclaugsf/aws-batch-test$ s3cmd ls s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/
DIR s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/tmp/
2018-01-31 20:18 0 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/
2018-01-31 20:18 6 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.begin
2018-01-31 20:19 0 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.err
2018-01-31 20:18 49 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.log
2018-01-31 20:19 0 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.out
2018-01-31 20:18 3197 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.run
2018-01-31 20:18 89 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.command.sh
2018-01-31 20:18 1 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/.exitcode
2018-01-31 20:18 2796 s3://bioinformatics-analysis/seqtk_test/work/40/61bc3ba659ece4d98f991b70e125bc/output.fastq
The S3 403 error appears to be occurring after the output file, output.fastq, was successfully created.
Any tips appreciated!
Thank you,
Stephen