arcadeanalytics icon indicating copy to clipboard operation
arcadeanalytics copied to clipboard

Elasticsearch and Lucene failure on single image quick start

Open karlis-i opened this issue 5 years ago • 4 comments

Describe the bug After cloning the official Git repository from https://github.com/ArcadeData/arcadeanalytics.git , I try to run the single image quick start by running the supplied command: docker-compose -f src/main/docker/app-single.yml up but the process fails. It seems to me that the error is caused by failed Lucene commit

To Reproduce Run the following commands in console:

  1. git clone https://github.com/ArcadeData/arcadeanalytics.git .
  2. docker-compose -f src/main/docker/app-single.yml up
  3. See error

Expected behavior

  • No error messages
  • Running Docker container
  • Working http://localhost:8080/

Console output

docker-compose -f src/main/docker/app-single.yml up
WARNING: The CURRENT_UID variable is not set. Defaulting to a blank string.
Creating network "docker_default" with the default driver
Creating docker_arcadeanalytics-single_1 ... done
Attaching to docker_arcadeanalytics-single_1
The application will start in 0s...

2020-03-10 13:30:40.767 ERROR 1 --- [           main] o.s.b.l.LoggingApplicationListener       : Cannot set level:  for 'null'
2020-03-10 13:30:40.773 ERROR 1 --- [           main] o.s.b.l.LoggingApplicationListener       : Cannot set level:  for 'com.arcadeanalytics'
2020-03-10 13:30:40.774 ERROR 1 --- [           main] o.s.b.l.LoggingApplicationListener       : Cannot set level:  for 'io.github.jhipster'
2020-03-10 13:30:41.209  INFO 1 --- [           main] com.arcadeanalytics.ArcadeanalyticsApp   : Starting ArcadeanalyticsApp on 993ce55857ee with PID 1 (/app.war started by root in /)
2020-03-10 13:30:41.210  INFO 1 --- [           main] com.arcadeanalytics.ArcadeanalyticsApp   : The following profiles are active: prod-single
2020-03-10 13:30:51.345  INFO 1 --- [           main] c.arcadeanalytics.config.WebConfigurer   : Web application configuration, using profiles: prod-single
2020-03-10 13:30:51.361  INFO 1 --- [           main] c.arcadeanalytics.config.WebConfigurer   : Web application fully configured
2020-03-10 13:31:11.492  WARN 1 --- [][generic][T#2]] org.elasticsearch.index.engine           : [Felicia Hardy] [dashboard][3] failed engine [lucene commit failed]

org.apache.lucene.store.AlreadyClosedException: Underlying file changed by an external force at 2020-03-10T15:31:19Z, 
    (lock=NativeFSLock(path=/arcade/elasticsearch/data/elasticsearch/nodes/0/indices/dashboard/3/index/write.lock,impl=sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid],ctime=2020-03-10T15:31:19Z))
2020-03-10 13:31:11.565  WARN 1 --- [][generic][T#2]] org.elasticsearch.indices.cluster        :
    [Felicia Hardy] [[dashboard][3]] marking and sending shard failed due to [failed recovery]
org.elasticsearch.index.shard.IndexShardRecoveryException: failed recovery

...

docker_arcadeanalytics-single_1 exited with code 1

Desktop:

  • OS: Windows 10

karlis-i avatar Mar 10 '20 17:03 karlis-i

Hi, can you use the configuration on https://github.com/ArcadeData/arcadeanalytics-recipes

docker-compose -f recipes/arcade-standalone.yml up

arcade-player avatar Mar 10 '20 19:03 arcade-player

Thank you, I was able to launch Analytics by modifying one of the recipes. I'd like to keep this ticket open, though, as it seems to be related to https://github.com/ArcadeData/arcadeanalytics/issues/177

karlis-i avatar Mar 12 '20 09:03 karlis-i

Can you share the update you made to the recipe?

arcade-player avatar Mar 14 '20 10:03 arcade-player

I modified recipes/arcade.yml:

  • removed values of SPRING_DATASOURCE_URL and SPRING_DATA_ELASTICSEARCH_CLUSTER_NODES
  • removed the following services- arcadeanalytics-postgresql, arcadeanalytics-elasticsearch and arcadeanalytics-orientdb

After that, I was able to run the container with command docker-compose -f recipes\arcade.yml up and access Arcade Analytics on http://localhost:8080/ Login details are admin/admin

karlis-i avatar Mar 16 '20 14:03 karlis-i