You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the teable image (1.5.2 or latest) on Kubernetes with a read-only filesystem, the application fails to start due to a write operation attempting to save the openapi.json file to a location that is not writable.
Steps to Reproduce
Deploy the teable image (1.5.2 or latest) in a Kubernetes environment.
Set the container to use a read-only filesystem.
Observe the logs during startup.
Error Logs
node:internal/fs/sync:78
return binding.openSync(
^
Error: EROFS: read-only file system, open '/app/apps/nestjs-backend/dist/openapi.json'
at Object.open (node:internal/fs/sync:78:18)
at Object.openSync (node:fs:565:17)
at Object.writeFileSync (node:fs:2288:35)
at setUpAppMiddleware (/app/apps/nestjs-backend/dist/index.js:49:22)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async bootstrap (/app/apps/nestjs-backend/dist/index.js:74:5)
at async /app/apps/nestjs-backend/dist/index.js:44579:15 {
errno: -30,
code: 'EROFS',
syscall: 'open',
path: '/app/apps/nestjs-backend/dist/openapi.json'
}
Node.js v20.9.0
Expected Behavior
The application should write temporary or generated files to a writable location, such as /tmp, allowing compatibility with read-only filesystems.
Actual Behavior
The application attempts to write to /app/apps/nestjs-backend/dist/openapi.json, which is not writable when the filesystem is read-only, causing the application to crash.
Suggested Solution
Update the application to write all temporary or runtime-generated files (e.g., openapi.json) to a writable directory, such as /tmp, which is typically writable in read-only filesystem configurations.
Environment
Image Version: 1.5.2 / latest
Node.js Version: v20.9.0
Kubernetes environment with read-only filesystem
Impact
This issue prevents the image from being used in environments where a read-only filesystem is a security or operational requirement, such as in Kubernetes deployments with strict policies.
Additional Context
Read-only filesystem support is a common requirement in containerized environments to enhance security. Allowing the application to handle temporary or runtime-generated files in a writable location like /tmp would make it compatible with such setups.
Request
Please modify the image or provide configuration options to support deployment with a read-only filesystem. Let me know if you need further details or testing.
Thank you for addressing this issue!
The text was updated successfully, but these errors were encountered:
Description
When using the teable image (1.5.2 or latest) on Kubernetes with a read-only filesystem, the application fails to start due to a write operation attempting to save the openapi.json file to a location that is not writable.
Steps to Reproduce
Error Logs
Expected Behavior
The application should write temporary or generated files to a writable location, such as /tmp, allowing compatibility with read-only filesystems.
Actual Behavior
The application attempts to write to /app/apps/nestjs-backend/dist/openapi.json, which is not writable when the filesystem is read-only, causing the application to crash.
Suggested Solution
Update the application to write all temporary or runtime-generated files (e.g., openapi.json) to a writable directory, such as /tmp, which is typically writable in read-only filesystem configurations.
Environment
Impact
This issue prevents the image from being used in environments where a read-only filesystem is a security or operational requirement, such as in Kubernetes deployments with strict policies.
Additional Context
Read-only filesystem support is a common requirement in containerized environments to enhance security. Allowing the application to handle temporary or runtime-generated files in a writable location like /tmp would make it compatible with such setups.
Request
Please modify the image or provide configuration options to support deployment with a read-only filesystem. Let me know if you need further details or testing.
Thank you for addressing this issue!
The text was updated successfully, but these errors were encountered: