Hi everyone, I have this <PR> failing on the valid...
# ci-runners
r
Hi everyone, I have this PR failing on the validation of the pipeline params and more specifically igenomes
Copy code
ERROR ~ Validation of pipeline parameters failed!
 -- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --igenomes_base (s3://ngi-igenomes/igenomes/): could not validate file format of 's3://ngi-igenomes/igenomes/': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: W9GXWT3420MZAVGW; S3 Extended Request ID: mRif4kL6DyLLOEDcbY7U5T8YmD0by2cPNK6OdEGfkI8pCDAIH/IF2CWOvagoSsoYFFOsTjLnYTHLqMlQgF7RcptRzaxic1F8; Proxy: null)
 -- Check script 'subworkflows/nf-core/utils_nfschema_plugin/main.nf' at line: 68 or see '.nextflow.log' file for more details
Error: Process completed with exit code 1.
I've tried a bunch of things in the tests' nextflow.config
Copy code
params {
    igenomes_ignore = true
    igenomes_base = false
}

validation {
    ignoreParams = ["igenomes_base"]
}
and in my nextflow run command but to no avail - has anyone ever dealt with this?
m
you need
aws.client.anonymous = true
in the nextflow.config
r
Forgot to add that - I have that too
m
how does your general nextflow.config look like? is there maybe
aws.client.anonymous = !params.igenomes_ignore && params.igenomes_base?.startsWith('s3://ngi-igenomes/igenomes/') ?: false
r
these are the only lines relating to igenomes
Copy code
// Reference genome information; iGenomes is effectively disabled but retained for linting
    genome           = null
    igenomes_base    = 's3://ngi-igenomes/igenomes/'
    igenomes_ignore  = true
    hmf_genomes_base = 'https://pub-cf6ba01919994c3cbd354659947f74d8.r2.dev/genomes'
&
Copy code
// Load igenomes.config if required
includeConfig !params.igenomes_ignore ? 'conf/igenomes.config' : 'conf/igenomes_ignored.config'
it's only in the tests>nextflow.config with
aws.client.anonymous
Copy code
aws.client.anonymous = true // fixes S3 access issues on self-hosted runners
r
Ah, this is on the dev branch, I worked on the PR directly which is older 🥲😅 - would that fix it ?
m
I think so
r
I’ll try that then
m
the problem is that it might break other aws runs outside of runsOn, my recommendation is to actually add
--aws.client.anonymous false
here https://github.com/nf-core/oncoanalyser/actions/runs/19301599728/workflow?pr=264#L106
r
Do you mean instead of the
--igenomes_ignore = true
?
m
no, in addition to it as an extra param
r
ok
same error
Copy code
Downloading plugin nf-amazon@2.15.0
ERROR ~ Validation of pipeline parameters failed!
 -- Check '.nextflow.log' file for details
The following invalid input values have been detected:
* --igenomes_base (s3://ngi-igenomes/igenomes/): could not validate file format of 's3://ngi-igenomes/igenomes/': Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: MYP03JQY46YHJD0M; S3 Extended Request ID: vXyiFVeO36SXm8FRX92H9ETbnRR/EHksf4OQ3coXRtxYPeKA+nwNmEfOIE73ygbStU6t0wITMLk=; Proxy: null)
 -- Check script 'subworkflows/nf-core/utils_nfschema_plugin/main.nf' at line: 68 or see '.nextflow.log' file for more details
Error: Process completed with exit code 1.
m
sorry, it should be set to
--aws.client.anonymous true
🙃
😅 1
r
still the same error 🥲
shakefist 1
m
wait you are setting
--igenomes_ignore true
and it still tries to use igenomes?? Or am I just confused now on what this parameter means?
r
Yes that is what I'm setting and it's still trying to use them
m
this is to avoid this error? try it without it and just the aws.client.anomymous
r
yeah I don't want anything with igenomes that would trigger this error