Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch and Lucene failure on single image quick start #196

Open
karlis-i opened this issue Mar 10, 2020 · 4 comments
Open

Elasticsearch and Lucene failure on single image quick start #196

karlis-i opened this issue Mar 10, 2020 · 4 comments

Comments

@karlis-i
Copy link

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:

  • OS: Windows 10
@arcade-player
Copy link
Contributor

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

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

@karlis-i
Copy link
Author

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 #177

@arcade-player
Copy link
Contributor

Can you share the update you made to the recipe?

@karlis-i
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants