Accidental Removal of Core Role Doctype Affecting Bench Access

I accidentally deleted the core Role Doctype we use to manage roles, so now I’m getting an error when I try to start my bench.

Try below commands

bench --site site_name migrate

or

bench update

i tried already but not resolved.

Try

  1. Pull Latest Frappe app
  2. Create new site
  3. Install your app on new site

I tired this also but their I am facing another error in that I am not getting the doctypes that I had created in that app before.

Have you created doctypes in your custom app? If you haven’t exported/created them in the custom app and don’t have a backup, then you will not be able to retrieve your custom doctypes.