question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

noVNC is not working for VMs with password enabled

See original GitHub issue

Description After upgrade to 5.8.4 I faced with the issue when most of VMs have no working VNC. Usually it is stacks on this screen without any errors: image

But after few minutes, it shows: image

and error in browser’s console:

Failed when connecting: Connection closed (code: 1006) rfb.js:677
    _fail rfb.js:677
    RFB rfb.js:277
    onclose websock.js:227

To Reproduce

  • Create VM with
    GRAPHICS = [
      LISTEN = "0.0.0.0",
      RANDOM_PASSWD = "YES",
      TYPE = "VNC" ]
    
  • Try to connect via VNC

Expected behavior Connected VNC

Details

  • Affected Component: Sunstone
  • Hypervisor: KVM
  • Version: 5.8.4

Additional context

After rollback to 5.8.1 vnc is working again

Progress Status

  • Branch created
  • Code committed to development branch
  • Testing - QA
  • Documentation
  • Release notes - resolved issues, compatibility, known issues
  • Code committed to upstream release/hotfix branches
  • Documentation committed to upstream release/hotfix branches

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
goncaloistcommented, Oct 4, 2019

Hello. I have been testing opennebula 5.8.5 and noticed that apparently this issue was not completely resolved with the fix.

The VNC windows is now available when using a password, but is still not displayed when the option “Open in a new Windows” is then used.

I also tried inserting the fix manually and rebuilding the 5.8.4 packages, with the same result. Hope that this issue was the right place in which to pass this information (reopening the issue?).

0reactions
goncaloistcommented, Oct 7, 2019

hi, @goncaloist, when you click on the “Open in a new Windows” button in the url do these parameters come out? a &encrypt=no&title=TITLEVM&password=PASSWORD

Hello. I was seeing only: “&encrypt=yes&title=TITLEVM”. Now tried adding the &password=… and it worked. I noticed that my “vnc_request_password” option was set to true. Changed it back to false and it now opens the new window. I had misunderstood the purpose of that option. It was no bug, working as intended. Sorry, I had stumbled in this bug with 5.8.4 previously and though my “open in new window” issue was something related.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Promox 6: problem with noVNC - failed to connect to server
After some time I cannot connect noVNC console to VM with error "failed to connect to server". After shutdown and start of VM...
Read more >
secure connection with novnc for VM's | TrueNAS Community
I am trying to make a secure connection to my ubuntuVM which i have made in the Freenas (11.3-U3.2) Webgui. ... apparently novnc...
Read more >
1595536 – [RFE] Support VMs with VNC console on a FIPS ...
Description of problem: A VM with a VNC console will fail to start on ... "-enable-fips" which will disable the VNC password authentication....
Read more >
"Password required" prompt is shown when SolusVM VPS is ...
Open SolusVM > Virtual Servers > VPS > VNC Pass and save password form step 3 - VPS reboot is not required. How...
Read more >
What username and password do I enter when I'm trying to ...
This authenticates you to VNC Server, the program running on the remote computer. Note: You can choose to remember the password so you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found