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

**URL:** <https://discuss.ray.io/t/exception-cant-run-an-actor-the-server-doesnt-have-a-handle-for/5181>\
**Category:** Ray Serve\
**Created:** [February 23, 2022, 6:15pm UTC](https://discuss.ray.io/t/exception-cant-run-an-actor-the-server-doesnt-have-a-handle-for/5181 "2022-02-23T18:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon-mo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/simon-mo/32/9_2.png) [@simon-mo](https://discuss.ray.io/u/simon-mo)\
**Post date:** [February 23, 2022, 6:15pm UTC](https://discuss.ray.io/t/exception-cant-run-an-actor-the-server-doesnt-have-a-handle-for/5181/1 "2022-02-23T18:15:14Z")

</div>

If you are getting this with Ray Serve,

```auto
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()`!
