Skip to content

failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:7890: Socket closed #16

@JV-X

Description

@JV-X

I am deploying Hatchet according to this document (https://github.com/hatchet-dev/hatchet-python-quickstart/tree/main/simple-examples). When I run the command poetry run hatchet, I encountered the following error. How can I resolve this issue?

error log:

(base) hygx@hygx:~/code/hatchet-python-quickstart/simple-examples$ python -m poetry run hatchet
Traceback (most recent call last):
  File "/home/hygx/.cache/pypoetry/virtualenvs/src-c6dKqbg_-py3.12/lib/python3.12/site-packages/hatchet_sdk/clients/admin.py", line 226, in put_workflow
    resp: WorkflowVersion = self.client.PutWorkflow(
                            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hygx/.cache/pypoetry/virtualenvs/src-c6dKqbg_-py3.12/lib/python3.12/site-packages/grpc/_channel.py", line 1176, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/hygx/.cache/pypoetry/virtualenvs/src-c6dKqbg_-py3.12/lib/python3.12/site-packages/grpc/_channel.py", line 1005, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:7890: Socket closed"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2025-02-08T15:52:14.25377791+08:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:7890: Socket closed"}"
>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/hygx/code/hatchet-python-quickstart/simple-examples/src/main.py", line 19, in start
    worker.register_workflow(SimpleWorkflow())
  File "/home/hygx/.cache/pypoetry/virtualenvs/src-c6dKqbg_-py3.12/lib/python3.12/site-packages/hatchet_sdk/worker.py", line 427, in register_workflow
    self.client.admin.put_workflow(workflow.get_name(), workflow.get_create_opts())
  File "/home/hygx/.cache/pypoetry/virtualenvs/src-c6dKqbg_-py3.12/lib/python3.12/site-packages/hatchet_sdk/clients/admin.py", line 233, in put_workflow
    raise ValueError(f"Could not put workflow: {e}")
ValueError: Could not put workflow: <_InactiveRpcError of RPC that terminated with:
        status = StatusCode.UNAVAILABLE
        details = "failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:7890: Socket closed"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2025-02-08T15:52:14.25377791+08:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:7890: Socket closed"}"
>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions