kartoza/docker-geoserver

Clearing users.xml while creating user

Closed this issue · 4 comments

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

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

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

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

Thank you for the solution it worked