#26222: In migrating older project, after pip upgrade of Django to 1.9.2, 
Gunicorn
crashes on failure to find validation
-------------------------------------+-------------------------------------
     Reporter:  JonathanHayward      |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Uncategorized        |                  Version:  1.9
     Severity:  Normal               |               Resolution:  invalid
     Keywords:  upgrade,             |             Triage Stage:
  validation, gunicorn               |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by timgraham):

 * status:  new => closed
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0
 * resolution:   => invalid


Old description:

> 0
> down vote
> favorite
> I have an old Django project that I haven't kept up, and now I'd like to
> make necessary changes to work with current versions of Django and
> related software. I'm not sure what to make of the current error; it
> appears to me that it doesn't have something under the django.core
> umbrella, but my Django 1.9.2 installation is up to date:
>
> [2016-02-14 17:23:10 +0000] [4605] [ERROR] Exception in worker process:
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line
> 515, in spawn_worker
>     worker.init_process()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
> line 122, in init_process
>     self.load_wsgi()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
> line 130, in load_wsgi
>     self.wsgi = self.app.wsgi()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py",
> line 67, in wsgi
>     self.callable = self.load()
>   File "/usr/local/lib/python2.7/dist-
> packages/gunicorn/app/djangoapp.py", line 141, in load
>     mod = util.import_module("gunicorn.app.django_wsgi")
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
> import_module
>     __import__(name)
>   File "/usr/local/lib/python2.7/dist-
> packages/gunicorn/app/django_wsgi.py", line 21, in
>     from django.core.management.validation import get_validation_errors
> ImportError: No module named validation
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line
> 515, in spawn_worker
>     worker.init_process()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
> line 122, in init_process
>     self.load_wsgi()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
> line 130, in load_wsgi
>     self.wsgi = self.app.wsgi()
>   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py",
> line 67, in wsgi
>     self.callable = self.load()
>   File "/usr/local/lib/python2.7/dist-
> packages/gunicorn/app/djangoapp.py", line 141, in load
>     mod = util.import_module("gunicorn.app.django_wsgi")
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
> import_module
>     __import__(name)
>   File "/usr/local/lib/python2.7/dist-
> packages/gunicorn/app/django_wsgi.py", line 21, in
>     from django.core.management.validation import get_validation_errors
> ImportError: No module named validation
> [2016-02-14 17:23:10 +0000] [4605] [INFO] Worker exiting (pid: 4605)
> [2016-02-14 17:23:11 +0000] [4597] [INFO] Shutting down: Master
> [2016-02-14 17:23:11 +0000] [4597] [INFO] Reason: Worker failed to boot.
> root@localhost:~/unixytalk# pip install Django==1.9.2
> Requirement already satisfied (use --upgrade to upgrade): Django==1.9.2
> in /usr/local/lib/python2.7/dist-packages

New description:

 I have an old Django project that I haven't kept up, and now I'd like to
 make necessary changes to work with current versions of Django and related
 software. I'm not sure what to make of the current error; it appears to me
 that it doesn't have something under the django.core umbrella, but my
 Django 1.9.2 installation is up to date:
 {{{
 [2016-02-14 17:23:10 +0000] [4605] [ERROR] Exception in worker process:
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line
 515, in spawn_worker
     worker.init_process()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
 line 122, in init_process
     self.load_wsgi()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
 line 130, in load_wsgi
     self.wsgi = self.app.wsgi()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line
 67, in wsgi
     self.callable = self.load()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py",
 line 141, in load
     mod = util.import_module("gunicorn.app.django_wsgi")
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
 import_module
     __import__(name)
   File "/usr/local/lib/python2.7/dist-
 packages/gunicorn/app/django_wsgi.py", line 21, in
     from django.core.management.validation import get_validation_errors
 ImportError: No module named validation
 Traceback (most recent call last):
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line
 515, in spawn_worker
     worker.init_process()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
 line 122, in init_process
     self.load_wsgi()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py",
 line 130, in load_wsgi
     self.wsgi = self.app.wsgi()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line
 67, in wsgi
     self.callable = self.load()
   File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py",
 line 141, in load
     mod = util.import_module("gunicorn.app.django_wsgi")
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
 import_module
     __import__(name)
   File "/usr/local/lib/python2.7/dist-
 packages/gunicorn/app/django_wsgi.py", line 21, in
     from django.core.management.validation import get_validation_errors
 ImportError: No module named validation
 [2016-02-14 17:23:10 +0000] [4605] [INFO] Worker exiting (pid: 4605)
 [2016-02-14 17:23:11 +0000] [4597] [INFO] Shutting down: Master
 [2016-02-14 17:23:11 +0000] [4597] [INFO] Reason: Worker failed to boot.
 }}}
 {{{
 root@localhost:~/unixytalk# pip install Django==1.9.2
 Requirement already satisfied (use --upgrade to upgrade): Django==1.9.2 in
 /usr/local/lib/python2.7/dist-packages
 }}}

--

Comment:

 Looks like you're using an older version of gunicorn that doesn't support
 that latest version of Django. Please see
 https://docs.djangoproject.com/en/stable/howto/deployment/wsgi/gunicorn/
 and see TicketClosingReasons/UseSupportChannels if you need further help.

--
Ticket URL: <https://code.djangoproject.com/ticket/26222#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.dec7c8f69f659db206e662e4ea4994df%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to