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

ConnectionError: ('Connection aborted.', error(32, 'Broken pipe')) #44

Open
barrycarrjr opened this issue Oct 11, 2018 · 8 comments
Open
Labels

Comments

@barrycarrjr
Copy link

Out of no where we began getting the error below

2018-10-10 21:14:53,004 ERROR Caught exception in ScannerThread.scan_all() loop
Traceback (most recent call last):
File "/usr/local/rollbar-agent", line 468, in scan_all
self.scan_app(app, apps_state)
File "/usr/local/rollbar-agent", line 532, in scan_app
self.scan_file(app, filename, files_state[filename])
File "/usr/local/rollbar-agent", line 546, in scan_file
processor.process(fp, filename, file_state)
File "/usr/local/rollbar-agent", line 240, in process
self._process_line(line)
File "/usr/local/rollbar-agent", line 259, in _process_line
self.send_payload(line)
File "/usr/local/rollbar-agent", line 226, in send_payload
headers={"content-type": "application/json"})
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 426, in send
raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(32, 'Broken pipe'))

@jessewgibbs
Copy link

Hey Barry,

Sorry to hear you're encountering this issue. Did this error happen just once or repeatedly? And have you tried restarting the agent?

@jessewgibbs jessewgibbs self-assigned this Oct 11, 2018
@barrycarrjr
Copy link
Author

barrycarrjr commented Oct 11, 2018 via email

@jessewgibbs
Copy link

Thanks, Barry, for the update. Glad to hear that this is now working. I'm going to keep this issue open in our backlog as an enhancement to make the messages more informative when there is some kind of IO issue.

@jessewgibbs jessewgibbs removed their assignment Oct 11, 2018
@anuj-reef
Copy link

@jessewgibbs I am getting the same error and restarting the agent did not work.

@jessewgibbs
Copy link

@anuj-reef sorry to hear that you're encountering this problem.

Can you let us know:

  • OS version
  • Python version
  • Any other info that might help us to reproduce the problem

@jessewgibbs jessewgibbs self-assigned this Jan 9, 2019
@Gasol
Copy link

Gasol commented Jan 10, 2019

Same problem here, It is caused by sending large payload, The maximum size of request payload is 512kb, It return "413 Request Entity Too Large" when exceed and then the report data was left in targets folder.
We write custom truncation strategy to reduce payload size for workaround on PHP webapp, But I think rollbar-agent should take responsibility to handle this exception transparently.

2018-11-13 23:47:20,542 ERROR Caught exception in ScannerThread.scan_all() loopW
Traceback (most recent call last):
  File "/usr/local/rollbar-agent", line 468, in scan_all
    self.scan_app(app, apps_state)
  File "/usr/local/rollbar-agent", line 532, in scan_app
    self.scan_file(app, filename, files_state[filename])
  File "/usr/local/rollbar-agent", line 546, in scan_file
    processor.process(fp, filename, file_state)
  File "/usr/local/rollbar-agent", line 240, in process
    self._process_line(line)
  File "/usr/local/rollbar-agent", line 259, in _process_line
    self.send_payload(line)
  File "/usr/local/rollbar-agent", line 226, in send_payload
    headers={"content-type": "application/json"})
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 524, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 637, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 498, in send
    raise ConnectionError(err, request=request)

@jessewgibbs jessewgibbs removed their assignment Jan 14, 2019
@srikiraju
Copy link
Contributor

Agreed. rollbar-agent should just handle this case transparently

@levesquejf
Copy link

Any updates on this bug? I have a similar issue right now. It's hard to debug when I can not catch my Python Exceptions...

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

No branches or pull requests

6 participants