Ask Your Question

nova-novncproxy.log - gaierror: [Errno -8] Servname not supported for ai_socktype

asked 2014-08-11 10:11:19 -0500

Ramesh gravatar image

I am getting "gaierror: [Errno -8] Servname not supported for ai_socktype" in var/log/upstart/nova-novncproxy.log when trying to connect to vnc server. I am stuck on this now for long time. Please help.

One thing I am reasonably sure wrong is the line "connecting to:" (the port should not be -1, right), but not sure how to address it.


WebSocket server settings:
  - Listen on
  - Flash security policy server
  - Web server. Web root: /usr/share/novnc
  - No SSL/TLS support (no cert file)
  - proxying from to ignore:ignore

  1: new handler Process
  1: "GET /vnc_auto.html?token=be0689f5-9a57-45ba-a543-8738f7d2ffee HTTP/1.1" 200 -
  2: new handler Process
  2: Plain non-SSL (ws://) WebSocket connection
  2: Version hybi-13, base64: 'False'
  2: Path: '/websockify'
  2: **connecting to:**
  2: handler exception: [Errno -8] Servname not supported for ai_socktype
  2: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/websockify/", line 797, in top_new_client
  File "/usr/lib/python2.7/dist-packages/nova/console/", line 68, in new_client
    tsock = self.socket(host, port, connect=True)
  File "/usr/lib/python2.7/dist-packages/websockify/", line 185, in socket
    socket.IPPROTO_TCP, flags)
gaierror: [Errno -8] Servname not supported for ai_socktype


Following is my set up

Compute Node - nova.conf



Controller Node

novncproxy_base_url= novncproxy_port=6080


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-12-21 08:07:25 -0500

stavitskiy gravatar image

I had the same trouble.

As I can see from logs, novnc tried to connect to the server with a negative port value: connecting to:

My solution was to check VMs status (it was SHUTDOWN), so after nova start VM, port in vnc got normal positive value.

Hope that helps.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-08-11 10:03:01 -0500

Seen: 2,066 times

Last updated: Dec 21 '15