appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.25k stars 3.71k forks source link

[Bug]: Docker image doesn't run on CPUs without AVX instructions #19969

Closed jarimayenburg closed 1 year ago

jarimayenburg commented 1 year ago

Is there an existing issue for this?

Description

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

  1. Try to run the Appsmith CE Docker image on a CPU without AVX instructions.
  2. 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.

Public Sample App

No response

Issue video log

No response

Version

release

sharat87 commented 1 year ago

Hey @jarimayenburg, thank you so much for reporting+raising this. I'll get this reviewed soon.