Search Server Does not start correctly

I'm trying to do a local install on a windows machine and I'm having trouble with the search server. The appian engines all start and run correctly, and when I run search-server\bin\start.bat

I get the following:

Calling start.conf.bat
SS_JAVA_OPTS: -Xms1024m -Xmx1024m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT
Appian Search Server process has been started.

 

however if I have a file explorer window open to the search-server\bin directory, I can see the ss.pid file be created and then immediately disappear 

 

the error in the search-server.log file is this:

 

[2017-12-20 21:16:31,245][INFO ][com.appian.es.bootstrap.NodeInit] JVM Version: 1.8.0_151
[2017-12-20 21:16:31,262][INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:
-Xms1024m
-Xmx1024m
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-Djava.awt.headless=true
-Djava.net.preferIPv4Stack=true
-Duser.timezone=GMT
-DAPPIAN_HOME=..\..
[2017-12-20 21:16:31,263][INFO ][com.appian.es.bootstrap.NodeInit] The following settings will be used to start the ElasticSearch node:
path.home=C:\appian\appian174/search-server
path.conf=C:\appian\appian174/search-server/conf
path.plugins=C:\appian\appian174/search-server/plugins
path.data=C:\appian\appian174/_admin/search-local/search-server/data
path.work=C:\appian\appian174/_admin/search-local/search-server/work
path.logs=C:\appian\appian174/logs/search-server
http.enabled=true
action.auto_create_index=false
index.mapper.dynamic=false
discovery.zen.ping.multicast.enabled=false
threadpool.bulk.queue_size=500
indices.fielddata.cache.size=15%
index.max_result_window=100000
index.search.slowlog.threshold.query.warn=500ms
index.search.slowlog.threshold.query.info=100ms
index.search.slowlog.threshold.fetch.warn=500ms
index.search.slowlog.threshold.fetch.info=100ms
index.indexing.slowlog.threshold.index.warn=500ms
index.indexing.slowlog.threshold.index.info=100ms
index.number_of_replicas=0
discovery.zen.minimum_master_nodes=1
cluster.name=appian-search-cluster
[2017-12-20 21:16:31,272][INFO ][com.appian.es.bootstrap.NodeInit] Attempting initialization of ElasticSearch node on localhost:9300.
[2017-12-20 21:16:31,440][INFO ][org.elasticsearch.node ] [Node localhost:9300] version[2.4.5], pid[17496], build[c849dd1/2017-04-24T16:18:17Z]
[2017-12-20 21:16:31,441][INFO ][org.elasticsearch.node ] [Node localhost:9300] initializing ...
[2017-12-20 21:16:31,441][DEBUG][org.elasticsearch.node ] [Node localhost:9300] using config [C:\appian\appian174\search-server\conf], data [[C:\appian\appian174\_admin\search-local\search-server\data]], logs [C:\appian\appian174\logs\search-server], plugins [C:\appian\appian174\search-server\plugins]
[2017-12-20 21:16:31,504][INFO ][com.appian.es.bootstrap.NodeInit] Failed to initialize ElasticSearch node on port 9300. If other ports for this host are specified in appian-topology.xml, those will be tried as well.
java.lang.IllegalStateException: failed to load bundle [file:/C:/appian/appian174/search-server/plugins/appian-es-auth/appian-es-auth-0.60.0.jar, file:/C:/appian/appian174/search-server/plugins/appian-es-auth/appian-es-auth-0.60.1.jar] due to jar hell
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:421)
at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:129)
at org.elasticsearch.node.Node.<init>(Node.java:158)
at com.appian.es.bootstrap.NodeWithPlugins.<init>(NodeWithPlugins.java:14)
at com.appian.es.bootstrap.NodeInit.buildAndStartNode(NodeInit.java:328)
at com.appian.es.bootstrap.NodeInit.init(NodeInit.java:149)
at com.appian.es.bootstrap.Bootstrap.main(Bootstrap.java:62)
Caused by: java.lang.IllegalStateException: jar hell!
class: com.appian.es.auth.BasicAuthRestFilter
jar1: C:\appian\appian174\search-server\plugins\appian-es-auth\appian-es-auth-0.60.0.jar
jar2: C:\appian\appian174\search-server\plugins\appian-es-auth\appian-es-auth-0.60.1.jar
at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:280)
at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:186)
at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:419)
... 6 more
[2017-12-20 21:16:31,506][ERROR][com.appian.es.bootstrap.Bootstrap] An unexpected error occurred.
java.lang.IllegalStateException: Failed to initialize ElasticSearch node on any of the specified ports.
at com.appian.es.bootstrap.NodeInit.init(NodeInit.java:162)
at com.appian.es.bootstrap.Bootstrap.main(Bootstrap.java:62)

anyone know how to fix this?

  Discussion posts and replies are publicly visible

Parents
  • What version of Appian did you install? Also, did you deploy the latest hotfix for that version as part of the installation?

    This is due to having multiple versions of the same JAR file in place. See the error:

    java.lang.IllegalStateException: failed to load bundle [file:/C:/appian/appian174/search-server/plugins/appian-es-auth/appian-es-auth-0.60.0.jar, file:/C:/appian/appian174/search-server/plugins/appian-es-auth/appian-es-auth-0.60.1.jar] due to jar hell

    which includes the system finding both 0.60.0 and 0.60.1 versions of the same auth jar. There should only be one version of this JAR in place. 

  • I had deployed hotfix A, which actually might have been part of the problem? When I tried a second time without doing the hotfix there was only one file in that location.
Reply Children