Re: write.lock file appears and solr wont open

2017-09-06 Thread Erick Erickson
Or only catch the specific exception and only swallow that? But yeah, this is something that should change as I see this "in the field" and a more specific error message would short-circuit a lot of unnecessary pain. see: LUCENE-7959 Erick On Wed, Sep 6, 2017 at 5:49 AM, Shawn Heisey wrote: > O

Re: write.lock file appears and solr wont open

2017-09-06 Thread Shawn Heisey
On 9/4/2017 5:53 PM, Erick Erickson wrote: > Gah, thanks for letting us know. I can't tell you how often > permissions issues have tripped me up. You're right, it does seem like > there could be a better error message though. I see this code in NativeFSLockFactory, code that completely ignores any

Re: write.lock file appears and solr wont open

2017-09-04 Thread Erick Erickson
-Original Message- > From: Erick Erickson [mailto:erickerick...@gmail.com] > Sent: Saturday, 26 August 2017 9:15 a.m. > To: solr-user > Subject: Re: write.lock file appears and solr wont open > > Odd. The way core discovery works, it starts at SOLR_HOME and recursively

RE: write.lock file appears and solr wont open

2017-09-04 Thread Phil Scadden
). -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Saturday, 26 August 2017 9:15 a.m. To: solr-user Subject: Re: write.lock file appears and solr wont open Odd. The way core discovery works, it starts at SOLR_HOME and recursively descends the directories

Re: write.lock file appears and solr wont open

2017-08-25 Thread Erick Erickson
Odd. The way core discovery works, it starts at SOLR_HOME and recursively descends the directories. Whenever the recursion finds a "core.properties" file it says "Aha, this must be a core". From there it assumes the data directory is immediately below where it found the core.properties file in the

RE: write.lock file appears and solr wont open

2017-08-24 Thread Phil Scadden
SOLR_HOME is /var/www/solr/data The zip was actually the entire data directory which also included configsets. And yes core.properties is in var/www/solr/data/prindex (just has single line name=prindex, in it). No other cores are present. The data directory should have been unzipped before the so

Re: write.lock file appears and solr wont open

2017-08-24 Thread Erick Erickson
It's certainly possible to move a core like this. You say you moved the core. Did you move the core.properties file as well? And did it point to the _same_ directory as the original (dataDir property)? The whole purpose of write.lock is to keep two cores from being able to update the same index at

write.lock file appears and solr wont open

2017-08-24 Thread Phil Scadden
I am slowing moving 6.5.1 from development to production. After installing solr on the final test machine, I tried to supply a core by zipping up the data directory on development and unzipping on test. When I go to admin I get: [cid:image001.png@01D31DA9.1B0EF540] Write.lock obviously causing a