%qstat job_id command is not working

Hello,
Recently I have installed OpenPBS v20.0.0 everything is running good. When I executed first two below commands it works fine

bash$ echo “sleep 60” qsub
0.host1

bash$ qstat -a

host1:
Req’d Req’d Elap
Job ID Username Queue Jobname SessID NDS TSK Memory Time S Time


0.host1 mike workq STDIN 2122 1 1 – – R 00:00

But when I execute following command it was giving me below error…
bash$ qstat 0.host1
qstat: illegally formed job identifier: 0.host1

Has anyone seen this before? or any suggestions to fix the issue?

  • Was there any changes made to the hostname of the PBS Server ? or to the PBS_SERVER attribute in the /etc/pbs.conf file ?
  • is host1 the complete job identifier after the numeric ? E.g., 0.host1.openpbs.org , hope nothing is missing after host1

could you please try and let us know the output:

qstat -xH
qstat 0
qstat “0.host1”

Hi Adarsh,

Thank you for your time and support!

Regarding your first question - No, we haven’t made any changes to Hostname of PBS server.

Regarding your second questions - Yes host1 is the complete Job identifier after the numeric…There is no FQDN after that host

Kindly find output of below commands
$qstat -xH
qstat: PBS is not configured to maintain job history
$qstat 0
qstat: Unknown Job Id 0.host1
qstat “0.host1”
qstat: Unknown Job Id 0.host1

Please enable the job history

qmgr -c "set server job_history_enable=true" # enabling this alone will save job history for 2 weeks

If you want specifically set the duration then you have to configure the below
qmgr -c "set server job_history_duration=72:00:00" # job history will be saved for 72 hours

Note: this above commands will take effect from now on, but it would not enable the history of the past .
After setting up the job history, please submit a couple of jobs and run the same command and share the output.

Thank you

Hello Adrash

Per suggested I have executed qmgr -c “set server job_history_enable=true” However getting below error
qmgr obj= svr=default: Unauthorized Request
qmgr: Error (15007) returned from server

Could you please

  1. run the same command and check what is the corresponding error you see in the PBS Server logs ?
  2. check whether all the pbs services are running, share the output of ps -ef | grep pbs_

Hello Adarsh,

Kindly find output for command ps -ef | grep pbs_ as below
[user@MachineName][/home/user]> ps -ef | grep pbs_
root 1729 1 0 Sep28 ? 00:00:05 /opt/pbs/sbin/pbs_comm
root 1856 1 0 Sep28 ? 00:00:11 /opt/pbs/sbin/pbs_mom
root 1927 1 0 Sep28 ? 00:00:01 /opt/pbs/sbin/pbs_sched
root 2830 1 0 Sep28 ? 00:01:11 /opt/pbs/sbin/pbs_ds_monitor monitor
postgres 3182 2909 0 Sep28 ? 00:00:00 postgres: postgres pbs_datastore 10.15.25.194(51582) idle
root 3410 1 0 Sep28 ? 00:00:13 /opt/pbs/sbin/pbs_server.bin
user 13446 11209 0 10:21 pts/0 00:00:00 grep --color=auto pbs_

2 . Didn’t find same output inside the log however today find below output on terminal

[user@Machineame][/home/user]> qmgr -c “set server job_history_enable =true”
Unknown Host.
qmgr: cannot connect to server server
Unknown Host.
qmgr: cannot connect to server job_history_enable=true”

Note- Today I had executed below command
Sudo chmod 777 /opt/pbs/sbin/pbs_iff and Sudo chmod 777 /opt/pbs/sbin/pbs_rcp after this command my qsub itself was stop working hence i have restored it back to
sudo chmod 4755 /opt/pbs/sbin/pbs_iff /opt/pbs/sbin/pbs_rcp
Now qsub is working back to normal

Kindly advice!

This is correct permission on the pbs_iff and pbs_rcp.
Good to see this working ! Nice one. :+1:

Hello Adarsh,

My apologies to create confusion here,

Issue is still there…I said when i ran Sudo chmod 777 /opt/pbs/sbin/pbs_iff and Sudo chmod 777 /opt/pbs/sbin/pbs_rcp my qsub command stop working. Hence i restored it back to correct permission on the pbs_iff and pbs_rcp.

Regarding my problem statement %qstat job_id command is not working it is still there…
Now when i executing command which you provided to me getting below result
[user@Machineame][/home/user]> qmgr -c “set server job_history_enable =true”
Unknown Host.
qmgr: cannot connect to server server
Unknown Host.
qmgr: cannot connect to server job_history_enable=true”