Git Product home page Git Product logo

Comments (14)

lecorguille avatar lecorguille commented on August 14, 2024

I have the same behaviour.
My dirty solution is to install the "huge dependency chain" first and after the tools. But it will asked to check and update the list of tools with the lastest package version.

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

A call to show_repositories (https://bioblend.readthedocs.org/en/latest/api_docs/galaxy/all.html#module-bioblend.galaxy.toolshed) should do it ... in fact we could even fail packages that had problems installing the dependencies. When driven to the extreme we could even use this in conjunction with travis to check if toolshed repositories install on OS X :)
I will do this now.

from ansible-galaxy-tools.

afgane avatar afgane commented on August 14, 2024

Are you thinking to change this https://github.com/galaxyproject/ansible-galaxy-tools/blob/master/files/install_tool_shed_tools.py#L572 from checking that specific tool to keep checking all the repositories until they reach either Installed or Error status?

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

well, initially I was not aware that this check is already in place.
It would be an option to check all repositories, indeed.
Better yet, galaxy should not return "Installed" before it's dependencies have not been installed / error-ed completely (I).

from ansible-galaxy-tools.

afgane avatar afgane commented on August 14, 2024

Galaxy not returning the Installed status message was the assumption under which this was written (at least, that's the experience I've seen via the UI) but if at least the two of you have run into this problem, I guess that's not necessarily the case.
You want me to change this or are you already on it?

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

Well, i would never refuse help 😆 .
Though the circumstances in which this happens are not entirely clear to me.

from ansible-galaxy-tools.

afgane avatar afgane commented on August 14, 2024

Can you share your tools file so I can try to replicate the behavior?

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

Sure, you can even get a docker image with the aborted install.
https://github.com/ARTbio/ansible-artimed/blob/metavisitor/extra-files/metavisitor_tool_list.yml
docker run artbio/galaxy-kickstart-metavisitor-base.
If you look into /home/galaxy/galaxy/uwsgi.log you see the shutdown of uwsgi while compiling freetype.

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

@afgane I think I got it ...
at https://github.com/galaxyproject/ansible-galaxy-tools/blob/master/files/install_tool_shed_tools.py#L559
you get the first item in the response (often a tool dependency), but the actual tool you requested is in the last item.
Changing response[0] to reponse[-1] should wait until the tool reports Installed.

from ansible-galaxy-tools.

afgane avatar afgane commented on August 14, 2024

Nice detective work! I did a check on this end as well and it looks like it's working.

Thank you.

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

Thanks all!

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

Well, extensive testing shows this is still a problem.
I'll see if we perhaps need to check for all items in response :/

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

Okay, so the (next) problem is an nginx timeout. Catching the 504 and re-trying seems to work.

from ansible-galaxy-tools.

mvdbeek avatar mvdbeek commented on August 14, 2024

@afgane @lecorguille
This is solved with PR #17 .
To make this more smooth I opened an issue on galaxy.

from ansible-galaxy-tools.

Related Issues (20)

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.