-
Notifications
You must be signed in to change notification settings - Fork 127
Troubleshooting & FAQ
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});'
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:
- set mongo version in
.env:MONGO_VERSION=4.4.29 - 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 - restart compose:
make restart
docker compose run netcheck 'any-sync-netcheck -c /conf/nodes.yml'
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
Thank you for your desire to develop Anytype together!
❤️ This project and everyone involved in it is governed by the Code of Conduct.
🧑<200d>💻 Check out our contributing guide to learn about asking questions, creating issues, or submitting pull requests.
🫢 For security findings, please email security@anytype.io and refer to our security guide for more information.
🤝 Follow us on Github and join the Contributors Community.
Made by Any — a Swiss association 🇨🇭
Licensed under MIT.