# Failed to start PBS dataservice

**URL:** <https://community.openpbs.org/t/failed-to-start-pbs-dataservice/907>\
**Category:** Users/Site Administrators\
**Created:** [March 20, 2018, 12:26am UTC](https://community.openpbs.org/t/failed-to-start-pbs-dataservice/907 "2018-03-20T00:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pramukh](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pramukh](https://community.openpbs.org/u/pramukh)\
**Post date:** [March 20, 2018, 12:26am UTC](https://community.openpbs.org/t/failed-to-start-pbs-dataservice/907/1 "2018-03-20T00:26:28Z")

</div>

I am getting failed to acquire lock problem.  
Someone in the forum had a similar problem and they had corrected it.  
The suggested solutions are:- 1.To clean /var folder if it is full(My /var folder is only 74% full)  
2.Few lines be added in pbspro/sbin/pbs\_dataservice to check the ownership of /var/run/postgresql.  
if it is different from the database user defined in /var/spool/pbspro/server\_priv/db\_user, the ownership should be changed accordingly.(I don’t have postgresql directory created in /var/run)  
Here is what I am getting-  
[root@host1 datastore]# service pbs restart  
Restarting PBS  
Stopping PBS  
PBS mom - was pid: 117648  
PBS sched - was pid: 117662  
PBS comm - was pid: 117614  
Waiting for shutdown to complete  
Starting PBS  
PBS comm  
/opt/pbs/sbin/pbs\_comm ready (pid=119554),Threads:4  
PBS mom  
PBS sched  
Connecting to PBS dataservice…Failed to start PBS dataservice:[Failed to acquire lock on /var/spool/pbs/datastore/pbs\_dblock. Lock seems to be held by pid: 119947 running on host: host1 cannot start]  
.Failed to start PBS dataservice:[Failed to acquire lock on /var/spool/pbs/datastore/pbs\_dblock. Lock seems to be held by pid: 119947 running on host: host1 - cannot start]  
.Failed to start PBS dataservice:[Failed to acquire lock on /var/spool/pbs/datastore/pbs\_dblock. Lock seems to be held by pid: 119947 running on host: host1- cannot start]  
.Failed to start PBS dataservice:[Failed to acquire lock on /var/spool/pbs/datastore/pbs\_dblock. Lock seems to be held by pid: 119947 running on host: host1 - cannot start]  
continuing in background.  
PBS server  
Please help me.

---

<div class="post-metadata">

**Author:** ![billnitzberg](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/billnitzberg/32/6_2.png) [@billnitzberg](https://community.openpbs.org/u/billnitzberg)\
**Post date:** [March 20, 2018, 12:45am UTC](https://community.openpbs.org/t/failed-to-start-pbs-dataservice/907/2 "2018-03-20T00:45:58Z")

</div>

(Apologies, this post got stuck in the moderator queue – please let the community know if it is still relevant and you still want a reply.)

---

<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:** [March 20, 2018, 7:09pm UTC](https://community.openpbs.org/t/failed-to-start-pbs-dataservice/907/3 "2018-03-20T19:09:34Z")

</div>

There is a very similar discussion located here: [Failed to start PBS dataservice-lock seems to be held](http://community.openpbs.org/t/failed-to-start-pbs-dataservice-lock-seems-to-be-held/899)

Please have a look and provide the output of pbs\_ds\_monitor and its exit status.
