Upgrading from an older version to the latest mainline version fails to start the PBS daemons

Description

I had installed the mainline version of PBS last year. I then wanted to upgrade to the latest mainline version. I built the RPMS and then did a rpm -U pbspro_.....

When I went to start PBS using systemctl start PBS it fails to start. When I do

systemctl status pbs

I see the following

[root@centos7 RPMS]# systemctl status pbs
● pbs.service - Portable Batch System
Loaded: loaded (/opt/pbs/libexec/pbs_init.d; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-04-21 13:06:57 MDT; 17s ago
Docs: manbs(8)
Process: 50750 ExecStart=/opt/pbs/libexec/pbs_init.d start (code=exited, status=1/FAILURE)

Apr 21 13:06:56 centos7.usa.org pbs_init.d[50750]: Running /opt/pbs/libexec/pbs_habitat to update it.
Apr 21 13:06:56 centos7.usa.org pbs_init.d[50750]: ***
Apr 21 13:06:57 centos7.usa.org su[50896]: (to postgres) root on none
Apr 21 13:06:57 centos7.usa.org su[50981]: (to postgres) root on none
Apr 21 13:06:57 centos7.usa.org pbs_init.d[50750]: /opt/pbs/pgsql/pg_upgrade not found
Apr 21 13:06:57 centos7.usa.org pbs_init.d[50750]: Failed to upgrade PBS Datastore
Apr 21 13:06:57 centos7.usa.org systemd[1]: pbs.service: control process exited, code=exited status=1
Apr 21 13:06:57 centos7.usa.org systemd[1]: Failed to start Portable Batch System.
Apr 21 13:06:57 centos7.usa.org systemd[1]: Unit pbs.service entered failed state.
Apr 21 13:06:57 centos7.usa.org systemd[1]: pbs.service failed

I'm not sure why it is trying to upgrade the DB since the version of pgsql has not changed on this system

Acceptance Criteria

None

Status

Assignee

Prakash Varandani

Reporter

Jon Shelley

Severity

None

OS

None

Start Date

None

Pull Request URL

Story Points

1

Components

Fix versions

Priority

High
Configure