I have the same issue with Gunicorn when deploying Mezzanine-based Drum 
using Fabric, and it seems that the reason is the "gunicorn_django" command 
in the deploy/supervisor.conf deprecated starting from Gunicorn 18.0, and 
that is still the default in Mezzanine's latest version (3.1.9 to date). I 
now trying to figure out how to solve this...

On Friday, 10 January 2014 11:41:31 UTC+6, [email protected] wrote:
>
>
> Hi,
>
> I'm very new to Mezzanine and have been loving it --- especially the 
> fabric deploment.  However, I seem to be having some troubles with gunicorn.
>
> I started from a fresh linode running debian and allowed 'fab all' to 
> build the full system.
>
> I would very much appreciate some assistance with this.
>
> My basic process is:
>
> server:
>
> new linode profile
> ssh as root
> adduser user
> apt-get install sudo vim
> add harry to sudoers file
> on local machine:
> ssh-copy-id -i ~/.ssh/id_rsa.pub
> sudo pip install virtualenvwrapper
> add to bashrc:
>
> export WORKON_HOME=$HOME/.virtualenvs
> source /usr/local/bin/virtualenvwrapper.sh
> export PIP_VIRTUALENV_BASE=$WORKON_HOME
>
> local:
>
> mkvirtualenv black_earth_{project}
> pip install -r requirements.txt
> createdb {project}
> mezzanine-project {project}
> set database parameters in local_settings.py
> copy keys and deploy setting (FABRIC) to local_settings.py
> set allowed_hosts in settings.py
> ALLOWED_HOSTS = [
>     'localhosts',
>     '.mysite.org.au',
> ]
> python manage.py createdb
> check local server
> set up git repository
> git init
> git add .
> git  git remote add origin {gitserver}
> git push -u origin master
> pip freeze > requirements.txt
> fab all
>
> pip error:
> sudo pip install setuptools --no-use-wheel --upgrade
>
> At the final point in the deployment --- restart --- I get the error:
>
> $ supervisorctl start black_earth_semina:gunicorn_black_earth_semina ->
>
> [blackearthcollective.org.au] out: sudo password:
> [blackearthcollective.org.au] out: 
> black_earth_semina:gunicorn_black_earth_semina: ERROR (abnormal termination)
> [blackearthcollective.org.au] out: 
>
> This is with a completely standard mezzanine setup.  I thought that the 
> problem was with my theme project.
>
> from the supervisor gunicorn log:
>
> !!!
> !!! WARNING: This command is deprecated.
> !!!
> !!!     You should now run your application with the WSGI interface
> !!!     installed with your project. Ex.:
> !!!
> !!!         gunicorn myproject.wsgi:application
> !!!
> !!!     See 
> https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/gunicorn/
> !!!     for more info.
> !!!
>
> 2014-01-10 01:16:35 [12088] [CRITICAL] WORKER TIMEOUT (pid:12097)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to