# Failed to upgrade PBS Datastore

**URL:** <https://community.openpbs.org/t/failed-to-upgrade-pbs-datastore/255>\
**Category:** Users/Site Administrators\
**Created:** [September 12, 2016, 1:12pm UTC](https://community.openpbs.org/t/failed-to-upgrade-pbs-datastore/255 "2016-09-12T13:12:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timbo](https://avatars.discourse-cdn.com/v4/letter/t/ad7895/32.png) [@timbo](https://community.openpbs.org/u/timbo)\
**Post date:** [September 12, 2016, 1:12pm UTC](https://community.openpbs.org/t/failed-to-upgrade-pbs-datastore/255/1 "2016-09-12T13:12:27Z")

</div>

Hi all,

Need some help on this please?

Starting PBS  
PBS Home directory /var/spool/pbs needs updating.  
Running /opt/pbs/libexec/pbs\_habitat to update it.

* * *

Data service directory from previous PBS installation not found,  
Datastore upgrade cannot continue  
Failed to upgrade PBS Datastore

Thanks

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [September 13, 2016, 6:55pm UTC](https://community.openpbs.org/t/failed-to-upgrade-pbs-datastore/255/2 "2016-09-13T18:55:16Z")

</div>

Looks like PBS Pro is confused about the state of the datastore directory. Based on the previous thread, I am concerned that Torque is getting in the way. We may need to add Torque to the list of conflicting packages when PBS Pro is installed. Please try performing a clean install of PBS Pro by following these steps:

1. Read all of these steps before you start and understand what you are about to do before you proceed.
2. Stop any running PBS Pro services. (/etc/init.d/pbs stop)
3. Stop any running Torque services.
4. Make a backup of your system. At the very least, backup all Torque configuration files and components you may need to recover.
5. Uninstall PBS Pro. (e.g. for CentOS: yum erase pbspro-server)
6. Ensure PBS Pro is unsinstalled. (The following should be empty: rpm -qa | grep pbs)
7. Uninstall Torque and make sure it’s uninstalled.
8. CAUTION: Don’t delete any files or directories you haven’t backed up. Delete the following:

- /etc/pbs.conf
- /var/spool/pbs

1. Perform a fresh install of the PBS Pro RPM.
2. Start PBS Pro services.

I suspect it will successfully create the database and the PBS Pro services will start normally at this point. If you could capture your session in a typescript, that might help to identify problems if things continue to fail.
