-
Notifications
You must be signed in to change notification settings - Fork 298
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
Singularity image trying to access Amazon S3 #1778
Comments
This fails because compute nodes, at our institution, do not have internet access. Assuming this is something 1.5.0 needs (this didn't happen in 1.4.1), is there a way to tell the process doing this inside the container to go via a proxy? |
I'm having trouble understand what's wanted here. What of the following do I need?
Or some combination of these? |
Yes, it does. However, you can pre-download everything you need and run on a node without internet access.
Although this might do, I would recommend to map only the templateflow folder (see below)
I think this is the easiest route to combine the answers to your three questions. Binding a TemplateFlow homeThis would be the recommendation assuming your nodes have internet access:
Notes:
When you don't have internet access from compute nodes.You'll need to prepare the
|
Thanks for this. If I only bind:
then I get:
It looks like it still wants to write there. My complete command now is:
|
Not sure if this will make any difference, but please note the folder it is complaining about There must be a glitch somewhere in your command line. |
My command line is exactly as pasted above... |
Can you |
|
Does that need to be writable by other users, or just readable? |
Judging by #1778 (comment) I'm now inclined to think you just found a nasty bug. EDIT: if all templates are downloaded, it works if it is just readable (and folders executable) |
It's definitely trying to write to |
I'm getting on STDERR:
and then
Even though I have and in #1778 (comment) you can see I have that downloaded... |
If I give it a My It looks to me like you're attempting to download the file even if you already have it in |
Is it normal that most of the .nii.gz files this downloaded are 0 length? |
Yes. |
fmriprep is still errorring out trying to write to |
When I make
|
Okay. So apologies for this going on so long. I think it got a bit confused (or possibly I'm just getting confused reading this). I was pretty busy yesterday, so I wasn't able to follow in real-time. If I can summarize the issue: fMRIPrep checks two directories in
We can treat these independently. TemplateflowIf all you need access to is the usual templates, exporting If you need additional templates, then you can download them into a separate directory, make sure its bound and pointed to by the If you lack network access, pre-populating with all templates is probably simplest. Version checkJust binding a writable directory into Your last comment arrived while I was typing this, but I'll look at it separately so as not to spend forever here... |
My latest command line is:
|
Running now with
and
and it seems to be progressing without trying to download anything. Oddly, it hasn't actually written anything to |
It wouldn't if internet access failed. Sorry, in meetings again, so I'll be slow... |
Ah, that makes sense, as I no longer have https_proxy defined. I'll update this thread when my job completes. I'm still concerned that the |
Right, Oscar forgot to add
This I believe is only used for ICA-AROMA. |
And in fact we're using ICA-AROMA, so that explains that. In that case, I think we're done here :) Thank you so much! |
Excellent. Thanks for your patience! |
Can we add this to the documentation, @effigies ? I've seen other folks with similar issues. What do you think ? |
Yes, this should absolutely go into the FAQ. |
Hi @dmd could you check whether the The idea is to map your home directory into /home/fmriprep:
If that works, the |
I actually think I prefer setting |
That sounds reasonable. I guess the question is more whether this is would
work for you in your settings. Didn't mean to suggest you should move away
from what you managed to get to work.
I'll try to also mention your minimal scoping principle in the
documentation I'm writing. Thanks for your comment, it is very useful.
…On Thu, Oct 3, 2019, 09:00 Daniel M. Drucker ***@***.***> wrote:
I actually think I *prefer* setting SINGULARITYENV_TEMPLATEFLOW_HOME,
simply on the general principle of minimum privilege -- if I can give the
container access to just ~/.cache/fmriprep rather than my entire $HOME,
that seems like a better than to do than giving it access to all of $HOME.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1778>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAESDRWS7ORGW2AN3XJTGRDQMYJK5ANCNFSM4IXDSS6Q>
.
|
Yes, it does work. But we'll stick with least-privilege. Thanks! |
Closing this thread as this was just added to the FAQ in the latest commit. |
Hi, |
In 1.5.0, the Singularity image fails with:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='templateflow.s3.amazonaws.com', port=443): Max retries exceeded with url: /tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_T1w.nii.gz (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x2aaacc203198>: Failed to establish a new connection: [Errno 110] Connection timed out'))
The text was updated successfully, but these errors were encountered: