This is temp repo just to reproduce issue I encountered with Ignite, SSL and Docker. Here is a related question on stack overflow:
- You're running *nix OS
- You have
maven
andjdk 1.8+
- You have
docker-compose
3.7+
docker
anddocker-compose
requireroot
to run (thus*.sh
scripts I've created will dosudo
and ask for sudo password- Your non-loopback network device's name is
enp0s3
(if it isn't update variableETH_DEV
in both*.sh
files) - None of your network devices have network
10.9.9.0/24
(if they do, change sh scripts and docker-compose to use other IP address to create and bind to)
- Clone this repo
- Run
same-time-ssl-issue.sh
script (this script will simultaneously bring up bothweb0
andweb1
containers) - You'll see exceptions just like described in aforementioned stackoverflow question, context initialization failed and application will never recover from this error
- Press
ctrl+c
(this will stop and remove current containers) - Run
sequential-no-issue.sh
script (this will bring upweb0
and then after a 20 second delay,web1
). No issue and you can see it shows2
nodes in cluster (in logs and if you dowget http://10.9.9.1:8080/count -q -O -
)
- I wasn't able to reproduce the issue outside of docker environment
- I was able to get rid of this issue by removing SSL configuration from Ignite