# Custom Connector in Rasa docker

**URL:** <https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049>\
**Category:** Rasa Open Source\
**Created:** [February 10, 2021, 12:18pm UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049 "2021-02-10T12:18:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohitKanojia](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@RohitKanojia](https://forum.rasa.com/u/RohitKanojia)\
**Post date:** [February 10, 2021, 12:18pm UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049/1 "2021-02-10T12:18:18Z")

</div>

Hi,

I have created a custom connector/channel in rasa as per given in document [Custom Connector](https://rasa.com/docs/rasa/connectors/custom-connectors/). And I have tested and its working in my local system.

But I need an help to deploy it in on my web server,. On my server I have followed docker deployment method.

I have followed

> [RASA Docker custom channel](http://forum.rasa.com/t/rasa-docker-custom-channel/30231)

And create an extended rasa open source image and override container image for `rasa-worker and rasa-production` in file `docker-compose.override.yml`, as follow;

docker-compose.override.yml

```
version: '3.4'
services:
  rasa-worker:
    image: mychannel_image:latest
  rasa-production:
    image: mychannel_image:latest
...

```

My Dockerfile for rasa:

```
FROM rasa/rasa:2.2.9-full    
WORKDIR /app
USER root
COPY ./mychannel /app/mychannel
COPY ./.env.dev /app/.env
USER 1001
ENV PYTHONPATH=/app:$PYTHONPATH

```

docker compose log for worker and production:

```
rasa-worker_1 | Starting Rasa X in production mode... 🚀
rasa-worker_1 | RasaException: Failed to find input channel class for 'mychannel.connector.ChannelInput'. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.

rasa-production_1 | Starting Rasa X in production mode... 🚀
rasa-production_1 | RasaException: Failed to find input channel class for 'mychannel.connector.ChannelInput' Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.

```

credentials.yml

```
rest:
mychannel.connector.ChannelInput:
...

rasa:
  url: ${RASA_X_HOST}/api

```

Any idea what I have missed?

---

<div class="post-metadata">

**Author:** ![RohitKanojia](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@RohitKanojia](https://forum.rasa.com/u/RohitKanojia)\
**Post date:** [February 17, 2021, 11:53am UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049/2 "2021-02-17T11:53:57Z")

</div>

Hi

Can any one please help me on this?

---

<div class="post-metadata">

**Author:** ![b-quachtran](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@b-quachtran](https://forum.rasa.com/u/b-quachtran)\
**Post date:** [March 5, 2021, 5:25pm UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049/3 "2021-03-05T17:25:14Z")

</div>

Hi @RohitKanojia when you `docker exec` into the pod, do you see the `mychannel` folder in the container?

---

<div class="post-metadata">

**Author:** ![onejae](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/onejae/32/13425_2.png) [@onejae](https://forum.rasa.com/u/onejae)\
**Post date:** [August 10, 2021, 1:58am UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049/4 "2021-08-10T01:58:53Z")

</div>

I have spent two days to firgure it out, and I have done.

The problem was missing packages… which was supposed to be installed when docker image is being made…

When it comes to a custom connector, rasa does not show the proper error message If necessary packages are missing(mysqlclient in my case) It could be another reason that causes the error, but I am pretty sure the problem is neither about PYTHONPATH nor module paths

My suggestion is that you have to check what packages are missing…

I hope you figure it out soon

---

<div class="post-metadata">

**Author:** ![vapdev](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vapdev/32/18469_2.png) [@vapdev](https://forum.rasa.com/u/vapdev)\
**Post date:** [July 21, 2022, 7:47pm UTC](https://forum.rasa.com/t/custom-connector-in-rasa-docker/40049/5 "2022-07-21T19:47:14Z")

</div>

i have the same issue, cant figure it out 😕
