Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Failure in "Debian - Ensure elasticsearch is installed" #792

Closed
dokterbob opened this issue Apr 6, 2021 · 4 comments
Closed

Failure in "Debian - Ensure elasticsearch is installed" #792

dokterbob opened this issue Apr 6, 2021 · 4 comments

Comments

@dokterbob
Copy link

Elasticsearch version 7.8.11

Role version: v7.12.0

JVM version (java -version): java: command not found

OS version (uname -a if on a Unix-like system): `Linux 4.15.0-140-generic #144~16.04.1-Ubuntu SMP Fri Mar 19 21:24:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux (Ubuntu 16.04.7 LTS (GNU/Linux 4.15.0-140-generic x86_64))

Description of the problem including expected versus actual behaviour:
Expected behaviour:

TASK [elasticsearch : Debian - Get installed elasticsearch version] ********************************************************************************************************************
ok: [<hostname>]

Actual behaviour:

TASK [elasticsearch : Debian - Ensure elasticsearch is installed] **********************************************************************************************************************
fatal: [<hostname>]: FAILED! => {"cache_update_time": 1458121774, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'elasticsearch-oss=7.8.11'' failed: E: Version '7.8.11' for 'elasticsearch-oss' was not found\n", "rc": 100, "stderr": "E: Version '7.8.11' for 'elasticsearch-oss' was not found\n", "stderr_lines": ["E: Version '7.8.11' for 'elasticsearch-oss' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}

Playbook: https://github.com/ipfs-search/ipfs-search-deployment/blob/cbbc0f0955e69285789fea86c36e6826013c57ae/index.yml

Provide logs from Ansible:

PLAY [index] ***************************************************************************************************************************************************************************

TASK [Gathering Facts] *****************************************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : set_fact] ********************************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : os-specific vars] ************************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : Set fact oss_version when using es_enable_xpack] *****************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Warn about deprecated es_enable_xpack variable] ******************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Set the defaults here otherwise they can't be overriden in the same play if the role is called twice] ************************************************************
ok: [<hostname>]

TASK [elasticsearch : Use the oss repo and package] ************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : Set the URL scheme to https if SSL/TLS is enabled] ***************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Warn about deprecated  es_xpack_features variable] ***************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when oss_version is true with es_version >= 7.11.0] *********************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when es_proxy_port is not defined or is blank] **************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when heap size is not specified when using memory lock] *****************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when api credentials are not declared when using security] **************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when ssl enabled without defining a key and certificate] ****************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set fact file_reserved_users] ************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : fail when changing users through file realm] *********************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set fact m_lock_enabled] *****************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : set fact use_system_d] *******************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : detect if we need the .deb or .rpm] ******************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : get the minor version] *******************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set the package_name] ********************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : generate the artifacts url] **************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : get latest snapshot build] ***************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : use the custom package url instead of the repository] ************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : split up the snapshot url so we can create the plugin url] *******************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set base plugin url] *********************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : create es_plugins with the snapshot url] *************************************************************************************************************************
skipping: [<hostname>] => (item={'plugin': 'repository-s3'}) 

TASK [elasticsearch : override the original es_plugins with the snapshot version] ******************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set fact java_state to present] **********************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set fact java_state to latest] ***********************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : RedHat - Ensure Java is installed] *******************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Get the installed java path] *************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : correct java version selected] ***********************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Refresh java repo] ***********************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Debian - Ensure Java is installed] *******************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : register open_jdk version] ***************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : refresh the java ca-certificates] ********************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : set fact force_install to no] ************************************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : set fact force_install to yes] ***********************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Check if the elasticsearch package is installed] *****************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : unhold elasticsearch package when switching to a different package type] *****************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : stop elasticsearch] **********************************************************************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Debian - Remove elasticsearch package if we are switching to a different package type] ***************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Debian - Install apt-transport-https to support https APT downloads] *********************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : Debian - Add Elasticsearch repository key] ***********************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : Debian - Add elasticsearch repository] ***************************************************************************************************************************
ok: [<hostname>] => (item={'repo': 'deb http://packages.elastic.co/elasticsearch/oss-7.x/debian stable main', 'state': 'absent'})
ok: [<hostname>] => (item={'repo': 'deb https://artifacts.elastic.co/packages/oss-7.x/apt stable main', 'state': 'present'})
ok: [<hostname>] => (item={'repo': 'deb https://artifacts.elastic.co/packages/7.x/apt stable main', 'state': 'absent'})

TASK [elasticsearch : Ensure optional elasticsearch group is created with the correct id.] *********************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Ensure optional elasticsearch user is created with the correct id.] **********************************************************************************************
skipping: [<hostname>]

TASK [elasticsearch : Debian - Get installed elasticsearch version] ********************************************************************************************************************
ok: [<hostname>]

TASK [elasticsearch : Debian - unhold elasticsearch version] ***************************************************************************************************************************
changed: [<hostname>]

TASK [elasticsearch : Debian - Ensure elasticsearch is installed] **********************************************************************************************************************
fatal: [<hostname>]: FAILED! => {"cache_update_time": 1458121774, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"      install 'elasticsearch-oss=7.8.11'' failed: E: Version '7.8.11' for 'elasticsearch-oss' was not found\n", "rc": 100, "stderr": "E: Version '7.8.11' for 'elasticsearch-oss' was not found\n", "stderr_lines": ["E: Version '7.8.11' for 'elasticsearch-oss' was not found"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information..."]}

PLAY RECAP *****************************************************************************************************************************************************************************
<hostname>                      : ok=14   changed=1    unreachable=0    failed=1    skipped=36   rescued=0    ignored=0   

ES Logs if relevant:

@dokterbob
Copy link
Author

It seems installation proceeds as expected for es_version: 7.10.2

@jmlrt
Copy link
Member

jmlrt commented Apr 12, 2021

Hi @dokterbob, Elasticsearch 7.8.11 isn't a valid release, are you trying to install 6.8.11?

@jmlrt jmlrt added the question label Apr 12, 2021
@botelastic
Copy link

botelastic bot commented Jul 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic
Copy link

botelastic bot commented Aug 10, 2021

This issue has been automatically closed because it has not had recent activity since being marked as stale.

@botelastic botelastic bot closed this as completed Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants