-
Notifications
You must be signed in to change notification settings - Fork 58
Troubleshooting & FAQ
Grigory Efimov edited this page May 16, 2024
·
1 revision
if you have 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 command:
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 an error when starting MongoDB that says:
MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that!
Then you can use MongoDB version 4.x. To do this, you need to perform the following steps:
- set mongo version in .env.override file:
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
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.