Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
User Manual

User Manual
Results will update as you type.
  • Application Guide
  • Status of System
  • Usage Guide
  • Compute partitions
  • Software
  • FAQ
    • Floating point exception with Intel MPI 2019.x using one task per node
    • How long can I access my project data?
    • I cannot contact external servers/services
    • I lost access to my ssh key.
    • I lost my password for Portal NHR@ZIB.
    • I lost my PIN to reset my Portal NHR@ZIB password.
    • INTEL-MPI version 19 slower than INTEL-MPI version 18
    • Known Warnings
    • Memory Limits on Login Nodes
    • MPI executable dies with error: "hfi_userinit: mmap of status page ..."
    • MPI Jobs with more than 40 (96) tasks per node failing
    • Search in this wiki fails
    • Slow execution of nccopy from netcdf 4.6.3
    • SLURM does not recognize job script
    • Too many open files
    • Unspecific error messages when reading huge input files
  • NHR Community
  • Contact

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    SLURM does not recognize job script

    SLURM does not recognize job script

    Juli 01, 2020

    Problem

    Upon job submit Slurm refuses to recognize your job script as a valid batch script, although it looks OK in your editor:

    glogin1:$ sbatch MY_SCRIPT 
    sbatch: error: This does not look like a batch script.  The first
    sbatch: error: line must start with #! followed by the path to an interpreter.
    sbatch: error: For instance: #!/bin/sh

    Solution

    Check the file type on the login node with the file command.
    In the following case

    glogin1:$ file MY_SCRIPT
    MY_SCRIPT: Bourne-Again shell script, UTF-8 Unicode (with BOM) text executable

    you need to remove the byte-order mark (BOM) from the beginning of the file:

    glogin1:$ LC_ALL=C sed -i '1s/^\xEF\xBB\xBF//' MY_SCRIPT

    Re-check the file type, (with BOM) should have disappeared:

    glogin1:$ file MY_SCRIPT
    MY_SCRIPT: Bourne-Again shell script, UTF-8 Unicode text executable

    For some background and discussion read e.g. here.

    Related articles

    • Seite:
      Slurm usage
    • Seite:
      Advanced options
    • Seite:
      Hybrid Jobs
    • Seite:
      SLURM does not recognize job script



    , multiple selections available, Use left or right arrow keys to navigate selected items
    slurm
    jobscript
    job
    script
    sbatch
    kb-troubleshooting-article
    {"serverDuration": 11, "requestCorrelationId": "d01713c762df4783b1f8409a44f199a8"}