Rasa X on a server: Custom actions not working

Hi,

I deployed Rasa X on my server with docker-compose, integrated with GitHub, and now everything seems to work except for the custom actions. When I try to trigger a custom action the bot can’t return any answer:

What can be the problem? What can I have missed from the installation?

1 Like

Can you share the logs from the action server? You should be able to get it from docker-compose logs command

They didn’t fit in the command line, so I only could copy a part of them :sweat_smile:

Here you go:

nginx_1            | 130.246.235.167 - - [16/Jan/2020:15:39:18 +0000] "GET /api/conversations/b4fbe024-e2c8-487b-b91f-89f118b330a5?since=0&environment=production HTTP/1.1" 404 198 "http://178.62.104.99/guest/conversations/production/d82d8a4c9356413ea6d3d5092ed8f5f0" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363"

nginx_1 | 130.246.235.167 - - [16/Jan/2020:15:39:19 +0000] “GET /api/conversations/fa4e3c2448294f6a89fd6f7d46e12385?since=1579185625.193116&environment=production HTTP/1.1” 200 327 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 120.52.120.5 - - [16/Jan/2020:15:39:20 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: signal 15 (SIGTERM) received, exiting nginx_1 | 2020/01/16 15:39:22 [notice] 15#0: exiting nginx_1 | 2020/01/16 15:39:22 [notice] 12#0: exiting nginx_1 | 2020/01/16 15:39:22 [notice] 12#0: exit nginx_1 | 2020/01/16 15:39:22 [notice] 15#0: exit nginx_1 | 2020/01/16 15:39:22 [notice] 14#0: exiting nginx_1 | 2020/01/16 15:39:22 [notice] 13#0: exiting nginx_1 | 2020/01/16 15:39:22 [notice] 14#0: exit nginx_1 | 2020/01/16 15:39:22 [notice] 13#0: exit nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: signal 17 (SIGCHLD) received from 15 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: worker process 12 exited with code 0 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: worker process 13 exited with code 0 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: worker process 15 exited with code 0 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: signal 17 (SIGCHLD) received from 14 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: worker process 14 exited with code 0 nginx_1 | 2020/01/16 15:39:22 [notice] 1#0: exit nginx_1 | SSL encryption is not used since no certificates were provided. nginx_1 | % Total % Received % Xferd Average Speed Time Time Time Current nginx_1 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) Failed to connect to app port 80: Connection refused nginx_1 | 7 nginx_1 | >> exec docker CMD nginx_1 | nginx nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: using the “epoll” event method nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: nginx/1.14.2 nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: OS: Linux 4.15.0-74-generic nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: start worker processes nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: start worker process 12 nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: start worker process 13 nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: start worker process 14 nginx_1 | 2020/01/16 15:39:54 [notice] 1#0: start worker process 15 nginx_1 | 130.246.235.167 - - [16/Jan/2020:15:39:54 +0000] “GET /api/conversations/fa4e3c2448294f6a89fd6f7d46e12385?since=1579185625.193116&environment=production HTTP/1.1” 401 57 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:15:39:57 +0000] “GET /api/conversations/b4fbe024-e2c8-487b-b91f-89f118b330a5?since=0&environment=production HTTP/1.1” 401 57 “http://178.62.104.99/guest/conversations/production/d82d8a4c9356413ea6d3d5092ed8f5f0” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” 36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363" nginx_1 | 2020/01/16 16:02:43 [info] 14#0: *410 client closed connection while waiting for request, client: 130.246.235.167, server: 0.0.0.0:8080 nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:03:01 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:03:10 +0000] “GET /api/projects/default/git_repositories/1/status HTTP/1.1” 200 171 “http://178.62.104.99/conversations” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:03:23 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:04:01 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 2020/01/16 16:04:09 [info] 14#0: *413 client timed out (110: Connection timed out) while waiting for request, client: 130.246.235.167, server: 0.0.0.0:8080 nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:04:11 +0000] “GET /api/projects/default/git_repositories/1/status HTTP/1.1” 200 171 “http://178.62.104.99/conversations” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 15 (SIGTERM) received, exiting nginx_1 | 2020/01/16 16:04:18 [notice] 13#0: exiting nginx_1 | 2020/01/16 16:04:18 [notice] 13#0: exit nginx_1 | 2020/01/16 16:04:18 [notice] 12#0: exiting nginx_1 | 2020/01/16 16:04:18 [notice] 15#0: exiting nginx_1 | 2020/01/16 16:04:18 [notice] 15#0: exit nginx_1 | 2020/01/16 16:04:18 [notice] 12#0: exit nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 17 (SIGCHLD) received from 13 nginx_1 | 2020/01/16 16:04:18 [notice] 14#0: exiting nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: worker process 13 exited with code 0 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:04:18 [notice] 14#0: exit nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 17 (SIGCHLD) received from 15 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: worker process 12 exited with code 0 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: worker process 15 exited with code 0 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: signal 17 (SIGCHLD) received from 14 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: worker process 14 exited with code 0 nginx_1 | 2020/01/16 16:04:18 [notice] 1#0: exit nginx_1 | SSL encryption is not used since no certificates were provided. nginx_1 | % Total % Received % Xferd Average Speed Time Time Time Current nginx_1 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) Failed to connect to app port 80: Connection refused nginx_1 | 7 nginx_1 | >> exec docker CMD nginx_1 | nginx nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: using the “epoll” event method nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: nginx/1.14.2 nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: OS: Linux 4.15.0-74-generic nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: start worker processes nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: start worker process 12 nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: start worker process 13 nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: start worker process 14 nginx_1 | 2020/01/16 16:15:40 [notice] 1#0: start worker process 15 nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:16:22 +0000] “GET /api/projects/default/git_repositories/1/status HTTP/1.1” 401 57 “http://178.62.104.99/conversations” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:16:22 +0000] “GET /static/media/rasa_horizontal_logo_white.bf7620f2.svg HTTP/1.1” 304 0 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:16:33 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 15 (SIGTERM) received, exiting nginx_1 | 2020/01/16 16:16:47 [notice] 12#0: exiting nginx_1 | 2020/01/16 16:16:47 [notice] 15#0: exiting nginx_1 | 2020/01/16 16:16:47 [notice] 12#0: exit nginx_1 | 2020/01/16 16:16:47 [notice] 15#0: exit nginx_1 | 2020/01/16 16:16:47 [notice] 14#0: exiting nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 17 (SIGCHLD) received from 15 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: worker process 15 exited with code 0 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:16:47 [notice] 14#0: exit nginx_1 | 2020/01/16 16:16:47 [notice] 13#0: exiting nginx_1 | 2020/01/16 16:16:47 [notice] 13#0: exit nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 17 (SIGCHLD) received from 14 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: worker process 14 exited with code 0 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 17 (SIGCHLD) received from 13 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: worker process 13 exited with code 0 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: signal 17 (SIGCHLD) received from 12 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: worker process 12 exited with code 0 nginx_1 | 2020/01/16 16:16:47 [notice] 1#0: exit nginx_1 | SSL encryption is not used since no certificates were provided. nginx_1 | % Total % Received % Xferd Average Speed Time Time Time Current nginx_1 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) Failed to connect to app port 80: Connection refused nginx_1 | 7 nginx_1 | >> exec docker CMD nginx_1 | nginx nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: using the “epoll” event method nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: nginx/1.14.2 nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: OS: Linux 4.15.0-74-generic nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: start worker processes nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: start worker process 12 nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: start worker process 13 nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: start worker process 14 nginx_1 | 2020/01/16 16:23:38 [notice] 1#0: start worker process 15 nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:24:02 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:24:26 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:24:43 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:25:17 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:26:20 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:26:30 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 120.52.120.5 - - [16/Jan/2020:16:26:34 +0000] “POST /xmlrpc.php HTTP/1.0” 200 3173 “-” “Mozilla/5.0 (compatible; Googlebot/2.1; http://www.google.com/bot.html)” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:26:38 +0000] “POST /api/auth HTTP/1.1” 200 1668 “http://178.62.104.99/login” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:26:38 +0000] “GET /static/media/conversations_placeholder.6ff85dae.svg HTTP/1.1” 304 0 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:26:38 +0000] “GET /api/projects/default/git_repositories HTTP/1.1” 200 130 “http://178.62.104.99/conversations” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363" nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:29:56 +0000] “GET /api/conversations/f614acf813e547f69d5c0f5d43ed3471?since=1579189562.4544136&environment=production HTTP/1.1” 200 327 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:30:00 +0000] “GET /api/conversations/f614acf813e547f69d5c0f5d43ed3471?since=1579189562.4544136&environment=production HTTP/1.1” 200 327 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 15 (SIGTERM) received, exiting nginx_1 | 2020/01/16 16:30:02 [notice] 13#0: exiting nginx_1 | 2020/01/16 16:30:02 [notice] 12#0: exiting nginx_1 | 2020/01/16 16:30:02 [notice] 14#0: exiting nginx_1 | 2020/01/16 16:30:02 [notice] 13#0: exit nginx_1 | 2020/01/16 16:30:02 [notice] 12#0: exit nginx_1 | 2020/01/16 16:30:02 [notice] 14#0: exit nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 17 (SIGCHLD) received from 12 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: worker process 12 exited with code 0 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 17 (SIGCHLD) received from 13 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: worker process 13 exited with code 0 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 17 (SIGCHLD) received from 14 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: worker process 14 exited with code 0 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 29 (SIGIO) received nginx_1 | 2020/01/16 16:30:02 [notice] 15#0: exiting nginx_1 | 2020/01/16 16:30:02 [notice] 15#0: exit nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: signal 17 (SIGCHLD) received from 15 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: worker process 15 exited with code 0 nginx_1 | 2020/01/16 16:30:02 [notice] 1#0: exit nginx_1 | SSL encryption is not used since no certificates were provided. nginx_1 | % Total % Received % Xferd Average Speed Time Time Time Current nginx_1 | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (7) Failed to connect to app port 80: Connection refused nginx_1 | 7 nginx_1 | >> exec docker CMD nginx_1 | nginx nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: using the “epoll” event method nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: nginx/1.14.2 nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: built by gcc 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: OS: Linux 4.15.0-74-generic nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: start worker processes nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: start worker process 12 nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: start worker process 13 nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: start worker process 14 nginx_1 | 2020/01/16 16:32:40 [notice] 1#0: start worker process 15 nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:32:40 +0000] “GET /api/conversations/f614acf813e547f69d5c0f5d43ed3471?since=1579189562.4544136&environment=production HTTP/1.1” 401 57 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363” nginx_1 | 130.246.235.167 - - [16/Jan/2020:16:32:40 +0000] “GET /static/media/rasa_horizontal_logo_white.bf7620f2.svg HTTP/1.1” 304 0 “http://178.62.104.99/interactive” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363”

Anyone? Please :pray: @Tobias_Wochinger?

Did you start the action server by ‘rasa run actions’??

I’m running Rasa X on a server. Btw it works now, thank you

How did you fix it @tiziano? Anything which we can improve to make the setup of the custom action server easier ?

There was a dependency missing, I fixed the problem following this guide. I guess it was my fault that didn’t look at it in the first place.

What can be improved, though, is the explanation of which files you need to have in your server in order to make it work (config? credentials? nlu?). For example now I’m getting an error saying that File ‘data/intent_description_mapping.csv’ doesn’t exist, but I do have the file in my server, so where should I deploy it?

And I also I’d like to have clear how to test the chatbot without using rasa X. Thank you, Tiziano

For example now I’m getting an error saying that File ‘data/intent_description_mapping.csv’ doesn’t exist, but I do have the file in my server, so where should I deploy it?

This is in your action server, right? Did you add it to the docker image of your action server?

You actually shouldn’t need any files to get started :eyes: What were the other errors, which you got?

I solved that error here, thank you anyway!

Alright, now I think I have it more or less clear. If you look at the topics I opened you can see all the errors I got during the Rasa X installation, they’ve been many and cannot even remember all of them :grimacing:

I need some help with a similar issue. I’m getting:

action_server_1    | 2020-03-23 15:15:07 INFO     rasa_sdk.endpoint  - Starting action endpoint s
erver...
action_server_1    | 2020-03-23 15:15:07 ERROR    rasa_sdk.executor  - Failed to register package
 'actions.actions'.
action_server_1    | Traceback (most recent call last):
action_server_1    |   File "/app/rasa_sdk/executor.py", line 208, in register_package
action_server_1    |     self._import_submodules(package)
action_server_1    |   File "/app/rasa_sdk/executor.py", line 192, in _import_submodules
action_server_1    |     package = importlib.import_module(package)
action_server_1    |   File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import
_module
action_server_1    |     return _bootstrap._gcd_import(name[level:], package, level)
action_server_1    |   File "<frozen importlib._bootstrap>", line 994, in _gcd_import
action_server_1    |   File "<frozen importlib._bootstrap>", line 971, in _find_and_load
action_server_1    |   File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
action_server_1    |   File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
action_server_1    |   File "<frozen importlib._bootstrap_external>", line 678, in exec_module
action_server_1    |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_remov
ed
action_server_1    |   File "/app/actions/actions.py", line 19, in <module>
action_server_1    |     import pandas as pd
action_server_1    | ModuleNotFoundError: No module named 'pandas'
app_1              | INFO:rasa_sdk.endpoint:Starting action endpoint server...

Dockerfile

FROM rasa/rasa-sdk:latest
USER root
RUN pip install --no-cache-dir requests
RUN pip install --no-cache-dir pandas
USER 1001

I’ve ran sudo docker system prune --all and sudo docker image prune --all and then I ran: sudo docker build . -t rasa-sdk:latest and sudo docker-compose up -d, but then action_server somehow still doesn’t know what pandas is.

I added this inside the docker-compose.yml just under services:

action_server:
    image: rasa/rasa-sdk:latest
    volumes:
      - ./actions:/app/actions
    ports:
      - "5055:5055"

I also tried changing endpoints.yml action_endpoint to: (EDIT: Do NOT do this, leave it as default otherwise Rasa X will crash and you won’t be able to train your models)

action_endpoint:
  http://action_server:5055/webhook

Using Rasa X 0.26.0

Hi @slcheungcasado, I had the same problem and solved it after some time struggling with it.

Here you need to put a custom name four your image:

action_server:
    image: customname:customtag

Then use the same name when you run:

sudo docker build . -t customname:customtag

Let me know if this fixes it.

I tried it with sudo docker build . -t rasa-sdk:latest before and that didn’t work, I’ll try it with a different name, and get back to you

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.

But how are you trying to connect it with the repo? Why don’t you use the Integrated Version Control in the Rasa X UI?

I am using Integrated Version Control in Rasa X.

I’m going to make another repo and redo the entire process again to see if that changes anything. There are too many errors being introduced now:

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]
app_1              | /app/rasa_sdk/utils.py:159: UserWarning: Your versions of rasa and rasa_sdk might not be compatible. You are currently running rasa version 1.8.0 and rasa_sdk version 1.5.1.
app_1              | To ensure compatibility use the same version for both, modulo the last number, i.e. using version A.B.x the numbers A and B should be identical for both rasa and rasa_sdk.
app_1              |   f"Your versions of rasa and "
app_1              | DEBUG:rasa_sdk.executor:Received request to run 'action_query_information'
app_1              | ERROR:rasa_sdk.endpoint:No registered action found for name 'action_query_information'.
app_1              | DEBUG:sanic.root:CORS: Request to '/webhook' matches CORS resource '/*'. Using options: {'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              | INFO:sanic.access:
duckling_1         | no port specified, defaulting to port 8000
duckling_1         | Listening on http://0.0.0.0:8000

Even though action_server says it’s registered app_1 sees it as nothing has been registered.