/
module: command not found

module: command not found

Problem

A job on the supercomputers fails immediately with the message "module: command not found".

Solution

If your Slurm script requires operations related to modules, a shell in "login mode" is required so that the module command can be located.

The first line (the shebang) should read

#!/bin/bash --login

to prevent the problem (the option "-l" can be used in equivalence to "--login").




Related content

Troubleshooting Articles
Troubleshooting Articles
Read with this
slurmstepd: error: execve(): executable : No Such File or Directory
slurmstepd: error: execve(): executable : No Such File or Directory
More like this
Jobs Are in Queue for a Long Time
Jobs Are in Queue for a Long Time
Read with this
Batch Script Contains DOS Line Breaks
Batch Script Contains DOS Line Breaks
More like this
Connection Closed By Remote Host
Connection Closed By Remote Host
Read with this
module: command not found. Error in salloc for tcsh users
module: command not found. Error in salloc for tcsh users
More like this