Hello! i'm back with another amazing problem. I'm ...
# modules
s
Hello! i'm back with another amazing problem. I'm updating blast module to the latest version, all test work fine except for updateblastdb. The problem is this error and the software provides a posible solution: using aws.
Copy code
Use of uninitialized value $curl in concatenation (.) or string at /opt/conda/bin/update_blastdb.pl line 599.
    Downloading https://ftp.ncbi.nlm.nih.gov/blast/db/mito.tar.gz...Can't exec "--user": No such file or directory at /opt/conda/bin/update_blastdb.pl line 602.
    too many failures, aborting download! Please try again later or use the --source aws option
So i said, easy let's use aws. When you try to use aws:
Copy code
Error: /opt/conda/bin/update_blastdb.pl depends on curl to fetch data from cloud storage, please install this utility to access this data source.
Makes complete sense, and something was telling me that this error was also related to $curl not being initialized. So i created a mulled container including curl besides blast. but..the same error remains, the script is still not able to find curl. Checking the script code I see that it looks for curl in
/usr/bin
or
/usr/local/bin
, and curl is correctly in the path inside the container but it's installed in
/opt/conda/bin
. I don't have permissions in run time to create a symbolic link..so I'm out of ideas. Someone has faced something similar? How can i get the tests running for update_blastdb? Is it ok to keep update_blastdb in the prior version, and the rest of the modules in the latest? https://github.com/nf-core/modules/pull/8179
s
I missed the comment about not having swapped updateblastdb in the PR. On gitpod I was able to rerun the snapshot with no issue, so made a second PR: https://github.com/nf-core/modules/pull/8181
So I don't know what the underlying issue is, but seems to work fine on gitpod and on the CI.
s
OMG, so weird
Well, let's leave this as a poltergeist
Approved! Thank you so much!
n
Checking the script code I see that it looks for curl in
/usr/bin
or
/usr/local/bin
, and curl is correctly in the path inside the container but it's installed in
/opt/conda/bin
. I don't have permissions in run time to create a symbolic link..so I'm out of ideas.
This happens with conda installed packages quite frequently, the easiest solution is to add something like
ENV PATH="$PATH:/opt/conda/bin"
to your Dockerfile
it depends a lot on how / if / when / why your container starts with the environment activated
Oh wait, this is the update_blastdb.pl that is looking for curl in those folders?
s
yes, its the update_blastdb.pl
n
Well, in that case setting PATH in the dockerfile probably wont help
s
now it's working without the --source aws, that doesn't need curl
it wasn't working for me locally for some reason without aws, but if someone wants to use the module with the --source aws params for update_blastdb.pl is not going to work
something to keep in mind, don't know if someone would need to use that option with this module