Giter VIP home page Giter VIP logo

Comments (5)

glarue avatar glarue commented on August 16, 2024

Hi Pengfei,

The error you are getting is not because you are running jgi-query incorrectly. Rather, it is due to the way JGI stores certain files in their database.

Sometimes (and I am not entirely clear on the details here), files stored in tape archives on JGI are not properly triggered for retrieval by cURL, and jgi-query simply gets an error XML file instead.

There is a (annoying) way to fix this; you can use the web interface to force JGI to activate the archive manually:

  1. Open the file hierarchy via a web browser
  2. Find the file you wish to download
  3. Click on the file name via the browser; this should produce a message from JGI: "Checking tape transfer status"
  4. Wait (possibly for quite a while)
  5. Once the file download dialog box pops up in your browser, cancel it and retry your command via jgi-query and it should work.

You can tell which files are tape archives in the web interface from their legend icons:
jgi_legend

There is probably a way to force the query to spin up the archive, but I haven't worked out what it is yet. For reference see this commit: 378f6bd

from jgi-query.

liupfskygre avatar liupfskygre commented on August 16, 2024

Hi Glarue,
Thanks.
Actually I want to download all .faa and .gbk file in this project. I just choose one file to test. For just one or few files it's fine to do in your proposed way, but for all is too much. I think it is also does not matter if I use jgi-query or the API directly in a loop, right, the same issue will occur?

Otherwise I may contact with our IT to make the globus working.

Thanks again.

Cheers,
Pengfei

from jgi-query.

glarue avatar glarue commented on August 16, 2024

@liupfskygre unfortunately yes, if you are downloading a large number of files (the majority of which are on tape archives) then using jgi-query may prove difficult. It might be worth manually checking a random subset of the files you want via the web interface to see if they are mostly in tape archives or not (as I believe it is based on file age, not category).

And yes, I believe you are correct that using the API in a loop won't fix things, since all jgi-query is doing is performing queries automatically using the API backend.

If you find a solution outside of globus, please let me know! Closing for now.

from jgi-query.

glarue avatar glarue commented on August 16, 2024

@liupfskygre my recent commit—moving queries from http to https—may fix the issue you were having and allow you to download tape file archives.

from jgi-query.

glarue avatar glarue commented on August 16, 2024

@liupfskygre just another small update: there is now an option in the file selection dialog to use a regular expression pattern to match an arbitrarily large number of files, should that prove helpful.

from jgi-query.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.