[Bug]: MongoDB Container Requires AVX Support on Non-AVX Systems #2362
Replies: 3 comments 1 reply
-
Feel free to make a PR to update the documentation, as this is a solid use case for using a docker-compose.override.yml file: https://docs.librechat.ai/install/configuration/docker_override.html The compose files provided are not meant to cover every possible case. In fact, for more advanced users, it's encouraged they write their own up to their specifications. An easy way to "modify" the existing file, as this is enough for most users, is to make use of an override file. |
Beta Was this translation helpful? Give feedback.
-
Using the docker override file in the project resolved this simply, but I agree that if upgrading mongo causes issues and solves none then perhaps mongo should be kept on the older version, since it took me a little while to figure out what was going on and find this thread. |
Beta Was this translation helpful? Give feedback.
-
For any fellow Proxmox users, this is also an issue if you run LibreChat on a VM that has the CPU type set to a value that doesn't have the AVX flag. In my case, it was because I use terraform to deploy the VM in Proxmox, which for some reason sets the default cpu type to Changing the CPU type to |
Beta Was this translation helpful? Give feedback.
-
What happened?
The MongoDB container fails to start on systems that do not support AVX (Advanced Vector Extensions) because MongoDB 5.0+ requires AVX support. This issue is particularly problematic for users running MongoDB in Docker containers on older hardware or virtualized environments that do not expose AVX features to the VM.
I expected the MongoDB container to start without requiring AVX support, or at least to have a clear alternative version of MongoDB that is compatible with non-AVX systems.
The lack of support for non-AVX systems in MongoDB 5.0+ versions causes significant inconvenience for users with older hardware. It would be beneficial to provide a MongoDB image that is compatible with these systems or to document a workaround for affected users.
Suggestion:
It would be beneficial for users with non-AVX compatible systems to have clear documentation or a version tag available for MongoDB images that do not require AVX support. Specifically, using MongoDB version 4.4.18, which is the latest version without the AVX requirement, could be highlighted as an alternative for those affected by this hardware compatibility issue.
Here is an example of how the Docker configuration can be adjusted to use MongoDB 4.4.18: (TESTED AND WORKS FINE)
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions