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

Optimizing and caching browser bundles... #66

Closed
szgaljic opened this issue Oct 13, 2018 · 7 comments
Closed

Optimizing and caching browser bundles... #66

szgaljic opened this issue Oct 13, 2018 · 7 comments

Comments

@szgaljic
Copy link

Bitsensor ElastAlert 0.0.14 is running at elastalert:3030.

Kibana 6.4.2 started with this docker-compose file:

  kibana:
    image: docker.elastic.co/kibana/kibana:6.4.2
    restart: always
    networks:
      - elk
    ports:
      - "5601:5601"
    volumes:
      - ./kibana.yml:/usr/share/kibana/config/kibana.yml
      - .:/apps
    environment:
      - "ELASTICSEARCH_URL: http://elasticsearch"
      - "XPACK_MONITORING_ENABLED: false"
    entrypoint: /apps/docker-entrypoint-es-plugins.sh

networks:
  elk:
    external: true

The entrypoint script does this:

#!/bin/bash
# setting up prerequisites

kibana-plugin install https://github.com/bitsensor/elastalert-kibana-plugin/releases/download/1.0.1/elastalert-kibana-plugin-1.0.1-6.4.2.zip

exec /docker-entrypoint.sh elasticsearch

It just hangs at Optimizing and caching browser bundles...

kibana]# docker-compose up
Creating kibana_kibana_1 ... done
Attaching to kibana_kibana_1
kibana_1  | Attempting to transfer from https://github.com/bitsensor/elastalert-kibana-plugin/releases/download/1.0.1/elastalert-kibana-plugin-1.0.1-6.4.2.zip
kibana_1  | Transferring 20147047 bytes....................
kibana_1  | Transfer complete
kibana_1  | Retrieving metadata from plugin archive
kibana_1  | Extracting plugin archive
kibana_1  | Extraction complete
kibana_1  | Optimizing and caching browser bundles...

Been hanging there for an hour.

@martijnrondeel
Copy link
Contributor

What OS is running on the Docker host machine?

@szgaljic
Copy link
Author

Fedora 29

@martijnrondeel
Copy link
Contributor

I'll try to get it setup under Fedora, but in the meantime, have you tried running it on a different machine (preferably with a different OS)?

@szgaljic
Copy link
Author

szgaljic commented Oct 16, 2018

@martijnrondeel Thanks! This is also happening on my Red Hat Servers (more important than Fedora for me actually).

$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.5 (Maipo)

$ uname -a
Linux logserver 3.10.0-862.14.4.el7.x86_64 #1 SMP Fri Sep 21 09:07:21 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ docker --version
Docker version 1.13.1, build 8633870/1.13.1

$ docker-compose --version
docker-compose version 1.22.0, build f46880fe

Is there any other information I can provide you?

@spawnia
Copy link

spawnia commented Oct 23, 2018

Experiencing the same issue, i tried to build the following Dockerfile on CoreOS and CentOS 7.

FROM docker.elastic.co/kibana/kibana:6.4.2

RUN bin/kibana-plugin install https://github.com/bitsensor/elastalert-kibana-plugin/releases/download/1.0.1/elastalert-kibana-plugin-1.0.1-6.4.2.zip

Edit: It actually worked on CoreOS, just took ~ 10min.

@martijnrondeel
Copy link
Contributor

I'm not able to replicate this and googling around it seems like a Kibana issue. I've seen a suggestion to increase the NodeJS max-old-space-size setting but it doesn't seem like the solution.

Related issues: elastic/kibana#19678, wazuh/wazuh-dashboard-plugins#664

@szgaljic
Copy link
Author

Setting export NODE_OPTIONS="--max-old-space-size=3072" and waiting 10 minutes worked.

Thanks for the help!

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

3 participants