Page 1 of 1

blahblah is locked by another process. - Driving me mad!

Posted: Sun Mar 20, 2011 7:25 am
by bertie40
This is seriously hacking me off.


This is a 2 part Question, bear with me :

I'm missing some files in one of my greyholes shares. I have an empty folder.

Ive checked the actual drive (/var/hda/files/drives/drive5/gh/Movies/DVDs/myvideo.avi), and the file is present.

Now then. I've run greyhole --fsck several times, in a hope to get the file recognized, but it keeps getting bogged down with :

"/var/hda/files/Work/My Dox backup/tempo.doc is locked by another process"

There are a number of other files in that share which are also having the same error message.

The file check then goes to sleep.

The thing is that that folder was deleted several days ago.

I went into the gh directories and manually deleted the old folder to see if that would help.

ran fsck again. It still reckons the files are there.

I've checked through the forums for a solution but can't find one.

This must be a sql thing.

I assume that my initial problem will be resolved once this locked file problem is fixed.

Please help.

Re: blahblah is locked by another process. - Driving me mad!

Posted: Sun Mar 20, 2011 1:18 pm
by bertie40
Physician, heal thyself.

The following appears to have fixed it.
--------------------------------------------------------
mysql -u greyhole -pgreyhole -e "delete from tasks where action = 'rename'" greyhole
greyhole --fsck
service greyhole restart

Should fix this.
This is a bug where renaming a directory sends Greyhole in what looks like an infinite loop, but isn't. It just takes a long long time trying to find all files in the renamed directory.
The bigger the directory (and sub-directories), the longer it will take greyhole.
The issue is tracked in the GH bug tracker: http://code.google.com/p/greyhole/issues/detail?id=62

Re: blahblah is locked by another process. - Driving me mad!

Posted: Sun Mar 20, 2011 4:22 pm
by bertie40
Nope.
I'm wrong.
Its still buggered.

Re: blahblah is locked by another process. - Driving me mad!

Posted: Mon Mar 21, 2011 7:41 am
by gboudreau
Need the info detailed here to be able to help you: http://forums.amahi.org/viewtopic.php?f=39&t=1989

Additionally (run as root):

Code: Select all

lsof | grep tempo.doc lsof "/var/hda/files/Work/My Dox backup/tempo.doc" greyhole --debug tempo.doc greyhole --debug "Movies/DVDs/myvideo.avi"

Re: blahblah is locked by another process. - Driving me mad!

Posted: Tue Mar 29, 2011 1:48 am
by bertie40
Hi. Thanks for getting back to me.

For the time being, I have simply deleted the problematic directory.

From what I found, this was the only directory affected, but I'm keeping a close eye on things.

Regards
& Thanks.