ArcadeData / arcadeanalytics

Arcade Analytics is the first Open Source Graph Analytics platform. Connect your Graph Database (Neo4j, OrientDB, Amazon Neptune, Microsoft CosmosDB, etc) and RDBMS (Oracle, MySQL, Postgres, Microsoft SQLServer, MariaDB) to create powerful dashboards.
https://arcadeanalytics.com
Apache License 2.0
190 stars 30 forks source link

Elasticsearch and Lucene failure on single image quick start #196

Open karlis-i opened 4 years ago

karlis-i commented 4 years ago

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

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:

arcade-player commented 4 years ago

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

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

karlis-i commented 4 years ago

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

arcade-player commented 4 years ago

Can you share the update you made to the recipe?

karlis-i commented 4 years ago

I modified recipes/arcade.yml:

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