mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #413] ERROR:django.request:Internal Server Error: /instances/1/ #311
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @poxus on GitHub (Sep 1, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/413
hi!
I see "500 Internal Server Error" after update (git pull):
webvirtmgr.log
INFO:gunicorn.access
ERROR:django.request:Internal Server Error: /instances/1/
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
response = callback(request, _callback_args, *_callback_kwargs)
File "/var/www/webvirtmgr/instance/views.py", line 358, in instances
compute.type)
File "/var/www/webvirtmgr/vrtManager/connection.py", line 355, in init
self.wvm = connection_manager.get_connection(host, login, passwd, conn)
File "/var/www/webvirtmgr/vrtManager/connection.py", line 295, in get_connection
connection = wvmConnection(host, login, passwd, conn)
File "/var/www/webvirtmgr/vrtManager/connection.py", line 72, in init
self.connect()
File "/var/www/webvirtmgr/vrtManager/connection.py", line 97, in connect
self.connection.registerCloseCallback(self.__connection_close_callback, None)
AttributeError: virConnect instance has no attribute 'registerCloseCallback'
Exception AttributeError: AttributeError("virConnect instance has no attribute 'unregisterCloseCallback'",)
@retspen commented on GitHub (Sep 1, 2014):
What linux distro do you use?
@poxus commented on GitHub (Sep 1, 2014):
debian 7
@retspen commented on GitHub (Sep 1, 2014):
libvirt ver?
@poxus commented on GitHub (Sep 1, 2014):
libvirtd --version
libvirtd (libvirt) 0.9.12.3
@retspen commented on GitHub (Sep 1, 2014):
You need update libvirt to 1.0.21 and above.
@poxus commented on GitHub (Sep 1, 2014):
but a cant install new_ver from wheezy repo, testing/backports or unstable only =(
ok, i'll try something to solve this.
Are u sure that the problem is in libvirt version only?
@retspen commented on GitHub (Sep 1, 2014):
Can you update project to last version and check?
@poxus commented on GitHub (Sep 1, 2014):
nothing has changed
@retspen commented on GitHub (Sep 1, 2014):
Did you restart supervisord ?
@poxus commented on GitHub (Sep 1, 2014):
yes, of course
.sh scrypt to upd:
#!/bin/bash
cd /var/www/webvirtmgr
git pull
./manage.py collectstatic
service supervisor stop
service supervisor start
service webvirtmgr-novnc restart
@invisiblethreat commented on GitHub (Sep 1, 2014):
I had to make the following changes to have things run:
@retspen commented on GitHub (Sep 2, 2014):
github.com/retspen/webvirtmgr@e01daf09f9@poxus commented on GitHub (Sep 2, 2014):
yeah! everything is wrking now, at first sight