appsmith: [Bug]: illegal Instruction : /opt/appsmith/entrypoint.sh: line 241: 102 Illegal instruction mongod --fork --port 27017 --dbpath "$MONGO_DB_PATH" --logpath "$MONGO_LOG_PATH"

Is there an existing issue for this?

  • I have searched the existing issues

Description

I’m afraid there’s not much more I can add, Appsmith will not load, seems to try but just fail all the time. Log extract is below.

}{   "commitSha": "2d92ac2c88fe26566155f2ded22eebb826b97de3",   "commitUrl": "[https://github.com/appsmithorg/appsmith-ee/commit/2d92ac2c88fe26566155f2ded22eebb826b97de3",](https://github.com/appsmithorg/appsmith-ee/commit/2d92ac2c88fe26566155f2ded22eebb826b97de3%22,)   "githubRef": "refs/tags/v1.48",   "githubRunUrl": "[https://github.com/appsmithorg/appsmith-ee/actions/runs/11740064412/attempts/1",](https://github.com/appsmithorg/appsmith-ee/actions/runs/11740064412/attempts/1%22,)   "version": "v1.48",   "imageBuiltAt": "2024-11-08T10:16:51+00:00",   "isCI": true } Successfully started Caddy (pid=74) - Caddy is running in the background
2024-11-09T20:18:57.993Z Checking environment configuration
2024-11-09T20:18:58.011Z Configuring database connection URL
2024-11-09T20:18:58.020Z Checking APPSMITH_DB_URL
2024-11-09T20:18:58.024Z Detected local DB
2024-11-09T20:18:58.032Z Initializing MongoDB
2024-11-09T20:18:58.038Z Initializing local database
'/appsmith-stacks/data/mongodb/key' -> '/tmp/appsmith/mongodb-key'
level=
info
ts=
1731183538.1305704
logger=
tls
msg=
storage cleaning happened too recently; skipping for now
storage=
FileStorage:/appsmith-stacks/data/caddy
instance=
207b4ca0-492b-4358-aedd-5b6fed055558
try_again=
1731269938.1305661
try_again_in=
86399.999999055
level=
info
ts=
1731183538.1307247
logger=
tls
msg=
finished cleaning storage units
2024-11-09T20:18:58.136Z Checking initialized database
2024-11-09T20:18:58.144Z Initializing Replica Set for local database
/opt/appsmith/entrypoint.sh: line 241:   109 Illegal instruction     mongod --fork --port 27017 --dbpath "$MONGO_DB_PATH" --logpath "$MONGO_LOG_PATH"
2024-11-09T20:20:01.436Z Running as: uid=0(root) gid=0(root) groups=0(root)
2024-11-09T20:20:01.970Z Initialize .env file
2024-11-09T20:20:01.974Z Load environment configuration
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
{
  "success": true

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   172  100    21  100   151     29    211 --:--:-- --:--:-- --:--:--   241
level=
info
ts=
1731183604.7251027
msg=
using config from file
file=
/tmp/appsmith/Caddyfile
level=
info
ts=
1731183604.73213
msg=
adapted config to JSON
adapter=
caddyfile
level=
info
ts=
1731183604.7350163
logger=
admin
msg=
admin endpoint started
address=
0.0.0.0:2019
enforce_origin=
false
origins=
["//0.0.0.0:2019"]
level=
warn
ts=
1731183604.7350657
logger=
admin
msg=
admin endpoint on open interface; host checking disabled
address=
0.0.0.0:2019
level=
info
ts=
1731183604.742299
logger=
tls.cache.maintenance
msg=
started background certificate maintenance
cache=
0xc0006ea300
level=
warn
ts=
1731183604.7512512
logger=
http.auto_https
msg=
server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server
server_name=
srv0
http_port=
80
level=
debug
ts=
1731183604.7529936
logger=
http.auto_https
msg=
adjusted config
tls.automation.policies=
[{}]
http.servers.srv0.automatic_https.disable=
true
http.servers.srv0.errors.routes=
[{"handle":[{"handler":"headers","response":{"deferred":true,"delete":["Server","Cache-Control"]}},{"body":"{http.error.status_code} {http.error.status_text}","handler":"static_response","status_code":"{http.error.status_code}"}]}]
http.servers.srv0.listen=
[":80"]
http.servers.srv0.logs.default_logger_name=
log0
http.servers.srv0.routes=
[{"handle":[{"handler":"vars","root":"/opt/appsmith/editor"}]},{"handle":[{"handler":"vars","log_skip":true}]},{"handle":[{"handler":"vars","log_skip":true}]},{"handle":[{"handler":"headers","response":{"set":{"X-Request-Id":["{http.request.header.X-Request-Id}"]}}}]},{"handle":[{"handler":"headers","response":{"set":{"X-Request-Id":["invalid_request_id"]}}}]},{"handle":[{"handler":"headers","response":{"set":{"Cache-Control":["public, max-age=31536000, immutable"]}}}]},{"handle":[{"handler":"headers","response":{"deferred":true,"delete":["Server"],"set":{"Content-Security-Policy":["frame-ancestors 'self' *"],"X-Appsmith-Request-Id":["{http.request.uuid}"],"X-Content-Type-Options":["nosniff"]}}},{"handler":"request_body","max_size":150000000}]},{"handle":[{"handler":"static_response","headers":{"Location":["/supervisor/"]},"status_code":302}]},{"handle":[{"handler":"static_response","headers":{"Location":["/auth/"]},"status_code":302}]},{"handle":[{"handler":"rate_limit","rate_limits":{"dynamic_zone":{"key":"{http.request.client_ip}","max_events":100,"window":1000000000}}}]},{"handle":[{"handler":"headers","request":{"set":{"X-Request-Id":["invalid_request_id"]}}}]},{"handle":[{"handler":"headers","request":{"delete":["X-Appsmith-Request-Id"]}}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_static_file"},{"canonical_uris":false,"handler":"file_server","hide":["/tmp/appsmith/Caddyfile"],"precompressed":{"br":{},"gzip":{}},"precompressed_order":["br","gzip"]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_static_file_error"},{"handler":"error","status_code":404}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_api"},{"handler":"vars","root":"/opt/appsmith"}]},{"group":"group3","handle":[{"handler":"rewrite","uri":"/info.json"}]},{"handle":[{"canonical_uris":false,"handler":"file_server","hide":["/tmp/appsmith/Caddyfile"],"precompressed":{"br":{},"gzip":{}},"precompressed_order":["br","gzip"]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_api"},{"handler":"reverse_proxy","headers":{"request":{"delete":["Forwarded"],"set":{"X-Appsmith-Request-Id":["{http.request.uuid}"]}}},"upstreams":[{"dial":"127.0.0.1:8080"}]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"rewrite","strip_path_prefix":"/supervisor"}]},{"handle":[{"handler":"reverse_proxy","headers":{"request":{"delete":["Forwarded"],"set":{"X-Appsmith-Request-Id":["{http.request.uuid}"]}}},"upstreams":[{"dial":"127.0.0.1:9001"}]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_api"},{"handler":"reverse_proxy","headers":{"request":{"delete":["Forwarded"],"set":{"X-Appsmith-Request-Id":["{http.request.uuid}"]}}},"upstreams":[{"dial":"127.0.0.1:8081"}]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_api"},{"handler":"reverse_proxy","headers":{"request":{"delete":["Forwarded"],"set":{"X-Appsmith-Request-Id":["{http.request.uuid}"]}}},"upstreams":[{"dial":"127.0.0.1:8886"}]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_api"},{"handler":"reverse_proxy","headers":{"request":{"delete":["Forwarded"],"set":{"X-Appsmith-Request-Id":["{http.request.uuid}"]}}},"upstreams":[{"dial":"127.0.0.1:8091"}]}]}]}]},{"group":"group10","handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"tracing","span":"caddy_static_file"},{"handler":"vars","root":"/tmp/appsmith/www"}]},{"handle":[{"handler":"rewrite","uri":"{http.matchers.file.relative}"}],"match":[{"file":{"try_files":["/loading.html","/index.html"]}}]},{"handle":[{"canonical_uris":false,"handler":"file_server","hide":["/tmp/appsmith/Caddyfile"],"precompressed":{"br":{},"gzip":{}},"precompressed_order":["br","gzip"]}]}]}]}]
http.servers.srv0.trusted_proxies.ranges=
["0.0.0.0/0"]
http.servers.srv0.trusted_proxies.source=
static
level=
debug
ts=
1731183604.7979689
logger=
http
msg=
starting server loop
address=
[::]:80
tls=
false
http3=
false
level=
info
ts=
1731183604.7980464
logger=
http.log
msg=
server running
name=
srv0
protocols=
["h1","h2","h3"]
level=
info
ts=
1731183604.7980652
msg=
serving initial configuration
}{   "commitSha": "2d92ac2c88fe26566155f2ded22eebb826b97de3",   "commitUrl": "[https://github.com/appsmithorg/appsmith-ee/commit/2d92ac2c88fe26566155f2ded22eebb826b97de3",](https://github.com/appsmithorg/appsmith-ee/commit/2d92ac2c88fe26566155f2ded22eebb826b97de3%22,)   "githubRef": "refs/tags/v1.48",   "githubRunUrl": "[https://github.com/appsmithorg/appsmith-ee/actions/runs/11740064412/attempts/1",](https://github.com/appsmithorg/appsmith-ee/actions/runs/11740064412/attempts/1%22,)   "version": "v1.48",   "imageBuiltAt": "2024-11-08T10:16:51+00:00",   "isCI": true } Successfully started Caddy (pid=67) - Caddy is running in the background
2024-11-09T20:20:04.805Z Checking environment configuration
2024-11-09T20:20:04.809Z Configuring database connection URL
2024-11-09T20:20:04.812Z Checking APPSMITH_DB_URL
2024-11-09T20:20:04.816Z Detected local DB
2024-11-09T20:20:04.823Z Initializing MongoDB
2024-11-09T20:20:04.830Z Initializing local database
'/appsmith-stacks/data/mongodb/key' -> '/tmp/appsmith/mongodb-key'
2024-11-09T20:20:04.863Z Checking initialized database
2024-11-09T20:20:04.872Z Initializing Replica Set for local database
level=
info
ts=
1731183604.8884215
logger=
tls
msg=
storage cleaning happened too recently; skipping for now
storage=
FileStorage:/appsmith-stacks/data/caddy
instance=
207b4ca0-492b-4358-aedd-5b6fed055558
try_again=
1731270004.888417
try_again_in=
86399.999999294
level=
info
ts=
1731183604.8885655
logger=
tls
msg=
finished cleaning storage units
/opt/appsmith/entrypoint.sh: line 241:   102 Illegal instruction     mongod --fork --port 27017 --dbpath "$MONGO_DB_PATH" --logpath "$MONGO_LOG_PATH"
09/11/2024
20:20:07
Container stopped

Steps To Reproduce

Used the proposed Docker Compose .yml - https://docs.appsmith.com/getting-started/setup/installation-guides/docker

Public Sample App

No response

Environment

Production

Severity

Critical (Broken Production apps)

Issue video log

No response

Version

Latest

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (5 by maintainers)

Most upvoted comments

same for me on amd64 debian - @sharat87 can we reopen this issue? i find it somehow awkward to refer to a workaround when using a configuration which is taken 1:1 from the official documentation.

Still the same situation for me,

I’m doing a local install, via Docker on a QNAP NAS, (Linux, 16GB RAM) compose is below…

version: "3"
services:
   appsmith:
     image: index.docker.io/appsmith/appsmith-ee
     container_name: appsmith
     ports:
         - "808:80"
         - "4434:443"
     volumes:
      - /share/Container/appsmith/stacks:/appsmith-stacks
     restart: unless-stopped