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]: docker image: server crashes before starting bug in run-java.sh #36595

Closed
1 task done
japrogramer opened this issue Sep 28, 2024 · 1 comment
Closed
1 task done
Assignees
Labels
Bug Something isn't working Community Reported issues reported by community members Critical This issue needs immediate attention. Drop everything else Needs Triaging Needs attention from maintainers to triage Release

Comments

@japrogramer
Copy link

japrogramer commented Sep 28, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

Im having an issue starting the latest build of appsmith

This is the stdout

backend stdout | 2024-09-28T06:18:41.328Z Running with mongo.
2024-09-28 06:18:41,329 INFO exited: backend (exit status 1; not expected)
backend stdout | /opt/appsmith/run-java.sh: line 14: cd: /opt/appsmith/server/mongo: No such file or directory
mongodb-fixer: false
mongodb-fixer: 2024-09-28T06:18:42.190Z MongoDB version set to 5.0
mongodb-fixer: 2024-09-28T06:18:42.192Z Done
2024-09-28 06:18:42,330 INFO reaped unknown pid 89
2024-09-28 06:18:43,332 INFO spawned: 'backend' with pid 1725
backend stdout | 2024-09-28T06:18:43.339Z Load environment configuration
backend stdout | 2024-09-28T06:18:43.346Z Running with mongo.
2024-09-28 06:18:43,346 INFO exited: backend (exit status 1; not expected)
backend stdout | /opt/appsmith/run-java.sh: line 14: cd: /opt/appsmith/server/mongo: No such file or directory
2024-09-28 06:18:46,350 INFO spawned: 'backend' with pid 1731
backend stdout | 2024-09-28T06:18:46.357Z Load environment configuration
backend stdout | 2024-09-28T06:18:46.364Z Running with mongo.
2024-09-28 06:18:46,365 INFO exited: backend (exit status 1; not expected)
backend stdout | /opt/appsmith/run-java.sh: line 14: cd: /opt/appsmith/server/mongo: No such file or directory
2024-09-28 06:18:46,365 INFO gave up: backend entered FATAL state, too many start retries too quickly

dir

# in the container ls
$ /opt/appsmith# ls -l

total 140
-rwxr-xr-x 1 root root  1549 Sep 27 09:22 JFR-recording-24-hours.sh
-rwxr-xr-x 1 root root  1017 Sep 27 09:22 auto_heal.sh
drwxr-xr-x 2 root root  4096 Sep 27 09:22 baseline-ce
-rw-r--r-- 1 root root  6219 Sep 27 09:22 caddy-reconfigure.mjs
-rwxr-xr-x 1 root root  3594 Sep 27 09:22 diagnostics.sh
drwxr-xr-x 1 root root  4096 Sep 28 05:52 editor
-rwxr-xr-x 1 root root 18426 Sep 27 09:22 entrypoint.sh
-rwxr-xr-x 1 root root  1853 Sep 27 09:22 generate-infra-details.sh
-rwxr-xr-x 1 root root  1252 Sep 27 09:22 healthcheck.sh
-rw-rw-r-- 1 root root   299 Sep 28 06:03 info.json
-rwxr-xr-x 1 root root  8276 Oct 30  2023 install_docker.sh
-rwxr-xr-x 1 root root   618 Sep 27 09:22 mongodb-fixer.sh
-rwxr-xr-x 1 root root  3645 Sep 27 09:22 pg-upgrade.sh
-rwxr-xr-x 1 root root   617 Oct 30  2023 pull_resource.sh
-rwxr-xr-x 1 root root   444 Sep 27 09:22 record-heap-dump.sh
-rwxr-xr-x 1 root root   433 Sep 27 09:22 record-thread-dump.sh
drwxr-xr-x 1 root root  4096 Sep 28 05:37 rts
-rwxr-xr-x 1 root root   592 Sep 27 09:22 run-caddy.sh
-rwxr-xr-x 1 root root  2382 Sep 27 09:22 run-java.sh
-rwxr-xr-x 1 root root   147 Sep 27 09:22 run-postgres.sh
-rwxr-xr-x 1 root root    88 Sep 27 09:22 run-starting-page-init.sh
-rwxr-xr-x 1 root root  1680 Sep 27 09:22 run-with-env.sh
-rwxr-xr-x 1 root root   763 Oct 30  2023 start_app.sh
-rw-r--r-- 1 root root  2094 Sep 27 09:22 starting-page-init.py
drwxr-xr-x 1 root root  4096 Sep 27 09:22 templates
-rwxr-xr-x 1 root root   285 Sep 27 09:22 thread-profile-start.sh
-rwxr-xr-x 1 root root   134 Sep 27 09:22 thread-profile-stop.sh
drwxr-xr-x 1 root root  4096 Sep 28 06:03 utils

Steps To Reproduce

steps to reproduce bug

/app/client/packages/rts
$ yarn install --immutable
$ yarn build

/app/client
$ yarn install --immutable
$ yarn build

/app/server
$ ./build.sh -DskipTests

/
$ docker images
appsmith/base-ce                                            release             650e518218aa   5 days ago       1.7GB

$ docker buildx build --build-arg BASE=appsmith/base-ce:release --platform linux/amd64 -t my_appsmith:latest_merge . -o type=docker

Public Sample App

No response

Environment

Release

Severity

Critical (Broken Production apps)

Issue video log

No response

Version

release

@japrogramer japrogramer added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage labels Sep 28, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added Community Reported issues reported by community members Critical This issue needs immediate attention. Drop everything else Release labels Sep 28, 2024
@japrogramer
Copy link
Author

japrogramer commented Sep 28, 2024

had to run this before buildx. @Nikhil-Nandagopal maybe the contribution notes should be updated

$ ./scripts/prepare_server_artifacts.sh 

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 Critical This issue needs immediate attention. Drop everything else Needs Triaging Needs attention from maintainers to triage Release
Projects
None yet
Development

No branches or pull requests

3 participants