# ECE - bash install error - docker.io/library/de - not found

**URL:** <https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [June 5, 2018, 7:59am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553 "2018-06-05T07:59:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 7:59am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/1 "2018-06-05T07:59:35Z")

</div>

Hi,  
Im trying to install ECE on my virtual machin by following the [prerequise](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-prereqs.html) for [CentOS7](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-hosts.html#ece-configure-hosts-rhel-centos) and [own registry installation mode](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing-offline-no-registry.html).

I make the installation on the VM from scratch, I didn't encountered error during the prerequisite configuration, and i get this Error when I execute the bash install script.

```
[elastic@localhost log]$ bash <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) install
Unable to find image 'de:latest' locally
Pulling repository docker.io/library/de
docker: Error: image library/de not found.
See 'docker run --help'.

[elastic@localhost log]$ sudo cat /var/log/messages | grep docker
Jun 5 09:14:22 localhost docker: time="2018-06-05T09:14:22.908432445+02:00" level=error msg="Handler for POST /v1.23/containers/create returned error: No such image: de:latest"
Jun 5 09:14:24 localhost docker: time="2018-06-05T09:14:24.247328861+02:00" level=error msg="Attempting next endpoint for pull after error: unauthorized: authentication required"
Jun 5 09:14:24 localhost docker: time="2018-06-05T09:14:24.664265423+02:00" level=error msg="Not continuing with pull after error: Error: image library/de not found"

```

1. "Handler for POST /v1.23/containers/create returned error: No such image: de:latest"  
I don't understand why docker does not find the images I pulled before executing the bash

2. "Attempting next endpoint for pull after error: unauthorized: authentication required"  
I don't understand what authentication is required by docker, and why he is trying to find '[docker.io/library/de:latest](http://docker.io/library/de:latest)'

Please if any one have an idea,

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:15am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/2 "2018-06-05T08:15:36Z")

</div>

Hi Dimitry,  
can you please run the script with trace flag? (ie `bash -x <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) install`) Check the line that starts with `HOST_STORAGE_PATH=`. What is the variable assigned to?

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:20am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/3 "2018-06-05T08:20:42Z")

</div>

> [@Yuri](#):
>
> bash -x \<(curl -fsSL [https://download.elastic.co/cloud/elastic-cloud-enterprise.sh](https://download.elastic.co/cloud/elastic-cloud-enterprise.sh)) install

Hi Yuri, thanks for your interres , Here is the result

HOST\_STORAGE\_PATH=/mnt/data/elastic

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:23am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/4 "2018-06-05T08:23:03Z")

</div>

It looks correct. Try to search for keyword `error`.

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:25am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/5 "2018-06-05T08:25:10Z")

</div>

```
 GENERAL_ERROR_EXIT_CODE=1
+ UNKNOWN_COMMAND_EXIT_CODE=2
+ INVALID_ARGUMENT_EXIT_CODE=3
+ NON_VALID_USER_UID_EXIT_CODE=4
+ PRECONDITION_NOT_MET_EXIT_CODE=5

+ docker -H unix:///var/run/docker.sock run --env 'RUNNER_ENVIRONMENT_METADATA_JSON={}' --env COORDINATOR_HOST= --env HOST_DOCKER_HOST=/var/run/docker.sock --env HOST_STORAGE_PATH=/mnt/data/elastic --env HOST_STORAGE_DEVICE_PATH=Sys. de fichiers /dev/mapper/cl-root --env CLOUD_ENTERPRISE_VERSION=1.1.3 --env ENABLE_DEBUG_LOGGING=false --env DOCKER_REGISTRY=docker.elastic.co --env ECE_DOCKER_REPOSITORY=cloud-enterprise --env RUNNER_ID= --env RUNNER_ROLES= --env RUNNER_ROLES_TOKEN= --env HOST_IP=192.168.10.209 --env AVAILABILITY_ZONE= --env CAPACITY= --env ROLE=bootstrap-initiator --env UID=1000 --env GID=1000 --env MEMORY_SETTINGS= --env CONFIG_FILE= --env FORCE_INSTALL=false --env HOST_PREREQ_FAILED=false --env ECE_TIMEOUT_FACTOR=1.0 -p 20000:20000 -v /var/run/docker.sock:/run/docker.sock -v /mnt/data/elastic:/mnt/data/elastic --name elastic-cloud-enterprise-installer-1.1.3 --rm -i --tty docker.elastic.co/cloud-enterprise/elastic-cloud-enterprise:1.1.3 elastic-cloud-enterprise-installer
Unable to find image 'de:latest' locally
Pulling repository docker.io/library/de
docker: Error: image library/de not found.
See 'docker run --help'.
```

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:25am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/6 "2018-06-05T08:25:59Z")

</div>

```
[elastic@localhost log]$ bash -x <(curl -fsSL https://download.elastic.co/cloud/elastic-cloud-enterprise.sh) install
+ set -e
+ CLOUD_ENTERPRISE_VERSION=1.1.3
+ DOCKER_REGISTRY=docker.elastic.co
+ ECE_DOCKER_REPOSITORY=cloud-enterprise
+ HOST_STORAGE_PATH=/mnt/data/elastic
+ HOST_DOCKER_HOST=/var/run/docker.sock
+ YELLOW='\033[0;33m'
+ RED='\033[0;31m'
+ NC='\033[0m'
+ GENERAL_ERROR_EXIT_CODE=1
+ UNKNOWN_COMMAND_EXIT_CODE=2
+ INVALID_ARGUMENT_EXIT_CODE=3
+ NON_VALID_USER_UID_EXIT_CODE=4
+ PRECONDITION_NOT_MET_EXIT_CODE=5
+ FORCE_INSTALL=false
+ HOST_PREREQ_FAILED=false
+ ENABLE_DEBUG_LOGGING=false
+ OVERWRITE_EXISTING_IMAGE=false
+ TIMEOUT_FACTOR=1.0
+ COMMAND=
+ COMMAND=help
+ '[' 1 -gt 0 ']'
+ COMMAND=install
+ case $COMMAND in
+ shift
+ main
+ setArgumentWithFilter HOST_DOCKER_HOST HOST_DOCKER_HOST /var/run/docker.sock
+ local _value=/var/run/docker.sock
+ [[/var/run/docker.sock == *\u\n\i\x\:\/\/*]]
+ setArgument HOST_DOCKER_HOST HOST_DOCKER_HOST /var/run/docker.sock
+ [[/var/run/docker.sock == --*]]
+ [[-z /var/run/docker.sock]]
+ local __resultvar=HOST_DOCKER_HOST
+ eval 'HOST_DOCKER_HOST='\''/var/run/docker.sock'\'''
++ HOST_DOCKER_HOST=/var/run/docker.sock
+ '[' install == install ']'
+ parseInstallArguments
+ '[' '' '!=' '' ']'
+ verifyHostPreconditions
+ validateDockerSocket
+ '[' '!' -S /var/run/docker.sock ']'
+ validateRunningUserUID
++ id -ru
+ local uuid=1000
++ id -rg
+ local guid=1000
+ [[1000 -lt 1000]]
+ [[1000 -lt 1000]]
+ verifyFirewalldPrecondition
+ hash systemctl
++ systemctl is-active firewalld
+ local is_active=unknown
+ [[unknown == \a\c\t\i\v\e]]
+ createAndValidateHostStoragePath
++ id -u
+ uid=1000
++ id -g
+ gid=1000
+ [[! -e /mnt/data/elastic]]
+ [[! -r /mnt/data/elastic]]
+ [[! -w /mnt/data/elastic]]
++ df --output=source /mnt/data/elastic
++ grep -v Filesystem
+ export 'HOST_STORAGE_DEVICE_PATH=Sys. de fichiers
/dev/mapper/cl-root'
+ HOST_STORAGE_DEVICE_PATH='Sys. de fichiers
/dev/mapper/cl-root'
+ defineHostIp
+ local reason=
+ '[' -z ']'
+ type ip
++ ip route show default
++ awk '/default/ {print $5}'
+ DEVICE=enp0s3
+ '[' '!' -z enp0s3 ']'
++ ip -4 addr show enp0s3
++ grep -Po 'inet \K[\d.]+'
+ HOST_IP=192.168.10.209
+ '[' -z 192.168.10.209 ']'
+ '[' false == true ']'
+ runBootstrapInitiatorContainer
+ DOCKER_TTY=
+ '[' -t 0 ']'
+ DOCKER_TTY=--tty
+ '[' -n '' ']'
++ id -u
++ id -g
+ docker -H unix:///var/run/docker.sock run --env 'RUNNER_ENVIRONMENT_METADATA_JSON={}' --env COORDINATOR_HOST= --env HOST_DOCKER_HOST=/var/run/docker.sock --env HOST_STORAGE_PATH=/mnt/data/elastic --env HOST_STORAGE_DEVICE_PATH=Sys. de fichiers /dev/mapper/cl-root --env CLOUD_ENTERPRISE_VERSION=1.1.3 --env ENABLE_DEBUG_LOGGING=false --env DOCKER_REGISTRY=docker.elastic.co --env ECE_DOCKER_REPOSITORY=cloud-enterprise --env RUNNER_ID= --env RUNNER_ROLES= --env RUNNER_ROLES_TOKEN= --env HOST_IP=192.168.10.209 --env AVAILABILITY_ZONE= --env CAPACITY= --env ROLE=bootstrap-initiator --env UID=1000 --env GID=1000 --env MEMORY_SETTINGS= --env CONFIG_FILE= --env FORCE_INSTALL=false --env HOST_PREREQ_FAILED=false --env ECE_TIMEOUT_FACTOR=1.0 -p 20000:20000 -v /var/run/docker.sock:/run/docker.sock -v /mnt/data/elastic:/mnt/data/elastic --name elastic-cloud-enterprise-installer-1.1.3 --rm -i --tty docker.elastic.co/cloud-enterprise/elastic-cloud-enterprise:1.1.3 elastic-cloud-enterprise-installer
Unable to find image 'de:latest' locally
Pulling repository docker.io/library/de
docker: Error: image library/de not found.
See 'docker run --help'.
```

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:26am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/7 "2018-06-05T08:26:50Z")

</div>

> [@dsigiscar](#):
>
> HOST\_STORAGE\_DEVICE\_PATH=Sys. de fichiers /dev/mapper/cl-root

that's the problem/

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:27am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/8 "2018-06-05T08:27:41Z")

</div>

Hmm, what this mean ?

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:29am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/9 "2018-06-05T08:29:30Z")

</div>

Is there some link whit this result ?

```
[elastic@localhost log]$ cat /proc/sys/fs/may_detach_mounts
cat: /proc/sys/fs/may_detach_mounts: Aucun fichier ou dossier de ce type
```

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:31am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/10 "2018-06-05T08:31:36Z")

</div>

Yes, I think so  
we use `$(df --output=source ${HOST_STORAGE_PATH} | grep -v Filesystem)` to get the variable value and it seems that `df` returns error which the script does not handle correctly.

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:32am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/11 "2018-06-05T08:32:54Z")

</div>

```
[elastic@localhost log]$ (df --output=source ${HOST_STORAGE_PATH} | grep -v Filesystem)
Sys. de fichiers
devtmpfs
tmpfs
tmpfs
tmpfs
/dev/mapper/cl-root
/dev/mapper/cl-home
/dev/sda1
tmpfs
```

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:36am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/12 "2018-06-05T08:36:01Z")

</div>

I folowed this step from the instruction [update configuration setting](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-hosts.html#_update_the_configurations_settings_3),

- Verify that fs.may\_detach\_mounts is enabled:

cat /proc/sys/fs/may\_detach\_mounts  
If the output of this command is not 1, you must enable the setting in order for Docker to cleanly remove containers:

- Update the /etc/sysctl.conf file to include this line:

fs.may\_detach\_mounts = 1

But the result din't changed

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:37am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/13 "2018-06-05T08:37:04Z")

</div>

Oh, i think it's a bug in the script. It does not support localized messages. So it expects `Filesystem` instead of `Sys. de fichiers`.

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:38am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/14 "2018-06-05T08:38:13Z")

</div>

How I can verrify it by my self ?

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:40am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/15 "2018-06-05T08:40:27Z")

</div>

You can download the script and modify it a little bit:  
replace line 753  
`export HOST_STORAGE_DEVICE_PATH=$(df --output=source ${HOST_STORAGE_PATH} | grep -v Filesystem)`  
by  
`export HOST_STORAGE_DEVICE_PATH=$(df --output=source ${HOST_STORAGE_PATH} | grep -v "Sys. de fichiers")`  
and run the script

---

<div class="post-metadata">

**Author:** ![dsigiscar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsigiscar/32/31934_2.png) [@dsigiscar](https://discuss.elastic.co/u/dsigiscar)\
**Post date:** [June 5, 2018, 8:49am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/16 "2018-06-05T08:49:31Z")

</div>

Good, it seem its was that !  
That also mean I need to Install CentOs 7 in english for avoid further error i guess

Now I have error with memory requirement but its because dont have the required ressources.

Thanks for your support.

---

<div class="post-metadata">

**Author:** ![Yuri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuri/32/52458_2.png) [@Yuri](https://discuss.elastic.co/u/Yuri)\
**Post date:** [June 5, 2018, 8:51am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/17 "2018-06-05T08:51:31Z")

</div>

Thanks for helping me troubleshoot the issue! I created a ticket to address the bug.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2018, 8:54am UTC](https://discuss.elastic.co/t/ece-bash-install-error-docker-io-library-de-not-found/134553/18 "2018-06-19T08:54:48Z")

</div>

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