anyproto / any-sync-dockercompose

docker-compose for testing any-sync
MIT License
234 stars 29 forks source link

make start failed, mongo container issue #51

Closed colorprint closed 1 month ago

colorprint commented 1 month ago

Have you read a contributing guide?

Current Behavior

When doing make start, mongo container failed to start:

dependency failed to start: container any-sync-dockercompose-mongo-1-1 exited (132) make: *** [Makefile:10: start] Error 1

Expected Behavior

Expected to start normally

Steps To Reproduce

git clone make start

Environment

- OS: Ubuntu 
- Version: LTS 24.04

Anything else?

No response

r0ckychan commented 1 month ago

I am running into this issue too. Checked by running mongo:7.0.2 alone, and shows that my CPU lacks AVX support. I can switch to mongodb docker image 4., and change healthcheck in docker-compose.yml according to mongo:4.. But somehow still not working properly.

Easylemon24 commented 1 month ago

Hey,

i also experienced this error using an x5650 Intel Xeon. I don't know what cpu you are currently using but depending on the age and model the reason might be that it doesn't support AVX. You can also check that if you manually run

docker compose up

This would be the response i received:

mongo-1-1                         | 
mongo-1-1                         | WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
mongo-1-1                         |   see https://jira.mongodb.org/browse/SERVER-54407
mongo-1-1                         |   see also https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2
mongo-1-1                         |   see also https://github.com/docker-library/mongo/issues/485#issuecomment-891991814
mongo-1-1                         | 
mongo-1-1 exited with code 132

This seems to be a fix for this: https://github.com/anyproto/any-sync-dockercompose/issues/29#issue-2190159129

Note: if you run

make start

afterwards it will just reset the config. To fix this i just ran the following command and edited the .env again

docker compose up -d

fb929 commented 1 month ago

@colorprint Check the Mongo logs. If you have the same "CPU with AVX support" error, configure your setup to run Mongo 4.x. https://github.com/anyproto/any-sync-dockercompose/wiki/Troubleshooting-&-FAQ#mongodb-requires-a-cpu-with-avx-support

fb929 commented 1 month ago

@colorprint Is your problem solved?