Skip to content

Local Gym instances sometimes result in zombie ray processes #256

Closed

Description

@bxyu-nvidia

Describe the bug
After killing a Gym server or it errors out, sometimes the following messages may still linger in the terminal afterwards

[2025-10-29 22:34:10,962 E 87220 4226978] rpc_client.h:201: Failed to connect to GCS within 60 seconds. GCS may have been killed. It's either GCS is terminated by `ray stop` or is killed unexpectedly. If it is killed unexpectedly, see the log file gcs_server.out. https://docs.ray.io/en/master/ray-observability/user-guides/configure-logging.html#logging-directory-structure. The program will terminate.
[2025-10-29 22:34:10,962 E 87219 4226980] rpc_client.h:201: Failed to connect to GCS within 60 seconds. GCS may have been killed. It's either GCS is terminated by `ray stop` or is killed unexpectedly. If it is killed unexpectedly, see the log file gcs_server.out. https://docs.ray.io/en/master/ray-observability/user-guides/configure-logging.html#logging-directory-structure. The program will terminate.
[2025-10-29 22:34:10,978 E 87225 4227072] rpc_client.h:201: Failed to connect to GCS within 60 seconds. GCS may have been killed. It's either GCS is terminated by `ray stop` or is killed unexpectedly. If it is killed unexpectedly, see the log file gcs_server.out. https://docs.ray.io/en/master/ray-observability/user-guides/configure-logging.html#logging-directory-structure. The program will terminate.
[2025-10-29 22:34:10,983 E 87216 4227037] rpc_client.h:201: Failed to connect to GCS within 60 seconds. GCS may have been killed. It's either GCS is terminated by `ray stop` or is killed unexpectedly. If it is killed unexpectedly, see the log file gcs_server.out. https://docs.ray.io/en/master/ray-observability/user-guides/configure-logging.html#logging-directory-structure. The program will terminate.
[2025-10-29 22:34:10,983 E 87221 4227010] rpc_client.h:201: Failed to connect to GCS within 60 seconds. GCS may have been killed. It's either GCS is terminated by `ray stop` or is killed unexpectedly. If it is killed unexpectedly, see the log file gcs_server.out. https://docs.ray.io/en/master/ray-observability/user-guides/configure-logging.html#logging-directory-structure. The program will terminate.

These messages indicate there is still some process hanging around after the Gym process is killed. I've tried adding ray.shutdown everywhere but it doesn't work.

Steps/Code to reproduce bug
Need to repro it properly

Expected behavior

Configs

Environment details

Additional context

Activity

  1. added theissue type on Oct 30, 2025
  2. added this to the Backlog milestone on Oct 30, 2025
  3. linked a pull request that will close this issueMisc infra 20251031 #263on Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions