Hi,

after spending some hours to extract Tika with Maven2, i finally got it running, I thought...
When i try to do the following in bash to rebuild my index:

drush search-reindex --immediate --verbose

Tika returns the following errors:

Initialized Drupal 7.26 root directory at /var/www/vhosts/demohub.de/httpdocs/buf [notice]
Initialized Drupal site default at sites/default [notice]
Loading outputformat engine. [notice]
WD search_file_attachments: Tika Command: LANG=en_US.utf-8; java -Dfile.encoding=UTF8 -cp '/var/www/vhosts/demohub.de/httpdocs/tika-1.5/tika-app/target' -jar [notice]
'/var/www/vhosts/demohub.de/httpdocs/tika-1.5/tika-app/target/tika-app-1.5.jar' -t 'http://default/sites/berufundpflege/files/dummypdf_0.pdf' Result: Exception in thread "main" java.net.NoRouteToHostException: No route to host
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:395)
at org.apache.tika.cli.TikaCLI.process(TikaCLI.java:416)
at org.apache.tika.cli.TikaCLI.main(TikaCLI.java:112)
Caused by: java.net.NoRouteToHostException: Keine Route zum Zielrechner
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getContentType(Unknown Source)
at org.apache.tika.io.TikaInputStream.get(TikaInputStream.java:380)
... 2 more

And the files does not get indexed.

I'm pretty sure the problem is just that tika for some reasons takes the wrong URL ...

WD search_file_attachments: Tika Command: LANG=en_US.utf-8; java -Dfile.encoding=UTF8 -cp '/var/www/vhosts/demohub.de/httpdocs/tika-1.5/tika-app/target' -jar [notice]
'/var/www/vhosts/demohub.de/httpdocs/tika-1.5/tika-app/target/tika-app-1.5.jar' -t 'http://default/sites/berufundpflege/files/dummypdf_0.pdf' Result: Exception in thread "main" java.net.NoRouteToHostException: No route to host

Someone got an idea how to fix that?

Comments

sgurlt’s picture

Got it fixed with #1 from https://www.drupal.org/node/1792432 :-)

sgurlt’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.