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.

Hi,

I’m facing the same errno 15010. Just want to know if you are facing the same.

Here’s my log:

server2@ubuntu:~/openpbs/openpbs_22.05.11.ubuntu_18.04$ sudo /etc/init.d/pbs status
pbs_server is not running
pbs_mom is not running
pbs_sched is pid 4385
pbs_comm is not running

When I try to start or restart the service, I get the below:

server2@ubuntu:~/openpbs/openpbs_22.05.11.ubuntu_18.04$ sudo /etc/init.d/pbs restart 
Restarting PBS
Stopping PBS
PBS sched - was pid: 4385
Waiting for shutdown to complete
Starting PBS
/opt/pbs/sbin/pbs_comm ready (pid=13408), Proxy Name:ubuntu:17001, Threads:4
PBS comm
PBS mom
PBS sched
-su: 1: /etc/profile.d/10-budgie-desktop-common.sh: [[: not found
-su: 1: /etc/profile.d/10-budgie-desktop.sh: [[: not found
-su: 1: /etc/profile.d/10-budgie-desktop-common.sh: [[: not found
-su: 1: /etc/profile.d/10-budgie-desktop.sh: [[: not found
/opt/pbs/sbin/pbs_ds_systemd: 43: [: xdegraded: unexpected operator
/opt/pbs/sbin/pbs_ds_systemd: 66: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
/opt/pbs/sbin/pbs_ds_systemd: 70: /opt/pbs/sbin/pbs_ds_systemd: cannot create /sys/fs/cgroup/systemd/system.slice/pbs.service/tasks: Directory nonexistent
-su: 1: /etc/profile.d/10-budgie-desktop-common.sh: [[: not found
-su: 1: /etc/profile.d/10-budgie-desktop.sh: [[: not found
Connecting to PBS dataservice...connected to PBS dataservice@ubuntu
PBS server
server2@ubuntu:~/openpbs/openpbs_22.05.11.ubuntu_18.04$ sudo /etc/init.d/pbs status
pbs_server is pid 13590
pbs_mom is not running
pbs_sched is pid 13435
pbs_comm is not running
server2@ubuntu:~/openpbs/openpbs_22.05.11.ubuntu_18.04$ sudo /etc/init.d/pbs status
pbs_server is not running
pbs_mom is not running
pbs_sched is pid 13435
pbs_comm is not running

Please help.