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

Botfront-rasa constantly restarting #862

Open
JohnBat26 opened this issue Jan 15, 2021 · 4 comments · May be fixed by chrisshaw/botfront#26
Open

Botfront-rasa constantly restarting #862

JohnBat26 opened this issue Jan 15, 2021 · 4 comments · May be fixed by chrisshaw/botfront#26
Labels
bug Something isn't working

Comments

@JohnBat26
Copy link

Hi
I try to start master branch of botfront for Rasa 2 compatibility.
All containers have started normally, except one: botfront-rasa.

This container constanly restarting because Docker file just run: rasa --help.
When I try to add:

command:
      - run
      - --enable-api
      - --debug

to .botfront/docker-compose-template.yml for botfront-rasa containerm when I get:

botfront-rasa | 2021-01-15 15:13:25 WARNING  rasa.utils.common  - Failed to write global config. Error: [Errno 13] Permission denied: '/.config'. Skipping.
botfront-rasa | Traceback (most recent call last):
botfront-rasa |   File "/opt/venv/bin/rasa", line 8, in <module>
botfront-rasa |     sys.exit(main())
botfront-rasa |   File "/opt/venv/lib/python3.8/site-packages/rasa/__main__.py", line 116, in main
botfront-rasa |     cmdline_arguments.func(cmdline_arguments)
botfront-rasa |   File "/opt/venv/lib/python3.8/site-packages/rasa/cli/run.py", line 81, in run
botfront-rasa |     set_endpoints_credentials_args_from_remote(args)
botfront-rasa |   File "/opt/venv/lib/python3.8/site-packages/rasa/utils/botfront.py", line 114, in set_endpoints_credentials_args_from_remote
botfront-rasa |     config = asyncio.get_event_loop().run_until_complete(
botfront-rasa |   File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
botfront-rasa |   File "/opt/venv/lib/python3.8/site-packages/rasa/utils/botfront.py", line 45, in get_config_via_graphql
botfront-rasa |     from sgqlc.endpoint.http import HTTPEndpoint
botfront-rasa | ModuleNotFoundError: No module named 'sgqlc'

In any cases botfront ui doesn't see Rasa backend and can't train a model :(.

Why is this happening since I run the default commands?

@JohnBat26
Copy link
Author

And I have access problem to project folder because docker user can't write model after training and I have to invoke chmod 777 -R . :(

@MatthieuJnon MatthieuJnon added the bug Something isn't working label Jan 15, 2021
@pheel
Copy link
Contributor

pheel commented Jan 15, 2021

Hi @JohnBat26 in order to help, could you please post the entire content of your .botfront/docker-compose-template.yml file, and if using, rasa/Dockerfile?

@JohnBat26
Copy link
Author

@pheel
Copy link
Contributor

pheel commented Jan 18, 2021

@JohnBat26 I'm guessing you built rasa-for-botfront using that Dockerfile? Do you have a reason not to use botfront/rasa-for-botfront:v1.10.16-bf.4 or botfront/rasa-for-botfront:v2.1.3-bf.7 from the Docker repository? You're still able to load custom packages using the docker-compose-template.yml file you linked: All you have to do is edit the contents {PROJECT_DIR}/rasa. If you really have to build rasa-for-botfront, you can build it from the Dockerfile_botfront Dockerfile. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants