[GH-ISSUE #440] noVNC - handler exception: Connect mode requires a port #329

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

Originally created by @webhtb on GitHub (Sep 28, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/440

Hi, one machne not working, all the rest do.

I have started manualy the service and i got this error:
1: connecting to: None:None
1: handler exception: Connect mode requires a port

The link from the browser contain correct uuid, i have checked that in xml file, also i have checked if the vnc is started, yes, it is, now when the machine is onlyne the xml look like:


And yes, i have checked with netstat and socklist, the vnc is running on that port.
Now, i have downloaded the noVNC from http://kanaka.github.io/noVNC/ and i configured and all is working, with this is working, but with noVNC from webvirtmgr not, i got this error on browser: Failed to connect to server (code: 1006)

The question is why console from webvirtmgr cann`t detect the uuid to get the port from xml?
I must to say, this machine was renamed, the xml was renamed but i have checked, all is ok in xml, the uuid and vnc port are ok and the vnc server is started.

Thank you in advance!
Daniel

Originally created by @webhtb on GitHub (Sep 28, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/440 Hi, one machne not working, all the rest do. I have started manualy the service and i got this error: 1: connecting to: None:None 1: handler exception: Connect mode requires a port The link from the browser contain correct uuid, i have checked that in xml file, also i have checked if the vnc is started, yes, it is, now when the machine is onlyne the xml look like: <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> And yes, i have checked with netstat and socklist, the vnc is running on that port. Now, i have downloaded the noVNC from http://kanaka.github.io/noVNC/ and i configured and all is working, with this is working, but with noVNC from webvirtmgr not, i got this error on browser: Failed to connect to server (code: 1006) The question is why console from webvirtmgr cann`t detect the uuid to get the port from xml? I must to say, this machine was renamed, the xml was renamed but i have checked, all is ok in xml, the uuid and vnc port are ok and the vnc server is started. Thank you in advance! Daniel
kerem closed this issue 2026-02-27 16:38:53 +03:00
Author
Owner

@chamambom commented on GitHub (Sep 28, 2014):

I should say i am experiencing the same as what daniel is saying.All the machines that i have renamed are giving me issues when i try to login using noVNC. tried the following

  1. stoping the vm and clearing the password and regenerating

and its not working...

i have also noticed that when you try to access it via the virt-manager desktop GUI ....its prompting me for a password to add to its keyring ....still trying to figure it out though

<!-- gh-comment-id:57097122 --> @chamambom commented on GitHub (Sep 28, 2014): I should say i am experiencing the same as what daniel is saying.All the machines that i have renamed are giving me issues when i try to login using noVNC. tried the following 1) stoping the vm and clearing the password and regenerating and its not working... i have also noticed that when you try to access it via the virt-manager desktop GUI ....its prompting me for a password to add to its keyring ....still trying to figure it out though
Author
Owner

@webhtb commented on GitHub (Sep 28, 2014):

I dont have the problem with password, the other noVNC works, the desktop GUI works, only this noVNC from webvirtmgr dont.

<!-- gh-comment-id:57098355 --> @webhtb commented on GitHub (Sep 28, 2014): I don`t have the problem with password, the other noVNC works, the desktop GUI works, only this noVNC from webvirtmgr don`t.
Author
Owner

@retspen commented on GitHub (Oct 15, 2014):

Can you check webvirtmgr.sqlite3 in table instance_instance your VM?

<!-- gh-comment-id:59199893 --> @retspen commented on GitHub (Oct 15, 2014): Can you check webvirtmgr.sqlite3 in table instance_instance your VM?
Author
Owner

@webhtb commented on GitHub (Oct 16, 2014):

Hi, i find duplicate entry by uuid, the old name and the new name, i have deleted the old name to avoid duplicates but same problem, problem not solved.

<!-- gh-comment-id:59322184 --> @webhtb commented on GitHub (Oct 16, 2014): Hi, i find duplicate entry by uuid, the old name and the new name, i have deleted the old name to avoid duplicates but same problem, problem not solved.
Author
Owner

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

You need delete both, after that WebVirtMgr create new one.

<!-- gh-comment-id:59323073 --> @retspen commented on GitHub (Oct 16, 2014): You need delete both, after that WebVirtMgr create new one.
Author
Owner

@webhtb commented on GitHub (Oct 16, 2014):

done, but WebVirtMgr not create new one yet, i have reloaded the apache, refreshed the WebVirtMgr interface, in table instance_instance no new one entry, also the noVNC not working.

<!-- gh-comment-id:59323537 --> @webhtb commented on GitHub (Oct 16, 2014): done, but WebVirtMgr not create new one yet, i have reloaded the apache, refreshed the WebVirtMgr interface, in table instance_instance no new one entry, also the noVNC not working.
Author
Owner

@webhtb commented on GitHub (Oct 16, 2014):

I have reopened the database, now the new entry is there, also noVNC WORKING!

Thanx

By the way, when we can have support for XEN ?

<!-- gh-comment-id:59323851 --> @webhtb commented on GitHub (Oct 16, 2014): I have reopened the database, now the new entry is there, also noVNC WORKING! Thanx By the way, when we can have support for XEN ?
Author
Owner

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

No only KVM.

<!-- gh-comment-id:59323971 --> @retspen commented on GitHub (Oct 16, 2014): No only KVM.
Author
Owner

@webhtb commented on GitHub (Oct 16, 2014):

I use an entire HDD with KVM and one time per week i get FS corruption.
Also same problem when i use qcow2 images.
I think is an qemu problem in block.c, thats why i asked about XEN.
I try all settings possible, now i use:

Nevermind, thank you again for your help!!

<!-- gh-comment-id:59324173 --> @webhtb commented on GitHub (Oct 16, 2014): I use an entire HDD with KVM and one time per week i get FS corruption. Also same problem when i use qcow2 images. I think is an qemu problem in block.c, thats why i asked about XEN. I try all settings possible, now i use: <driver name='qemu' type='raw' cache='none' io='native'/> <source dev='/dev/sdc'/> <target dev='vdb' bus='virtio'/> Nevermind, thank you again for your help!!
Author
Owner

@webhtb commented on GitHub (Oct 16, 2014):

driver name='qemu' type='raw' cache='none' io='native'
source dev='/dev/sdc'
target dev='vdb' bus='virtio'

<!-- gh-comment-id:59324235 --> @webhtb commented on GitHub (Oct 16, 2014): driver name='qemu' type='raw' cache='none' io='native' source dev='/dev/sdc' target dev='vdb' bus='virtio'
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#329
No description provided.