rsreeni
(Sreenivasan Rajagopalan)
December 28, 2018, 2:05am
1
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
Chaitanya
(Chaitanya Tanniru)
January 3, 2019, 8:38am
2
I am also getting same error , Please any one help me.
rsreeni
(Sreenivasan Rajagopalan)
January 3, 2019, 1:56pm
3
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
Chaitanya
(Chaitanya Tanniru)
January 4, 2019, 5:35am
4
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!
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
Chaitanya
(Chaitanya Tanniru)
February 5, 2019, 7:37am
7
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)