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

Socket Communication Issue #1080

Open
MohammadMahdiJavid opened this issue Jan 10, 2024 · 1 comment
Open

Socket Communication Issue #1080

MohammadMahdiJavid opened this issue Jan 10, 2024 · 1 comment

Comments

@MohammadMahdiJavid
Copy link

Hi,

sometimes (randomly) not very specific patterns or something reproducible
I receive BrokenPipeError

Exception in thread Thread-422:
Traceback (most recent call last):
  File "lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
    
  File "openwpm/browser_manager.py", line 361, in execute_command_sequence
  task_manager.sock.store_record(
            TableName("site_visits"),
            self.curr_visit_id,
            {
                "visit_id": self.curr_visit_id,
                "browser_id": self.browser_id,
                "site_url": command_sequence.url,
                "site_rank": command_sequence.site_rank,
            },
        )

  File "storage/storage_controller.py", line 444, in store_record
    self.socket.send(
    
  File "openwpm/socket_interface.py", line 157, in send
    sent = self.sock.send(msg[totalsent:])
    
BrokenPipeError: [Errno 32] Broken pipe

What could be the underlying cause for this issue?

also this error (I thought the might be related to each other)


Exception in thread Thread-421:
Traceback (most recent call last):
  File "lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)

  File "openwpm/browser_manager.py", line 446, in execute_command_sequence
    task_manager.sock.store_record(

  File "storage/storage_controller.py", line 444, in store_record
    self.socket.send(

  File "openwpm/socket_interface.py", line 157, in send
    sent = self.sock.send(msg[totalsent:])
ConnectionResetError: [Errno 104] Connection reset by peer

Thank you so much for all your help!

@vringar
Copy link
Contributor

vringar commented Jan 11, 2024

That's curious as I've primarily seen broken sockets when talking to the WebExtension after the browser has closed down.
Having that happen in the communication between TaskManager and StorageController is concerning.

Are there any error messages from the StorageController before this happens?

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

2 participants