Qsub Error Message Specified Queue | MSG=cannot locate queue

qsub: No default queue specified MSG=cannot locate queue
While Installating torque we need to create the default queue
using qmgr command- if we didn't create the default queue for torque Resource Manager then it will through Following error message.
Error Message
qsub: No default queue specified MSG=cannot locate queue.
PROBLEM
TORQUE Resource Management queue not specified.
SOLUTION
we need to specified torque pbs queue using qmgr command.
How To Create The Qsub Queue
qmgr it is bps management system.
qmgr -c it is used to execute the single command.
So run the following command

qmgr -c "set server scheduling=true"
qmgr -c "create queue batch queue_type=execution"
qmgr -c "set queue batch started=true"
qmgr -c "set queue batch enabled=true"
qmgr -c "set queue batch resources_default.nodes=1"
qmgr -c "set queue batch resources_default.walltime=3600"
qmgr -c "set server default_queue=batch"
qmgr -c "set server operators += TORQUEADMIN@SERVERNAME"
qmgr -c "set server managers += TORQUEADMIN@SERVERNAM
Once queue created successfully you need list out that object Using the following command.
$qmgr -c 'p s'
create queue batch
set queue batch queue_type = Execution
set queue batch resources_default.nodes = 1
set queue batch resources_default.walltime = 01:00:00
set queue batch enabled = True
set queue batch started = True
# Set server attributes.
set server scheduling = True
set server acl_hosts = master.iitk.ac.in
set server default_queue = batch
set server log_events = 511
set server mail_from = adm
set server scheduler_iteration = 600
set server node_check_rate = 150
set server tcp_timeout = 6
set server next_job_number = 64
then you can submit the job
$qsub test.sh
To Check the job status - try the following command
$qstat & $qstat -q
qsub: Bad UID for job execution MSG=root user root not allowed- login as user then try it,
qsub: No default queue specified MSG=cannot locate queue.

Related post