Symptoms

After installation of OA Update 8, OACI VE console is not working for all virtual environments on a specific Virtuozzo host.

The console shows the message:

Session Closed. Please click on Reset Console

/var/log/httpd/oaci_error_log log file on the hardware node, where VE is located, contains the following lines:

[Wed Aug 10 06:11:54 2016] [debug] proxy_util.c(2158): proxy: connecting ws://:6500/websockify to :6500
[Wed Aug 10 06:11:55 2016] [error] [client 10.15.140.4] proxy: DNS lookup failure for:  returned by /websocket/6500
[Wed Aug 10 06:11:55 2016] [debug] proxy_util.c(2120): proxy: WS: has released connection for (*)

Rewrite rules, responsible for proxying web socket connections, do not include the IP of the sever:

[root@vz01 ~]# cat /var/www/oaci/html/.htaccess
RewriteEngine on
RewriteRule ^websocket/([^/]+) ws://:$1/websockify [P]
RewriteRule ^oaciws/([^/]+)/([^/]+) ws://:$2/websockify [P]

There is no IP address in the URLs above.

Cause

With Update 8, VE console was switched from Java applet to HTML5 based console utilizing HTTP web sockets with Branding host proxying connections to Virtuozzo node. After the update installation, a configuration script is called to created the required proxy rules. The script depends on paci_hn_psbm package parameters, the package is installed on the Virtuozzo server. For some reason, net.connectivity.ip paramater of the package appears empty for the host.

Resolution

In order to workaround the issue, login to the affected Virtuozzo server and run the script with correct backnet IP address:

# python /usr/lib64/httpd/modules/mod_rewrite_ws/oaci_websocket_server.py 172.16.0.230

Contact Odin Technical Support to find the reason behind empty package properties and fix the problem.

Internal content

Link on internal Article