Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noVNC is not working for VMs with password enabled #3597

Closed
7 tasks
kvaps opened this issue Aug 16, 2019 · 11 comments
Closed
7 tasks

noVNC is not working for VMs with password enabled #3597

kvaps opened this issue Aug 16, 2019 · 11 comments

Comments

@kvaps
Copy link
Contributor

kvaps commented Aug 16, 2019

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
@kvaps kvaps changed the title noVNC isn't working noVNC shows black line Aug 16, 2019
@kvaps kvaps changed the title noVNC shows black line noVNC shows black line for most of VMs Aug 16, 2019
@alitvak69
Copy link

I have noticed some slowness, whence a black bar in the beginning. However, it loads the console in a few seconds.

@kvaps
Copy link
Contributor Author

kvaps commented Aug 17, 2019

Looks like novnc client problem, I have sunstone and novnc-server running in separated containers.

So I can confirm that problem not in novnc-server but in client, I've tested few scenarios:

  • Sunstone 5.8.1 and novnc server from 5.8.4 - working fine
  • Sunstone 5.8.4 and novnc server from 5.8.4 - can't connect to some VMs

I also made dump of packets on the host with the both VMs to see what is actually wrong there:

Left side - bad case, Right side - good case
image

What did I found, actually nothing, just see that after 10th packets novnc-server does not sends any packets.

@kvaps
Copy link
Contributor Author

kvaps commented Aug 17, 2019

Got it! Problem occurs only for VMs with enabled password authentication for VNC, however spice client is working fine

@kvaps kvaps changed the title noVNC shows black line for most of VMs noVNC is not working for VMs with password enabled Aug 17, 2019
@kvaps
Copy link
Contributor Author

kvaps commented Aug 17, 2019

probably it is stopped working after #3353

@vholer vholer added this to the Release 5.8.5 milestone Aug 26, 2019
jloboescalona2 pushed a commit to jloboescalona2/one that referenced this issue Sep 4, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
tinova pushed a commit that referenced this issue Sep 4, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
tinova pushed a commit that referenced this issue Sep 4, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
(cherry picked from commit 3235f79)
@tinova
Copy link
Member

tinova commented Sep 4, 2019

thanks kvaps and tryfunc!

al3xhh pushed a commit to al3xhh/one that referenced this issue Sep 4, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
atodorov-storpool pushed a commit to storpool/one that referenced this issue Sep 5, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
(cherry picked from commit 3235f79)
jloboescalona2 pushed a commit to jloboescalona2/docs that referenced this issue Sep 5, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
tinova pushed a commit to OpenNebula/docs that referenced this issue Sep 5, 2019
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
@tinova tinova closed this as completed Sep 5, 2019
@goncaloist
Copy link

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?).

@jloboescalona2
Copy link
Contributor

jloboescalona2 commented 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

@kvaps
Copy link
Contributor Author

kvaps commented Oct 7, 2019

I've install 5.8.5 and found that now password is working for VNC for me

@kvaps
Copy link
Contributor Author

kvaps commented Oct 7, 2019

But as @goncaloist said b button is not working anymore:

image

@kvaps
Copy link
Contributor Author

kvaps commented Oct 7, 2019

Hm, it seems after restart sunstone and memcache is started working as it should

@goncaloist
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants