Qmgr: Error (15007) returned from server

Hi, I am new to OpenPBS and have error like this

qmgr obj=azcos4 svr=default: Unauthorized Request 
qmgr: Error (15007) returned from server

I have one server and one node.
Server:

127.0.0.1       localhost
127.0.1.2       azcos4.develop

10.1.20.55      azcos1.local    azcos1
10.1.20.4       azcos4.local    azcos4

Node:

127.0.0.1       localhost
127.0.1.1       azcos1.develop

10.1.20.4       azcos4.local    azcos4
10.1.20.55      azcos1.local    azcos1

Host pbs.conf

PBS_SERVER=azcos1
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=/usr/bin/scp

node

PBS_SERVER=azcos1
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=/usr/bin/scp

Thanks in advance.

  1. please check pbs services are up and running
    ps -ef | grep pbs_

  2. i hope you are running the qmgr command as root user

  3. If you see the same error messages while running qmgr , check the server logs , it will mention why it is rejecting
    source /etc/pbs.conf;cd $PBS_HOME/server_logs ; check YYYYMMDD file

Thanks for reply.
1.
Host


Node

2. How can i check qmgr command ?
3.

  1. which qmgr command are you trying to run ?
  2. Please note , qmgr configuration management has to be done by the root user ( manager/operator level users ).
    Snippet from the PBS Pro Administration guide ( 2021.1) :slight_smile:

qmgr -c “create node azcos4”

  1. How can i check if it is manager/operator level user? I don’t have root user on my machine, i have only 1 user and I use sudo command to use root commands.
    I tried

sudo qmgr -c “create node azcos4”

It returns:
sudo: qmgr: command not found

Thanks for your time ^^

source /etc/profile.d/pbs.sh
sudo qmgr -c “create node azcos4”
or
source /etc/pbs.conf
sudo $PBS_EXEC/bin/qmgr -c “create node azcos4”

To find out the managers, if in case they are set:
sudo qstat -Bf

**Please type the above command , sometimes copy paste introduces some special characters.

Thanks for your time @adarsh. You are right about root user, I used sudo command but i wasn’t root user and I tried last commands you mentioned on message. It didn’t work

I solved problem only login as root user. I only used this command

sudo -i

and everything works like a charm ^^

1 Like