askimed / nf-test

Simple test framework for Nextflow pipelines
https://www.nf-test.com
MIT License
146 stars 25 forks source link

Download of plugins fails when behind proxy #265

Closed Schmytzi closed 5 days ago

Schmytzi commented 1 month ago

I am working on a system behind a proxy. Every time I try to run nf-test test, it fails with the following output:

🚀 nf-test 0.9.0
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Error: Syntax errors in nf-test config file: java.net.ConnectException: Connection refused

This error also occurs with nf-test update-plugins.

This does not appear to be an issue with the nf-test configuration, as the tests run fine elsewhere. It is also possible to circumvent this error by first running the tests on a computer with direct internet access and then copying the the directory .nf-test/plugins to the affected system but this seems more like a dirty hack.

MarieLataretu commented 1 month ago

Hi there, I have the same problem, see #234 !

My workaround was to download the jar files from the plugin repos (wget worked in my case) and add them in the test config (see here), or use --plugin path/to/my/nft-plugin.jar:path/to/my/nft-plugin2.jar

Schmytzi commented 5 days ago

Has been fixed with PR #264. Now it's enough to run the following before starting nf-test

export NFT_JAVA_ARGS='-Djava.net.useSystemProxies=true'