Skip to content
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

Cannot download any databases using amrfinder -u #57

Closed
padpadpadpad opened this issue Jul 5, 2021 · 10 comments
Closed

Cannot download any databases using amrfinder -u #57

padpadpadpad opened this issue Jul 5, 2021 · 10 comments

Comments

@padpadpadpad
Copy link

Hi all

Successfully downloaded ncbi-amrfinderplus into its own conda environment, but when I run amrfinder -u I receive the error:

`*** ERROR ***

Cannot create directory "/home2"`

Complete output is attached.

Any thoughts let me know. I think it could be to do with permissions given I do not have admin rights, but I can easily download things onto my area of the server.

Cheers
Dan
Screen Shot 2021-07-05 at 21 18 24

@vbrover
Copy link
Contributor

vbrover commented Jul 5, 2021

Could you create the directory /home2/ISAD/dp415/miniconda3/envs/amr_env/share/amrfinderplus/data manually and then run amrfinder -u?

Also, what exit code does this command return: ls /home2?

@padpadpadpad
Copy link
Author

I have created the directory manually but the error remains after re-running the command

ls /home2 gives the error ls: cannot open directory '/home2': Permission denied.

I do not have access until /home2/ISAD/dp415.

@vbrover
Copy link
Contributor

vbrover commented Jul 6, 2021

Could you post your screen output after amrfinder -u?

@padpadpadpad
Copy link
Author

It remains the same as in my first post (hopefully there is a screenshot on the original post).

@vbrover
Copy link
Contributor

vbrover commented Jul 6, 2021

The first post said that the directory

/home2/ISAD/dp415/miniconda3/envs/amr_env/share/amrfinderplus/data

could not be created.
Now that you have created this directory manually, there should be another error about failing to create the directory

/home2/ISAD/dp415/miniconda3/envs/amr_env/share/amrfinderplus/data/2021-06-01.1

amrfinder_update of this version will fail because your /home2 is not readable (this is our bug which we will fix in a future amrfinder version).
My idea to circumvent this bug is to create the needed directories manually.

@padpadpadpad
Copy link
Author

Thanks

I tried to make the next directory /home2/ISAD/dp415/miniconda3/envs/amr_env/share/amrfinderplus/data/2021-06-01.1.

I then attempted amrfinder -u and did receive a new error (screenshot attached). Is there anyway to manually download the database and tell amrfinder to use that?

Screen Shot 2021-07-07 at 15 34 40

@vbrover
Copy link
Contributor

vbrover commented Jul 7, 2021

Please try:

amrfinder -U

(Capital "U")

@padpadpadpad
Copy link
Author

This works. Should I have been doing that all the time.

Thank you very much.

@vbrover
Copy link
Contributor

vbrover commented Jul 7, 2021

amrfinder -U does not check the existing version and forces updating the data files.

You have downloaded the most recent data files.
The next version data files will most likely come with the updated software where this bug will be fixed.
So that you will be able to use the regular amrfinder -u without hacks.

@evolarjun
Copy link
Contributor

We just made a release version 3.10.11 that should address this issue. It may take a while to percolate through bioconda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants