Ever since Mongo v5, mongod, mongos and the legacy mongo client require a CPU with AVX instructions. The entrypoint script of the Docker image currently the mongo legacy client to validate the database. This prevents Appsmith from running on a CPU without AVX instructions even if you're using an external MongoDB instance.
Mongo now has a mongosh client that does not require these instructions and since we're only using the mongo client in the entrypoint script, it's relatively easy to replace it with mongosh to fix this issue. Besides, the mongo client has been deprecated since v5, so it's a good idea to migrate anyway.
Fixed in #19971
Steps To Reproduce
Try to run the Appsmith CE Docker image on a CPU without AVX instructions.
Notice that the entrypoint script crashes with exit code 132 after the "Checking Replica Set of external MongoDB" step. This means that your CPU does not support the AVX required by the legacy Mongo client.
Is there an existing issue for this?
Description
Ever since Mongo v5,
mongod
,mongos
and the legacymongo
client require a CPU with AVX instructions. The entrypoint script of the Docker image currently themongo
legacy client to validate the database. This prevents Appsmith from running on a CPU without AVX instructions even if you're using an external MongoDB instance.Mongo now has a
mongosh
client that does not require these instructions and since we're only using themongo
client in the entrypoint script, it's relatively easy to replace it withmongosh
to fix this issue. Besides, themongo
client has been deprecated since v5, so it's a good idea to migrate anyway.Fixed in #19971
Steps To Reproduce
Public Sample App
No response
Issue video log
No response
Version
release