Ask Your Question

ProtocolError('Connection aborted.', error(104, 'Connectoin reset by peer'))

asked 2017-10-19 20:26:14 -0600

hanchao gravatar image

The evironment is OpenStack pike release installed by rdo-packstack on CentOS 7.2.

Where I followed the github instruction and installed freezer components by hands. When I tried the basic command, like "freezer job-list", to have a try, it stucks for a short while, then returns the following error:

Traceback (most recent call last):
  File "/usr/bin/freezer", line 11, in <module>
  File "/usr/lib/python2.7/site-packages/freezerclient/", line 291, in main
    return FreezerShell().run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/", line 400, in run_subcommand
    result =
  File "/usr/lib/python2.7/site-packages/cliff/", line 113, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/freezerclient/v1/", line 117, in take_action
  File "/usr/lib/python2.7/site-packages/freezerclient/v1/managers/", line 56, in list_all
    params=query, data=data, verify=self.verify)
  File "/usr/lib/python2.7/site-packages/requests/", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/", line 405, in send
    conn = self.get_connection(request.url, proxies)
requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

I even digged into the code section. Everything seems work fine, but after the following part (after timeout=timeout), the code stucks a short time that I mentioned perviously. Then it throw the exception of ProtocolError part and the traceback is reported.

        if not chunked:
            resp = conn.urlopen(

This is really weird, and I have really no idea. Hope experts could have a look and give some hints.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-10-23 01:35:56 -0600

hanchao gravatar image

updated 2017-10-23 02:43:29 -0600

The error is because the uri in freezer-api.conf is wrong... Once this is updated to the correct, the service works as expected.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-10-19 20:26:14 -0600

Seen: 798 times

Last updated: Oct 23 '17