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

irods_audit_elk_stack Dockerfile not building #35

Open
trel opened this issue May 8, 2024 · 6 comments
Open

irods_audit_elk_stack Dockerfile not building #35

trel opened this issue May 8, 2024 · 6 comments
Assignees

Comments

@trel
Copy link
Member

trel commented May 8, 2024

Mostly got there...

Current build failure on step 33/37:

47.50 + /etc/init.d/kibana start
47.74  * Starting Kibana Server
137.3  * Kibana Server appears to be running, but healthcheck failed: Kibana responded with HTTP status 503
137.3    ...fail!
------
Dockerfile:161
--------------------
 160 |     COPY kibana/irods_dashboard.ndjson /var/lib/irods-elk/irods_dashboard.ndjson
 161 | >>> RUN ES_JAVA_OPTS="-Xms512m -Xmx512m" /etc/init.d/elasticsearch start && \
 162 | >>>     curl -sLSf -XPUT "http://localhost:9200/irods_audit?pretty=true" \
 163 | >>>         -H 'Content-Type: application/json' \
 164 | >>>         --data @/var/lib/irods-elk/irods_audit.index.json \
 165 | >>>     && \
 166 | >>>     curl -sLSf -X GET "http://localhost:9200/irods_audit/_settings?pretty=true&human=true" && \
 167 | >>>     curl -sLSf -X GET "http://localhost:9200/irods_audit/_mapping?pretty=true&human=true" && \
 168 | >>>     /etc/init.d/kibana start && \
 169 | >>>     curl -sLSf -X POST "http://localhost:5601/api/saved_objects/_import" \
 170 | >>>         -H "kbn-xsrf: true" \
 171 | >>>         --form file=@/var/lib/irods-elk/irods_dashboard.ndjson \
 172 | >>>     && echo && \
 173 | >>>     /etc/init.d/kibana stop && \
 174 | >>>     /etc/init.d/elasticsearch stop
 175 |     SHELL [ "/bin/bash", "-c" ]
--------------------
ERROR: failed to solve: process "/bin/bash -x -c ES_JAVA_OPTS=\"-Xms512m -Xmx512m\" /etc/init.d/elasticsearch start &&     curl -sLSf -XPUT \"http://localhost:9200/irods_audit?pretty=true\"         -H 'Content-Type: application/json'         --data @/var/lib/irods-elk/irods_audit.index.json     &&     curl -sLSf -X GET \"http://localhost:9200/irods_audit/_settings?pretty=true&human=true\" &&     curl -sLSf -X GET \"http://localhost:9200/irods_audit/_mapping?pretty=true&human=true\" &&     /etc/init.d/kibana start &&     curl -sLSf -X POST \"http://localhost:5601/api/saved_objects/_import\"         -H \"kbn-xsrf: true\"         --form file=@/var/lib/irods-elk/irods_dashboard.ndjson     && echo &&     /etc/init.d/kibana stop &&     /etc/init.d/elasticsearch stop" did not complete successfully: exit code: 154
@trel trel changed the title irods_elk_stack Dockerfile not building irods_audit_elk_stack Dockerfile not building May 8, 2024
@trel
Copy link
Member Author

trel commented May 8, 2024

attn @SwooshyCueb

@SwooshyCueb SwooshyCueb self-assigned this May 8, 2024
@SwooshyCueb
Copy link
Member

I've been unable to reproduce the issue after building the image (with no build cache) five times.
Maybe kibana just took too long to start up on your system? Try increasing KBN_STARTUP_TIMEOUT in kibana/kibana.init (line 37)

@SwooshyCueb
Copy link
Member

I've pushed up my build of the image to https://hub.docker.com/r/swooshycueb/irods-elk-stack

@trel
Copy link
Member Author

trel commented May 8, 2024

will try again.

@trel
Copy link
Member Author

trel commented May 10, 2024

markus and alan have seen success. i have not.

adding lots of time to the KBN_STARTUP_TIMEOUT had no effect. getting 503s from kibana for that number of seconds, then exits.

@SwooshyCueb
Copy link
Member

Perhaps kibana's log might shed some light on the situation. It should be located at /var/log/kibana/kibana.log inside the container.

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