agl / pond

Pond
BSD 3-Clause "New" or "Revised" License
911 stars 109 forks source link

State file locked by another process. Waiting for lock. #145

Closed hellais closed 9 years ago

hellais commented 9 years ago

My pond is currently blocked my this condition. I believe what caused this is my computer abruptly rebooting and hence not releasing the lock on the state file. By stracing pond I see that it only accesses ~/.pond hence I believe that the lock is stored inside of the statefile itself, so I am unsure how to remove the lock (i.e. I can't just delete some lock file somewhere).

What should I do to restore proper functioning of pond?

agl commented 9 years ago

Locking in pond is done with flock (http://linux.die.net/man/2/flock). This system call only operates on in-kernel data structures in all systems that I'm aware of thus rebooting would clear all the locks.

Is the filesystem esp odd, and are you sure that nothing else has the file open? Have you tried sudo lsof | grep pond to check?

hellais commented 9 years ago

@agl yes sorry you are correct. I did in fact another process keeping the file open.

Thanks!