ERROR: lost connection to server ERROR: cannot request service (status)
The solution is quite simple, make sure the the time are the same. This is the most common cause of lost connection.
Related Information:
Linux Toolkits Blog is a scratch-pad of tips and findings on Linux
ERROR: lost connection to server ERROR: cannot request service (status)
| Command | Flags | Description |
| canceljob | cancel existing job | |
| checkjob | display job state, resource requirements, environment, constraints, credentials, history, allocated resources, and resource utilization | |
| diagnose | -j | display summarized job information and any unexpected state |
| releasehold | [-a] | remove job holds or defers |
| runjob | start job immediately if possible | |
| sethold | set hold on job | |
| setqos | set/modify QoS of existing job | |
| setspri | adjust job/system priority of job |
# service pbs_server stop2. Remove Job Spool Files that holds the hanged JobID (For example 4444)
# rm /var/spool/torque/server_priv/jobs/4444.headnode.SC # rm /var/spool/torque/server_priv/jobs/4444.headnode.JB3. Start the pbs_Server Daemon
# service pbs_server start4. Restart the MAUI Daemon
# service maui restartReferences:
Name State Procs Memory Disk Swap Speed Opsys Arch Par Load Res Classes Network Features Node-c00 Idle 8:8 32161:32161 1:1 62862:64158 2.10 linux [NONE] DEF 0.00 000 [rambutan_8:8][queue_8:8][lemo [DEFAULT] ..... ..... Node-c03 Busy 0:8 32161:32161 1:1 62735:64158 2.10 linux [NONE] DEF 8.00 001 [rambutan_8:8][queue_0:8][queue [DEFAULT] ..... .....
# mdiag -n |grep Busy # mdiag -n|grep Idle
node01 np=8 queue1 queue2 node02 np=8 queue1 queue2 node03 np=8 queue2 queue3 node04 np=8 queue2 queue3
$ qsub -q queue2 -l nodes=3:ppn=8 openmpi.sh -v file=my_mpi_file
$ checkjob -v 6235The above commands display reasons why idle job is blocked ignoring node state and current node utilization constraints
node-c00 accepted : 8 tasks supported node-c02 accepted : 8 tasks supported node-c03 accepted : 8 tasks supported node-c04 accepted : 8 tasks supported node-c05 accepted : 8 tasks supported node-c06 accepted : 8 tasks supported node-c07 rejected : CPU node-c08 rejected : CPU node-c09 rejected : CPUSome of the reasons why it is rejected can be due to. The list is not exhausted.
Features - queue or features does not meet requirement CPU - CPU does not match requirements State - Used by other jobs
# qsig -s 0 job_id
# momctl -c job_id -h compute_node_1
# qmgr -c "set server mom_job_sync = True"
# qmgr -c "p s"
qdel -p job_id
# showq -r
# trace job_id
# canceljob job_id
# qdel job_id
# momctl
# momctl -h node1 -d 1Example 2: Cycle the pbs_mom on node 1
# momctl -h nod1 -C
# service pbs_server stop
# rm /var/spool/pbs/server_priv/jobs/111.host.SC # rm /var/spool/pbs/server_priv/jobs/111.host.JB
# service pbs_server restart
# cd /opt/maui/sbin/and type
./mauiIn my particular situation, I encounter server must be started on host 'xxx.xxx.xxx.xxx.xxx' (currently on 'xxx') which is my short-name. I resolve it quickly by going to /usr/local/maui/maui.cfg and edit the
SERVERHOST = xxxx
# cd /opt/torque # ln -s x86_64/bin . # ln -s x86_64/lib . # ln -s x86_64/sbin . # export PATH=$PATH:/opt/torque/x86_64/bin/
# cd maui-3.2.6p21 # ./configure --prefix=/opt/maui --with-pbs=/opt/torque/ # make -j8 # make install # cp /opt/xcat/share/xcat/netboot/add-on/torque/moab /etc/init.d/maui (Edit /etc/init.d/maui so that all MOAB is MAUI and all moab becomes maui) # service start maui # chkconfig --level 345 maui on
# touch /etc/profile.d/maui.sh # vim maui (Type: export PATH=$PATH:/opt/maui/bin) # source /etc/profile.d/maui.sh # vim /usr/local/maui/maui.cfg Change: RMCFG[] TYPE=PBS@...@ to: RMCFG[ ] TYPE=PBS # service maui restart
# showq