Certbot renewal failed after trying multiple options

This is the command run from the server:

command: "gunicorn -w ${GUNICORN_WORKERS} --certfile=fullchain.pem --keyfile=privkey.pem -b 0.0.0.0:${PORT} --access-logfile '-' src.server.app:create_app()"