ray icon indicating copy to clipboard operation
ray copied to clipboard

[GCS] ray in streamlit error, GCS may have been killed

Open JJplane opened this issue 9 months ago • 1 comments

What happened + What you expected to happen

2024-05-26 11:25:02,149 WARNING worker.py:1419 -- SIGTERM handler is not set because current thread is not the main thread. [2024-05-26 11:26:16,798 E 177479 178526] gcs_rpc_client.h:554: 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.

Versions / Dependencies

ray 2.22.0

Reproduction script

import ray
import streamlit as st
@ray.remote
def test():
    return 1
def run():
    result = test.remote()
    st.write(ray.get(result))
if __name__ == '__main__':
    run()

image i hope the streamlit app will not stop because of the "Failed to connect to GCS"

Issue Severity

None

JJplane avatar May 26 '24 03:05 JJplane