hostname change needs to stop, rm and start again openpanel container
How to reproduce
create vps with generis hostname like almalinux-9
install openpanel
change hostname from terminal with hostnamectl set-hostname demo027.openpanel.org
set the domain for panel from openadmin > general settings
admin panel is available on new hostname:2087 but user panel is not, error:
Warning: option `ssl_version` is deprecated and it is ignored. Use ssl_context instead.
[2024-08-31 12:52:01 +0000] [1] [INFO] Starting gunicorn 23.0.0
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in <module>
sys.exit(run())
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 235, in run
super().run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py", line 71, in run
Arbiter(self).run()
File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 197, in run
self.start()
File "/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py", line 154, in start
self.LISTENERS = sock.create_sockets(self.cfg, self.log, fds)
File "/usr/local/lib/python3.10/site-packages/gunicorn/sock.py", line 162, in create_sockets
raise ValueError('certfile "%s" does not exist' % conf.certfile)
ValueError: certfile "/etc/letsencrypt/live/almalinux-9/fullchain.pem" does not exist
old hostname is still used in cert path command: ValueError: certfile "/etc/letsencrypt/live/almalinux-9/fullchain.pem" does not exist meaning that hsotname does not change in the container.
Possible Solution
we need to stop and rm then start again container with new hostname to work.
OpenPanel version(s) affected
0.2.8
Description
hostname change needs to stop, rm and start again openpanel container
How to reproduce
almalinux-9
hostnamectl set-hostname demo027.openpanel.org
admin panel is available on new hostname:2087 but user panel is not, error:
old hostname is still used in cert path command:
ValueError: certfile "/etc/letsencrypt/live/almalinux-9/fullchain.pem" does not exist
meaning that hsotname does not change in the container.Possible Solution
we need to stop and rm then start again container with new hostname to work.
Additional Context
No response