golang-clean-web-api icon indicating copy to clipboard operation
golang-clean-web-api copied to clipboard

Cant start the project

Open apuatcfbd opened this issue 1 year ago • 1 comments

When trying to start. got following error:

docker compose -f "docker/docker-compose.yml" up -d setup elasticsearch kibana filebeat postgres pgadmin redis prometheus node-exporter alertmanager grafana
WARN[0000] /var/www/golang-clean-web-api/docker/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion 
WARN[0000] mount of type `volume` should not define `bind` option 
[+] Running 1/0
 ✔ Network docker_webapi_network     Created                                                                                          0.0s 
[+] Running 11/12er-alertmanager-1   Creating                                                                                         0.0s 
 ✔ Network docker_webapi_network     Created                                                                                          0.0s 
 ✔ Container docker-alertmanager-1   Started                                                                                          0.5s 
 ✔ Container redis_container         Started                                                                                          0.5s 
 ✔ Container postgres_container      Started                                                                                          0.4s 
 ✔ Container docker-node-exporter-1  Started                                                                                          0.4s 
 ⠦ Container elasticsearch           Starting                                                                                         0.7s 
 ✔ Container docker-prometheus-1     Started                                                                                          0.6s 
 ✔ Container docker-filebeat-1       Created                                                                                          0.1s 
 ✔ Container docker-kibana-1         Created                                                                                          0.1s 
 ✔ Container docker-setup-1          Created                                                                                          0.1s 
 ✔ Container pgadmin_container       Started                                                                                          0.5s 
 ✔ Container docker-grafana-1        Created                                                                                          0.0s 
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/var/www/golang-clean-web-api/docker/elk/elasticsearch/config/elasticsearch.yml" to rootfs at "/usr/share/elasticsearch/config/elasticsearch.yml": mount /var/www/golang-clean-web-api/docker/elk/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml (via /proc/self/fd/6), flags: 0x5000: 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

SystemInfo: Ubuntu 24.04 Docker version 27.3.1, build ce12230

Am I missing something?

apuatcfbd avatar Nov 16 '24 10:11 apuatcfbd

@apuatcfbd, Can you share docker-setup-1 and elasticsearch containers logs with me

naeemaei avatar Nov 30 '24 17:11 naeemaei