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

chore: Run NGINX with readonly root FS support #27453

Merged
merged 11 commits into from
Sep 27, 2023
Merged

Conversation

sharat87
Copy link
Member

Part of supporting readonly root filesystem, gets NGINX to start without doing any writes to the filesystem, except for in /tmp.

@github-actions github-actions bot added the Bug Something isn't working label Sep 19, 2023
@ghost
Copy link

ghost commented Sep 19, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@sharat87
Copy link
Member Author

/ok-to-test

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6236191677.
Workflow: Appsmith External Integration Test Workflow.
Commit: ``.
PR: 27453.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=27453&runId=6236191677_1

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6236191677.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/ClientSide/BugTests/AbortAction_Spec.ts

  2. cypress/e2e/ClientSide/ExplorerTests/Admin_settings_2_spec.js
  3. cypress/e2e/Regression/ClientSide/Editor/HelpButton_spec.ts
To know the list of identified flaky tests - Refer here

@sharat87 sharat87 changed the title fix: clear postgres core dumps (#27152) chore: Run NGINX with readonly root FS support Sep 19, 2023
@github-actions github-actions bot added skip-changelog Adding this label to a PR prevents it from being listed in the changelog and removed Bug Something isn't working labels Sep 19, 2023
@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6236191677.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/HelpButton_spec.ts

To know the list of identified flaky tests - Refer here

@sharat87 sharat87 marked this pull request as draft September 19, 2023 15:28
@sharat87
Copy link
Member Author

/ok-to-test

@github-actions
Copy link

Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/6242538023.
Workflow: Appsmith External Integration Test Workflow.
Commit: ``.
PR: 27453.
Perf tests will be available at https://app.appsmith.com/app/performance-infra-dashboard/pr-details-638dd7cd2913ba43778b915e?pr=27453&runId=6242538023_1

@sharat87
Copy link
Member Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6242910831.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 27453.
recreate: .

@github-actions
Copy link

Deploy-Preview-URL: https://ce-27453.dp.appsmith.com

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6242538023.
Commit: ``.
Cypress dashboard: Click here!
The following are new failures, please fix them before merging the PR:

  1. cypress/e2e/Git/GitSync/RepoLimitExceededErrorModal_spec.js

  2. cypress/e2e/Regression/ClientSide/ThemingTests/Basic_spec.js
To know the list of identified flaky tests - Refer here

@github-actions
Copy link

Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/6242538023.
Commit: ``.
Cypress dashboard url: Click here!
All cypress tests have passed 🎉🎉🎉

@sharat87 sharat87 marked this pull request as ready for review September 20, 2023 05:06
@pratapaprasanna
Copy link
Contributor

pratapaprasanna commented Sep 22, 2023

DP is failing to start RTS here.

Copy link
Contributor

@pratapaprasanna pratapaprasanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RTS fails to start in dp

Copy link
Contributor

@pratapaprasanna pratapaprasanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

│ editor stderr | + popd                                                                                                                                                                                           │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stdout | /opt/appsmith                                                                                                                                                                                    │
│ editor stdout |                                                                                                                                                                                                  │
│ editor stderr | + exec nginx -g 'daemon off;error_log stderr info;'                                                                                                                                              │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: using the "epoll" event method                                                                                                                           │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: nginx/1.18.0 (Ubuntu)                                                                                                                                    │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: OS: Linux 5.10.186-179.751.amzn2.x86_64                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: getrlimit(RLIMIT_NOFILE): 1048576:1048576                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker processes                                                                                                                                   │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1531                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1532                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1533                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1534                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1535                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1536                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1537                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ editor stderr | 2023/09/22 08:15:05 [notice] 1502#1502: start worker process 1538                                                                                                                                │
│ editor stderr |                                                                                                                                                                                                  │
│ backend stdout | Waiting for RTS to start ...

@sharat87
Copy link
Member Author

@pratapaprasanna, can you share full logs please? I don't see anything wrong the logs snippet above? Can you elaborate on what I'm missing please? 🤔

@sharat87
Copy link
Member Author

/build-deploy-preview skip-tests=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6295583530.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 27453.
recreate: .

@sharat87
Copy link
Member Author

Building DP failed with this:

Deploy appsmith helm chart
Flag --recreate-pods has been deprecated, functionality will no longer be updated. Consult the documentation for other methods to recreate pods
Error: UPGRADE FAILED: cannot patch "ce27453-appsmith" with kind Service: Service "ce27453-appsmith" is invalid: spec.ports[1].name: Duplicate value: "appsmith"
Error: Process completed with exit code 1.

@sharat87
Copy link
Member Author

/build-deploy-preview skip-tests=true recreate=true

@github-actions
Copy link

Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/6296623280.
Workflow: On demand build Docker image and deploy preview.
skip-tests: true.
env: ``.
PR: 27453.
recreate: true.

@github-actions
Copy link

Deploy-Preview-URL: https://ce-27453.dp.appsmith.com

@sharat87 sharat87 merged commit 2f5405d into release Sep 27, 2023
13 of 15 checks passed
@sharat87 sharat87 deleted the chore/nginx-rofs branch September 27, 2023 08:08
rajatagrawal pushed a commit that referenced this pull request Oct 3, 2023
Part of supporting readonly root filesystem, gets NGINX to start without
doing any writes to the filesystem, except for in `/tmp`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Adding this label to a PR prevents it from being listed in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants