Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
nodecentral opened this issue Nov 9, 2024 · 8 comments
Assignees
Labels
Bug Something isn't working Community Reported issues reported by community members DevOps Pod Issues related to devops Docker Issues related to docker High This issue blocks a user from building or impacts a lot of users Needs More Info Needs additional information Needs Triaging Needs attention from maintainers to triage Production

Comments

@nodecentral
Copy link

nodecentral commented Nov 9, 2024

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

@nodecentral nodecentral added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage labels Nov 9, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added Community Reported issues reported by community members Critical This issue needs immediate attention. Drop everything else Production labels Nov 9, 2024
@agaitan026
Copy link

agaitan026 commented Nov 10, 2024

got same issue here in a new installation

/opt/appsmith/entrypoint.sh: line 241: 96 Illegal instruction (core dumped) mongod --fork --port 27017 --dbpath "$MONGO_DB_PATH" --logpath "$MONGO_LOG_PATH"

@Nikhil-Nandagopal
Copy link
Contributor

@nodecentral @agaitan026 can you tell us whether you tried to install docker / k8s?
Which cloud provider or machine did you try to install on?
Please share your docker-compose file.

@Nikhil-Nandagopal Nikhil-Nandagopal added Needs More Info Needs additional information High This issue blocks a user from building or impacts a lot of users and removed Critical This issue needs immediate attention. Drop everything else labels Nov 11, 2024
@agaitan026
Copy link

agaitan026 commented Nov 11, 2024

@Nikhil-Nandagopal for me is docker-compose, heres my file, its a regular x64 machine from euronodes.com Uubntu 24.04:

root@appsmith:/appsmith# uname -a
Linux appsmith 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64 x86_64 x86_64
GNU/Linux

GNU nano 7.2                                 docker-compose.yml
version: "3"
services:
 appsmith:
   image: index.docker.io/appsmith/appsmith-ee
   container_name: appsmith
   ports:
       - "80:80"
       - "443:443"
   volumes:
       - ./stacks:/appsmith-stacks
   restart: unless-stopped

@Nikhil-Nandagopal Nikhil-Nandagopal added the Docker Issues related to docker label Nov 11, 2024
@github-actions github-actions bot added the DevOps Pod Issues related to devops label Nov 11, 2024
@sharat87
Copy link
Member

Just tried on a new AWS EC2 instance with uname -a as below:

Linux ip-172-31-2-53 6.8.0-1016-aws #17-Ubuntu SMP Mon Sep  2 13:48:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

And with this docker-compose.yml:

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

Appsmith starts up fine. Can you share further details on what's different on your systems? The error you're seeing usually comes up when running an AMD image on an ARM system or the other way around. Can you do a docker image inspect appsmith/appsmith-ee and share the output please?

@agaitan026
Copy link

Here's details:

`SUre sure, I will leave you important info here.
So

VM is type QEMU/KVM
Machine type i440fx
CPU: x86-64-v2-AES
RAM: 4GB
2 Cores

This is standard, linux native KVM virtualization, like openstack, proxmox, virt-manager,xen etc. The most standard of all standards here`

@gnuhost
Copy link

gnuhost commented Nov 12, 2024

Good day, Im euronodes.com support guy. To avoid passing the messages through the client, I think it will be best if I answer some questions directly. We are intersted to solve it as well, so our customers can use your system. If there's anything I can help regarding running on KVM/QEMU virtualization, Im all ears

For now I changed the CPU type to Sandy + NUMA, as new Mongo seems to have higher CPU requirements

@gnuhost
Copy link

gnuhost commented Nov 12, 2024

For anyone having problems with installing on KVM/QEMU - this helped:

  • increased RAM to 8GB
  • increased cores to 4GB
  • changed CPU type to Host
  • enabled NUMA for CPU
  • disabled balooning device for RAM

@nodecentral
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Community Reported issues reported by community members DevOps Pod Issues related to devops Docker Issues related to docker High This issue blocks a user from building or impacts a lot of users Needs More Info Needs additional information Needs Triaging Needs attention from maintainers to triage Production
Projects
None yet
Development

No branches or pull requests

7 participants