[GH-ISSUE #336] Unable to start webvirtmgr #255

Closed
opened 2026-02-27 16:38:37 +03:00 by kerem · 1 comment
Owner

Originally created by @amarc on GitHub (Jun 16, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/336

Hello,

while everything was working OK 2 days ago, this morning I turned on PC with Webvirtmgr on and had nginx 502 bad gateway error.

Digging a bit on logs an I get something like this:

root@webvirt:/var/www/webvirtmgr# tail -f /var/log/supervisor/webvirtmgr.log -n 50
return mod.make_command_wsgi_application(self.admin_media_path)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 119, in make_command_wsgi_application
return make_wsgi_application()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 36, in make_wsgi_application
if get_validation_errors(s):
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors
from django.db.models.loading import get_app_errors
ImportError: cannot import name get_app_errors
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 495, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 106, in init_process
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 114, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py", line 142, in load
return mod.make_command_wsgi_application(self.admin_media_path)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 119, in make_command_wsgi_application
return make_wsgi_application()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 36, in make_wsgi_application
if get_validation_errors(s):
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors
from django.db.models.loading import get_app_errors
ImportError: cannot import name get_app_errors
2014-06-16 11:40:49 [13314] [INFO] Worker exiting (pid: 13314)
INFO:gunicorn.error:Worker exiting (pid: 13314)
Traceback (most recent call last):
File "/var/www/webvirtmgr/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 453, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 222, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 255, in execute
output = self.handle(_args, *_options)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/management/commands/run_gunicorn.py", line 101, in handle
DjangoApplicationCommand(options, admin_media_path).run()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 143, in run
Arbiter(self).run()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 203, in run
self.halt(reason=inst.reason, exit_status=inst.exit_status)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 298, in halt
self.stop()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 341, in stop
self.reap_workers()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 452, in reap_workers
raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

Also trying to start it in debug mode gives:

root@webvirt:/var/www/webvirtmgr# ./manage.py runserver 0:8000 &
[1] 13321
root@webvirt:/var/www/webvirtmgr# WARNING:root:No local_settings file found.
WARNING:root:No local_settings file found.
Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x7f9eb82cb5d0>>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 93, in inner_run
self.validate(display_num_errors=True)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 280, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors
from django.db.models.loading import get_app_errors
ImportError: cannot import name get_app_errors

Nothing was touched or updated/upgraded on this system. Couple minutes ago I tried newest version of Webvirtmgr (git pull) but issue remains.

Any idea what this could be and how to fix it ?

ty.

Originally created by @amarc on GitHub (Jun 16, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/336 Hello, while everything was working OK 2 days ago, this morning I turned on PC with Webvirtmgr on and had nginx 502 bad gateway error. Digging a bit on logs an I get something like this: root@webvirt:/var/www/webvirtmgr# tail -f /var/log/supervisor/webvirtmgr.log -n 50 return mod.make_command_wsgi_application(self.admin_media_path) File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 119, in make_command_wsgi_application return make_wsgi_application() File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 36, in make_wsgi_application if get_validation_errors(s): File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors from django.db.models.loading import get_app_errors ImportError: cannot import name get_app_errors Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 495, in spawn_worker worker.init_process() File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 106, in init_process self.wsgi = self.app.wsgi() File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 114, in wsgi self.callable = self.load() File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/djangoapp.py", line 142, in load return mod.make_command_wsgi_application(self.admin_media_path) File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 119, in make_command_wsgi_application return make_wsgi_application() File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/django_wsgi.py", line 36, in make_wsgi_application if get_validation_errors(s): File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors from django.db.models.loading import get_app_errors ImportError: cannot import name get_app_errors 2014-06-16 11:40:49 [13314] [INFO] Worker exiting (pid: 13314) INFO:gunicorn.error:Worker exiting (pid: 13314) Traceback (most recent call last): File "/var/www/webvirtmgr/manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/**init**.py", line 453, in execute_from_command_line utility.execute() File "/usr/local/lib/python2.7/dist-packages/django/core/management/**init**.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 222, in run_from_argv self.execute(_args, *_options.**dict**) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 255, in execute output = self.handle(_args, *_options) File "/usr/local/lib/python2.7/dist-packages/gunicorn/management/commands/run_gunicorn.py", line 101, in handle DjangoApplicationCommand(options, admin_media_path).run() File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 143, in run Arbiter(self).run() File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 203, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 298, in halt self.stop() File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 341, in stop self.reap_workers() File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 452, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> Also trying to start it in debug mode gives: root@webvirt:/var/www/webvirtmgr# ./manage.py runserver 0:8000 & [1] 13321 root@webvirt:/var/www/webvirtmgr# WARNING:root:No local_settings file found. WARNING:root:No local_settings file found. Validating models... Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x7f9eb82cb5d0>> Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 93, in inner_run self.validate(display_num_errors=True) File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 280, in validate num_errors = get_validation_errors(s, app) File "/usr/local/lib/python2.7/dist-packages/django/core/management/validation.py", line 29, in get_validation_errors from django.db.models.loading import get_app_errors ImportError: cannot import name get_app_errors Nothing was touched or updated/upgraded on this system. Couple minutes ago I tried newest version of Webvirtmgr (git pull) but issue remains. Any idea what this could be and how to fix it ? ty.
kerem closed this issue 2026-02-27 16:38:37 +03:00
Author
Owner

@retspen commented on GitHub (Jun 16, 2014):

Try reinstall django.

<!-- gh-comment-id:46213493 --> @retspen commented on GitHub (Jun 16, 2014): Try reinstall django.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#255
No description provided.