phnmnl / container-galaxy-k8s-runtime

PhenoMeNal runtime for Galaxy running inside a container orchestrator
Apache License 2.0
5 stars 18 forks source link

isacreate_metabo tool does not load on publidev #252

Closed djcomlab closed 6 years ago

djcomlab commented 6 years ago

isacreate_metabo tool does not load on publidev giving Uncaught exception in exposed API method:

djcomlab commented 6 years ago

I tested it just now and can confirm I can get the tool to load and run correctly without any errors in minikube using the release/v18.01-dalcotidine branch.

ilveroluca commented 6 years ago

Can you try again @djcomlab?

djcomlab commented 6 years ago

Tried just now but still the same error. Does it work for you on publicdev?

On Wed, 11 Jul 2018 at 08:44, Luca Pireddu notifications@github.com wrote:

Can you try again @djcomlab https://github.com/djcomlab?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phnmnl/container-galaxy-k8s-runtime/issues/252#issuecomment-404062664, or mute the thread https://github.com/notifications/unsubscribe-auth/ADb-pvA3v-OW8QNwHCIJnSAPgvBQfTIsks5uFZ7igaJpZM4VE81z .

-- Sent from Gmail Mobile. Sorry for any tpyos

ilveroluca commented 6 years ago

Just started looking into this. The galaxy logs show the following backtrace when I try to open the tool:

galaxy.web.framework.decorators ERROR 2018-07-13 09:04:05,968 [p:157,w:1,m:0] [uWSGIWorker1Core1] Uncaught exception in exposed API method:
Traceback (most recent call last):
  File "lib/galaxy/web/framework/decorators.py", line 281, in decorator
    rval = func(self, trans, *args, **kwargs)
  File "lib/galaxy/webapps/galaxy/api/tools.py", line 99, in build
    return tool.to_json(trans, kwd.get('inputs', kwd))
  File "lib/galaxy/tools/__init__.py", line 1829, in to_json
    populate_state(request_context, self.inputs, params.__dict__, state_inputs, state_errors)
  File "lib/galaxy/tools/parameters/__init__.py", line 316, in populate_state
    state[input.name] = input.get_initial_value(request_context, context)
  File "lib/galaxy/tools/parameters/grouping.py", line 181, in get_initial_value
    rval[child_input.name] = child_input.get_initial_value(trans, child_context)
  File "lib/galaxy/tools/parameters/basic.py", line 907, in get_initial_value
    value = [optval for _, optval, selected in options if selected]
ValueError: need more than 1 value to unpack

The tool xml doesn't generate any errors when it's loaded.

djcomlab commented 6 years ago

As discussed on Slack, looks like the error is with the Galaxy runtime image missing tool-data/isa_cvterms.loc that the ISA Create tool relies on for controlled vocabulary.

djcomlab commented 6 years ago

Fixed in release branch.