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

Can't use read-only file system anymore #87

Open
GlebKuzmich opened this issue Sep 23, 2022 · 7 comments
Open

Can't use read-only file system anymore #87

GlebKuzmich opened this issue Sep 23, 2022 · 7 comments

Comments

@GlebKuzmich
Copy link

Hey,

We've been using FusionAuth for quite a while, but starting with recent updates started to have the following error:

sed: couldn't open temporary file /opt/openjdk/conf/security/sedxxx: Read-only file system

Indeed, setting the container's read-only option to false does not seem to be a great idea.

Any advice or workaround would be much appreciated.

Best

@GlebKuzmich GlebKuzmich changed the title Can't use read-only file anymore Can't use read-only file system anymore Sep 23, 2022
@GlebKuzmich
Copy link
Author

@mooreds I've been advised to tag you as a person that might help to find some solution to the above issue :)

@mooreds
Copy link
Contributor

mooreds commented Oct 12, 2022

@GlebKuzmich 👋 .

Can you tell me a bit more about what you are doing where you are seeing this error? Are you creating a child image? Or are you seeing this with the default Dockerfile?

@GlebKuzmich
Copy link
Author

@mooreds Hey, sorry about the delay, I need to turn on notifications :D

We use the default Dockerfile in EKS, we start to see the error mentioned above as soon we set

          securityContext:
            readOnlyRootFilesystem: true 

As far as I remember, that did not happen until FusionAuth version 1.37.x. (maybe 1.38.x).
Ideally, we'd like to have the readOnlyRootFilesystem option on, so need your advice on how to get it back.

Best regards,

Gleb

@mooreds
Copy link
Contributor

mooreds commented Oct 17, 2022

@GlebKuzmich does FusionAuth start up and when you set the readonly attribute to true? Or does it fail to start?

I looked at the startup script and the reason it does this is because of this issue: FusionAuth/fusionauth-site#1202 and this issue: FusionAuth/fusionauth-issues#1814 (which reverted 1202, essentially).

@GlebKuzmich
Copy link
Author

@mooreds Nah, the EKS pod can't start properly with read-only being set to true, it just throws that temporary file error as soon as it spins up.

@mooreds
Copy link
Contributor

mooreds commented Oct 17, 2022

@GlebKuzmich thanks. I will file a tracking issue in our issues repository.

No easy workaround right now, sorry.

@mooreds
Copy link
Contributor

mooreds commented Oct 17, 2022

Feel free to add any additional info or commentary, @GlebKuzmich : FusionAuth/fusionauth-issues#1924

Also upvote it by giving it a thumbs up emoji, as that helps us determine the roadmap.

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

2 participants