Hi there!
I’m having trouble deploying to server with default script. I have my nlu.md and stories.md files inside /etc/rasa/data. However, when I run docker-compose up, I can see the Rasa X UI just fine. But both “Training Data” and Stories are empty. Strangely, I can see responses and domain parameters are all in there.
Here’s the relevant section from my docker-compose.yml:
x-rasa-services: &default-rasa-service
restart: always
image: “rasa/rasa:${RASA_VERSION}-full”
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 “*”
–enable-api
–debug
depends_on:
- rasa-x
- rabbit
- redis
services:
rasa-x:
restart: always
image: “rasa/rasa-x:${RASA_X_VERSION}”
expose:
- “5002”
volumes:
- ./models:/app/models
- ./environments.yml:/app/environments.yml
- ./credentials.yml:/app/credentials.yml
- ./endpoints.yml:/app/endpoints.yml
- ./logs:/logs
- ./auth:/app/auth
- ./data:/app/data
environment:
<<: *database-credentials
<<: *rasa-credentials
SELF_PORT: “5002”
DB_DATABASE: “${DB_DATABASE:-rasa}”
RASA_MODEL_DIR: “/app/models”
PASSWORD_SALT: ${PASSWORD_SALT}
RABBITMQ_QUEUE: “rasa_production_events”
RASA_X_USER_ANALYTICS: “0”
SANIC_RESPONSE_TIMEOUT: “3600”
METRICS_CONSENT: “${METRICS_CONSENT:-false}”
UUID: “${UUID:-’’}”
depends_on:
- db
I’m also not getting any messages in chat in “Talk to your bot”. Please help.
rasa-production_1 | [2019-12-18 03:24:22 +0000] [1] [ERROR] Exception occurred while handling uri: ‘http://rasa-production:5005/webhooks/rasa/webhook’ rasa-production_1 | Traceback (most recent call last): rasa-production_1 | File “/build/lib/python3.6/site-packages/aiohttp/connector.py”, line 924, in _wrap_create_connection rasa-production_1 | await self._loop.create_connection(*args, **kwargs)) rasa-production_1 | File “uvloop/loop.pyx”, line 1974, in create_connection rasa-production_1 | File “uvloop/loop.pyx”, line 1950, in uvloop.loop.Loop.create_connection rasa-production_1 | File “uvloop/handles/tcp.pyx”, line 180, in uvloop.loop.TCPTransport.connect rasa-production_1 | File “uvloop/handles/tcp.pyx”, line 202, in uvloop.loop._TCPConnectRequest.connect rasa-production_1 | OSError: [Errno 99] Cannot assign requested address
rasa-x_1 | ERROR: rasax.community.api.blueprints.stack:Failed to send message to Rasa Chat webhook. Error: 500, Internal Server Error, body=‘b’\n Internal Server Error\n
\n The server encountered an internal error and cannot complete\n your request.\n
\n’’Oddly, it works fine when I use the shell command inside a container like so:
docker run -v ${PWD}:/app -it rasa/rasa:1.5.3-full shell
Thank you in advance.