Exception running enterprise-search for first time

Hi all - I have a local elasticsearch server running and have followed all the steps when installing enterprise-search. My config is as follows:

ent_search.auth.source: standard
elasticsearch.username: elastic
elasticsearch.password: 12345
allow_es_settings_modification: true
secret_management.encryption_keys:
  [12345]
ent_search.external_url: http://127.0.0.1:3002

When I run ENT_SEARCH_DEFAULT_PASSWORD=passwordexample bin/enterprise-search, I receive the following erro:

2020-12-18T07:00:09.642+00:00][42397][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration: <EmbedFritoPieRoles version=20200424000000>
[2020-12-18T07:00:09.724+00:00][42397][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration: <AddElasticsearchUsernameAndAuthSourceToUser version=20200512150416>
[2020-12-18T07:00:09.895+00:00][42397][2002][app-server][INFO]: [db_lock] [installation] Status: [Failed] Applying Actastic Migration: <AddElasticsearchUsernameAndAuthSourceToUser version=20200512150416>: Error = RuntimeError: User 5e46f2c013cdb294490309e3 has no external identities
Unexpected exception while running Enterprise Search:
Error: User 5e46f2c013cdb294490309e3 has no external identities at /Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/shared_togo/db/migrate/20200512150416_add_elasticsearch_username_and_auth_source_to_user.class:26:in `block in up'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/lib/swiftype/es/index.class:326:in `block in search_after'
	org/jruby/RubyArray.java:1814:in `each'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/lib/swiftype/es/index.class:326:in `block in search_after'
	org/jruby/RubyKernel.java:1446:in `loop'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/lib/swiftype/es/index.class:323:in `search_after'
	org/jruby/RubyEnumerator.java:401:in `each'
	org/jruby/RubyEnumerator.java:419:in `each'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/shared_togo/db/migrate/20200512150416_add_elasticsearch_username_and_auth_source_to_user.class:25:in `up'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/shared_togo/app/models/shared_togo/migration.class:13:in `run'
	/Users/spetri/Downloads/enterprise-search-7.10.1/lib/war/shared_togo/lib/shared_togo.class:880:in `block in apply_actastic_migrations'
...

Has anyone run into this AddElasticsearchUsernameAndAuthSourceToUser migration error before? Any help would be really appreciated, thanks!

Edit: I'm running java version 11 and this is based on fresh install of latest elasticsearch / enterprise-search on mac

Hi @spetri! That error indicates that there's an existing user in an invalid state. There shouldn't be any existing users during a fresh install, so I'm surprised you're hitting it. I would try clearing out your elasticsearch instance (at least the enterprise search indices: .ent-search-*) and reinstalling enterprise search.