Core model Domain specification issue

I’m facing the below issue while running the app with the command

rasa run --model /home/pavankalyan/PycharmProjects/chatbot-app/ex_models --enable-api --port 8083 --debug --credentials /home/pavankalyan/PycharmProjects/chatbot-app/conf/credentials.yml --endpoints /home/pavankalyan/PycharmProjects/chatbot-app/conf/endpoints.yml --log-file /home/pavankalyan/PycharmProjects/chatbot-app/logs/core.log --workers 1

Issue:

ERROR rasa.core.agent - Could not load model due to Domain specification has changed. You MUST retrain the policy. Detected mismatch in domain specification. The following states have been

  • removed: prev_action_session_start
  • added:

I have extracted my model and In my domain file, there’s no prev_action_session_start state. I’m getting the above issue, can someone let me know what’s the issue here? Thanks in advance:slightly_smiling_face:

domain.yml:

intents:
- small_talk:
    triggers: answer_small_talk
- ask_question:
    triggers: ask_a_question
- restart:
    triggers: restart_conversation
- busy:
    triggers: chitchat
- greetings_good_evening:
    triggers: chitchat
- happy:
    triggers: chitchat
- thank_you:
    triggers: chitchat
- are_you_chatbot:
    triggers: chitchat
- bye:
    triggers: chitchat
- greetings_good_morning:
    triggers: chitchat
- hold_on:
    triggers: chitchat
- user_back:
    triggers: chitchat
- are_you_there:
    triggers: chitchat
- clever:
    triggers: chitchat
- greetings_how_are_you:
    triggers: chitchat
- ask_acquaintance:
    triggers: chitchat
- greetings_nice_to_meet_you:
    triggers: chitchat
- positive_appraisal:
    triggers: chitchat
- what_do_you_mean:
    triggers: chitchat
- ask_ready:
    triggers: chitchat
- emotions_ha_ha:
    triggers: chitchat
- greetings_nice_to_see_you:
    triggers: chitchat
- real:
    triggers: chitchat
- wow:
    triggers: chitchat
- greetings_nice_to_talk_to_you:
    triggers: chitchat
- my_friend:
    triggers: chitchat
- residence:
    triggers: chitchat
- wrong:
    triggers: chitchat
- boss:
    triggers: chitchat
- good:
    triggers: chitchat
- greetings_whatsup:
    triggers: chitchat
- sorry:
    triggers: chitchat
- explain:
    triggers: explain_action
- bot_load:
    triggers: show_pusher
- not_right_now:
    triggers: menu
- faq:
    triggers: answer_faq
- job_search:
    use_entities: false
- quick_referral:
    use_entities: false
- job_recommendations
- course_recommendations
- positive_feedback
- negative_feedback
- positive_acknowledgement
- negative_acknowledgement
- quick_apply
- affirm
- deny
- boring
- negative_appraisal
- annoying
- welcome    

entities:
- interview_slot
- screening_answer
- skills
- location
- cities
- states
- countries
- category
- user_name
- user_email
- user_interests
- user_skills
- user_preferred_locations
- user_job_title    

slots:
  screening_answer:
    type: unfeaturized
  referral_info:
    type: unfeaturized
  jobs_found:
    type: bool
  skills:
    type: unfeaturized
  location:
    type: unfeaturized
  cities:
    type: unfeaturized
  states:
    type: unfeaturized
  countries:
    type: unfeaturized
  category:
    type: unfeaturized
  job_type:
    type: unfeaturized
  user_interests:
    type: unfeaturized
  user_skills:
    type: unfeaturized
  user_preferred_locations:
    type: unfeaturized
  user_name:
    type: unfeaturized
  user_email:
    type: unfeaturized
  user_job_title:
    type: unfeaturized
  user_phone:
    type: unfeaturized
  job_seq_no:
    type: unfeaturized
  job_category:
    type: unfeaturized
  alert_frequency:
    type: unfeaturized
  screening_status:
    type: unfeaturized
  scheduling_status:
    type: unfeaturized
  interview_slot:
    type: unfeaturized    

actions:
- answer_small_talk
- ask_a_question
- utter_welcome
- utter_show_jobs
- utter_no_jobs
- utter_show_recommendations
- utter_no_recommendations
- sorry
- job_search_feedback
- job_recommendations_feedback
- faq_feedback
- utter_thanks
- utter_awesome
- menu
- utter_thanks_for_positive_feedback
- utter_thanks_for_negative_feedback
- ask_signup_for_job_alerts
- utter_subscribe_later
- show_pusher
- utter_ask_firstName
- utter_ask_lastName
- utter_ask_email
- utter_ask_mobile
- utter_ask_location
- utter_ask_questionnaire
- utter_referral_created
- utter_start_referral
- answer_faq
- utter_hint
- utter_start_quick_apply
- utter_unknown_response
- utter_default
- ask_continue
- chitchat
- restart_conversation
- deactivate_form
- explain_action    

forms:
- job_search_form
- job_recommendations_form
- job_alerts_form
- referral_form
- apply_form
- course_recommendations_form
- scheduling_form

Hi @pavakalyankillari, did you train the model recently, and with the same version of rasa that you’re using to run it? What happens if you do retrain the model?

Hey @mloubser! Thanks for the reply.

Yes, I do retrain the model with the same version of rasa that I’m using to run it, and it didn’t work in the first attempt. Then I tried using a new virtual environment, re-installed all packages, and then it worked, Maybe some issue in the interpreter that I’ve used earlier. The issue got fixed. Thanks once again.