Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gunicorn not starting automatically !! #3183

Open
akash-piatrika opened this issue Apr 12, 2024 · 6 comments
Open

gunicorn not starting automatically !! #3183

akash-piatrika opened this issue Apr 12, 2024 · 6 comments

Comments

@akash-piatrika
Copy link

i am recently using gunicorn and i have integrated it instead of runserver and the gunicorn is working fine but when i run gunicorn
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [1] [INFO] Starting gunicorn 21.2.0
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [1] [DEBUG] Arbiter booted
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [1] [INFO] Listening at: http://0.0.0.0:9100 (1)
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [1] [INFO] Using worker: sync
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [39] [INFO] Booting worker with pid: 39
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [40] [INFO] Booting worker with pid: 40
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [41] [INFO] Booting worker with pid: 41
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [42] [INFO] Booting worker with pid: 42
pbdjango-gunicorn-1 | [2024-04-12 10:31:59 +0000] [1] [DEBUG] 4 workers

its just stopping till this stage and when i send api requests or when i reload the browser the gunicorn showing other logs and that gunicorn has started it is not starting automatically and even when i run this with docker compose up and when i ctrl+c the gunic=orn is not stopping it is running in background in the container

@benoitc
Copy link
Owner

benoitc commented Apr 12, 2024

not sure what you mean , it is started there .... How do you launch it?

@akash-piatrika
Copy link
Author

hii benotic thanks for the response i was telling that it is running but
I am running an api page and when i run gunicorn the page is not getting rendered unless i send any api request or i restart the api page in the web browser after that the gunicorn is taking the requests and rendering the page

@akash-piatrika
Copy link
Author

Screenshot from 2024-04-15 12-23-42
running gunicorn
Screenshot from 2024-04-15 12-25-01
but the page

@akash-piatrika
Copy link
Author

but when i restart the page
Screenshot from 2024-04-15 12-26-44
it is printing more logs and then the page gets rendered

@benoitc
Copy link
Owner

benoitc commented Apr 16, 2024

This sounds like a configuration issue. Gunicorn is only working as WSGI gatway there.

@akash-piatrika
Copy link
Author

akash-piatrika commented Apr 17, 2024

thanks for the response do you have any suggestions how to resolve this bentonoic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants