Rasa - X; docker installation, ports access refused

Hi there

I’ve installed rasa-x in a google cloud VM,

I’ve got this with docker ps:

antoniopedrolopes@rasa-x:/etc/rasa$ docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED         STATUS                            PORTS                                                                                    NAMES
8d7ad8159204   nginx:1.19                           "/docker-entrypoint.…"   3 minutes ago   Up 3 seconds                      80/tcp, 0.0.0.0:80->8080/tcp, :::80->8080/tcp, 0.0.0.0:443->8443/tcp, :::443->8443/tcp   rasa_nginx_1
46e4ad7c7334   nonola76/rasa_actions:actionserver   "./entrypoint.sh sta…"   3 minutes ago   Up 3 seconds                      5055/tcp                                                                                 rasa_app_1
b0c5bb89d96a   rasa/rasa:2.8.11-full                "rasa x --no-prompt …"   3 minutes ago   Up 4 seconds                      5005/tcp                                                                                 rasa_rasa-production_1
904003daedb0   rasa/rasa:2.8.11-full                "rasa x --no-prompt …"   3 minutes ago   Up 4 seconds                      5005/tcp                                                                                 rasa_rasa-worker_1
8d97b8704d63   rasa/rasa-x:0.42.6                   "python -m rasax.com…"   3 minutes ago   Up 4 seconds (health: starting)   8000/tcp                                                                                 rasa_db-migration_1
44c24ddea35c   rasa/rasa-x:0.42.6                   "/tini -g -- sh -c '…"   3 minutes ago   Up 4 seconds                      5002/tcp                                                                                 rasa_rasa-x_1
8792ac7fbf2e   bitnami/rabbitmq:3.8.17              "/opt/bitnami/script…"   3 minutes ago   Up 5 seconds                      4369/tcp, 5671-5672/tcp, 15671-15672/tcp, 25672/tcp                                      rasa_rabbit_1
3a87a98bbed0   bitnami/postgresql:11.11.0           "/opt/bitnami/script…"   3 minutes ago   Up 5 seconds                      5432/tcp                                                                                 rasa_db_1
2d3cfd904126   bitnami/redis:6.2.4                  "/opt/bitnami/script…"   3 minutes ago   Up 5 seconds                      6379/tcp                                                                                 rasa_redis_1
a23a390375cc   rasa/duckling:0.1.6.5-r2             "duckling-example-ex…"   3 minutes ago   Up 5 seconds                      8000/tcp  

My rasa version:

RASA_X_VERSION=0.42.6
RASA_VERSION=2.8.11
RASA_X_DEMO_VERSION=0.42.4

The problem is that if I try to access to rasa -x with postman, I always get the message:

Error: connect ECONNREFUSED 127.0.0.1:5005

Why is this happening?

Well, I tried like this example, and it worked.

Why is that?

@nonola how you accessing the Rasa x? what your command input on Postman?

@nik202

If I run http://**.***.19.**/api/health I get:

{
    "production": {
        "version": "2.8.11",
        "minimum_compatible_version": "2.8.9",
        "status": 200
    },
    "worker": {
        "version": "2.8.11",
        "minimum_compatible_version": "2.8.9",
        "status": 200
    },
    "database_migration": {
        "status": "completed",
        "current_revision": [
            "652500998f3e"
        ],
        "target_revision": [
            "652500998f3e"
        ],
        "progress_in_percent": 100.0
    }
}

But if i run:

http://**.***.19.**:5005/api/health

I get:

Error: connect ECONNREFUSED **.***.19.**:5005

This is my docker-compose.override.yml:

Page up
version: "3.4"
services:
    app:
      restart: always
      image: "nonola76/rasa_actions:actionserver"
      user: root
      volumes:
        - ./actions:/app/actions
          # - ./rasa_audiocodes:/rasa_audiocodes  
      expose:
        - 5055
      depends_on:
        - rasa-production
    rasa-production:
      volumes:
        - ./rasa_audiocodes:/opt/venv/lib/python3.8/site-packages/rasa_audiocodes
      expose:
        - 5005
    rasa-worker:
      volumes:
        - ./rasa_audiocodes:/opt/venv/lib/python3.8/site-packages/rasa_audiocodes
      expose:
        - 5005

To run rasa-x on the browser, i run:

http://**.***.19.**/