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

Clearing users.xml while creating user #664

Closed
deenu2 opened this issue Jun 20, 2024 · 4 comments
Closed

Clearing users.xml while creating user #664

deenu2 opened this issue Jun 20, 2024 · 4 comments

Comments

@deenu2
Copy link

deenu2 commented Jun 20, 2024

What is the bug or the crash?

I have deployed the geoserver in Kubernetes and whenever I create a user it clear the users.xml file as it will be empty and geoserver will start crashing due to that. I have configured EFS volume for persistent storage.

Steps to reproduce the issue

deployed the geoserver in EKS cluster with EFS storage for persistence storage, created a user and if the geoserver pod restart it will clear the users.xml file.

Versions

2.25.0

Additional context

I have faced the same issue in 2.22.1 version as well

@NyakudyaA
Copy link
Collaborator

What do you mean when you say create a user, through the UI or on startup with env variables?

@deenu2
Copy link
Author

deenu2 commented Jun 21, 2024

once geoserver is up and running I logged in and created a new user using the UI and after that if I restart the pod facing the issue
image

@NyakudyaA
Copy link
Collaborator

NyakudyaA commented Jun 21, 2024

You need to add a persistent mount like

-v settings:/settings

Because in Kubernetes, restarting a pod, recreates a new container with new params whilst in docker-compose a restart is different as it just restarts the running instance

@deenu2
Copy link
Author

deenu2 commented Jun 21, 2024

Thank you for the solution it worked

@deenu2 deenu2 closed this as completed Jun 21, 2024
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