mirror of
https://github.com/retspen/webvirtmgr.git
synced 2026-04-26 08:05:54 +03:00
[GH-ISSUE #150] Error 500 and "Authentication failed" messages #126
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 @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.
@k3oni commented on GitHub (Dec 5, 2013):
Did you create/add the user using saslpasswd2 ?
@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.
@k3oni commented on GitHub (Dec 6, 2013):
Can you post your /etc/hosts file ?
@retspen commented on GitHub (Dec 7, 2013):
Try input login with domain: andministrator@hostname
@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.
@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.
@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).
@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.