Proxmox novnc ошибка подключения к серверу

22 Jan 2017 | Автор: dd |

Неспешно знакомлюсь с системой виртуализации ProxMox VE, которая примечательна тем, что из коробки поддерживает одновременно KVM и OpenVZ. И, помимо этого, при крайне простом веб-интерфейсе, поддерживает все фичи виртуализации KVM в бесплатном режиме, хотя и выкидывает, при каждом заходе в админку, уведомление “у вас отсутствует подписка”. Что разительно отличает данную систему от VMware ESXi, которая в бесплатном режиме держит всего один камень, а также требует, как минимум, 2IP для создания виртуальной фермы серверов, ибо один забирает под сервер и не имеет собственной реализации NAT.

Всем удобная система, но напоролся на отвратительный баг, по которому в Mozilla Firefox с завидным постоянством отваливается браузерная noVNC консоль доступа к виртуальной машине через веб-консоль управления. Соединение просто прекращается, показывает форму логина и выдает ошибку Server disconnected (code: 1006). Причем наглухо, так что приходится скакать с бубном, пытаясь реанимировать noVNC соединение, ибо все новые начинают запускаться с этой же ошибкой.

Что только не ковырял, но лечится это только путем удаления куков для урла вебморды ProxMox и перечиткой сертификата, находящегося в разделе Дополнительно -> Сертификаты -> Просмотр сертификатов -> Серверы -> PVE Cluster Manager CA

Но поскольку noVNC консоль висла каждые пару минут, то стал искать пути как с этим жить и что делать, ибо в Vivaldi оказались те же проблемы. И случайно обнаружил очень занятный ценебаг-цефич: у меня установлена Mozilla Aurora, еще со времен протечки памяти Firefox. И вот при запуске Aurora стартует тот же самый Firefox 50.1.0, просто вторым окном. Но из него noVNC соединение работает вообще без нареканий, а из первого окна, где постоянно отваливалось – теперь максимум что, может зависнуть сессия noVNC, которую просто закрываешь и стартуешь новую консоль.

Очень странно конечно, но не менее странно, чем отвал сертификата ProxMox в процессе работы.

включение spice консоли в proxmoxЕще одним вариантом быстрого доступа к консоли виртуальной машины с проблемами noVNC, является использование протокола SPICE (Simple Protocol for Independent Computing Environments) созданного как раз для доступа к десктопным VE машинам. В винде уже имеется встроенный виндовый клиент доступа RemoteViewer, но лучше установить свежий родной клиент. Тем более что там же можно взять драйвер редиректа USB.

Для использования SPICE соединения, следует погасить виртуальную машину, после чего в управлении виртуальной машиной PROXMOX, драйвер дисплея виртуальной машины надо переключить в SPICE режим, как показано на картинке. После старта виртуалки можно запускать соединение, либо с помощью виндового Remote Viewer, либо дополнительно установленного VirtViewer – последний работает как то по-стабильней.

З.Ы в процессе поиска решения, нашел самый угарный коммент о том, что чел обнаружил на своем сервере виртуализации установленный netcat6, который и выдавал эту ошибку. После того как он запустил команду “apt-get remove netcat6″ у него отлично заработало novnc. Если кто не понял, то повторять не надо.

Rating: 3.0/10 (20 votes cast)

Rating: -3 (from 3 votes)

Ошибка 1006 noVNC соединения к виртуальной машине Proxmox VE, 3.0 out of 10 based on 20 ratings

Теги: proxmox, виртуализация

  • #1

Greetings!

My first Proxmox VE and it’s working incredibly well! All of my VMs work fine, no problems other than the problem defined below.

However, I do have a minor problem when attempting to use the WebGUI Interface and the Console section under each VM. The error is stated as «noVNC — failed to connect to server». This appears at the top of the console section that remains black, and it only impact me while I’m using Chrome or Edge Chromium. It seems to work fine when using Firefox.

My install is fresh on Proxmox CE 7.1-10, and Chrome is my browser of choice.

I have tried the following:

  • disabled Chrome security for a few minutes (Settings > Security & Privacy > Security > No Protection) and that did not help whatsoever.
  • I have tried using a different Display such as VMWare, Standard VGA, and VirtIO-GPU, and rebooted each VM after each change to no avail.
  • I have tried to switch to a different TTY with Ctrl + Alt + F1 or Ctrl + Alt + F2, but this did nothing as well.

This happens for both my Linux VMs (Ubuntu) and my single Windows VM.

Last edited: Jan 31, 2022

oguz

oguz

Proxmox Retired Staff


  • #2

hi,

This appears at the top of the console section that remains black, and it only impact me while I’m using Chrome or Edge Chromium. It seems to work fine when using Firefox.

seems to be a browser issue in that case (if it works with one but not the others, then likely it’s not an issue on the PVE end).

maybe you have some add-ons on your chrome/edge that are messing with it? have you tried clearing browser cache and/or using incognito mode without extensions?

it’s also possible that some antivirus software don’t like your browser making external connections (various internet security etc. software can block this)

oguz

oguz

Proxmox Retired Staff


  • #4

I would entirely agree that it is something to do with the way that Chrome (and by extension Edge Chromium) operates

could you tell us which versions of the browsers you’re using?

also are you on windows 10 or 11? or which version?

and rebooted each VM after each change to no avail.

the VM settings should be fine (since it works in firefox). please revert them if you haven’t (to avoid false positives while testing for this issue)

Is there a better way to get the HTTPS certificate issue fixed?

how do you mean?
did you add a custom certificate? how exactly did you do so?
which HTTPS error are you talking about? could you send a screenshot please?

But why?

Using another VNC client I can connect to VM.

In the browser console:

Data URI scheme cursor supported
util.js:214 >> RFB.constructor
util.js:214 >> Display.constructor
util.js:214 User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
util.js:214 Browser: webkit 537.36
util.js:214 Setting viewport to full display region
util.js:214 << Display.constructor
util.js:216 Using native WebSockets
util.js:214 >> Keyboard.allKeysUp
util.js:214 << Keyboard.allKeysUp
util.js:214 Setting viewport to full display region
util.js:218  Msg: noVNC ready: native WebSockets, canvas rendering
util.js:214 << RFB.constructor
util.js:214 >> Keyboard.allKeysUp
util.js:214 << Keyboard.allKeysUp
util.js:218 
util.js:214 >> RFB.connect
util.js:216 connecting to ws://192.168.1.193:8080/
util.js:216 Detected binaryType support in WebSockets
util.js:214 << RFB.connect
util.js:214 >> WebSock.onopen
util.js:216 Server choose sub-protocol: binary
util.js:218  Msg: Starting VNC handshake
util.js:214 << WebSock.onopen
util.js:216 Server ProtocolVersion: 003.008
util.js:218  Msg: Sent ProtocolVersion: 003.008
util.js:214 >> WebSock.onclose
util.js:218 WebSocket on-close event
util.js:214 >> Keyboard.allKeysUp
util.js:214 << Keyboard.allKeysUp
util.js:220  Msg: Server disconnected (code: 1006)Util.Error @ util.js:220RFB._updateState @ rfb.js:470RFB._fail @ rfb.js:540(anonymous function) @ rfb.js:208(anonymous function) @ websock.js:314
util.js:214 << WebSock.onclose
util.js:214 >> Keyboard.allKeysUp
util.js:214 << Keyboard.allKeysUp
util.js:218 

On the server:

./launch.sh --listen 8080 --vnc 192.168.1.193:5901 --web /var/www/htdocs/app/webroot/noVNC/
Warning: could not find self.pem
Using local websockify at /var/www/htdocs/app/webroot/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on port 8080
WebSocket server settings:
  - Listen on :8080
  - Flash security policy server
  - Web server. Web root: /var/www/htdocs/app/webroot/noVNC
  - No SSL/TLS support (no cert file)
  - proxying from :8080 to 192.168.1.193:5901


Navigate to this URL:

    http://bibidibuppi:8080/vnc.html?host=crististore&port=8080

Press Ctrl-C to exit


robert - - [18/Nov/2015 17:36:20] "GET / HTTP/1.1" 101 -
robert - - [18/Nov/2015 17:36:20] 192.168.1.107: Plain non-SSL (ws://) WebSocket connection
robert - - [18/Nov/2015 17:36:20] 192.168.1.107: Version hybi-13, base64: 'False'
robert - - [18/Nov/2015 17:36:20] connecting to: 127.0.0.1:5901
Reaping zombies, active child count is 0
Ignoring interrupted syscall

And then nothing happens. Actually I get the Server disconnected (code: 1006) in the browser console.

Здравствуйте. Установил проксмокс. Зашёл в консоль, оказалась не работает.

Код Выделить Развернуть

timed out waiting for client
TASK ERROR: command '/usr/bin/termproxy 5900 --path /nodes/pve1 --perm Sys.Console -- /bin/login -f root' failed: exit code 4

ап. Хм, на мазиле запустилось. На хроме не хочет.

Хотя теперь другая ошибка. Если зайти на саму виртуалку по внк: ошибка подключения сервера novnc

Код Выделить Развернуть

Failed to run vncproxy
Беда прям одна.

I am new to proxmox,
I’m trying to run noVNC using php. I authenticate Using API_URL/access/ticket and set ticket to cookie «PVEAuthCookie»

I have tried to connect in the following way
https://domain:8006/?console=kvm&novnc=1&vmid=100&vmname=name&node=namenode

The error shown is «Error 401: No ticket»
enter image description here

It’s work when I have logged in to the web of the proxmox service, and I tried to set cookie with domain of the proxmox, but i Can’t set due to browser security.

Please help me to figure out this problem.

Thank you.

Ru Chern Chong's user avatar

asked Apr 12, 2019 at 7:58

Jaysukh Maghodiya's user avatar

You need erase cookie for you proxmox server. It help for you.

It may also be a problem with the time, check date on the proxmox and local PC.

answered Apr 12, 2019 at 11:10

qwsj's user avatar

qwsjqwsj

4163 silver badges13 bronze badges

1

To fix

Error 401: No ticket’

you will need to empty the client browsers cache.

shahaf's user avatar

shahaf

4,7002 gold badges29 silver badges32 bronze badges

answered Oct 8, 2019 at 10:32

David's user avatar

Понравилась статья? Поделить с друзьями:
  • Proxifier ошибка 10061
  • Proxifier ошибка 10060
  • Protherm panther ошибка f36
  • Protherm panther ошибка f29
  • Protherm panther ошибка f24