Could not connect


#1

Hi All,
I m trying to create new queue and it gives me this out put msg:

server@server1# qmgr -c “c q workq queue_type=e,enabled=t, started=t”
unknown host. qmgr: cannot connect to server q unknown host.

—>connected as root

Kind Regards,
Md


#2

Please check whether PBS Server service is up and running
ps -ef | grep pbs_


#3

yes the pbs is running…on this machine


#4
  1. Please check the DNS ( hostname resolution)
  2. ping -c 4 cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2

#5

[root@server~]# ps -ef | grep pbs_
root 12633 1 0 Sep12 ? 00:00:21 /opt/pbs/sbin/pbs_comm
root 12648 1 0 Sep12 ? 00:00:33 /opt/pbs/sbin/pbs_sched
root 12953 1 0 Sep12 ? 00:02:16 /opt/pbs/sbin/pbs_ds_monitor monitor
postgres 13045 13013 0 Sep12 ? 00:00:42 postgres: postgres pbs_datastore 10.10.0.1(38433) idle
root 13069 1 0 Sep12 ? 00:02:45 /opt/pbs/sbin/pbs_server.bin
root 17509 10217 0 09:06 pts/2 00:00:00 grep pbs_


[root@server ~]# cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2
server


#6

[root@server ~]# ping -c 4 cat /etc/pbs.conf | grep PBS_SERVER | cut -d"=" -f2
ping: unknown host cat


#7

Back tick is missing before “cat” and after “f2”

Please check:

  1. ping server
  2. pbs_hostn -v server
  3. cat /etc/hosts | grep server

To make sure “server” is resolved .


#8

Hi adarsh,
[root@server ~]# ping server
64 bytes from server (172.16.0.1): icmp_seq=1 ttl=64 time=0.018 ms


#9

[root@server ~]# pbs_hostn -v server
primary name: server (from gethostbyname())
aliases: server.local.com


#10

aliases: server
aliases: server.local.com
address length: 4 bytes
address: 172.16.0.1 (16779786 dec) name: server
address: 172.17.0.200 (3355701258 dec) name: server
[root@server ~]# cat /etc/hosts | grep server
172.16.0.1 server server.local.com
172.17.0.200 server.local.com server

Best Regards,


#11

This is the problem. “server” is assigned to two IP addresses.
IP ADDRESS <canonical_hostname > < alias >
The IP address should reverse resolve to the same hostname.


#12

Adrash ,
So it is better to do it with qmgr prompt and run the commands that I sent before ?


#13

Please try to execute those commands in the QMGR prompt on the PBS Server host itself.
Try to correct the /etc/hosts with respect to hostname of the PBS Server, make is unique to the IP address