[GH-ISSUE #150] Error 500 and "Authentication failed" messages #126

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

Originally created by @romu70 on GitHub (Nov 19, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/150

Hi,
I'm trying to seup a VM server. The server runs Ubuntu Server 13.10 + Xubuntu (for some additionnal facilities).

The Ubuntu main user account is "administrator" and my server's name is salomon

I can successfully run: sudo virsh -c qemu+tcp://localhost/system nodeinfo but I have to enter administrator@salomon, not just the user account.

With the webvirt-mgr interface, I entered my server (name, IP address), but here I simply entered "administrator" for the KVM login, and I'm connected.

But I always get some red flags with "Authentication failed", and 500 errors as soon as I clicked on the left menu.

I run the debug server and this is what I get:
libvirt: XML-RPC error : authentication failed: authentication failed
libvirt: XML-RPC error : authentication failed: authentication failed
Internal Server Error: /info/cpu/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 "/home/administrator/webvirtmgr/overview/views.py", line 27, in cpuusage
return HttpResponse(cpu_usage)
UnboundLocalError: local variable 'cpu_usage' referenced before assignment
Internal Server Error: /info/memory/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 "/home/administrator/webvirtmgr/overview/views.py", line 45, in memusage
return HttpResponse(mem_usage[2])
UnboundLocalError: local variable 'mem_usage' referenced before assignment

Thanks for the help.

Originally created by @romu70 on GitHub (Nov 19, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/150 Hi, I'm trying to seup a VM server. The server runs Ubuntu Server 13.10 + Xubuntu (for some additionnal facilities). The Ubuntu main user account is "administrator" and my server's name is salomon I can successfully run: sudo virsh -c qemu+tcp://localhost/system nodeinfo but I have to enter administrator@salomon, not just the user account. With the webvirt-mgr interface, I entered my server (name, IP address), but here I simply entered "administrator" for the KVM login, and I'm connected. But I always get some red flags with "Authentication failed", and 500 errors as soon as I clicked on the left menu. I run the debug server and this is what I get: libvirt: XML-RPC error : authentication failed: authentication failed libvirt: XML-RPC error : authentication failed: authentication failed Internal Server Error: /info/cpu/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 "/home/administrator/webvirtmgr/overview/views.py", line 27, in cpuusage return HttpResponse(cpu_usage) UnboundLocalError: local variable 'cpu_usage' referenced before assignment Internal Server Error: /info/memory/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 "/home/administrator/webvirtmgr/overview/views.py", line 45, in memusage return HttpResponse(mem_usage[2]) UnboundLocalError: local variable 'mem_usage' referenced before assignment Thanks for the help.
kerem closed this issue 2026-02-27 16:38:03 +03:00
Author
Owner

@k3oni commented on GitHub (Dec 5, 2013):

Did you create/add the user using saslpasswd2 ?

<!-- gh-comment-id:29939636 --> @k3oni commented on GitHub (Dec 5, 2013): Did you create/add the user using saslpasswd2 ?
Author
Owner

@romu70 commented on GitHub (Dec 6, 2013):

Yes, I executed the installations instructions 2 times, on 2 fresh installations of Ubuntu Server (same hardware), and I 2 times got this issue.

<!-- gh-comment-id:29971379 --> @romu70 commented on GitHub (Dec 6, 2013): Yes, I executed the installations instructions 2 times, on 2 fresh installations of Ubuntu Server (same hardware), and I 2 times got this issue.
Author
Owner

@k3oni commented on GitHub (Dec 6, 2013):

Can you post your /etc/hosts file ?

<!-- gh-comment-id:30018463 --> @k3oni commented on GitHub (Dec 6, 2013): Can you post your /etc/hosts file ?
Author
Owner

@retspen commented on GitHub (Dec 7, 2013):

Try input login with domain: andministrator@hostname

<!-- gh-comment-id:30055017 --> @retspen commented on GitHub (Dec 7, 2013): Try input login with domain: andministrator@hostname
Author
Owner

@romu70 commented on GitHub (Dec 7, 2013):

@retspen : I can't connect webvirtmgr when I use administrator@hostname.

@k3oni : I can't, because to be fully honest, as I haven't see any answer after some days, I changed my mind and switched to Fedora, willing to install oVirt. But now I know there is someone to help, I'll give webvirtmgr another shot, this time on Fedora (my server is re-installed). I'll let you know.

Thanks.

<!-- gh-comment-id:30057265 --> @romu70 commented on GitHub (Dec 7, 2013): @retspen : I can't connect webvirtmgr when I use administrator@hostname. @k3oni : I can't, because to be fully honest, as I haven't see any answer after some days, I changed my mind and switched to Fedora, willing to install oVirt. But now I know there is someone to help, I'll give webvirtmgr another shot, this time on Fedora (my server is re-installed). I'll let you know. Thanks.
Author
Owner

@goshlanguage commented on GitHub (Dec 16, 2013):

Creating the user with saslpasswd2 resolved this for me, I had created the user when running ./manage syncdb, however still needed to create it with saslpasswd2 as well.

<!-- gh-comment-id:30677898 --> @goshlanguage commented on GitHub (Dec 16, 2013): Creating the user with saslpasswd2 resolved this for me, I had created the user when running ./manage syncdb, however still needed to create it with saslpasswd2 as well.
Author
Owner

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

When you run ./manage syncdb, you create user for webvirtmgr panel only. Command saslpasswd2 create user for management hypervisor on host server (this data need input when you add connection).

<!-- gh-comment-id:30680334 --> @retspen commented on GitHub (Dec 16, 2013): When you run ./manage syncdb, you create user for webvirtmgr panel only. Command saslpasswd2 create user for management hypervisor on host server (this data need input when you add connection).
Author
Owner

@orelhinhas commented on GitHub (Feb 7, 2014):

Hi @romu70 , you need to put in your /etc/hosts the ip and hostname, thereafter just logout/login.

<!-- gh-comment-id:34435140 --> @orelhinhas commented on GitHub (Feb 7, 2014): Hi @romu70 , you need to put in your /etc/hosts the ip and hostname, thereafter just logout/login.
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#126
No description provided.