Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using NextClade behind proxy #532

Closed
stefandiederich opened this issue Aug 31, 2021 · 8 comments
Closed

Using NextClade behind proxy #532

stefandiederich opened this issue Aug 31, 2021 · 8 comments
Labels
t:ask Type: question, request of information 1

Comments

@stefandiederich
Copy link

Hi,
I am using NextClade version 1.3.0 with the Docker image.
Now I am stuck at the point where I have to download the dataset with
docker run -it --rm -u 1001 nextstrain/nextclade nextclade dataset get --name='sars-cov-2' --output-dir='data/sars-cov-2'

It tells me the following error:

[ERROR] Nextclade: When fetching a file "https://data.clades.nextstrain.org/index.json": CURLE_SSL_CONNECT_ERROR: SSL connect error. Please verify the correctness of the address, check your internet connection and try again later. Make sure that you have a permission to access the requested resource.

Because we are working behind a proxy server I tried to hand in the proxy config with the -e parameter like this

docker run -it --rm -u 1001 -e "HTTP_PROXY=http://<IP>:<PORT>/" -e "HTTPS_PROXY=https://<IP>:<PORT>/" nextstrain/nextclade nextclade dataset get --name='sars-cov-2' --output-dir='data/sars-cov-2'

But the error persists. Did I do anything wrong or is the error not proxy related?
Bests
Stefan

@stefandiederich stefandiederich added needs triage Mark for review and label assignment t:ask Type: question, request of information 1 labels Aug 31, 2021
@ivan-aksamentov
Copy link
Member

ivan-aksamentov commented Aug 31, 2021

Hi @stefandiederich,

We haven't thought about it.

nextclade dataset commands use libcurl underneath. Can you try to use curl to fetch the same index.json file and see if it works?

curl --compressed https://data.clades.nextstrain.org/index.json

or in container:

docker run -it --rm -u 1001 nextstrain/nextclade curl --compressed https://data.clades.nextstrain.org/index.json

Is https://data.clades.nextstrain.org/index.json reachable in your browser?

@ivan-aksamentov ivan-aksamentov removed the needs triage Mark for review and label assignment label Aug 31, 2021
@stefandiederich
Copy link
Author

Hi @ivan-aksamentov ,
thanks for that quick reply.
The json file is reachable via browser.
With curl -s -x https://<IP>:<PORT> https://data.clades.nextstrain.org/index.json > index.json it takes a few minutes and completes without error giving me an empty file.

@stefandiederich
Copy link
Author

stefandiederich commented Aug 31, 2021

With docker run -it --rm -u 1001 nextstrain/nextclade curl --compressed https://data.clades.nextstrain.org/index.json I get the following error message curl: (7) Failed to connect to data.clades.nextstrain.org port 443: Network is unreachable

@ivan-aksamentov
Copy link
Member

If curl does not work, there isn't much I can do, I'm afraid. Can you contact your admin for help?

@stefandiederich
Copy link
Author

I am not sure why curl is not working. I hve used it many times before... I will try to get it work and come back to you.
Is there a way to download the files via browser?

@ivan-aksamentov
Copy link
Member

ivan-aksamentov commented Aug 31, 2021

Is there a way to download the files via browser?

Yes, but it's very cumbersome. If you can see the index.json file in the browser, you can find file property in each dataset, with a list of file URLs. If you append these relative URLs to https://data.clades.nextstrain.org/, this will give fill file URLs. Download all files in a directory and it will be the dataset.

@stefandiederich
Copy link
Author

Okay, now I curl is working. I had to specifiy the http proxy for downloading the https files... thougth that should be also https proxy then...

@stefandiederich
Copy link
Author

So is there a way to easily download via curl?

@nextstrain nextstrain locked and limited conversation to collaborators Sep 27, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
t:ask Type: question, request of information 1
Projects
None yet
Development

No branches or pull requests

3 participants