[GH-ISSUE #255] 500 Internal Server Error #204

Closed
opened 2026-02-27 16:38:23 +03:00 by kerem · 11 comments
Owner

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

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
kerem closed this issue 2026-02-27 16:38:23 +03:00
Author
Owner

@retspen commented on GitHub (Mar 10, 2014):

Change in file settings.py:
DEBUG=False to DEBUG= True

and restart supervisor:

$ sudo service supervisor restart

<!-- gh-comment-id:37172765 --> @retspen commented on GitHub (Mar 10, 2014): Change in file settings.py: DEBUG=False to DEBUG= True and restart supervisor: $ sudo service supervisor restart
Author
Owner

@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

<!-- gh-comment-id:37196126 --> @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
Author
Owner

@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

exceptions-old-style

<!-- gh-comment-id:37307733 --> @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 ![exceptions-old-style](https://f.cloud.github.com/assets/5678491/2386882/ab6c6212-a930-11e3-98d6-f15c3ecb6723.png)
Author
Owner

@retspen commented on GitHub (Mar 11, 2014):

Could you change line 47 in file connection.py:

raise to return

and try again

<!-- gh-comment-id:37312104 --> @retspen commented on GitHub (Mar 11, 2014): Could you change line 47 in file connection.py: raise to return and try again
Author
Owner

@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

<!-- gh-comment-id:37316566 --> @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
Author
Owner

@retspen commented on GitHub (Mar 11, 2014):

Do you have installed python-libvirt package?

<!-- gh-comment-id:37322266 --> @retspen commented on GitHub (Mar 11, 2014): Do you have installed python-libvirt package?
Author
Owner

@ttosttos commented on GitHub (Mar 11, 2014):

Yes.... "python-libvirt is already the newest version."

<!-- gh-comment-id:37337462 --> @ttosttos commented on GitHub (Mar 11, 2014): Yes.... "python-libvirt is already the newest version."
Author
Owner

@retspen commented on GitHub (Mar 12, 2014):

What do you get, when you open hostdetail page (button "i" on server page)?

<!-- gh-comment-id:37418766 --> @retspen commented on GitHub (Mar 12, 2014): What do you get, when you open hostdetail page (button "i" on server page)?
Author
Owner

@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).

<!-- gh-comment-id:37475970 --> @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).
Author
Owner

@retspen commented on GitHub (Mar 14, 2014):

Something is wrong with your settings, try use tcp connection for test.

<!-- gh-comment-id:37617299 --> @retspen commented on GitHub (Mar 14, 2014): Something is wrong with your settings, try use tcp connection for test.
Author
Owner

@richardsj commented on GitHub (Sep 4, 2014):

+1

<!-- gh-comment-id:54433344 --> @richardsj commented on GitHub (Sep 4, 2014): +1
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#204
No description provided.