Ask Your Question
0

Help needed for gunicorn with askbot

asked 2016-07-26 04:17:53 -0600

gopalraha gravatar image

i have installed the askbot successfully using Ubuntu 16.04 + nginx +postgresql + gunicorn

but i have failed in this steps binding the gunicorn

please help me

i have rename the django.wsgi to wsgi.py

after that i have run

gunicorn --bind 139.59.31.191:8000 wsgi:application

It gives me given error in sample output

[2016-07-26 05:10:06 +0000] [15165] [INFO] Starting gunicorn 19.6.0
[2016-07-26 05:10:06 +0000] [15165] [INFO] Listening at: 139.59.31.191:8000 (15165)
[2016-07-26 05:10:06 +0000] [15165] [INFO] Using worker: sync
[2016-07-26 05:10:06 +0000] [15170] [INFO] Booting worker with pid: 15170
WARNING!!! You are using a 'locmem' (local memory) caching backend,
which is OK for a low volume site running on a single-process server.
For a multi-process configuration it is neccessary to have a production
cache system, such as redis or memcached.

With local memory caching and multi-process setup you might intermittently
see outdated content on your site.

handling WSGI exception
Failed to find application: 'wsgi'
[2016-07-26 04:10:06 +0000] [15170] [INFO] Worker exiting (pid: 15170)
[2016-07-26 05:10:06 +0000] [15165] [INFO] Shutting down: Master
[2016-07-26 05:10:06 +0000] [15165] [INFO] Reason: App failed to load.

thanks...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-07-27 01:02:05 -0600

Evgeny gravatar image

The issue appears to be in gunicorn not finding the wsgi.py file. Either there must be a path setting for the list of directories to be searched or absolute path to the entry script should be provided.

edit flag offensive delete link more

Comments

Dear Evgeny, Please provide me any alternate methods to bind python IP with default IP like eg. gunicorn. thanks for answer Regards

gopalraha gravatar imagegopalraha ( 2016-07-27 01:38:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-07-26 04:17:53 -0600

Seen: 256 times

Last updated: Jul 27 '16