I changed sudo docker build . -t rasa-sdk:latest
to sudo docker build . -t rasa/rasa-sdk:latest
. This made one error disappear, but another appeared.
Action server seems to have started:
app logs:
app_1 | INFO:rasa_sdk.endpoint:Starting action endpoint server...
app_1 | DEBUG:sanic.root:CORS: Configuring CORS with resources: {'/*': {'origins': ['.*'], 'methods': 'DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT', 'allow_headers': ['.*'], 'expose_headers': None, 'supports_credentials': False, 'max_age': None, 'send_wildcard': False, 'automatic_options': True, 'vary_header': True, 'resources': {'/*': {'origins': '*'}}, 'intercept_exceptions': True, 'always_send': True}}
app_1 | DEBUG:rasa_sdk.utils:Using the default number of Sanic workers (1).
app_1 | DEBUG:sanic.root:
app_1 |
app_1 | Sanic
app_1 | Build Fast. Run Fast.
app_1 |
app_1 |
app_1 | INFO:sanic.root:Goin' Fast @ http://0.0.0.0:5055
app_1 | INFO:sanic.root:Starting worker [1]
action_server logs:
Attaching to rasa_nginx_1, rasa_app_1, rasa_rasa-production_1, rasa_rasa-worker_1, rasa_rasa-x_1, rasa_db_1, rasa_rabbit_1, rasa_duckling_1, rasa_redis_1, rasa_action_server_1
action_server_1 | 2020-03-23 16:35:46 INFO rasa_sdk.endpoint - Starting action endpoint server...
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_do_fuzzysearch'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_read_more'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_do_websearch'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_question_types'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_causes'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_complications'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_considerations'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_exams_and_tests'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_frequency'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_genetic_changes'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_information'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_inheritance'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_outlook'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_prevention'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_research'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_stages'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_support_groups'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_susceptibility'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_symptoms'.
action_server_1 | 2020-03-23 16:35:51 INFO rasa_sdk.executor - Registered function for 'action_query_treatment'.
but then rasa_x has an error with git when I train a new model:
rasa-x_1 | ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused
')
rasa-x_1 | INFO:rasax.community.services.event_consumers.pika_consumer:Start consuming queue 'rasa_production_events' on pika host 'rabbit'.
rasa-x_1 | /usr/local/lib/python3.6/site-packages/rasax/community/services/integrated_version_control/git_service.py:797: UserWarning: An error happened when trying to acce
ss 'git@github.com:slcheungcasado/rasa-medbot.git'. It seems you don't have to correct permissions for this repository. Please check if your credentials are correct and you have writ
e permissions in the given repository. The error was: Cmd('git') failed due to: exit code(128)
rasa-x_1 | cmdline: git clone --depth=1 -v git@github.com:slcheungcasado/rasa-medbot.git /tmp/tmptfn112t3
rasa-x_1 | stderr: 'Cloning into '/tmp/tmptfn112t3'...
rasa-x_1 | Could not create directory '/root/.ssh'.
rasa-x_1 | Warning: Permanently added 'github.com,13.236.229.21' (RSA) to the list of known hosts.
rasa-x_1 | git@github.com: Permission denied (publickey).
rasa-x_1 | fatal: Could not read from remote repository.
rasa-x_1 |
rasa-x_1 | Please make sure you have the correct access rights
rasa-x_1 | and the repository exists.
rasa-x_1 | '.
rasa-x_1 | f"An error happened when trying to access '{repository_url}'. It seems "
rasa-x_1 | ERROR:rasax.community.api.blueprints.git:Given repository credentials don't provide write permissions to the repository. Please make sure the ssh key is correct
and the administrator of the remote repository gave you the required permissions.
I tried deleting the old SSH key to get it to pull the repo again, but it doesn’t seem to have worked.
It outputs a lot of:
rasa-x_1 | docs=DOCS_URL_DOMAINS,
rasa-x_1 | /usr/local/lib/python3.6/site-packages/rasa/core/training/dsl.py:422: UserWarning: Found unknown intent 'query_causes' on line 5. Please, make sure that all intents are listed in your domain yaml.
rasa-x_1 | docs=DOCS_URL_DOMAINS,
rasa-x_1 | /usr/local/lib/python3.6/site-packages/rasa/core/training/dsl.py:422: UserWarning: Found unknown intent 'query_complications' on line 5. Please, make sure that all intents are listed in your domain yaml.
But there is no problem with the domain yaml file. This wasn’t a problem prior to making the action server work.