question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E0731 Error reading from socket.

See original GitHub issue

Hi, I tried pandarallel today and it helped speed-up my processing script quite a bit. However, after a few minutes of processing, I get the following error every few milliseconds spammed on the screen. No further exception is thrown and the process seems to have become stuck on this error

E0731 19:23:55.184354 7351 io.cc:215] Error reading from socket.

It is quite cryptic and I could not find anything else on this particular error. That’s why I am opening this issue. I am running this on the Google Cloud Compute instance: n1-highcpu-32 (32 vCPUs, 28.8 GB memory). I still believe that it is related to the pandarallel package since I end up with this exception when I CTRL+C out of the Error loop:

Traceback (most recent call last):
  File "shapesplit.py", line 290, in <module>
    main()
  File "shapesplit.py", line 58, in main
    distribute_raster_series(region, year, collection, parcels, overwrite, stop_early=stop_early)
  File "shapesplit.py", line 270, in distribute_raster_series
    distribute_raster(raster, parcels, collection, overwrite=overwrite)
  File "shapesplit.py", line 235, in distribute_raster
    result = parcels.parallel_apply(mapping_function, axis=1, args=(offset, rastername, local_filename, collection))
  File "/home/marc/miniconda3/lib/python3.7/site-packages/pandarallel/utils.py", line 74, in wrapper
    client.delete(client.list().keys())
  File "pyarrow/_plasma.pyx", line 741, in pyarrow._plasma.PlasmaClient.list
  File "pyarrow/error.pxi", line 87, in pyarrow.lib.check_status
pyarrow.lib.ArrowIOError: Connection reset by peer

Waiting up to 5 seconds.
Sent all pending logs.
Process ForkPoolWorker-15:
Traceback (most recent call last):
  File "/home/marc/miniconda3/lib/python3.7/site-packages/multiprocess/process.py", line 297, in _bootstrap
    self.run()
  File "/home/marc/miniconda3/lib/python3.7/site-packages/multiprocess/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/marc/miniconda3/lib/python3.7/site-packages/multiprocess/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/marc/miniconda3/lib/python3.7/site-packages/multiprocess/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/home/marc/miniconda3/lib/python3.7/site-packages/pathos/helpers/mp_helper.py", line 15, in <lambda>
    func = lambda args: f(*args)
  File "/home/marc/miniconda3/lib/python3.7/site-packages/pandarallel/dataframe.py", line 14, in worker_apply
    client = plasma.connect(plasma_store_name)
  File "pyarrow/_plasma.pyx", line 805, in pyarrow._plasma.connect
  File "pyarrow/error.pxi", line 83, in pyarrow.lib.check_status
  File "/home/marc/miniconda3/lib/python3.7/site-packages/pyarrow/compat.py", line 115, in frombytes
    def frombytes(o):
KeyboardInterrupt

Can you help me with that issue?

PS: here is a screenshot of the instance details Screenshot from 2019-07-31 21-52-24

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
winglightcommented, Sep 17, 2019

@nalepae You’re awesome. It works by your instruction. 😄

0reactions
nalepaecommented, Nov 9, 2019

Fixed with pandarallel 1.4.0

It seems your bug comes from the usage of pyarrow plasma.

pandarallel 1.4.0 does not use pyarrow plasma any more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PK88552: ERROR READING SOCKET, RC: -1, ERRNO (1121)
The JMON address getting socket errors: 6/05 8:09:05.715 (2387c000) sreadln: read failed rc(-1), errno(1121), EDC8121I CONNECTION RESET.
Read more >
JMS Binding Component Alert Codes
Cause: The JMS provider failed to close the connection due to some internal error. For example, a failure to release resources or to...
Read more >
DXi-Series Command Line Interface (CLI) Guide - Quantum
It can be seen that the error code is “E1000011” and the error message is “CIFS ... command to be typed a the...
Read more >
HCPCS code E0731 for Form fitting conductive garment for ...
Although the spinal cord treatment is referred to as "neuromuscular electrical stimulation" (NMES), [...] Reader Question: Neuromuscular Electrical Stimulation ...
Read more >
STATE OF MISSOURI DURABLE MEDICAL EQUIPMENT ...
After valid or error response IVR then reads menu options. ... E0731. NU EP. FORM FITTING CONDUCTIVE GARMENT FOR DELIVERY OF.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found