Try to deploy the rasa bot in Azure web app service

Hi I am try to deploy the bot in Azure web app. i have done with docker-compose file it is working fine i am getting Hello rasa version with https://rasademochatbot9618.azurewebsites.net/ but here the problem is not able to connect in Front if i am keeping this URL in my website not able to see the bot. can you tell me where i am doing wrong in local it is working fine docker-compose.yml (800 Bytes) image Dockerfile (313 Bytes) Dockerfile (132 Bytes)credentials.yml (104 Bytes) endpoints.yml (309 Bytes)

@stephens tell me regarding this issue. I am try since 5 days not able to get

Hi @karthik291994. Just to check, are you sure that the service is alive? When I check the endpoint you describe (this one) it seems to be broken on the Azure end. I’m unfamiliar with Azure but I imagine that it might be checking for an “alive” endpoint in your docker container.

yes. I have added volumes in docker so i am getting error.

docker compose file:- version: ‘3.0’ services:

rasa: image: rasa/rasa:1.7.0-full ports: - 5005:5005 volumes: - ${WEBAPP_STORAGE_HOME}./:/app command: - run restart: always app: image: rasa/rasa-sdk:1.7.0 volumes: - ${WEBAPP_STORAGE_HOME}./actions:/app/actions expose: - “5055” restart: always

Azure logs: 2021-04-06T18:52:14.880334614Z package = importlib.import_module(package) 2021-04-06T18:52:14.880338215Z File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module 2021-04-06T18:52:14.880342115Z return _bootstrap._gcd_import(name[level:], package, level) 2021-04-06T18:52:14.880345615Z File “”, line 994, in _gcd_import 2021-04-06T18:52:14.880350116Z File “”, line 971, in _find_and_load 2021-04-06T18:52:14.880354016Z File “”, line 953, in _find_and_load_unlocked 2021-04-06T18:52:14.880357716Z ModuleNotFoundError: No module named ‘actions.actions’

please check it

A few things; you’re using Rasa 1.7, which is an old version.

The error here suggests that you’ve got a folder called actions but it doesn’t get recognized as a python module. Is there a __init__.py file in that folder as well as a python file?

@koaning yes in that folder init.py file is there. Chatbot which i am deploying in Azure app service it was developed long back 1 year ago only now just want to deploy in Azure web service.

Can you provide the:

  • docker-compose ps output
  • credentials.yml (is the rest: line there)
  • curl or postman to test the REST endpoint

docker compose output:-

2021-04-12T13:08:47.180437058Z 
2021-04-12T13:08:47.180457957Z Rasa command line interface. Rasa allows you to build your own conversational
2021-04-12T13:08:47.180461657Z assistants 🤖. The 'rasa' command allows you to easily run most common commands
2021-04-12T13:08:47.180465857Z like creating a new bot, training or evaluating models.
2021-04-12T13:08:47.180469457Z 
2021-04-12T13:08:47.180472757Z positional arguments:
2021-04-12T13:08:47.180476057Z   {init,run,shell,train,interactive,test,visualize,data,x}
2021-04-12T13:08:47.180479357Z                         Rasa commands
2021-04-12T13:08:47.180482657Z     init                Creates a new project, with example training data,
2021-04-12T13:08:47.180485957Z                         actions, and config files.
2021-04-12T13:08:47.180489257Z     run                 Starts a Rasa server with your trained model.
2021-04-12T13:08:47.180492557Z     shell               Loads your trained model and lets you talk to your
2021-04-12T13:08:47.180495757Z                         assistant on the command line.
2021-04-12T13:08:47.180499457Z     train               Trains a Rasa model using your NLU data and stories.
2021-04-12T13:08:47.180514957Z     interactive         Starts an interactive learning session to create new
2021-04-12T13:08:47.180518257Z                         training data for a Rasa model by chatting.
2021-04-12T13:08:47.180521257Z     test                Tests Rasa models using your test NLU data and
2021-04-12T13:08:47.180524257Z                         stories.
2021-04-12T13:08:47.180527257Z     visualize           Visualize stories.
2021-04-12T13:08:47.180530057Z     data                Utils for the Rasa training files.
2021-04-12T13:08:47.180533057Z 
2021-04-12T13:08:47.180535857Z optional arguments:
2021-04-12T13:08:47.180538757Z   -h, --help            show this help message and exit
2021-04-12T13:08:47.180541657Z   --version             Print installed Rasa version

2021-04-12T13:08:48.722Z INFO  - Container logs from rasademochatbot9618_app_0_8602339e = 2021-04-12T13:08:34.008928394Z 2021-04-12 13:08:34 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
2021-04-12T13:08:34.087931632Z 2021-04-12 13:08:34 ERROR    rasa_sdk.executor  - Failed to register package 'actions.actions'.
2021-04-12T13:08:34.087951632Z Traceback (most recent call last):
2021-04-12T13:08:34.087955632Z   File "/app/rasa_sdk/executor.py", line 206, in register_package
2021-04-12T13:08:34.087958932Z     self._import_submodules(package)
2021-04-12T13:08:34.087961932Z   File "/app/rasa_sdk/executor.py", line 191, in _import_submodules
2021-04-12T13:08:34.088089731Z     package = importlib.import_module(package)
2021-04-12T13:08:34.088093531Z   File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
2021-04-12T13:08:34.088096831Z     return _bootstrap._gcd_import(name[level:], package, level)
2021-04-12T13:08:34.088100331Z   File "<frozen importlib._bootstrap>", line 994, in _gcd_import
2021-04-12T13:08:34.088104231Z   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
2021-04-12T13:08:34.088107531Z   File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
2021-04-12T13:08:34.088110931Z ModuleNotFoundError: No module named 'actions.actions'

credentials file: rest is included already

but getting above error

check the above error

Please use markdown.

There’s a problem with your docker-compose run command. Are you using a docker-compose.override.yml to override the default. Here’s the fragment from our std docker-compose:

x-rasa-services: &default-rasa-service
  restart: always
  image: "rasa/rasa:${RASA_VERSION}-full"
  volumes:
      - ./.config:/.config
  expose:
    - "5005"
  command: >
    x
    --no-prompt
    --production
    --config-endpoint http://rasa-x:5002/api/config?token=${RASA_X_TOKEN}
    --port 5005
    --jwt-method HS256
    --jwt-secret ${JWT_SECRET}
    --auth-token '${RASA_TOKEN}'
    --cors "*"

@karthik291994 Hi Karthik…I am trying to do the same deployment…Could you help me out