Hello, I am running on Batch and getting the error...
# ask-metaflow
c
Hello, I am running on Batch and getting the error
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
. This occurs when Metaflow executes
python -c "import requests, bz2, sys; data = requests.get('<https://micro.mamba.pm/api/micromamba/linux-64/latest').content>; sys.stdout.buffer.write(bz2.decompress(data))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
. Any ideas on why this might be happening?
1
a
does your batch instance have connectivity to the public internet?
c
Not sure - is there an easy way to check? I assumed it does have connectivity since the batch job makes it to the "Running" state, meaning it went through
pip install...
.
a
the
pip install
gets skipped if you have
requests
and
boto3
already installed in your docker image
a simple way would be to run a workload without
@conda
and try doing a requests.get on google.com
c
Okay, I'll try that out
👍🏼 1
I put this in the start step:
print("Test request:", requests.get("<https://google.com>"))
It printed
Test request: <Response [200]>
in CloudWatch
So looks like I have internet connectivity
I also pasted the micromamba url that was failing before in place of google, and it's failing here too
a
i wonder if they are blocking your IP?
c
Maybe.. any suggestions on where to go from here? I wanted to pre-install micromamba onto the image, but looks like that isn't supported from the code comment
# TODO: check if mamba or conda are already available on the image
a
if
micromamba
is already installed then the check is skipped. the todo reference
mamba
and
conda
- which can work equally well
c
ahh, I see. Okay, I'll go ahead and install
micromamba
and see how it goes.
👍🏼 1
worked like a charm! thanks for your help @square-wire-39606 🙂
among us party 1