Cannot train Chatbot

Hello.
I’m having a problem with a chatbot that has 300 qna’s registered.
When I click the “Train Chatbot” button on the flow creation screen, it says “Cannot train Chatbot”.
But when I press the “Train Chatbot” button on the flow creation screen, it shows “Cannot train Chatbot” as shown in the image, and I cannot proceed.

cannottrainchatbot

How can I solve this problem?
Please help me.

System configuration is ubuntu21.04/botpress12.25.0/nodejs14lts

Do you have some log in the terminal? It could happen that an intent doesn’t have context.

If you have log into the terminal (server-side) it will be easier to debug.

hello. How did you start the botpress process? We had an issue if bot was launched with pm2.
Also open your console and look is there any errors in there whem you try to init training.

Hello. Error log is as follows.
However, I do not know why the error occurs …

Botpress was started with ‘./bp’
Is there something wrong with the context?

P.S. QnA has imported the data and registered it.


Mod[nlu]
Training {“botId”:“bot1”,“language”:“ja”} could not finish because of an unexpected error. [Error, An error occured in NLU server: child “intents” fails because [“intents” at position 19 fails because [child “contexts” fails because [“contexts” must contain at least 1 items]]]]
STACK TRACE
Error: An error occured in NLU server: child “intents” fails because [“intents” at position 19 fails because [child “contexts” fails because [“contexts” must contain at least 1 items]]]
at StanEngine._throwError (/home/user1/bot/modules/.cache/module__d491846f09cdd6370bfa4e92b71aa220f861b059f6de4ca7904c0ac262168d48/dist/backend/stan/index.js:201:11)
at StanEngine.startTraining (/home/user1/bot/modules/.cache/module__d491846f09cdd6370bfa4e92b71aa220f861b059f6de4ca7904c0ac262168d48/dist/backend/stan/index.js:105:19)
at async Bot.train (/home/user1/bot/modules/.cache/module__d491846f09cdd6370bfa4e92b71aa220f861b059f6de4ca7904c0ac262168d48/dist/backend/application/scoped/bot.js:52:23)
at async DistributedTrainingQueue._train (/home/user1/bot/modules/.cache/module__d491846f09cdd6370bfa4e92b71aa220f861b059f6de4ca7904c0ac262168d48/dist/backend/application/training-queue.js:120:25)