Enterprise_search password

Hi all,
Please help to fix enterprise_search password. In the log bellow I have all the password but it's not work when I access to: localhost:3002/login page. Also it's not a cache problem. I try with different browser and delete the cookies...

I try to directly install on a ubuntu server or with a contenair. The login error message stiull the same:"Username or password is incorrect"

Even when I reset the password I, the new one doens't work: "./enterprise-search --reset-auth"

Thanks

docker installation

docker run -p 3002:3002 \

-e elasticsearch.host='http://localhost:9200' \

-e elasticsearch.username=elastic \

-e elasticsearch.password=esPassword \

-e allow_es_settings_modification=true \

-e ENT_SEARCH_DEFAULT_PASSWORD=myPassword \

-e ent_search.auth.source=standard \

-e secret_management.encryption_keys='[4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]' \

docker.elastic.co/enterprise-search/enterprise-search:7.7.0

contenair shell

HOSTNAME=containerHostname

filebeat_log_directory=/var/log/enterprise-search

TERM=xterm

ent_search.auth.source=standard

secret_management.encryption_keys=[4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]

allow_es_settings_modification=true

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PWD=/usr/share/enterprise-search

ENT_SEARCH_DEFAULT_PASSWORD=myPassword

log_directory=/var/log/enterprise-search

SHLVL=1

HOME=/usr/share/enterprise-search

elasticsearch.password=esPassword

elasticsearch.host=http://localhost:9200

elasticsearch.username=elastic

log

Enterprise Search is starting...

scripting container class loader urls: [file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jruby-stdlib-9.2.9.0.jar, file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jetty-util.jar, file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jruby-rack-1.1.21.jar, file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jetty-servlets.jar, file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jruby-core-9.2.9.0-complete.jar, file:/usr/share/enterprise-search/tmp/jruby8642096812380536230extract/lib/jruby-rack-worker_0.14.1.jar]

setting GEM_HOME to /usr/share/enterprise-search/tmp/jruby8642096812380536230extract/gems

... and BUNDLE_GEMFILE to /usr/share/enterprise-search/tmp/jruby8642096812380536230extract/Gemfile

loading resource: /usr/share/enterprise-search/tmp/jruby8642096812380536230extract/./META-INF/rails.rb

invoking /usr/share/enterprise-search/tmp/jruby8642096812380536230extract/./META-INF/rails.rb with: [runner, SharedTogo.start_app_server!]

[2020-05-29T07:33:30.180+00:00][14][2002][app-server][INFO]: Successfully connected to Elasticsearch

[2020-05-29T07:33:30.243+00:00][14][2002][app-server][INFO]: Enterprise Search version=7.7.0, JRuby version=9.2.9.0, Ruby version=2.5.7, Rails version=4.2.11.1

[2020-05-29T07:33:42.769+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Ensuring migrations tracking index exists

[2020-05-29T07:33:42.876+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Ensuring migrations tracking index exists

[2020-05-29T07:33:43.114+00:00][14][2002][app-server][INFO]: Creating/updating Enterprise Search indices

[2020-05-29T07:33:43.115+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:45.629+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:45.649+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:45.917+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:45.932+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:46.308+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:46.326+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:46.457+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:46.476+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:46.779+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:46.796+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:47.114+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:47.131+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:47.414+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:47.437+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:47.582+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:47.600+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:47.853+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:47.870+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:50.143+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:50.162+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:50.392+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:50.413+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Applying Actastic Migration:

[2020-05-29T07:33:50.554+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Applying Actastic Migration:

[2020-05-29T07:33:50.567+00:00][14][2002][app-server][INFO]: Enterprise Search indices are ready

[2020-05-29T07:33:50.569+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Creating a default Elasticsearch cluster configuration record

[2020-05-29T07:33:50.648+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Creating a default Elasticsearch cluster configuration record

[2020-05-29T07:33:50.671+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Creating a default Workplace Search organization

[2020-05-29T07:33:50.875+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Creating a default Workplace Search organization

[2020-05-29T07:33:50.901+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Creating a default App Search account

[2020-05-29T07:33:51.194+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Creating a default App Search account

[2020-05-29T07:33:51.254+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Starting] Creating a default user account

[2020-05-29T07:33:52.056+00:00][14][2002][app-server][INFO]: [db_lock] [installation] Status: [Finished] Creating a default user account


#########################################################

*** Default user credentials have been setup. These are only printed once, so please ensure they are recorded. ***

username: enterprise_search

password: ThePassword

#########################################################


#########################################################

Success! Elastic Enterprise Search is starting successfully.

In a few moments, you'll be able to login at the following address:

Secret session key has been generated.

Set the key in your config file to persist user sessions through process restarts:

secret_session_key: standard:removed
#########################################################

1 Like

Hi acmenow

Everything seems in order. Does it log any errors in your console when you try to login with the credentials enterprise_search / ThePassword?

Hi,
I solved it. In fact if enterprise search in docker you should specify the "ent_search.external_url".
Your docker command should look like:

docker run -p 3002:3002
-e elasticsearch.host='http://elastic:changeme@yourIPAdress:9200'
-e elasticsearch.username=elastic
-e elasticsearch.password=changeme
-e allow_es_settings_modification=true
-e secret_management.encryption_keys='[4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]'
-e ent_search.external_url='http://yourIPAdress:3002'
-e ent_search.auth.source=standard
docker.elastic.co/enterprise-search/enterprise-search:7.7.1

Your config file should look like:

/usr/share/enterprise-search/configenterprise-search.yml

allow_es_settings_modification: true

elasticsearch.host: http://elastic:changeme@yourIPAdress:9200

elasticsearch.password: changeme

elasticsearch.username: elastic

ent_search.auth.source: standard

ent_search.external_url: http://yourIPAdress:3002

ent_search.listen_host: 0.0.0.0

filebeat_log_directory: /var/log/enterprise-search

log_directory: /var/log/enterprise-search

secret_management.encryption_keys: [4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]

I don't try it with localhost, but it should work on localhost.

Also the username is "enterprise_search" and your have both, username and password during the installation.

If you install it directly from the package uncomment "external_url" and specify your IP adress or let localhost.

Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.