Not able to run qmgr. Error (15007) returned from server

Hi,

I am new to PBS Pro and thank you in advance for your help.

I run Centos CentOS Linux release 7.7.1908 (Core) and was able to install PBS Pro on both the headnode and the client node using these instructions:

In the head node the /etc/pbs.conf file is:

PBS_SERVER=ip-172-31-46-213
PBS_START_SERVER=1
PBS_START_SCHED=1
PBS_START_COMM=1
PBS_START_MOM=0
PBS_EXEC=/opt/pbs
PBS_HOME=/var/spool/pbs
PBS_CORE_LIMIT=unlimited
PBS_SCP=/bin/scp

and in the client node it is

PBS_SERVER=ip-172-31-46-213
PBS_START_SERVER=0
PBS_START_SCHED=0
PBS_START_COMM=0
PBS_START_MOM=1
PBS_EXEC=/opt/pbs
PBS_HOME=/var/spool/pbs
PBS_CORE_LIMIT=unlimited
PBS_SCP=/bin/sc

Also in client node I have edited
sudo cat /var/spool/pbs/mom_priv/config
to give:

$clienthost ip-172-31-46-213
$restrict_user_maxsysid 999

On the head node I have created
sudo cat /var/spool/pbs/server_priv/nodes

ip-172-31-34-69.ec2.internal np=1

On head node the /etc/hosts file is

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.31.34.69 ip-172-31-34-69.ec2.internal

Now running:
$qmgr -c “create node ip-172-31-34-69.ec2.internal” gives me
qmgr obj=ip-172-31-34-69.ec2.internal svr=default: Unauthorized Request
qmgr: Error (15007) returned from server

I have tried
$qmgr -c “set server managers+=centos@172-31-46-213”
but it gives me:
qmgr obj= svr=default: Access from host not allowed, or unknown host
qmgr: Error (15008) returned from server

Thanks for your help

Try this using sudo.

Hi thanks for replying!

Running
$ sudo qmgr -c “create node ip-172-31-34-69.ec2.internal” just gives
sudo: qmgr: command not found

Any suggestions on how to solve this?

log off and log on or:

. /etc/profile.d/pbs.sh

Did that and it’s the same result with
qmgr obj=ip-172-31-34-69.ec2.internal svr=default: Unauthorized Request
qmgr: Error (15007) returned from server
The logs after running this are:

06/29/2021 12:08:51;0100;Server@ip-172-31-46-213;Req;;Type 0 request received from centos@ip-172-31-46-213.ec2.internal, sock=15
06/29/2021 12:08:51;0100;Server@ip-172-31-46-213;Req;;Type 95 request received from centos@ip-172-31-46-213.ec2.internal, sock=16
06/29/2021 12:08:51;0100;Server@ip-172-31-46-213;Req;;Type 9 request received from centos@ip-172-31-46-213.ec2.internal, sock=15
06/29/2021 12:08:51;0080;Server@ip-172-31-46-213;Req;req_reject;Reject reply code=15007, aux=0, type=9, from centos@ip-172-31-46-213.ec2.internal

OK, sorry first log on root account and add managers of server:
qmgr -c ‘set server managers =root@servername.domain’
To add another user run again with +=user@servername.domain
From root account You should be able to run qmgr command.