Category "gunicorn"

How do I get my FastAPI application's console log in JSON format with a different structure and different fields?

I have a FastAPI application where I would like to get the default logs written to the STDOUT with the following data in JSON format: App logs should look like

Istio - Gunicorn - Python getting 503 upstream connect error or disconnect/reset before headers. reset reason: connection failure

I am running a Istio setup where my python flask service running behind gunicorn. when debugging the logs from the service, the flask service successfully execu

Using Nginx with gunicorn without .sock on linux?

I have a python web app that uses Flask and gunicorn, and everything works great. I plan on hosting this on a public website and want to use nginx, but did not

What is a lifecycle of Aiohttp application when used together with Gunicorn?

A project I'm working on uses Gunicorn and Aiohttp to implement a web server. It all starts with something like this: # main.py class GunicornApp(gunicorn.

How to use memray with Gunicorn and Django?

I have a project with Django and I did a multiread with Gunicorn. but my project has a memory leak. I want to monitor memory with "memray" but I don't know how

Gunicorn worker terminated with signal 9

I am running a Flask application and hosting it on Kubernetes from a Docker container. Gunicorn is managing workers that reply to API requests. The following wa

Gunicorn + Flask + Docker python app hosted on Azure Container Instances returns SystemExit: 1

I deployed a web app on GPU enabled ACI (Azure Container Instance) using Gunicorn + Flask + Docker. This app runs a couple of pytorch models (one of them being

I am having issue with django web application deployment on ubuntu VPS. The issue is that the server do not give any response even on 0.0.0.0:8000

While deploying the Django website everything goes right but when I run the command python manage.py runserver 0.0.0.0:8000 then the server starts successfully

Launching gunicorn instances a docker image, using docker run

In my dockerfile, for a Flask app, I have a set of commands that work as planned. The last line of my dockerfile is currently: ENTRYPOINT [ "/bin/bash", "-c" ]

How to run FastAPI app on multiple ports?

I have a FastAPI application that I am running on port 30000 using Uvicorn programmatically. Now I want to run the same application on port 8443 too. The same a

gunicorn.errors.HaltServer while deploying to google cloud run for a python application

Here is my dockerfile. I am trying to deploy this image to google cloud run using below two command 1. gcloud builds submit --tag gcr.io/smartshop-292203/data_s

Gunicorn sends info message Handling signal: winch

Why does Gunicorn send info message Handling signal: winch when application is idle? There is no error, as the application continues to respond, but when it is

Gunicorn wont install to virtualenv

I have a Python Django project that I'm serving using Gunicorn. Gunicorn was installed inside my virtualenv, and was working fine. I set up an ftpd on my ser

Setting up gunicorn.service [Service] for Django app

Following the documentation and online tutorials on setting up my gunicorn.service results in ModuleNotFoundError: No module named 'my-app' when I run sudo syst

digital ocean deployment error: 502 Bad Gateway

I had my site up and running, but the admin CSS was not loading, I am not sure what I did that the server did not agree, but now the entire site is down with a

How to run gunicorn inside python not as a command line?

I have a flask application. I run it in production with this command: python -m gunicorn -w 1 -b 0.0.0.0:5000 "path.to.wsgi:return_app()" Instead, I want to ru

LibreTranslate library in python gives 500 Internal server error after running for times

I have setup libretranslate on my local system (ubuntu focal fossa) by following steps described by https://github.com/LibreTranslate/LibreTranslate url and sca

Running django with ASGI?

I have a django app I using this [docker] (https://github.com/tiangolo/uvicorn-gunicorn-docker) for production deployment when I run the app using: gunicorn --l

How To Deploy an Update to Python Flask Application with Gunicorn and Nginx on Ubuntu 18.04

Python Flask / Gunicorn / Nginx newbie here. I followed this tutorial describing how to serve Flask Applications with Gunicorn and Nginx on Ubuntu 18.04. Everyt

Run multiple django project with nginx and gunicorn

I am using Ubuntu 18 servers and using nginx with gunicorn I follow Digitalocean tutorial for server setup. I successfully did for one project but now I need to