Open karatekaneen opened 3 years ago
Did a new test on an Ubuntu 18.04 VM and it does not encounter the same problems with elasticsearch crashing. But it still receives the error with Couldn't resolve host
when populating the db.
Hi @karatekaneen,
I'm not sure I understand your environment ... are you running Docker within a local VM or in a virtual server? We also provide Vagrant boxes that may suit better your needs if you can't run Docker locally:
https://app.vagrantup.com/artefactual/boxes/atom
Otherwise, I wonder if the error is now related to ES' virtual memory requirement, you may need to change it in the host, and in the VM if that's the issue ...
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/vm-max-map-count.html
Also, you may get more information about the starting error, restarting the ES container and checking its logs:
docker-compose restart elasticsearch
docker-compose logs -f elasticsearch
@jraddaoui For this I created a virtual machine, a compute engine as Google calls it. It is a virtual machine that runs in the cloud that comes with nothing more than an operating system on which we installed docker, docker-compose etc.
This is usually a good way to make sure that there is no conflicts between already installed software, older/newer versions ans stuff like that.
I know I saw some error on the map count in some of the environments I experimented with which I think created an exit 78
for the elasticsearch container which I solved by, as you said, increasing the map count.
I see, @karatekaneen,
So this instance is facing a different issue? Could you check the logs restarting the service? Maybe there is some conflict in the ES data volume, if you create a backup of the database (or don't care about it) you could fully recreate the environment, removing the volumes:
docker-compose down -v
docker-compose up -d
I tried that as well as tearing down multiple instances and start from scratch only to face the same error. The logs that I attached in the first post gives the same errors as all following attempts, with our without new volumes
Oh, I see, so are you running multiple AtoM Docker Compose environments in the same server? If that's the case, you may need to change the data volumes of those environments to avoid the collision in the Docker engine:
https://github.com/artefactual/atom/blob/qa/2.x/docker/docker-compose.dev.yml#L5-L7
Try using different names for those volumes on each environment.
No, it was a dedicated server just for atom, nothing else at all. A clean slate so to say, just to avoid conflicts as those you mention.
OS: debian-10-buster-v20210122 Version: 2.6.2
On a fresh VM where I only installed docker & docker-compose something is not working with elasticsearch when following this guide.
When running the
sudo docker-compose -f docker/docker-compose.dev.yml exec atom php symfony tools:purge --demo
there is an error where it cannot resolve some host. Full output below:And when checking what's running we can see that Elasticsearch has exited (it never even starts from what i can see from the logs):
Attaching full log output below.
Is there something I can do to get this working? I have no clue of where to start looking
atom_logs.txt