Rasa_core with docker train fails

Im getting a File not found error trying to run docker train on rasa_core.

I tried running

docker run -v $(pwd):/app/project -v $(pwd)/models/rasa_core:/app/models rasa/rasa_core:latest train --domain project/domain.yml --stories $(pwd)/project/stories.md --out models

and I get

Exception: Failed to load domain specification from ‘/Users/rsreeni/rasa-app-data/project/domain.yml’. File not found!

Ive tried

docker run -v $(pwd):/app/project -v $(pwd)/models/rasa_core:/app/models rasa/rasa_core:latest train --domain $(pwd)/project/domain.yml --stories $(pwd)/project/stories.md --out models

and

docker run -v $(pwd):/app/project -v $(pwd)/models/rasa_core:/app/models rasa/rasa_core:latest train --domain /app/project/domain.yml --stories $(pwd)/project/stories.md --out models

all three result in same error…

The file does exist in the directory.

Can any one help, please?

Thanks,

-Sreeni

I am also getting same error , Please any one help me.

Can you post the file locations and the command you run with the error ? some location parameter could be off… that was what was mine. I got it to work… if you can post the locations and screen, I may be able to take a look.

-Sreeni

Hi,

files location: C:\Rasa\Docker\domain.yml C:\Rasa\Docker\data\stories.md

command: docker run
-v $(pwd):/app/project
-v $(pwd)/models/rasa_core:/app/models
rasa/rasa_core:latest
train
–domain project/domain.yml
–stories project/data/stories.md
–out models

Exception: Failed to load domain specification from ‘/app/project/domain.yml’. File not found!

Please respond

same issue. this method is copied from the docs, so i wonder why it’s defunct edit: fixed by following this step first: Step 3: Start Building then I ran the same block in the starter-pack-rasa-stack dir

Hi @david-moven thanks for the help. It is working fine. But after docker-compose up , while i am giving the input meaasge

curl --request POST
–url http://localhost:5005/webhooks/rest/webhook
–header ‘content-type: application/json’
–data ‘{ “message”: “hello” }’

I have get an error curl: (7) Failed to connect to localhost port 5005: Connection refused.

While running docker-compose up , i have got this warning :Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

Hi
I have execuated the command successfully,

docker run -v $(pwd):/app/project -v $(pwd)/models/rasa_core:/app/models -v $(pwd)/config:/app/config -v $(pwd)/data:/app/data rasa/rasa_core:latest train -d config/core_domain_edit2.yml -s data/story_start.md -o models/dialogue2

Hoping it is useful.

My files listed as following:

├── config
│   ├── config_multiintents_0528.yml
│   ├── core_domain_edit2.yml
│   └── policies.yml
├── data
│   ├── data_0516_foruse.json
│   ├── story_start.md
│   └── total_word_feature_extractor_zh.dat
├── docker_start_train_core.sh
├── docker_start_train_nlu.sh
├── entrypoint.sh
├── logs
├── models
│   ├── rasa_core
│   │   ├── dialogue2
│   │   │   ├── domain.json
│   │   │   ├── domain.yml
│   │   │   ├── policy_0_KerasPolicy
│   │   │   │   ├── featurizer.json
│   │   │   │   ├── keras_model.h5
│   │   │   │   ├── keras_policy.json
│   │   │   │   └── keras_policy.tf_config.pkl
│   │   │   ├── policy_1_FallbackPolicy
│   │   │   │   └── fallback_policy.json
│   │   │   ├── policy_2_MemoizationPolicy
│   │   │   │   ├── featurizer.json
│   │   │   │   └── memorized_turns.json
│   │   │   ├── policy_3_FormPolicy
│   │   │   │   ├── featurizer.json
│   │   │   │   └── memorized_turns.json
│   │   │   └── policy_metadata.json
│   │   ├── domain.json
│   │   ├── domain.yml
│   │   ├── policy_0_KerasPolicy
│   │   │   ├── featurizer.json
│   │   │   ├── keras_model.h5
│   │   │   ├── keras_policy.json
│   │   │   └── keras_policy.tf_config.pkl
│   │   ├── policy_1_FallbackPolicy
│   │   │   └── fallback_policy.json
│   │   ├── policy_2_MemoizationPolicy
│   │   │   ├── featurizer.json
│   │   │   └── memorized_turns.json
│   │   ├── policy_3_FormPolicy
│   │   │   ├── featurizer.json
│   │   │   └── memorized_turns.json
│   │   └── policy_metadata.json
│   └── rasa_nlu
│       └── nlu
│           └── default
│               └── model_20190620-033330
│                   ├── checkpoint
│                   ├── crf_model.pkl
│                   ├── entity_extractor.dat
│                   ├── entity_synonyms.json
│                   ├── intent_classifier_tensorflow_embedding.ckpt.data-00000-of-00001
│                   ├── intent_classifier_tensorflow_embedding.ckpt.index
│                   ├── intent_classifier_tensorflow_embedding.ckpt.meta
│                   ├── intent_classifier_tensorflow_embedding_encoded_all_intents.pkl
│                   ├── intent_classifier_tensorflow_embedding_inv_intent_dict.pkl
│                   ├── intent_featurizer_count_vectors.pkl
│                   ├── metadata.json
│                   └── training_data.json
├── train_core.sh
└── train_nlu.sh

Environment:
Ubuntu==18.04
rasa/rasa_core:latest (Created": "2019-03-04T14:44:35.378658156Z)