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

bertie40
Posts: 35
Joined: Sat Mar 19, 2011 3:16 am

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

Postby bertie40 » Sun Mar 20, 2011 7:25 am

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.

bertie40
Posts: 35
Joined: Sat Mar 19, 2011 3:16 am

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

Postby bertie40 » Sun Mar 20, 2011 1:18 pm

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

bertie40
Posts: 35
Joined: Sat Mar 19, 2011 3:16 am

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

Postby bertie40 » Sun Mar 20, 2011 4:22 pm

Nope.
I'm wrong.
Its still buggered.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

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

Postby gboudreau » Mon Mar 21, 2011 7:41 am

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"
- Guillaume Boudreau

bertie40
Posts: 35
Joined: Sat Mar 19, 2011 3:16 am

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

Postby bertie40 » Tue Mar 29, 2011 1:48 am

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.

Who is online

Users browsing this forum: No registered users and 12 guests