Start pbs with error like "Connecting to PBS dataservice........."

Install PBS as the guide below said, it went well

But when I tried to startup the pbs, it get stucked when the process try to update PBS Home,it likes:

[linux@centos7-801 libexec]$ sudo /etc/init.d/pbs start
Starting PBS
PBS Home directory /var/spool/pbs needs updating.
Running /opt/pbs/libexec/pbs_habitat to update it.


*** Setting default queue and resource limits.


Connecting to PBS dataservice…

The operating system of mine is like:

[root@centos7-801 linux]# uname -a
Linux centos7-801.novalocal 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Build with source code here:
https://github.com/PBSPro/pbspro/archive/v14.1.0.tar.gz

The PBS_HOME’s operation permissions also seems right:

[root@centos7-801 linux]# ls -l /var/spool/pbs
total 52
drwxr-xr-x. 2 root root 4096 Aug 1 03:33 aux
drwx------. 2 root root 4096 Aug 1 03:33 checkpoint
drwxr-xr-x. 2 root root 4096 Aug 1 03:33 comm_logs
drwx------. 15 postgres root 4096 Aug 1 03:42 datastore
drwxr-xr-x. 2 root root 4096 Aug 1 03:33 mom_logs
drwxr-x–x. 4 root root 4096 Aug 1 03:33 mom_priv
-rw-r–r–. 1 root root 19 Aug 1 03:33 pbs_environment
drwxr-xr-x. 2 root root 4096 Aug 1 03:33 sched_logs
drwxr-x—. 2 root root 4096 Aug 1 03:33 sched_priv
drwxr-xr-x. 2 root root 4096 Aug 1 03:42 server_logs
drwxr-x—. 6 root root 4096 Aug 1 03:42 server_priv
drwxrwxrwt. 2 root root 4096 Aug 1 03:44 spool
drwxrwxrwt. 2 root root 4096 Aug 1 03:33 undelivered

Can some one have any ideas? Thanks

The operating system of mine is like:

[r> oot@centos7-801 linux]# cat /etc/os-release

NAME=“CentOS Linux”
VERSION=“7 (Core)”
ID=“centos”
ID_LIKE=“rhel fedora”
VERSION_ID=“7”
PRETTY_NAME=“CentOS Linux 7 (Core)”
ANSI_COLOR=“0;31”
CPE_NAME=“cpe:/o:centos:centos:7”
HOME_URL=“https://www.centos.org/
BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-7”
CENTOS_MANTISBT_PROJECT_VERSION=“7”
REDHAT_SUPPORT_PRODUCT=“centos”
REDHAT_SUPPORT_PRODUCT_VERSION=“7”

Make sure <ipaddress hostname> pair is present inside the /etc/hosts file.
else, add the entry and restart pbs.
If that doesn’t work you can check $PBS_HOME/datastore/pg_log/ and $PBS_HOME/server_logs/ to debug it further.

1 Like

Thank you for replying, nithinj

I don’t know whether it has an influence,I was installing PBS pro on a virtual machine, /etc/hosts file add line like this:

127.0.0.1 localhost
10.154.55.178 centos7-801.novalocal centos7-801

In addition, what do you mean by “add the entry”?

And I just checked the $PBS_HOME/datastore/pg_log as you said, it seems that the database has something wrong with schema “pbs” does not exist…

2017-08-01 03:39:58 CESTLOG: database system was shut down at 2017-08-01 03:39:58 CEST
2017-08-01 03:39:58 CESTLOG: database system is ready to accept connections
2017-08-01 03:39:58 CESTLOG: autovacuum launcher started
2017-08-01 03:39:59 CESTERROR: schema “pbs” does not exist
2017-08-01 03:39:59 CESTSTATEMENT: /*
* …
*/
drop schema pbs cascade;
2017-08-01 03:42:08 CESTLOG: received smart shutdown request
2017-08-01 03:42:08 CESTLOG: autovacuum launcher shutting down
2017-08-01 03:42:08 CESTLOG: shutting down
2017-08-01 03:42:08 CESTLOG: database system is shut down
2017-08-01 03:42:09 CESTLOG: database system was shut down at 2017-08-01 03:42:08 CEST
2017-08-01 03:42:09 CESTLOG: database system is ready to accept connections
2017-08-01 03:42:09 CESTLOG: autovacuum launcher started

Hi, nithinj

As you said, I checked the $PBS_HOME/datastore/pg_log/ and $PBS_HOME/server_logs/ and then I found the dataservice of PBS isn’t startup successfully.

And then I searched, finally found the upgrade issue is due to the firewall…

Shutdown the firewall of the system and then PBS can work well~

Appreciate for your advice again, it helps a lot~

1 Like