# Re-starting Halted Job (leveldb error)

**URL:** https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802
**Category:** bioBakery workflows
**Created:** [February 14, 2023, 11:15pm UTC](https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802 "2023-02-14T23:15:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BBohn](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/bbohn/32/1934_2.png) [@BBohn](https://forum.biobakery.org/u/BBohn)
#### Post date: [February 14, 2023, 11:15pm UTC](https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802/1 "2023-02-14T23:15:41Z")

</div>

Hello, my VPN (needed to access a HPC system) disconnected while I was running the following code, halting the job:  
biobakery\_workflows wmgx --input Projects/ORIGINS/biobakery/RawSeq --output Projects/ORIGINS/biobakery/Output\_all\_021423 --pair-identifier .R1 --taxonomic-profiling-options “–bowtie2db /home/biobakery\_workflows\_databases -t rel\_ab\_w\_read\_stats --perc\_nonzero 25 --stat\_q 0.10” --threads 64 --local-jobs 32

I reconnected to the VPN and tried running the same code again, but ran into the following error:

Traceback (most recent call last):  
File “/home/env/biobakery/020823/bin/wmgx.py”, line 184, in   
workflow.go()  
File “/home/env/biobakery/020823/lib/python3.8/site-packages/anadama2/workflow.py”, line 772, in go  
self.\_backend = backends.default(self.vars.get(“output”))  
File “/home/env/biobakery/020823/lib/python3.8/site-packages/anadama2/backends.py”, line 22, in default  
return LevelDBBackend(  
File “/home/env/biobakery/020823/lib/python3.8/site-packages/anadama2/backends.py”, line 111, in **init**  
self.db = leveldb.LevelDB(self.data\_directory,  
leveldb.LevelDBError: IO error: lock /Projects/ORIGINS/biobakery/Output\_all\_021423/.anadama/db/LOCK: Resource temporarily unavailable

Is there a way to bypass the levelDB lock? Or is there an alternative approach to resume a halted job?

Thank you!

Note: I have 182 samples, reverse and forward reads

---

<div class="post-metadata">

### Author: ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)
#### Post date: [March 17, 2023, 2:09pm UTC](https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802/2 "2023-03-17T14:09:57Z")

</div>

Hello, Sorry for the slow response. The leveldb lock indicates the workflow is still running. If you can stop the workflow process, it will release the leveldb lock. Then re-run the exact same workflow command and it should only run those tasks which have not already finished successfully.

Please post again if you continue to have issues!

Thank you,  
Lauren

---

<div class="post-metadata">

### Author: ![BBohn](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.biobakery.org/bbohn/32/1934_2.png) [@BBohn](https://forum.biobakery.org/u/BBohn)
#### Post date: [April 13, 2023, 11:54pm UTC](https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802/3 "2023-04-13T23:54:07Z")

</div>

Hi Lauren, thank you so much for your response! Could you please explain how to stop the workflow process? I am working in a supercomputing setting, and the job seemed to have stopped already, but I still get the LOCK message.

Thanks!

---

<div class="post-metadata">

### Author: ![lauren.j.mciver](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lauren.j.mciver](https://forum.biobakery.org/u/lauren.j.mciver)
#### Post date: [April 18, 2023, 4:22pm UTC](https://forum.biobakery.org/t/re-starting-halted-job-leveldb-error/4802/4 "2023-04-18T16:22:06Z")

</div>

Hello, If you can stop the process it will release the lock on the database. If you are on SLURM it would be something like `$ scancel <jobid>`.

Thanks!  
Lauren
