# Installation issue

**URL:** <https://community.openpbs.org/t/installation-issue/3567>\
**Category:** Users/Site Administrators\
**Created:** [May 31, 2023, 2:32pm UTC](https://community.openpbs.org/t/installation-issue/3567 "2023-05-31T14:32:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lookin03820](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@lookin03820](https://community.openpbs.org/u/lookin03820)\
**Post date:** [May 31, 2023, 2:32pm UTC](https://community.openpbs.org/t/installation-issue/3567/1 "2023-05-31T14:32:38Z")

</div>

Hi I just tried installing openpbs but the services don’t start. I am getting the following error:

qmgr: cannot connect to server  
Connection refused  
qmgr: cannot connect to server  
Connection refused  
qmgr: cannot connect to server  
Connection refused  
qmgr: cannot connect to server  
Connection refused  
qmgr: cannot connect to server  
Connection refused  
qmgr: cannot connect to server  
Connection refused  
qterm: could not connect to server (15010)  
cp: cannot stat ‘/usr/pgsql-14.8/lib/_': No such file or directory  
cp: cannot stat '/usr/pgsql-14.8/lib/_’: No such file or directory  
cp: cannot stat ‘/usr/pgsql-14.8/share/timezonesets/_': No such file or directory  
cp: cannot stat '/usr/pgsql-14.8/share/timezonesets/_’: No such file or directory  
cp: cannot stat ‘/usr/lib/postgresql/14/bin/pg\_resetxlog’: No such file or directory  
\*\*\* End of /opt/pbs/libexec/pbs\_habitat  
Home directory /var/spool/pbs updated.

Thinking something is wrong with my postgres installation, I tried version 15. Now I am getting the error:

sudo /etc/init.d/pbs start

term: could not connect to server (15010)  
cp: cannot stat ‘/usr/pgsql-15.3/lib/_': No such file or directory  
cp: cannot stat '/usr/pgsql-15.3/lib/_’: No such file or directory  
cp: cannot stat ‘/usr/pgsql-15.3/share/timezonesets/_': No such file or directory  
cp: cannot stat '/usr/pgsql-15.3/share/timezonesets/_’: No such file or directory  
cp: cannot stat ‘/usr/lib/postgresql/15/bin/pg\_resetxlog’: No such file or directory  
\*\*\* End of /opt/pbs/libexec/pbs\_habitat  
Home directory /var/spool/pbs updated.  
/opt/pbs/sbin/pbs\_comm ready (pid=422450), Proxy Name: xxx.url 17001, Threads:4  
PBS comm  
PBS mom  
PBS sched

Another issue I have been having is that only pbs-sched runs:

sudo /etc/init.d/pbs status

pbs\_server is not running  
pbs\_mom is not running  
pbs\_sched is pid 422460  
pbs\_comm is not running

My system is Ubuntu 22.04.2 LTS with kernel 5.19.0-41-generic with only one computer (no nodes)

How to get openpbs working?

---

<div class="post-metadata">

**Author:** ![lookin03820](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@lookin03820](https://community.openpbs.org/u/lookin03820)\
**Post date:** [June 1, 2023, 5:08pm UTC](https://community.openpbs.org/t/installation-issue/3567/2 "2023-06-01T17:08:01Z")

</div>

After making some changes to /etc/hosts, I am still getting the following error:

$ qstat -Bf

Connection refused  
qstat: cannot connect to server xxx.yyy.zzz (errno=15010)

Now pbs\_mom, pbs\_sced and pbs\_comm are running now but not pbs\_server:

$ sudo /etc/init.d/pbs status

pbs\_server is not running  
pbs\_mom is pid 9423  
pbs\_sched is pid 9435  
pbs\_comm is 9413

How to get pbs\_server up and runningnow ?

---

<div class="post-metadata">

**Author:** ![speleolinux](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@speleolinux](https://community.openpbs.org/u/speleolinux)\
**Post date:** [June 2, 2023, 1:28am UTC](https://community.openpbs.org/t/installation-issue/3567/3 "2023-06-02T01:28:13Z")

</div>

ping the server to see if its visible.  
check your firewall rules.  
Perhaps turn off any firewall while you try to get it running.

---

<div class="post-metadata">

**Author:** ![dtalcott](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/dtalcott/32/410_2.png) [@dtalcott](https://community.openpbs.org/u/dtalcott)\
**Post date:** [June 3, 2023, 2:37am UTC](https://community.openpbs.org/t/installation-issue/3567/4 "2023-06-03T02:37:03Z")

</div>

When I’ve seen this, often it has been because the server could not start the postgres database. What does the log file in /var/spool/pbs/server\_logs say? When pbs\_server startup fails, I get something like:

```auto
04/22/2023 17:32:11.131488;0002;Server@server2;Svr;Server@server2;Starting PBS dataservice
04/22/2023 17:32:25.025908;0002;Server@server2;Svr;Server@server2;Starting PBS dataservice
04/22/2023 17:32:37.969856;0002;Server@server2;Svr;Server@server2;pbs_status_db exit code 1
04/22/2023 17:32:37.969909;0002;Server@server2;Svr;Server@server2;Starting PBS dataservice
04/22/2023 17:32:52.891439;0002;Server@server2;Svr;Server@server2;Starting PBS dataservice
04/22/2023 17:33:05.716181;0002;Server@server2;Svr;Server@server2;pbs_status_db exit code 1
04/22/2023 17:33:05.716197;0002;Server@server2;Svr;Server@server2;Starting PBS dataservice ...

```

Sometimes, there is a problem with the permissions on a postgres directory:

```auto
sudo chmod 1777 /var/run/postgresql/

```

[This is for CentOS. Ubuntu might be different]

Other times, the trouble is more complicated and I debug it by manually running the following to see where it fails

```auto
sudo /opt/pbs/sbin/pbs_dataservice start

```
