Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Development setup not working #632

Open
sahil-khanna opened this issue Jun 14, 2020 · 5 comments
Open

Development setup not working #632

sahil-khanna opened this issue Jun 14, 2020 · 5 comments
Labels

Comments

@sahil-khanna
Copy link

Describe the bug
I followed the steps given in the Development section. The botfront UI is up and running on http://localhost:3000. However, when I click the Train Everything button, after a minute, an error message pops up saying "Error: connect ETIMEDOUT 172.30.0.3:5005"

To Reproduce
Steps to reproduce the behavior:

  1. Follow the steps in the Development section
  2. Check if the docker images are up and running
  3. Click on the Train Everything button
  4. "Error: connect ETIMEDOUT 172.30.0.3:5005"

Expected behavior
The botfront UI should complete the trainig

Screenshots

  • Error after training
    image

  • Docker images are up and running
    image

  • Error in the Botfront project
    image
    image

Desktop (please complete the following information):

  • OS: MacOS 10.15.5
  • Browser: Chrome 83.0.4103.97

Additional context
The below command prints the botfront-rasa container IP as 172.18.0.3, however, the IP displayed in the console logs and the error is different, i.e. 172.30.0.3
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' botfront-rasa

@znat
Copy link
Contributor

znat commented Jun 14, 2020

Have you checked that rasa runs? What do you have if you call that IP address from your browser?

@sahil-khanna
Copy link
Author

Have you checked that rasa runs? What do you have if you call that IP address from your browser?

If I call the IP address along with the port on the browser, the request times out after a minute or so. I tried the below IP addresses

I noticed if I execute the command botfront up instead of botfront up -e botfront, the URL http://localhost:5005 responds with the text Hello from Rasa: 1.9.0-bf.17.1. However, this doesn't work for the cloned project as described in the Development section

@pheel pheel added the docs label Jul 14, 2020
@pheel
Copy link
Contributor

pheel commented Jul 14, 2020

The docs don't say it, but .botfront/botfront.yml needs to be updated for the BF_URL variable. If you're running Docker for Mac or Windows, it should be http://host.docker.internal:3000/graphql.

@sahil-khanna
Copy link
Author

sahil-khanna commented Jul 15, 2020

The docs don't say it, but .botfront/botfront.yml needs to be updated for the BF_URL variable. If you're running Docker for Mac or Windows, it should be http://host.docker.internal:3000/graphql.

Thanks, @pheel The training is working now. However, I noticed another strange issue.

When I try the preview option, only the utter_id is displayed whereas I expect the text associated with the utter_id to be displayed.
image

I noticed a warning in the logs. Below is the screenshot
image

The below URLs show some response when opened in the browser

Note: this issue is similar to #619 (comment)

@pheel
Copy link
Contributor

pheel commented Jul 15, 2020

The URLs resolve from outside the Rasa container but not within. Before we update the docs, check out the highlighted post here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants