Troubleshooting
Error | Solution |
---|---|
message=Access denied, bucketName=models-products-input | Use MinIO to create buckets. |
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 \\\"/local/fosuser/minio_consul_elastic/elastic/elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/2bf96ca7365c66c9e5f4a3a69a23c23eb5a4b4f721c4b06c20db626fc7e49e63/rootfs\\\" at \\\"/var/lib/docker/devicemapper/mnt/2bf96ca7365c66c9e5f4a3a69a23c23eb5a4b4f721c4b06c20db626fc7e49e63/rootfs/usr/share/elasticsCreating opes-consul ... done 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 \\\"/local/fosuser/minio_consul_elastic/elastic/elasticsearch.yml\\\" to rootfs \\\"/var/lib/docker/devicemapper/mnt/2bf96ca7365c66c9e5f4a3a69a23c23eb5a4b4f721c4b06c20db626fc7e49e63/rootfs\\\" at \\\"/var/lib/docker/devicemapper/mnt/2bf96ca7365c66c9e5f4a3a69a23c23eb5a4b4f721c4b06c20db626fc7e49e63/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. [fosuser@opes-test-2 minio_consul_elastic] # |
|
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 minio ... error Creating opes-consul ... Creating elasticsearch ... ERROR: for minio Cannot start service minio1: driver failed programming external connectivity on endpoint minio (9052cf90f8b57c32e6b303555529c0e627650c54723ec2857ea6958b8c1c55bf): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.21.0.2:9000 ! -i br-8e23b769777a: iptables: No chain/target/match by that name. Creating elasticsearch ... error ERROR: for elasticsearch Cannot start service elasticsearch: driver failed programming external connectivity on endpoint elasticsearch (447e4dcea1af447021e29cbaafe1c87ce08c5f8bfa8063e5faa8fa40eedd20c0): (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: No chainCreating opes-consul ... error (exit status 1)) ERROR: for opes-consul Cannot start service consul: driver failed programming external connectivity on endpoint opes-consul (c9f7db7b5afaa56ed5241fb2a8fc500a3b3977dc1160616832ae3bb902f988e1): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8500 -j DNAT --to-destination 172.21.0.2:8500 ! -i br-8e23b769777a: iptables: No chain/target/match by that name. (exit status 1)) ERROR: for minio1 Cannot start service minio1: driver failed programming external connectivity on endpoint minio (9052cf90f8b57c32e6b303555529c0e627650c54723ec2857ea6958b8c1c55bf): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.21.0.2:9000 ! -i br-8e23b769777a: iptables: No chain/target/match by that name. (exit status 1)) |
Enable firewall where Consul, MinIO, and Elastic Search are deployed, and open the ports needed:
firewall-cmd --get-active-zones firewall-cmd --zone=work --add-port=9000/tcp --permanent firewall-cmd --reload |