Google colab : connection refused error

3,199 views
Skip to first unread message

AP

unread,
Feb 25, 2021, 4:50:39 AM2/25/21
to User Group for BigDL and Analytics Zoo
Hi all,
I am trying to train built in BERT layer on google colab but getting connection refused error.
Kindly suggest possible reasons for this.
logs 


creating: createTFTrainingHelper
creating: createIdentityCriterion
creating: createTFParkSampleToMiniBatch
creating: createEstimator
creating: createMaxIteration
creating: createEveryEpoch
Streaming output truncated to the last 5000 lines.
    answer = smart_decode(self.stream.readline()[:-1])
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 985, in send_command
    response = connection.send_command(command)
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1164, in send_command
    "Error while receiving", e, proto.ERROR_ON_RECEIVE)
py4j.protocol.Py4JNetworkError: Error while receiving
ERROR:py4j.java_gateway:An error occurred while trying to connect to the Java server (127.0.0.1:42141)
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-20-ea08eebe72cc>", line 1, in <module>
    estimator.train(input_fn, steps = 1)
  File "/usr/local/lib/python3.7/dist-packages/zoo/tfpark/estimator.py", line 170, in train
    opt.optimize(MaxIteration(steps))
  File "/usr/local/lib/python3.7/dist-packages/zoo/tfpark/tf_optimizer.py", line 780, in optimize
    checkpoint_trigger=checkpoint_trigger)
  File "/usr/local/lib/python3.7/dist-packages/zoo/pipeline/estimator/estimator.py", line 168, in train_minibatch
    validation_method)
  File "/usr/local/lib/python3.7/dist-packages/zoo/common/utils.py", line 133, in callZooFunc
    raise e
  File "/usr/local/lib/python3.7/dist-packages/zoo/common/utils.py", line 127, in callZooFunc
    java_result = api(*args)
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1257, in __call__
    answer, self.gateway_client, self.target_id, self.name)
  File "/usr/local/lib/python3.7/dist-packages/pyspark/sql/utils.py", line 63, in deco
    return f(*a, **kw)
  File "/usr/local/lib/python3.7/dist-packages/py4j/protocol.py", line 328, in get_return_value
    format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: <unprintable Py4JJavaError object>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 929, in _get_connection
    connection = self.deque.pop()
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1067, in start
    self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 929, in _get_connection
    connection = self.deque.pop()
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 1067, in start
    self.socket.connect((self.address, self.port))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/py4j/java_gateway.py", line 929, in _get_connection
    connection = self.deque.pop()
IndexError: pop from an empty deque

Jason Dai

unread,
Feb 25, 2021, 5:04:19 AM2/25/21
to AP, User Group for BigDL and Analytics Zoo
Maybe you can take a look at the Colab user guide at https://analytics-zoo.readthedocs.io/en/latest/doc/UserGuide/colab.html?

Thanks,
-Jason

--
You received this message because you are subscribed to the Google Groups "User Group for BigDL and Analytics Zoo" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigdl-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigdl-user-group/db9d942b-dd05-4047-aeca-6e393bb287e3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages