Exception("Can't run an actor the server doesn't have a handle for")

If you are getting this with Ray Serve,

Exception("Can't run an actor the server doesn't have a handle for")

It is likely that you are using Ray Client and called ray.shutdown() and ray.init() again. In this case, the in memory Ray Serve connection is still attached to the old context.

How to fix it? Make sure to call serve.shutdown() after ray.shutdown()!

1 Like