When LocalShell is directly used to run Slurm CLI commands, the execution of the commands fails on "no such file or directory"
galaxy.jobs.runners.cli DEBUG 2019-01-25 19:13:53,789 [p:3868,w:1,m:0] [ShellRunner.work_thread-0] (5) submitting file: /opt/galaxy/database/jobs_directory/000/5/galaxy_5.s
h
galaxy.jobs.runners ERROR 2019-01-25 19:13:53,964 [p:3868,w:1,m:0] [ShellRunner.work_thread-0] (5) Unhandled exception calling queue_job
Traceback (most recent call last):
File "lib/galaxy/jobs/runners/__init__.py", line 113, in run_next
method(arg)
File "lib/galaxy/jobs/runners/cli.py", line 98, in queue_job
returncode, stdout = self.submit(shell, job_interface, ajs.job_file, galaxy_id_tag, retry=MAX_SUBMIT_RETRY)
File "lib/galaxy/jobs/runners/cli.py", line 130, in submit
cmd_out = shell.execute(job_interface.submit(job_file))
File "lib/galaxy/jobs/runners/util/cli/shell/local.py", line 47, in execute
p = Popen(cmd, stdin=None, stdout=outf, stderr=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
as the Popen function call inside LocalShell.execute gets whole command including arguments as a single string cmd (e.g.: 'sbatch /opt/galaxy/database/jobs_directory/000/6/galaxy_6.sh'):
All the `cmd` coming from the plugins are strings, so I'm just doing
shlex.split here, which should be sufficient to bring this on par
with the Remote Shell plugins (which consume strings).
Should fixgalaxyproject#7269.
All the `cmd` coming from the plugins are strings, so if cmd is
a string we use `shell=True`, brings this on par
with the Remote Shell plugins (which consume strings).
Should fixgalaxyproject#7269.
When
LocalShellis directly used to run Slurm CLI commands, the execution of the commands fails on "no such file or directory"as the
Popenfunction call insideLocalShell.executegets whole command including arguments as a single stringcmd(e.g.:'sbatch /opt/galaxy/database/jobs_directory/000/6/galaxy_6.sh'):galaxy/lib/galaxy/jobs/runners/util/cli/shell/local.py
Lines 45 to 47 in 0b95564
The text was updated successfully, but these errors were encountered: