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

**URL:** <https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625>\
**Category:** Users/Site Administrators\
**Created:** [August 1, 2017, 2:36am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625 "2017-08-01T02:36:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [August 1, 2017, 2:36am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/1 "2017-08-01T02:36:00Z")

</div>

Install PBS as the guide below said, it went well

> <https://github.com/openpbs/openpbs/blob/master/INSTALL>

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](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

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [August 1, 2017, 2:42am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/2 "2017-08-01T02:42:36Z")

</div>

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/](https://www.centos.org/)”  
> BUG\_REPORT\_URL=“[https://bugs.centos.org/](https://bugs.centos.org/)”
> 
> CENTOS\_MANTISBT\_PROJECT=“CentOS-7”  
> CENTOS\_MANTISBT\_PROJECT\_VERSION=“7”  
> REDHAT\_SUPPORT\_PRODUCT=“centos”  
> REDHAT\_SUPPORT\_PRODUCT\_VERSION=“7”

---

<div class="post-metadata">

**Author:** ![nithinj](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/nithinj/32/45_2.png) [@nithinj](https://community.openpbs.org/u/nithinj)\
**Post date:** [August 1, 2017, 4:32am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/3 "2017-08-01T04:32:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [August 1, 2017, 6:21am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/4 "2017-08-01T06:21:50Z")

</div>

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”?

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [August 1, 2017, 6:28am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/5 "2017-08-01T06:28:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [August 1, 2017, 9:03am UTC](https://community.openpbs.org/t/start-pbs-with-error-like-connecting-to-pbs-dataservice/625/6 "2017-08-01T09:03:46Z")

</div>

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~
