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

error messages should state version of cwltool being used #172

Open
mr-c opened this issue Aug 29, 2017 · 15 comments · May be fixed by #323
Open

error messages should state version of cwltool being used #172

mr-c opened this issue Aug 29, 2017 · 15 comments · May be fixed by #323

Comments

@mr-c
Copy link
Member

mr-c commented Aug 29, 2017

@ThilinaManamgoda
Copy link

@stain I think error message is already showing the version of cwltool being used according to the implementation but it doesn't work. Am i correct ?

<p><strong>Error:</strong> cwltool version <span th:text="${queued.cwltoolVersion}">versionhere</span> failed to run on this workflow:</p>

@mr-c
Copy link
Member Author

mr-c commented Mar 16, 2021

@oceenachi
Copy link

@mr-c:matrix.org and @tetron about issue #172, Over the weekend I was able to reproduce the error and made some efforts to discover why exactly the version doesn't display on error. So first of all I inspected the client side of the code and went further into Workflow controller, workflow service and finally down to the QueuedWorkflow class.

So far I think I traced the problem down to QueuedWorkflow class where I found out that the value of the cwltoolVersion is set to an empty string. Although I tried putting in a random value as the version and tried logging out the value of the version when that endpoint is called, but it still returns empty.

Although, I just created a toString() method on the QueuedWorkflow class and tried to log out the value of queued when the method below is called
QueuedWorkflow queued = queuedWorkflowRepository.findByRetrievedFrom(githubInfo);
and I found out that findByRetrievedFrom() returns the cwltoolVersion as an empty String. So I think the problem is probably from the database but I'm still looking

@oceenachi
Copy link

And I've looked at the database as well and the version of cwl tool is an empty string as well

@oceenachi
Copy link

oceenachi commented Apr 12, 2021

Here is a sample of the db schema

{
        "_id" : ObjectId("6071db9d08813b0001578a1a"),
        "_class" : "org.commonwl.view.workflow.QueuedWorkflow",
        "tempRepresentation" : {
                "_id" : null,
                "retrievedFrom" : {
                        "repoUrl" : "https://github.com/common-workflow-language/cwl-v1.2.git",
                        "branch" : "main",
                        "path" : "tests/timelimit2-wf.cwl"
                },
                "retrievedOn" : ISODate("2021-04-10T17:08:45.801Z"),
                "lastCommit" : "ea9f8634e41824ac3f81c3dde698d5f0eef54f1b",
                "label" : "timelimit2-wf.cwl",
                "inputs" : {
                        "i" : {
                                "type" : "string?",
                                "sourceID" : [ ]
                        }
                },
                "outputs" : {
                        "o" : {
                                "type" : "string?",
                                "sourceID" : [
                                        "step2"
                                ]
                        }
                },
                "steps" : {
                        "step2" : {
                                "run" : "",
                                "sources" : {
                                        "i" : {
                                                "sourceID" : [
                                                        "step1"
                                                ]
                                        }
                                }
                        },
                        "step1" : {
                                "run" : "",
                                "sources" : {
                                        "i" : {
                                                "sourceID" : [
                                                        "i"
                                                ]
                                        }
                                }
                        }
                },
                "cwltoolVersion" : "1.0.20180525185854",
                "visualisationDot" : "digraph workflow {\n  graph [\n    bgcolor = \"#eeeeee\"\n    color = \"black\"\n    fontsize = \"10\"\n    labeljust = \"left\"\n    clusterrank = \"local\"\n    ranksep = \"0.22\"\n    nodesep = \"0.05\"\n  ]\n  node [\n    fontname = \"Helvetica\"\n    fontsize = \"10\"\n    fontcolor = \"black\"\n    shape = \"record\"\n    height = \"0\"\n    width = \"0\"\n    color = \"black\"\n    fillcolor = \"lightgoldenrodyellow\"\n    style = \"filled\"\n  ];\n  edge [\n    fontname=\"Helvetica\"\n    fontsize=\"8\"\n    fontcolor=\"black\"\n    color=\"black\"\n    arrowsize=\"0.7\"\n  ];\n  subgraph cluster_inputs {\n    rank = \"same\";\n    style = \"dashed\";\n    label = \"Workflow Inputs\";\n    \"i\" [fillcolor=\"#94DDF4\"];\n  }\n  subgraph cluster_outputs {\n    rank = \"same\";\n    style = \"dashed\";\n    label = \"Workflow Outputs\";\n    \"o\" [fillcolor=\"#94DDF4\"];\n  }\n  \"step2\";\n  \"step1\";\n  \"step2\" -> \"o\";\n  \"step1\" -> \"step2\";\n  \"i\" -> \"step1\";\n\n  // Invisible links to force outputs to be at lowest rank\n  \"step2\" -> \"o\" [style=invis];\n  \"step1\" -> \"o\" [style=invis];\n}\n",
                "permaLinkBase" : "https://w3id.org/cwl/view"
        },
        "cwltoolStatus" : "ERROR",
        "cwltoolVersion" : "",
        "message" : "Whoops! Cwltool ran successfully, but an unexpected error occurred in CWLViewer!\nHelp us by reporting it on Gitter or a Github issue\n"
}

So the version exists and has valid value at first but the actual value returned to the db is an empty string

@mr-c
Copy link
Member Author

mr-c commented Apr 12, 2021

@oceenachi Are you able to run the application connected to a debugger?

@oceenachi
Copy link

No I didn't connect to a debugger. I was actually logging out the values at some points

1 similar comment
@oceenachi
Copy link

No I didn't connect to a debugger. I was actually logging out the values at some points

@mr-c
Copy link
Member Author

mr-c commented Apr 12, 2021

@oceenachi I think getting a debugger connected will be vital to making progress on this issue

Maybe https://www.jetbrains.com/help/idea/run-and-debug-a-spring-boot-application-using-docker-compose.html or similar will help

@oceenachi
Copy link

Okay. I'll look at it

@oceenachi
Copy link

Hi @mr-c I've been having this error trying to create the remote debug config. Cannot retrieve debug connection: Debug mode is not supported for 'Docker-compose: cwlviewer. Although I'm still looking into it but would appreciate help on it

@mr-c
Copy link
Member Author

mr-c commented Apr 13, 2021

@oceenachi Okay, I've made a new issue about documenting how to debug when using docker compose; can you document your setup over at #319 ?

@oceenachi
Copy link

Alright I will do that.  💃

@oceenachi
Copy link

@mr-c this debugging docs will be restricted to this application right?

@mr-c
Copy link
Member Author

mr-c commented Apr 13, 2021

@oceenachi Yes

@oceenachi oceenachi linked a pull request Apr 13, 2021 that will close this issue
6 tasks
@mr-c mr-c linked a pull request Apr 15, 2021 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants