Re: [modwsgi] Apache2 + mod_wsgi + django + djcelery

76 views
Skip to first unread message

Graham Dumpleton

unread,
Jul 30, 2012, 8:52:58 PM7/30/12
to mod...@googlegroups.com
Not knowing anything about what packages you are using, I can only
suggest the normal magic fairy dust. That is to add:

WSGIApplicationGroup %{GLOBAL}

This will force use of the main interpreter within the process and
avoid a host of issues with third party C extension modules that will
not work properly in sub interpreters.

If that fails, then read:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB
http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Extracting_Python_Stack_Traces

and use techniques to work out where code is getting stuck.

Graham

On 31 July 2012 08:35, Dominik Grimm <grim...@googlemail.com> wrote:
> Hello,
>
> I developed a django web-application using celery tasks to distribute some
> computations to different workers. Everything works fine with the django
> development server.
> Now I tried to deploy everything using apache and mod_wsgi. I followed the
> tutorial and configured everything. A small hello world django app works
> fine.
> Then I tried to deploy my developed application and access it via the web.
> The only thing what happens is, that my browser keeps loading. I do not get
> any errors within my apache log files.
>
> Here is my Apache config:
> ErrorLog ${APACHE_LOG_DIR}/error.log
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> LogLevel debug
>
> CustomLog ${APACHE_LOG_DIR}/access.log combined
>
> <VirtualHost 192.124.27.48:80>
> ServerName my.server.name.removed.com
> ServerAlias www.my.server.name.removed.com my.server.name
>
> DocumentRoot /var/www/mysite
>
> WSGIScriptAlias / /var/wsgi-scripts/mysite.wsgi
>
> <Directory /var/wsgi-scripts>
> Order deny,allow
> Allow from all
> </Directory>
>
> WSGIDaemonProcess my.server.name.removed.com processes=2 threads=15
> WSGIProcessGroup my.server.name.removed.com
>
> Alias /static/ /var/www/mysite/static
> Alias /media/ /var/www/mysite/media
>
> #<Directory /var/www/easygwa/static>
> # Order deny,allow
> # Allow from all
> #</Directory>
>
> #<Directory /var/www/easygwa/media>
> # Order deny,allow
> # Allow from all
> #</Directory>
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/p4MHGfm-OycJ.
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
> modwsgi+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

Dominik Grimm

unread,
Jul 31, 2012, 7:40:43 AM7/31/12
to mod...@googlegroups.com
Thanks a lot. You saved my day :) This magic line fixed the issue. 

Graham Dumpleton

unread,
Jul 31, 2012, 7:53:06 AM7/31/12
to mod...@googlegroups.com
For background on what this is doing, see:

http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Python_Simplified_GIL_State_API

Graham
>> > modwsgi+u...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/modwsgi?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/oQysCDLLsqAJ.
>
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
> modwsgi+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages