Ticket #1012 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Client spits out a trace if it cannot connect to the server

Reported by: Owned by: desai
Priority: minor Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


If the client cannot initiate a connection to the server (for whatever reason), it spits out a Python trace, which is a bit ugly:

$ bcfg2 -S https://does.not.exist
Traceback (most recent call last):
  File "/usr/sbin/bcfg2", line 332, in <module>
  File "/usr/sbin/bcfg2", line 198, in run
    probe_data = proxy.GetProbes()
  File "/usr/lib/python2.6/", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/", line 1489, in __request
  File "/usr/lib/pymodules/python2.6/Bcfg2/", line 280, in request
    self.send_content(h, request_body)
  File "/usr/lib/python2.6/", line 1349, in send_content
  File "/usr/lib/python2.6/", line 908, in endheaders
  File "/usr/lib/python2.6/", line 780, in _send_output
  File "/usr/lib/python2.6/", line 739, in send
  File "/usr/lib/pymodules/python2.6/Bcfg2/", line 162, in connect
  File "/usr/lib/pymodules/python2.6/Bcfg2/", line 196, in _connect_py26ssl
    self.sock.connect((, self.port))
  File "/usr/lib/python2.6/", line 290, in connect
    socket.connect(self, addr)
  File "<string>", line 1, in connect
socket.gaierror: [Errno -2] Name or service not known


Change History

comment:1 Changed 12 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed

Fixed the traceback in 44f427f197c7f4e2cb4bba250450454bf7b8d179. Thanks for the bug report.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.