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

Read-only rootfs is causing issues #34

Closed
stv0g opened this issue Feb 7, 2021 · 4 comments
Closed

Read-only rootfs is causing issues #34

stv0g opened this issue Feb 7, 2021 · 4 comments

Comments

@stv0g
Copy link

stv0g commented Feb 7, 2021

2021/02/07 15:37:13 [warn] 1#1 Unit is running unprivileged, then it cannot use arbitrary user and group.
--
2021-02-07 16:37:14 | 2021/02/07 15:37:13 [alert] 1#1 Unable to create certificates storage directory: mkdir(/opt/unit/state/certs/) failed (30: Read-only file system)
2021-02-07 16:37:14 | 2021/02/07 15:37:13 [alert] 1#1 bind(7, unix:/opt/unit/unit.sock.tmp) failed (30: Read-only file system)

I would suggest changing the default security context:

securityContext:
-  readOnlyRootFilesystem: true
+  readOnlyRootFilesystem: false
@Jacq
Copy link

Jacq commented Feb 8, 2021

Updated both general and nginx readOnlyRootFilesystem to false, but still the Read-only file system error is showing on boot.

@stv0g
Copy link
Author

stv0g commented Feb 8, 2021

I also had to disable the non-root securityContext

@Jacq
Copy link

Jacq commented Feb 9, 2021

No luck with that also, I will probably will clean everything and start the containers again.

@bootc
Copy link
Member

bootc commented Feb 13, 2021

This will be fixed with version 3.0.0 of the chart, which I'm currently working on in master. The fix for this particular issue is in 38f4b94 and is due to the switch from Gunicorn to NGINX Unit.

@bootc bootc closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants