SEVERE: java.io.IOException: The specified network name is no longer available

2010-09-10 Thread brian519

Hi all,

Using Solr 1.4 hosted with Tomcat 6 on Windows 2003 (sometimes Windows 2008)

Occasionally, we can't search anymore and this error shows up in the log
file:

SEVERE: java.io.IOException: The specified network name is no longer
available
at java.io.RandomAccessFile.readBytes(Native Method)
at java.io.RandomAccessFile.read(Unknown Source)
at
org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.readInternal(SimpleFSDirectory.java:132)
at
org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157)
at
org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:38)
at org.apache.lucene.store.IndexInput.readVInt(IndexInput.java:80)
at org.apache.lucene.index.TermBuffer.read(TermBuffer.java:64)
at 
org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:129)
at 
org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:160)
at org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:232)
at 
org.apache.lucene.index.TermInfosReader.terms(TermInfosReader.java:299)
at org.apache.lucene.index.SegmentReader.terms(SegmentReader.java:939)
at
org.apache.lucene.index.DirectoryReader$MultiTermEnum.init(DirectoryReader.java:973)
at 
org.apache.lucene.index.DirectoryReader.terms(DirectoryReader.java:620)
at 
org.apache.solr.search.SolrIndexReader.terms(SolrIndexReader.java:302)
at
org.apache.solr.handler.component.TermsComponent.process(TermsComponent.java:82)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:195)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338)
at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)


Once we see the error, it is persistent.  Restarting Tomcat makes the error
stop.  This is happening across a variety of deployments and networks, so I
don't think there is an actual network problem.  Many other apps operate
fine on the same server(s)/network(s). 

We are using a file server (again with many different configurations) to
store the actual index files, which are not on the same machine as
Solr/Tomcat.   On a few deployments we're moving the index local to Solr to
see if that corrects the problem.

My questions are:

1. Has anyone seen something like this before?
1. Is putting the index files on a file server a supported configuration?

Thanks for any help
Brian.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/SEVERE-java-io-IOException-The-specified-network-name-is-no-longer-available-tp1454016p1454016.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SEVERE: java.io.IOException: The specified network name is no longer available

2010-09-10 Thread Yonik Seeley
On Fri, Sep 10, 2010 at 2:12 PM, brian519 bpear...@desire2learn.com wrote:
 Once we see the error, it is persistent.  Restarting Tomcat makes the error
 stop.  This is happening across a variety of deployments and networks, so I
 don't think there is an actual network problem.  Many other apps operate
 fine on the same server(s)/network(s).

Hmmm, that's interesting.  I wonder if it's a Java bug or something?
There's nothing in lucene/solr that I know of that would lead to The
specified network name is no longer
available.

What JVM are you using?

-Yonik
http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8


Re: SEVERE: java.io.IOException: The specified network name is no longer available

2010-09-10 Thread brian519


Yonik Seeley-2-2 wrote:
 
 
 Hmmm, that's interesting.  I wonder if it's a Java bug or something?
 There's nothing in lucene/solr that I know of that would lead to The
 specified network name is no longer
 available.
 
 What JVM are you using?
 
 -Yonik
 http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8
 
 

java -version gives me this:

java version 1.6.0_18
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

Is that what you're looking for?  

Can you confirm that putting the Index files on a network share is OK?   We
used to use Lucene and I know that this was bad news .. but since getting
these errors we're wondering whether Solr might have a similar issue.  

I found this Java bug, but it's really old and I'm not sure if it's
relevant:  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6176034

Thanks Yonik
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/SEVERE-java-io-IOException-The-specified-network-name-is-no-longer-available-tp1454016p1454271.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: SEVERE: java.io.IOException: The specified network name is no longer available

2010-09-10 Thread Erick Erickson
SOLR uses Lucene, so I'd expect that putting your index files on a share
isn't any more robust under SOLR than Lucene

Sounds to me like your network's glitchy.

FWIW
Erick

On Fri, Sep 10, 2010 at 3:00 PM, brian519 bpear...@desire2learn.com wrote:



 Yonik Seeley-2-2 wrote:
 
 
  Hmmm, that's interesting.  I wonder if it's a Java bug or something?
  There's nothing in lucene/solr that I know of that would lead to The
  specified network name is no longer
  available.
 
  What JVM are you using?
 
  -Yonik
  http://lucenerevolution.org  Lucene/Solr Conference, Boston Oct 7-8
 
 

 java -version gives me this:

 java version 1.6.0_18
 Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
 Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

 Is that what you're looking for?

 Can you confirm that putting the Index files on a network share is OK?   We
 used to use Lucene and I know that this was bad news .. but since getting
 these errors we're wondering whether Solr might have a similar issue.

 I found this Java bug, but it's really old and I'm not sure if it's
 relevant:  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6176034

 Thanks Yonik
 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/SEVERE-java-io-IOException-The-specified-network-name-is-no-longer-available-tp1454016p1454271.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: SEVERE: java.io.IOException: The specified network name is no longer available

2010-09-10 Thread brian519


Erick Erickson wrote:
 
 SOLR uses Lucene, so I'd expect that putting your index files on a share
 isn't any more robust under SOLR than Lucene
 
 Sounds to me like your network's glitchy.
 
 

Except that with Lucene we had separate processes searching and indexing
directly against the files over the network, so it wouldn't be possible to
have any centralized locking logic beyond NTFS.  

Solr is different in that indexing and searching requests go through Solr
and are passed to Lucene through the same process.  This is why it sounds
plausible to me that Solr could handle storing the index files on a network
share.

Originally I blamed the network too.  But given that other apps that are
using the same file server are working fine, and that we have this problem
across completely separate networks (ie, different clients of ours that have
completely different infrastructures), I don't think that it is the network.

Does anyone else store their Solr index on a file share, or NAS or SAN or
anything other than a local disk?

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/SEVERE-java-io-IOException-The-specified-network-name-is-no-longer-available-tp1454016p1454468.html
Sent from the Solr - User mailing list archive at Nabble.com.