Skip to content

Troubleshooting & FAQ

Kirill Shklyaev edited this page Apr 7, 2026 · 7 revisions

Mongo replica set error

If you have a mongo replica set error like this:

test> rs.status()
MongoServerError: Our replica set config is invalid or we are not a member of it

Please run:

docker compose exec mongo-1 mongosh --port 27001 --eval 'rs.reconfig({_id: rs.conf()._id, members: [{ _id: 0, host: "mongo-1:27001" }]}, {force: true});'

MongoDB requires a CPU with AVX support

If you encounter this error when starting MongoDB:

MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!

This means your hardware does not support AVX instructions (e.g. home NAS, network router, or other older hardware). You can use MongoDB version 4.x instead. To do this:

  1. set mongo version in .env:
    MONGO_VERSION=4.4.29
    
  2. set healthcheck for mongo container in docker-compose.override.yml file:
    services:
      mongo-1:
        healthcheck:
          test: echo "rs.initiate({_id:'${MONGO_REPLICA_SET}',members:[{_id:0,host:\"mongo-1:${MONGO_1_PORT}\"}]}).ok || rs.status().ok" | mongo --port ${MONGO_1_PORT} --quiet
    
  3. restart compose:
    make restart
    

Connectivity diagnostics for any-sync-* services

docker compose run netcheck 'any-sync-netcheck -c /conf/nodes.yml'

Conteiner versions

docker ps --format '{{.ID}} {{.Image}}' | while read -r id image; do     image_id=$(docker inspect --format '{{.Image}}' "$id");     echo "Container: $id, Image: $image, Image ID: $image_id"; done

Clone this wiki locally