Sorry for the interruption, This error was due to wrong context path mentioned 
in solr-jetty-context.xml

<Set name="contextPath"><Property name="hostContext" default="/XXXXXX "/></Set>

And in jetty.xml it was referring /solr. So index was locked.

Thanks,
Srinivas

-----Original Message-----
From: Srinivas Kashyap <srini...@bamboorose.com.INVALID> 
Sent: 04 February 2020 11:04
To: solr-user@lucene.apache.org
Subject: RE: Solr 8.4.1 error

Hi Shawn,

I did delete the data folder of the core and also did in windows command: solr 
stop -all. I see only one solr server is running in this machine which gets 
started and stopped when I do so. To confirm, I even copied my folders to 
another system and tried there but facing same issue.

In solr-config.xml if I replace <lockType>${solr.lock.type:native}</lockType> 
with <lockType>${solr.lock.type:single}</lockType>. It starts without any error.

Please let me know how to find if other servers are running or if it is an 
issue with solr 8.4.1 version.

Thanks,
Srinivas

-----Original Message-----
From: Shawn Heisey <apa...@elyograg.org>
Sent: 04 February 2020 02:24
To: solr-user@lucene.apache.org
Subject: Re: Solr 8.4.1 error

On 2/3/2020 5:16 AM, Srinivas Kashyap wrote:
> I'm trying to upgrade to solr 8.4.1 and facing below error while start up and 
> my cores are not being listed in solr admin screen. I need your help.

<snip>

> Caused by: java.nio.channels.OverlappingFileLockException
>                  at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) 
> ~[?:1.8.0_221]
>                  at sun.nio.ch.SharedFileLockTable.add(Unknown Source) 
> ~[?:1.8.0_221]
>                  at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source) 
> ~[?:1.8.0_221]
>                  at java.nio.channels.FileChannel.tryLock(Unknown
> Source) ~[?:1.8.0_221]

This appears to be saying that the index in that directory is already locked.  
Lucene can detect when the index is already locked by the same program that 
tries to lock it again, and it will say so when that happens.  The message did 
not indicate that it was the same program, so in this case, it is likely that 
you already have another copy of Solr running and that copy has the index 
directory locked.  You cannot access the same index directory from multiple 
copies of Solr unless you disable locking, and that would be a REALLY bad idea.

Thanks,
Shawn
________________________________
DISCLAIMER:
E-mails and attachments from Bamboo Rose, LLC are confidential.
If you are not the intended recipient, please notify the sender immediately by 
replying to the e-mail, and then delete it without making copies or using it in 
any way.
No representation is made that this email or any attachments are free of 
viruses. Virus scanning is recommended and is the responsibility of the 
recipient.

Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more visit the Mimecast website.

Reply via email to