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

**URL:** <https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677>\
**Category:** Users/Site Administrators\
**Created:** [June 29, 2021, 10:36am UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677 "2021-06-29T10:36:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansh](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Ansh](https://community.openpbs.org/u/Ansh)\
**Post date:** [June 29, 2021, 10:36am UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/1 "2021-06-29T10:36:44Z")

</div>

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:

> <https://github.com/openpbs/openpbs/blob/master/INSTALL>

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

---

<div class="post-metadata">

**Author:** ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)\
**Post date:** [June 29, 2021, 11:30am UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/2 "2021-06-29T11:30:06Z")

</div>

Try this using sudo.

---

<div class="post-metadata">

**Author:** ![Ansh](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Ansh](https://community.openpbs.org/u/Ansh)\
**Post date:** [June 29, 2021, 11:54am UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/3 "2021-06-29T11:54:33Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)\
**Post date:** [June 29, 2021, 12:07pm UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/4 "2021-06-29T12:07:40Z")

</div>

log off and log on or:

> . /etc/profile.d/pbs.sh

---

<div class="post-metadata">

**Author:** ![Ansh](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Ansh](https://community.openpbs.org/u/Ansh)\
**Post date:** [June 29, 2021, 12:14pm UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/5 "2021-06-29T12:14:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![boboshaq](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@boboshaq](https://community.openpbs.org/u/boboshaq)\
**Post date:** [June 29, 2021, 12:20pm UTC](https://community.openpbs.org/t/not-able-to-run-qmgr-error-15007-returned-from-server/2677/6 "2021-06-29T12:20:12Z")

</div>

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.
