mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-27 00:25:51 +03:00
[GH-ISSUE #255] 500 Internal Server Error #204
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 @ttosttos on GitHub (Mar 10, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/255
Fresh install. I'm able to connect to the host via ssh. However, any further action on the dashboard results in:
Oops!
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete you request.
I've verified proper ownwership (www-data:www-data) for all files and restarted my server. I also enabled debugging on settings, but I don't see any incremental output on the browser. Any ideas?
Thanks.
ttosttos
@retspen commented on GitHub (Mar 10, 2014):
Change in file settings.py:
DEBUG=False to DEBUG= True
and restart supervisor:
$ sudo service supervisor restart
@DEK4 commented on GitHub (Mar 10, 2014):
In my case doesn't work immediatly...i just stop the supervisor service and start it again
sudo service supervisor stop
sudo service supervisor start
thanks
@ttosttos commented on GitHub (Mar 11, 2014):
2.7 doesn't allow you to raise strings as exceptions anymore?
TypeError at /instances/1/
exceptions must be old-style classes or derived from BaseException, not str
Request Method: GET
Request URL: http://localhost:8000/instances/1/
Django Version: 1.5.5
Exception Type: TypeError
Exception Value:
exceptions must be old-style classes or derived from BaseException, not str
Exception Location: /var/www/webvirtmgr/vrtManager/connection.py in init, line 47
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/var/www/webvirtmgr',
'/usr/local/lib/python2.7/dist-packages/ncclient-0.4.0-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Server time: Tue, 11 Mar 2014 17:18:16 +0200
@retspen commented on GitHub (Mar 11, 2014):
Could you change line 47 in file connection.py:
raise to return
and try again
@ttosttos commented on GitHub (Mar 11, 2014):
Now I get:
AttributeError at /instances/1/
'wvmInstances' object has no attribute 'wvm'
Request Method: GET
Request URL: http://localhost:8000/instances/1/
Django Version: 1.5.5
Exception Type: AttributeError
Exception Value:
'wvmInstances' object has no attribute 'wvm'
Exception Location: /var/www/webvirtmgr/vrtManager/connection.py in get_instances, line 88
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/var/www/webvirtmgr',
'/usr/local/lib/python2.7/dist-packages/ncclient-0.4.0-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client']
Server time: Tue, 11 Mar 2014 18:28:30 +0200
@retspen commented on GitHub (Mar 11, 2014):
Do you have installed python-libvirt package?
@ttosttos commented on GitHub (Mar 11, 2014):
Yes.... "python-libvirt is already the newest version."
@retspen commented on GitHub (Mar 12, 2014):
What do you get, when you open hostdetail page (button "i" on server page)?
@ttosttos commented on GitHub (Mar 12, 2014):
Not sure what button you're referring to, but from
http://localhost:8000/servers/
clicking on Infrastructure or any action (instance, create, storages, networks, host) results in the error message above. Rest of GUI works as expected (add host, delete, server ip, webvirtmgr).
@retspen commented on GitHub (Mar 14, 2014):
Something is wrong with your settings, try use tcp connection for test.
@richardsj commented on GitHub (Sep 4, 2014):
+1