Register  |  Login

Question Details    

   Question

Time: 11:06 - Sep 19, 2006     Asked by: Anpanman      Status: Answered      Points: 200   

System.IO.IOException: Lock obtain timed out - Problem indexing with lucene.net?

Hi,

I'm using the asp.net framework lucene.net to index text to be able to search it easily.
This has been working fine, but suddenly I got problems with having write permissions to the directories that lucene uses (index and temp).

I tried to delete the former indexing files, but I'm stuck at this error message:

System.IO.IOException: Lock obtain timed out: Lock@D:\xxxxxxxxxxx\Temp\lucene-9ad3e71bc5841b99fcf8c97ba8b78a57-write.lock at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout) at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, Boolean closeDir) at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)

I didn't change anything related to it, and I checked the write permissions, which are ok. I also still have the lockdir defined in the web.config file:

<add key="Lucene.Net.lockdir" value="D:xxxxxxxxxxx\Temp\" />

Anyone knows what could be the issue here?

Ask a New Question

Become a Quomon Expert

Current Categories

 

Other Questions Needing Answers


   

Answer Discussion
Answer Discussion
Answer Summaries
Answer Summary
 
Anpanman,

It doesn't look like anything should've disrupted Lucene in what you've explained. The only thing I can think of is that the parent privileges could've been changed. The recent MS updates for XP screwed up one of my apps that writes to TEMP as well. I just had to reset the privs on the parent, and everything went back to working.

Might not be a 200 point answer, but it couldn't hurt to check it out just in case XP got you, too.

Ric

Expert:

rcastagna

Date:

Sep 19, 2006

Time:

17:22

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Thanks, Ric.
I was also thinking it was a problems of writing privileges, but the thing is that it doesn't happen to me on my development computer, only on the shared hosting provider. I've written them, but didn't get an answer yet.

Expert:

Anpanman

Date:

Sep 19, 2006

Time:

17:45

 

Votes: Good (0) | Bad (0)
Login to rate this answer

It boils down to the ASP.NET account not having writing privileges. My hosting provider changed something and for a couple of weeks I can't upload files via web, can't use lucene, well can't do something that's very basic in a website!
I'm testing out another provider these days and hopefully will be changing very soon.

Expert:

Anpanman

Date:

Oct 10, 2006

Time:

11:11

 

Votes: Good (0) | Bad (0)
Login to rate this answer

you get the points anyway, ric :)
It was an urgent matter...

Expert:

Anpanman

Date:

Oct 10, 2006

Time:

11:12

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Apparently it might also be the account called NETWORK SERVICE in .net 2.0 or whatever the application pool identity is running as, that needs modify/write permissions to the index and temp folders.

Expert:

Anpanman

Date:

Jan 19, 2007

Time:

08:45

 

Votes: Good (0) | Bad (0)
Login to rate this answer

Question Answered

This question has been answered, and points have been rewarded to the following experts:

rcastagna: 200

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.

 
No summaries have been submitted yet. Want to be the first?



Respond to this question:

New User

  Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:


Forgotten Password

 

New User

  Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:


Forgotten Password

   

"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it


All Questions


Language Options

English:

www.quomon.com

Español:

www.quomon.es

Quomon Blog

blog.quomon.com

Sponsors

Questions and Answers Software
Real Estate Postcards
Marketing Fulfillment