Skip to content

GRPc Socket Closed. #4224

@MaximeGSI

Description

@MaximeGSI

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

Hello,

I’m running PyMAPDL jobs on a Slurm cluster and I randomly encounter the following error during execution:

<_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Socket closed"
debug_error_string = "UNKNOWN:Error received from peer
grpc_message:"Socket closed",
grpc_status:14,
created_time:"2025-09-03T10:47:05.815270216+02:00"
}"

This issue is not consistent : it usually happens when the job is quite long (<1 hour)

Sometimes the job runs fine to completion.

Has anyone else experienced this kind of intermittent gRPC disconnection (Socket closed) when using PyMAPDL with Slurm?
Any advice on how to debug or stabilize the connection would be greatly appreciated.

Thanks in advance!

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

21R2

🐍 Which Python version are you using?

3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions