diff --git a/CHANGES/7574.bugfix b/CHANGES/7574.bugfix new file mode 100644 index 0000000000..202507a997 --- /dev/null +++ b/CHANGES/7574.bugfix @@ -0,0 +1,2 @@ +Fixed gunicorn control socket being placed on persistent location. +This could cause `Control server error: [Errno 13]` errors on kubernetes environements on pod restarts. diff --git a/pulpcore/content/entrypoint.py b/pulpcore/content/entrypoint.py index 0965ee7fcc..6b690c2ed4 100644 --- a/pulpcore/content/entrypoint.py +++ b/pulpcore/content/entrypoint.py @@ -15,6 +15,9 @@ def load_app_specific_config(self): ) self.set_option("default_proc_name", "pulpcore-content", enforced=True) self.set_option("worker_class", worker_class, enforced=True) + # On k8s, the default location may persist across restarts and cause permission errors + # See: + self.set_option("control_socket", "/tmp/pulpcore-content.ctl") def load(self): import pulpcore.content