Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no server listening on 8080? #28

Open
polarizeme opened this issue Jun 8, 2015 · 0 comments
Open

no server listening on 8080? #28

polarizeme opened this issue Jun 8, 2015 · 0 comments

Comments

@polarizeme
Copy link

Hiya.

I initially posted this on the HangoutsBot page, but he informed me that hangups is using an older modified version of HangoutsBot; the issue seems to be residing in one of those modifications (attempting to connect to a local server on 8080).

When running the hangups adapter I am getting no response from the bot, so I decided to just run HangoutsBot (Main.py) and see if I could get some error output.

When I run Main.py, things start off just fine but go downhill from there:

You're logged in!
[05/Jun/2015:20:33:01] ENGINE Listening for SIGTERM.
[05/Jun/2015:20:33:01] ENGINE Listening for SIGUSR1.
[05/Jun/2015:20:33:01] ENGINE Listening for SIGHUP.
[05/Jun/2015:20:33:01] ENGINE Bus STARTING
[05/Jun/2015:20:33:01] ENGINE Started monitor thread 'Autoreloader'.
[05/Jun/2015:20:33:01] ENGINE Started monitor thread '_TimeoutMonitor'.
[05/Jun/2015:20:33:01] ENGINE Serving on http://127.0.0.1:8081
[05/Jun/2015:20:33:01] ENGINE Bus STARTED
Connected!

But the second I try anything like /ping or /help, I get this:

Conversation ID: [redacted]
Conversation name: [redacted]
User ID: UserID(chat_id='[redacted]', gaia_id='[redacted]')
User name: [redacted]
Timestamp: 2015-06-05 20:40:04
Text: /ping

Future/Task exception was never retrieved
future: Task(<handle>)<exception=ConnectionError(MaxRetryError("HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /receive/engineering (Caused by <class 'ConnectionRefusedError'>: [Errno 111] Connection refused)",),)>
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 493, in urlopen
    body=body, headers=headers)
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 291, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.4/http/client.py", line 1065, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1103, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.4/http/client.py", line 1061, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.4/http/client.py", line 906, in _send_output
    self.send(msg)
  File "/usr/lib/python3.4/http/client.py", line 841, in send
    self.connect()
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 106, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connection.py", line 90, in _new_conn
    (self.host, self.port), self.timeout, *extra_args)
  File "/usr/lib/python3.4/socket.py", line 509, in create_connection
    raise err
  File "/usr/lib/python3.4/socket.py", line 500, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 327, in send
    timeout=timeout
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/connectionpool.py", line 543, in urlopen
    raise MaxRetryError(self, url, e)
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /receive/engineering (Caused by <class 'ConnectionRefusedError'>: [Errno 111] Connection refused)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 302, in _step
    result = next(coro)
  File "/home/ubuntu/meatwad/node_modules/hubot-hangups/HangoutsBot/handlers.py", line 25, in handle
    yield from self.handle_command(event)
  File "/usr/lib/python3.4/asyncio/tasks.py", line 84, in coro
    res = func(*args, **kw)
  File "/home/ubuntu/meatwad/node_modules/hubot-hangups/HangoutsBot/handlers.py", line 37, in handle_command
    requests.post(url, data=payload)
  File "/usr/local/lib/python3.4/dist-packages/requests/api.py", line 88, in post
    return request('post', url, data=data, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/requests/api.py", line 44, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 456, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.4/dist-packages/requests/sessions.py", line 559, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/requests/adapters.py", line 375, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /receive/engineering (Caused by <class 'ConnectionRefusedError'>: [Errno 111] Connection refused)

According to some netstat output, it seems like HangoutsBot isn't even listening on 8080 (nothing is), but it's listening on 8081 just fine.

Any ideas as to what could be going on here?

Cheers and happy Monday. =P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant