irods / contrib

A pooled collection of community-contributed code that works alongside iRODS
BSD 3-Clause "New" or "Revised" License
13 stars 19 forks source link

irods_audit_elk_stack Dockerfile not building #35

Open trel opened 2 months ago

trel commented 2 months ago

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 commented 2 months ago

attn @SwooshyCueb

SwooshyCueb commented 2 months ago

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 commented 2 months ago

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

trel commented 2 months ago

will try again.

trel commented 1 month ago

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 commented 1 month ago

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