Troubleshooting
The following section describes troubleshooting information for TIBCO Offer and Price Engine.
Error | Solution |
---|---|
ERROR: for elasticsearch Cannot start service elasticsearch: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/ 2bf96ca7365c66c9e5f4a3a69a23c23eb5a 4b4f721c4b06c20db626fc7e49e63/ rootfs s and is the expected type ERROR: for elasticsearch Cannot start service elasticsearch: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/ 2bf96ca7365c66c9e5f4a3a69a23c23eb5a4 b4f721c4b06c20db626fc7e49e63 /rootfs\\\" at \\\"/var/lib/docker/devicemapper/mnt/ 2bf96ca7365c66c9e5f4a3a69a23c23eb5a 4b4f721c4b06c20db626fc7e49e63/ rootfs/usr/share/elasticsearch/config/elasticsearch.yml\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type ERROR: Encountered errors while bringing up the project. | Check if the specified host path exists and is the expected type.
Create Elastic directory and copy the elasticsearch.yml from samples under Elastic directory. Also give 777 privileges on the Elastic directory: sudo docker-compose --file docker-compose.yml up elasticsearch |
ERROR: Encountered errors while bringing up the project. | |
elasticsearch | [2019-02-07T18:55:44,689][INFO ] [o.e.b.BootstrapChecks ] [es01] bound or publishing to a non-loopback address, enforcing bootstrap checks elasticsearch | ERROR: [2] bootstrap checks failed elasticsearch | [1]: initial heap size [536870912] not equal to maximum heap size [2634022912]; this can cause resize pauses and prevents mlockall from locking the entire heap elasticsearch | [2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] |
Run the command: sudo sysctl -w vm.max_map_count=262144 |
Creating elasticsearch ... Creating elasticsearch ... error ERROR: for elasticsearch Cannot start service elasticsearch: driver failed programming external connectivity on endpoint elasticsearch (447e4dcea1af447021e29cbaafe1c8 7ce08c5f8bfa8063e5faa8fa40eedd20c0): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9300 -j DNAT --to-destination 172.20.0.2:9300 ! -i br-b99ab24b2e0e: iptables: error (exit status 1)) |
Enable firewall where Elastic Search is deployed, and open the ports needed: firewall-cmd --zone=work --add-port=9200/tcp --permanent |