-
Notifications
You must be signed in to change notification settings - Fork 50
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
Job outputs from working directory seems to result in no outputs found #193
Comments
The launch_config file from a Galaxy test instance (that works): {"command_line": "set -o | grep -q pipefail && set -o pipefail; ln -s '/data/share/staging//158/inputs/dataset_164.dat' 'localref.fa' && bwa index 'localref.fa' && bwa mem -t \"${GALAXY_SLOTS:-1}\" -v 1 'localref.fa' '/data/share/staging//158/inputs/dataset_169.dat' '/data/share/staging//158/inputs/dataset_170.dat' | samtools sort -@${GALAXY_SLOTS:-2} -O bam -o '/data/share/staging//158/outputs/dataset_203.dat'; return_code=$?; sh -c \"exit $return_code\"", "remote_staging": {"client_outputs": {"metadata_directory": "/srv/galaxy/jobs/000/158/metadata", "dynamic_outputs": ["primary_.*|galaxy.json|metadata_.*|dataset_\\d+\\.dat|__instrument_.*|dataset_\\d+_files.+"], "version_file": "/srv/galaxy/jobs/000/158/COMMAND_VERSION", "work_dir_outputs": [], "working_directory": "/srv/galaxy/jobs/000/158/working", "output_files": ["/data/000/dataset_203.dat"]}, "setup": [{"action": {"url": "http://galaxy.ufr.garinci.com/api/jobs/1343954bc98f8001/files?job_key=f0744a54b49ca61a&path=/data/000/dataset_164.dat&file_type=input", "path": "/data/000/dataset_164.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_164.dat"}, {"action": {"url": "http://galaxy.ufr.garinci.com/api/jobs/1343954bc98f8001/files?job_key=f0744a54b49ca61a&path=/data/000/dataset_169.dat&file_type=input", "path": "/data/000/dataset_169.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_169.dat"}, {"action": {"url": "http://galaxy.ufr.garinci.com/api/jobs/1343954bc98f8001/files?job_key=f0744a54b49ca61a&path=/data/000/dataset_170.dat&file_type=input", "path": "/data/000/dataset_170.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_170.dat"}], "ssh_key": null, "action_mapper": {"paths": [], "ssh_port": null, "ssh_key": null, "ssh_host": null, "ssh_user": null, "files_endpoint": "http://galaxy.ufr.garinci.com/api/jobs/1343954bc98f8001/files?job_key=f0744a54b49ca61a", "default_action": "remote_transfer"}}, "dependencies_description": {"requirements": [{"version": "0.7.17", "type": "package", "specs": [], "name": "bwa"}, {"version": "1.6", "type": "package", "specs": [], "name": "samtools"}], "installed_tool_dependencies": []}, "env": [{"raw": false, "execute": null, "value": "$(dirname ${BASH_SOURCE[0]})/_job_tmp", "file": null, "name": "TEMP"}, {"raw": false, "execute": null, "value": "$TEMP", "file": null, "name": "TMPDIR"}, {"raw": false, "execute": null, "value": "-Djava.io.tmpdir=$TEMP", "file": null, "name": "_JAVA_OPTIONS"}, {"raw": false, "execute": "mkdir -p $TEMP", "value": null, "file": null, "name": null}, {"raw": false, "execute": null, "value": "C", "file": null, "name": "LC_ALL"}], "setup_params": {"preserve_galaxy_python_environment": null, "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa_mem/0.7.17.1", "tool_version": "0.7.17.1", "job_id": "158", "use_metadata": true}, "submit_params": {}} the launch_config file from usegalaxy.eu for the same job: {"command_line": "set -o | grep -q pipefail && set -o pipefail; ln -s '/data/share/staging//5423825/inputs/dataset_9713686.dat' 'localref.fa' && bwa index 'localref.fa' && bwa mem -t \"${GALAXY_SLOTS:-1}\" -v 1 'localref.fa' '/data/share/staging//5423825/inputs/dataset_9713679.dat' '/data/share/staging//5423825/inputs/dataset_9713681.dat' | samtools sort -@${GALAXY_SLOTS:-2} -O bam -o '/data/share/staging//5423825/working/galaxy_dataset_10295811.dat'; return_code=$?; sh -c \"exit $return_code\"", "remote_staging": {"client_outputs": {"metadata_directory": "/data/dnb02/galaxy_db/job_working_directory/005/423/5423825", "dynamic_outputs": ["primary_.*|galaxy.json|metadata_.*|dataset_\\d+\\.dat|__instrument_.*|dataset_\\d+_files.+"], "version_file": "/data/dnb02/galaxy_db/job_working_directory/005/423/5423825/COMMAND_VERSION", "work_dir_outputs": [], "working_directory": "/data/dnb02/galaxy_db/job_working_directory/005/423/5423825/working", "output_files": ["/data/dnb02/galaxy_db/job_working_directory/005/423/5423825/galaxy_dataset_10295811.dat"]}, "setup": [{"action": {"url": "https://usegalaxy.eu/_job_files?job_id=a31222b5e4cbaa3a&job_key=d65efb2fec13d707&path=/data/dnb02/galaxy_db/files/009/713/dataset_9713681.dat&file_type=input", "path": "/data/dnb02/galaxy_db/files/009/713/dataset_9713681.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_9713681.dat"}, {"action": {"url": "https://usegalaxy.eu/_job_files?job_id=a31222b5e4cbaa3a&job_key=d65efb2fec13d707&path=/data/dnb02/galaxy_db/files/009/713/dataset_9713679.dat&file_type=input", "path": "/data/dnb02/galaxy_db/files/009/713/dataset_9713679.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_9713679.dat"}, {"action": {"url": "https://usegalaxy.eu/_job_files?job_id=a31222b5e4cbaa3a&job_key=d65efb2fec13d707&path=/data/dnb02/galaxy_db/files/009/713/dataset_9713686.dat&file_type=input", "path": "/data/dnb02/galaxy_db/files/009/713/dataset_9713686.dat", "action_type": "remote_transfer"}, "type": "input", "name": "dataset_9713686.dat"}], "ssh_key": null, "action_mapper": {"paths": [], "ssh_port": null, "ssh_key": null, "ssh_host": null, "ssh_user": null, "files_endpoint": "https://usegalaxy.eu/_job_files?job_id=a31222b5e4cbaa3a&job_key=d65efb2fec13d707", "default_action": "remote_transfer"}}, "dependencies_description": {"requirements": [{"version": "0.7.17", "type": "package", "specs": [], "name": "bwa"}, {"version": "1.6", "type": "package", "specs": [], "name": "samtools"}], "installed_tool_dependencies": []}, "env": [], "setup_params": {"preserve_galaxy_python_environment": null, "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa/bwa_mem/0.7.17.1", "tool_version": "0.7.17.1", "job_id": "5423825", "use_metadata": true}, "submit_params": {}} The key differences are:
|
@Slugger70 @natefoo guessing neither of you set |
Hey @erasche, no we don't set |
This needs to get fixed but as a temporary workaround you can just set ( execution:
environments:
pulsar:
runner: pulsar_mq
outputs_to_working_directory: false
... other options or ( <destinations>
<destination id="pulsar" runner="pulsar_mq">
<param id="outputs_to_working_directory">False</param>
... other params
</destination>
</destinations> |
After trying to debug this again with @gmauro I'd like to capture the following here: On usegalaxy.eu using the CZ pulsar node with
E.g. every run of The output file is there, in the working directory, but pulsar/galaxy never finds it for
When the settings was
So at the moment, I am not aware of configuration/setup where we can have one Pulsar destination execute both "kinds" of tools -- the ones that require p.s. is this related to #285 ? |
So, outputs_to_working directory doesn't make sense in pulsar, and we've discussed disabling that automatically, so that option I don't think we should investigate. What commit of Galaxy and what pulsar version is this ? |
And what context is
in ? |
This is 0.14.11 Pulsar and galaxy.eu runs
|
Alright, to answer my question, that's in pulsar. The output definition for samtools view is this:
I wouldn't be surprised if this happens when the output is filtered and not going to be produced. |
IOW I think that's probably a different issue, but this shouldn't be hard to fix |
eu is at this commit galaxyproject/galaxy@7aae40d |
Just to keep this updated, there was a bug in Galaxy that would prevent |
We've set
outputs_to_working_directory: true
on our server, but it seems this results in different command lines when passed to pulsar, either /outputs or /working are used, but results are only searched in the outputs directory.Is this a galaxy bug? Should we patch galaxy to not change command lines? Or is this a pulsar bug and pulsar should be aware of checking the working directories? (Would that require an update to all of our destinations?)
@gmauro could you please paste some of the command lines we saw? cc @bgruening for why it isn't working for today.
The text was updated successfully, but these errors were encountered: