Connection Refused (errno=15010)

Hello,

I recently installed openpbs on my ubuntu 20.04 workstation.
There was no error while installing openpbs and start pbs service.
But I got following error when I type ‘qstat -Bf’ or ‘pbsnodes -a’:

~#qstat -Bf
Connection refused
pbsnodes: cannot connect to server mustang, error=15010

Here are some outputs:

~# /etc/init.d/pbs status
pbs_server is pid 23483
pbs_mom is pid 3178
pbs_sched is pid 3191
pbs_comm is 3162

~# ps -ef |grep pbs_
root 3162 1 0 15:10 ? 00:00:00 /opt/pbs/sbin/pbs_comm
root 3178 1 0 15:10 ? 00:00:00 /opt/pbs/sbin/pbs_mom
root 3191 1 0 15:10 ? 00:00:00 /opt/pbs/sbin/pbs_sched
root 23901 1 0 15:35 ? 00:00:00 /opt/pbs/sbin/pbs_server.bin
root 23904 1 0 15:35 ? 00:00:00 /opt/pbs/sbin/pbs_ds_monitor monitor
root 23931 23901 0 15:35 ? 00:00:00 sh -c /opt/pbs/sbin/pbs_ds_systemd
root 23932 23931 0 15:35 ? 00:00:00 /bin/sh /opt/pbs/sbin/pbs_ds_systemd

~# sestatus
SELinux status: disabled

~# firewall-cmd --list-ports
15001/tcp 22/tcp 80/tcp 15002/tcp 15003/tcp 15004/tcp 15005/tcp 15006/tcp 15007/tcp 15008/tcp 15009/tcp 17001/tcp

~# tail /var/spool/pbs/server_logs/20220930
09/30/2022 15:10:37;0002;Server@mustang;Svr;Log;Log opened
09/30/2022 15:10:37;0002;Server@mustang;Svr;Server@mustang;pbs_version=20.0.0
09/30/2022 15:10:37;0002;Server@mustang;Svr;Server@mustang;pbs_build=mach=N/A:security=N/A:configure_args=N/A
09/30/2022 15:10:37;0002;Server@mustang;Svr;Server@mustang;hostname=mustang;pbs_leaf_name=N/A;pbs_mom_node_name=N/A
09/30/2022 15:10:37;0002;Server@mustang;Svr;Server@mustang;ipv4 interface lo: ip6-loopback
09/30/2022 15:10:37;0002;Server@mustang;Svr;Server@mustang;ipv6 interface lo: ip6-loopback
09/30/2022 15:10:37;0006;Server@mustang;Fil;Server@mustang;Version 20.0.0, started, initialization type = 1
09/30/2022 15:10:38;0002;Server@mustang;Svr;Server@mustang;pbs_status_db exit code 1
09/30/2022 15:10:38;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:10:50;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:11:02;0002;Server@mustang;Svr;Server@mustang;pbs_status_db exit code 1
09/30/2022 15:11:02;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:11:15;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:11:27;0002;Server@mustang;Svr;Server@mustang;pbs_status_db exit code 1
09/30/2022 15:11:27;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:11:43;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:11:54;0002;Server@mustang;Svr;Server@mustang;pbs_status_db exit code 1
09/30/2022 15:11:54;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:12:11;0002;Server@mustang;Svr;Server@mustang;Starting PBS dataservice
09/30/2022 15:12:22;0002;Server@mustang;Svr;Server@mustang;pbs_status_db exit code 1

Please advice me how to resolve this issue.

Thanks in advance
CS

You need to figure out why the PBS database is not starting. For me, there was a permissions issue fixed by

chmod 1777 /var/run/postgresql/

This has to be done on every reboot before starting PBS.

Thanks for the comment.
However, it doesn’t work for me.