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

[WIP] chore: enable readOnlyRootFilesystem by default on backend container #102

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

coreydaley
Copy link
Member

Description of the change

Enable readOnlyRootFilesystem by default in the backend pod for RHDH 1.6

Existing or Associated Issue(s)

https://issues.redhat.com/browse/RHIDP-5892

Additional Information

Checklist

  • Chart version bumped in Chart.yaml according to semver.
  • Variables are documented in the values.yaml and added to the README.md. The pre-commit utility can be used to generate the necessary content. Use pre-commit run -a to apply changes.
  • JSON Schema template updated and re-generated the raw schema via pre-commit hook.
  • List tests pass for Chart using the Chart Testing tool and the ct lint command.

@openshift-ci openshift-ci bot requested review from davidfestal and kadel February 13, 2025 02:27
Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

/opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackendInitializer.cjs.js:243
              throw new errors.ForwardedError(
                    ^

ForwardedError: Plugin 'app' startup failed; caused by Error: EROFS: read-only file system, open '/opt/app-root/src/packages/app/dist/static/8938.4b83e157.chunk.js'
    at /opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackendInitializer.cjs.js:243:21
    at async /opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackendInitializer.cjs.js:242:13
    at async Promise.allSettled (index 1)
    at async #doStart (/opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackendInitializer.cjs.js:195:21)
    at async BackendInitializer.start (/opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackendInitializer.cjs.js:120:5)
    at async BackstageBackend.start (/opt/app-root/src/node_modules/@backstage/backend-defaults/node_modules/@backstage/backend-app-api/dist/wiring/BackstageBackend.cjs.js:19:5) {
  cause: [Error: EROFS: read-only file system, open '/opt/app-root/src/packages/app/dist/static/8938.4b83e157.chunk.js'] {
    errno: -30,
    code: 'EROFS',
    syscall: 'open',
    path: '/opt/app-root/src/packages/app/dist/static/8938.4b83e157.chunk.js'
  }
}

Node.js v20.17.0

CI is failing with the latest tag: https://github.com/redhat-developer/rhdh-chart/actions/runs/13299114095/job/37137168559?pr=102
I guess this should wait until latest points to 1.5..

@coreydaley coreydaley changed the title chore: enable readOnlyRootFilesystem by default on backend container [WIP] chore: enable readOnlyRootFilesystem by default on backend container Feb 13, 2025
@coreydaley
Copy link
Member Author

@rm3l Correct, moved to WIP status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants