# Error 303 calling cuInit. Is the docker image broken?

**URL:** <https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217>\
**Category:** Getting Started with Rasa\
**Created:** [January 8, 2020, 12:12pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217 "2020-01-08T12:12:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LedaMC-izubiaurre](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@LedaMC-izubiaurre](https://forum.rasa.com/u/LedaMC-izubiaurre)\
**Post date:** [January 8, 2020, 12:12pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/1 "2020-01-08T12:12:24Z")

</div>

> docker run -v $dir:/app rasa/rasa init --no-prompt
> 
> Warning: Output is not to a terminal (fd=1). Warning: Input is not to a terminal (fd=0). Processed Story Blocks: 100%|██████████| 5/5 [00:00\<00:00, 2364.32it/s, # trackers=1] Processed Story Blocks: 100%|██████████| 5/5 [00:00\<00:00, 798.19it/s, # trackers=5] Processed Story Blocks: 100%|██████████| 5/5 [00:00\<00:00, 195.42it/s, # trackers=20] Processed Story Blocks: 100%|██████████| 5/5 [00:00\<00:00, 134.66it/s, # trackers=24] Processed trackers: 100%|██████████| 5/5 [00:00\<00:00, 1555.75it/s, # actions=16] Processed actions: 16it [00:00, 856.79it/s, # examples=16] Processed trackers: 100%|██████████| 231/231 [00:00\<00:00, 536.28it/s, # actions=126]2020-01-08 11:37:00.869076: **E tensorflow/stream\_executor/cuda/cuda\_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)**

Files are created in the directory but the container is exited. Is this the expected behaviour or should the container remain up?

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [January 13, 2020, 11:28am UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/2 "2020-01-13T11:28:40Z")

</div>

Well it appears from the command you are only doing a rasa init which would just create a basic bot, train the files and then exit so this seems normal to me.

---

<div class="post-metadata">

**Author:** ![LedaMC-izubiaurre](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@LedaMC-izubiaurre](https://forum.rasa.com/u/LedaMC-izubiaurre)\
**Post date:** [January 13, 2020, 1:18pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/3 "2020-01-13T13:18:35Z")

</div>

I’m confused and it seems I’m not the only confused newcomer. I want to setup a bot and interact with it from both sides: as a consumer and as a bot admin.

So I guess I should remove the init command when creating the container, and then connect to the container and execute init by hand (?). I run docker run -d -v $dir:/app rasa/rasa and after a few seconds it exits automatically. When I try to restart it (docker start rasacontainer) it exits again.

Is this also the expected behaviour?

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [January 13, 2020, 1:39pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/4 "2020-01-13T13:39:30Z")

</div>

I think you might want to just look at our docs on using Rasa X and it might shed a lot of light on all of this for you and make it a lot easier to get started.

Have you tried [Getting Started with Rasa](https://rasa.com/docs/getting-started/) section by chance? You can also look directly at [Docker-Compose Quick Install](https://rasa.com/docs/rasa-x/installation-and-setup/docker-compose-script/) which has a way of doing an automated docker deployment as well.

---

<div class="post-metadata">

**Author:** ![LedaMC-izubiaurre](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@LedaMC-izubiaurre](https://forum.rasa.com/u/LedaMC-izubiaurre)\
**Post date:** [January 13, 2020, 2:20pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/5 "2020-01-13T14:20:18Z")

</div>

First of all. Thank you for answering.

Yes I went through [Getting Started](https://rasa.com/docs/getting-started/) and it says _“Once you have built an assistant that can handle the most important happy path stories, you deploy Rasa X to a server and use it to improve your assistant.”_. That’s actually what I’m trying to do (1st step: build a basic hello world assistant) and I’m not able to play with it yet. I’m still far away from having a working assistant effectively handling any happy path at all.

I doubt how a frontend would shed light, since I expect it to solve for me (and thereby hide from me) what I want to see. Nevetheless I’ve had a first fast look at the Rasa X doc just to check if it can help me, but while I think it is good to learn how to use and train a bot once available, it indeed seems to hide from me how to build or set it up.

My trouble is at using the docker image, I don’t yet have trouble using RASA itself.

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [January 16, 2020, 1:22pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/6 "2020-01-16T13:22:33Z")

</div>

Rasa X isn’t just a frontend, by installing it, you get all the required pieces for all of this to work. Also using the install.sh automated method for docker is pretty straight forward. That is why I was asking if you had looked at those yet.

Also one cool feature after having the rasa init basic bot setup, you can use Rasa X to interact with it, share it out, and annotate and resolve conversations. I’m sure you are aware of this since it sounds like you have read the docs on this already.

Would the compose option like this help at all? [Docker-Compose Quick Install](https://rasa.com/docs/rasa-x/installation-and-setup/docker-compose-script/)

Or do you want to just stick right now with the Rasa Open Source platform and just it in a docker setup? If so we have that documented here at [Running Rasa with Docker](https://rasa.com/docs/rasa/user-guide/running-rasa-with-docker/) and we can just work through that issue you are seeing.

As far as the original question basically you would run something like this next to interact with the assistant, the first command you ran just basically creates an initial test bot and exits:

```auto
docker run -it -v $(pwd):/app rasa/rasa shell

```

Thanks

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [January 16, 2020, 2:06pm UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/7 "2020-01-16T14:06:06Z")

</div>

So I just ran the first command from the docs like you did:

`docker run -v $(pwd):/app rasa/rasa init --no-prompt` - This creates the basic bot and files and then trains it and exits the container.

Then you just run the command from the docs that I mentioned in the previous post:

`docker run -it -v $(pwd):/app rasa/rasa shell` - Which is the screenshot below which allows me to talk to the bot from the CLI.

Sorry for the earlier confusion on things.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/7b89d71bd4d26fcb7078a3acb64af35715a6a43c.png) Screen Shot 2020-01-16 at 9.04.10 AM

---

<div class="post-metadata">

**Author:** ![LedaMC-izubiaurre](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@LedaMC-izubiaurre](https://forum.rasa.com/u/LedaMC-izubiaurre)\
**Post date:** [January 21, 2020, 8:45am UTC](https://forum.rasa.com/t/error-303-calling-cuinit-is-the-docker-image-broken/23217/8 "2020-01-21T08:45:01Z")

</div>

The problem is that each **docker run** execution creates a **new** container. So a tweeking dialog would create a number of containers (one with each tweak). We newcomers expect to be able to evolve the created container without creating new ones on each interaction (See [this doubt example](http://forum.rasa.com/t/use-docker-exec-instead-of-docker-run/13836)). Perhaps we’re wrong and there’s a good reason to create them all. If so, an explanaiton would be very welcome.
