Got error while restarting PBS

After restarting workstation, PBS was offline so I issued /etc/init.d/pbs restart. I got this error 'Restarting PBS
Stopping PBS
Waiting for shutdown to complete
Starting PBS
PBS Home directory /opt/pbs needs updating.
Running /opt/pbs/libexec/pbs_habitat to update it.


*** Backing up /var/spool/pbs/pgsql.forupgrade to /var/spool/pbs/pgsql.forupgrade.pre.
mv: cannot move ‘/var/spool/pbs/pgsql.forupgrade’ to ‘/var/spool/pbs/pgsql.forupgrade.pre./pgsql.forupgrade’: File exists
Failed to backup /var/spool/pbs/pgsql.forupgrade, please follow the below instructions:
*** Backup /var/spool/pbs/pgsql.forupgrade if you need to downgrade pgsql later on.
*** For future upgrades to be successful run the below command.
*** cp -pr /opt/pbs/pgsql /var/spool/pbs/pgsql.forupgrade
cp: cannot stat ‘/usr/bin/pg_resetxlog’: No such file or directory
*** End of /opt/pbs/libexec/pbs_habitat
Home directory /opt/pbs updated.
Comm@benq: main, unable to change to directory /opt/pbs/server_priv
pbs_comm startup failed, exit aborting.’

Can anyone help me on this. I don’t know what to do with this.
Operating System: CentOS Stream 8
CPE OS Name: cpe:/o:centos:centos:8
Kernel: Linux 4.18.0-527.el8.x86_64
Architecture: x86-64

Regards,
Deepak

In case you haven’t fixed this yet, most likely the problem is that /etc/pbs.conf has a wrong value for PBS_HOME. The usual setting is
PBS_HOME=/var/spool/pbs
It appears you have it set to /opt/pbs, which is usually the value for PBS_EXEC.

Still haven’t fixed. My PBS_HOME is in /var/spool/pbs only. Here is the /etc/pbs.conf file

cat /etc/pbs.conf
PBS_SERVER=benq
PBS_START_SERVER=1
PBS_START_SCHED=1
PBS_START_COMM=1
PBS_START_MOM=1
PBS_EXEC=/opt/pbs
PBS_HOME=/var/spool/pbs
PBS_CORE_LIMIT=unlimited
PBS_SCP=/bin/scp