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

1 Like

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)