botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
78 stars 87 forks source link

Cannot train Chatbot #1626

Closed gokumar closed 2 years ago

gokumar commented 2 years ago

I have installed docker version of 12.26.12 botpress.

  1. I created a new bot with Bot template as "Learn Botpress Basics".
  2. Enter into the bot for editing,
  3. Click on "train the bot".

But it gives error saying "Cannot train Chatbot".

Screenshot_20220325_125918

In the botpress logs, here is what I see;

STACK TRACE
Error: No provider could successfully fullfil request "/tokenize" for lang "en"
    at RemoteLanguageProvider.queryProvider (/snapshot/nlu/node_modules/@botpress/nlu-engine/dist/engine/language/language-provider.js)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) 
gokumar commented 2 years ago

UPDATE

Error: Could not fetch languages: connect EHOSTUNREACH 104.21.47.251:443
    at /snapshot/botpress/packages/bp/dist/admin/management/languages/languages-router.js 
03/25/2022 08:53:42.981 HTTP [Languages] [Error, Could not fetch languages: connect EHOSTUNREACH 104.21.47.251:443]
STACK TRACE
Error: Could not fetch languages: connect EHOSTUNREACH 104.21.47.251:443
    at /snapshot/botpress/packages/bp/dist/admin/management/languages/languages-router.js 

I see these errors in container logs when I go to "http://localhost:3000/admin/server/languages"

EFF commented 2 years ago

Are you hosting your own language server ? and is it accessible ?
If not, are you running botpress behind a strict firewall ?

More specifically, 104.21.47.251:443 seems to be unreachable from your botpress server.

gokumar commented 2 years ago

Thanks @EFF for the response. Below are my answers to your questions;

Are you hosting your own language server No. I am using the default language server, infact I am new to botpress, this is the first time I have installed it on my laptop to learn

If not, are you running botpress behind a strict firewall ? I have deployed botpress on my docker engine on my laptop, there are no strict firewall configuration (to my knowledge). Its a Ubuntu machine. I can't ping this IP as well. What could be wrong?

PING lang-01.botpress.io (104.21.47.251) 56(84) bytes of data.
From 121.240.243.210.STATIC-Mumbai.vsnl.net.in (121.240.243.210) icmp_seq=1 Time to live exceeded
From 121.240.243.210.STATIC-Mumbai.vsnl.net.in (121.240.243.210) icmp_seq=2 Time to live exceeded
From 121.240.243.210.STATIC-Mumbai.vsnl.net.in (121.240.243.210) icmp_seq=3 Time to live exceeded
From 121.240.243.210.STATIC-Mumbai.vsnl.net.in (121.240.243.210) icmp_seq=4 Time to live exceeded

Any help to resolve this is appreciated.

gokumar commented 2 years ago

@EFF your questions led me to resolve the issue. I switched the container to run in a different network instead of running on 'bridge'. Now, my bots are getting trained. Thanks for your help.