[GH-ISSUE #127] SSH Connection cause 500 Internal Server Error #107

Closed
opened 2026-02-27 16:37:58 +03:00 by kerem · 4 comments
Owner

Originally created by @Paul-LKW on GitHub (Oct 16, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/127

Dear Sir:
Just upgraded to V3.1.1 and use normal TCP connection is fine, but if I use SSH for the panel connection, when I click any button eg.create I get 500 Internal Server Error.
May be SSH need additional configuration but how could do this ?

Best Regards,
Paul-LKW

Originally created by @Paul-LKW on GitHub (Oct 16, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/127 Dear Sir: Just upgraded to V3.1.1 and use normal TCP connection is fine, but if I use SSH for the panel connection, when I click any button eg.create I get 500 Internal Server Error. May be SSH need additional configuration but how could do this ? Best Regards, Paul-LKW
kerem closed this issue 2026-02-27 16:37:58 +03:00
Author
Owner

@retspen commented on GitHub (Oct 16, 2013):

Hello,

https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization

<!-- gh-comment-id:26408362 --> @retspen commented on GitHub (Oct 16, 2013): Hello, https://github.com/retspen/webvirtmgr/wiki/Setup-SSH-Authorization
Author
Owner

@Paul-LKW commented on GitHub (Oct 16, 2013):

Many Thanks for your information and I will check this.

<!-- gh-comment-id:26408597 --> @Paul-LKW commented on GitHub (Oct 16, 2013): Many Thanks for your information and I will check this.
Author
Owner

@MACscr commented on GitHub (Jun 27, 2014):

Im wondering if he had this same issue as I am having, but here is some actual debug data.

root@webvirtmgr:/var/www/webvirtmgr# sudo su www-data -c '/var/www/webvirtmgr/manage.py runserver 0:8000'
WARNING:root:No local_settings file found.
WARNING:root:No local_settings file found.
Validating models...

0 errors found
June 27, 2014 - 19:37:11
Django version 1.5.5, using settings 'webvirtmgr.settings'
Development server is running at http://0:8000/
Quit the server with CONTROL-C.
libvir: RPC error : End of file while reading data: Warning: Permanently added '192.168.0.101' (ECDSA) to the list of known hosts.
nc: unix connect failed: Permission denied: Input/output error
WARNING:py.warnings:/var/www/webvirtmgr/vrtManager/connection.py:50: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  raise err.message

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 379, in instances
    compute.type)
  File "/var/www/webvirtmgr/vrtManager/connection.py", line 50, in __init__
    raise err.message
TypeError: exceptions must be old-style classes or derived from BaseException, not str
[27/Jun/2014 19:37:19] "GET /instances/1/ HTTP/1.0" 500 1827

What I also dont get is why the panel says its connected when it looks like its actually not.

<!-- gh-comment-id:47372114 --> @MACscr commented on GitHub (Jun 27, 2014): Im wondering if he had this same issue as I am having, but here is some actual debug data. ``` root@webvirtmgr:/var/www/webvirtmgr# sudo su www-data -c '/var/www/webvirtmgr/manage.py runserver 0:8000' WARNING:root:No local_settings file found. WARNING:root:No local_settings file found. Validating models... 0 errors found June 27, 2014 - 19:37:11 Django version 1.5.5, using settings 'webvirtmgr.settings' Development server is running at http://0:8000/ Quit the server with CONTROL-C. libvir: RPC error : End of file while reading data: Warning: Permanently added '192.168.0.101' (ECDSA) to the list of known hosts. nc: unix connect failed: Permission denied: Input/output error WARNING:py.warnings:/var/www/webvirtmgr/vrtManager/connection.py:50: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 raise err.message 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 379, in instances compute.type) File "/var/www/webvirtmgr/vrtManager/connection.py", line 50, in __init__ raise err.message TypeError: exceptions must be old-style classes or derived from BaseException, not str [27/Jun/2014 19:37:19] "GET /instances/1/ HTTP/1.0" 500 1827 ``` What I also dont get is why the panel says its connected when it looks like its actually not.
Author
Owner

@MACscr commented on GitHub (Jun 27, 2014):

Nevermind, on debian systems, the group is libvirt and by adding the webvirtmgr user to that group, its solved the problem.

<!-- gh-comment-id:47374120 --> @MACscr commented on GitHub (Jun 27, 2014): Nevermind, on debian systems, the group is libvirt and by adding the webvirtmgr user to that group, its solved the problem.
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#107
No description provided.