Skip to content

Unparsable sbatch output #374

@nateybear

Description

@nateybear

Software Versions

Snakemake version: 9.13.7

Plugin version (via pip freeze):
snakemake-executor-plugin-slurm==1.9.2
snakemake-executor-plugin-slurm-jobstep==0.3.0

Slurm version: 23.11.11

Describe the bug
On my cluster, snakemake fails when trying to parse the name of the log file from sbatch output. It looks like the parsable flag in this case does not produce any output with semicolons, only the job id. Am I doing something wrong with this invocation? I can't see anything else in the sbatch call you're constructing that would lead to a parsable output.

Image

Logs
The snakemake command I am running is:
snakemake --executor slurm --default-resources tasks=1 cpus_per_task=48 nodes=1 runtime=120 slurm_partition=skx mem_mb_per_cpu=150000 --config platform=hpc threads=auto --jobs 20

The error output is:

Traceback (most recent call last):

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/cli.py", line 2193, in args_to_api
    dag_api.execute_workflow(

  File <HOME>/.local/lib/python3.12/site-packages/snakemake/api.py", line 634, in execute_workflow
    workflow.execute(

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/workflow.py", line 1445, in execute
    raise e

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/workflow.py", line 1441, in execute
    success = self.scheduler.schedule()
              ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/scheduling/job_scheduler.py", line 389, in schedule
    raise e

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/scheduling/job_scheduler.py", line 367, in schedule
    self.run(runjobs)

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake/scheduling/job_scheduler.py", line 496, in run
    executor.run_jobs(jobs)

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake_interface_executor_plugins/executors/base.py", line 73, in run_jobs
    self.run_job(job)

  File "<HOME>/.local/lib/python3.12/site-packages/snakemake_executor_plugin_slurm/__init__.py", line 387, in run_job
    slurm_logfile = slurm_logfile.with_name(
                    ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/opt/apps/python/3.12.11/lib/python3.12/pathlib.py", line 634, in with_name
    raise ValueError("Invalid name %r" % (name))

ValueError: Invalid name '-----------------------------------------------------------------\n          Welcome to the Stampede3 Supercomputer                 \n-----------------------------------------------------------------\n\nNo reservation for this job\n--> Verifying valid submit host (login4)...OK\n--> Verifying valid jobname...OK\n--> Verifying valid ssh keys...OK\n--> Verifying access to desired queue (skx)...OK\n--> Checking available allocation <ALLOCATION>...OK\n--> Quotas are not currently enabled for filesystem <HOME>...OK\n--> Verifying that quota for filesystem <WORK> is at 10.62% allocated...OK\n2545659.log'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions