@rg305 yeah, my research showed that the Invalid argment error was a known bug that didn't impact performance.
The error comes when I try to run supervisorctl restart all and reads as follows (exactly):
drywater-api-fastapi: ERROR (spawn error)
(drywater-api-fastapi is the name of my app).
When I tail the stderr-log, I see the following:
Traceback (most recent call last):
File "/var/www/app/bin/gunicorn", line 8, in <module>
sys.exit(run())
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/base.py", line 231, in run
super().run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/arbiter.py", line 198, in run
self.start()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/arbiter.py", line 155, in start
self.LISTENERS = sock.create_sockets(self.cfg, self.log, fds)
File "/var/www/app/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/api.avondale.io/fullchain.pem" does not exist
Thanks. Running that command shows the same error I described above:
drywater-api-fastapi: ERROR (spawn error)
Tailing the log shows the same as well:
Traceback (most recent call last):
File "/var/www/app/bin/gunicorn", line 8, in <module>
sys.exit(run())
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/base.py", line 231, in run
super().run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/arbiter.py", line 198, in run
self.start()
File "/var/www/app/lib/python3.10/site-packages/gunicorn/arbiter.py", line 155, in start
self.LISTENERS = sock.create_sockets(self.cfg, self.log, fds)
File "/var/www/app/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/api.avondale.io/fullchain.pem" does not exist
@rg305 is there anything else you can think of that I would need to do to "reset" things other than restarting nginx and reread / restarting supervisor? Could it be that simple?
Not even sure where I would start on the process trace...
@MikeMcQ funny enough, I actually did try a few reboots early on in my problem solving... apparently one of the small tweaks I made along the way must have done the trick. Thanks for your help!