# Uid/gid error on install

**URL:** <https://discuss.elastic.co/t/uid-gid-error-on-install/142633>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [August 1, 2018, 5:30pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633 "2018-08-01T17:30:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archness](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Archness](https://discuss.elastic.co/u/Archness)\
**Post date:** [August 1, 2018, 5:30pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/1 "2018-08-01T17:30:43Z")

</div>

I'm stuck installing the ece due to the following error:

```
elastic@ece1:~$ sudo bash elastic-cloud-enterprise.sh install
The UID or GID must not be smaller than 1000.

```

I have posted my "id" output below as well.

```
elastic@ece1:~$ id
uid=1000(elastic) gid=1000(elastic) groups=1000(elastic),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare),999(docker)

```

This is my second install attempt for ece. Both times I have started with a clean install and followed the instructions here: [https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-hosts.html#ece-configure-hosts-xenial](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-configure-hosts.html#ece-configure-hosts-xenial)

Any help is appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [August 1, 2018, 5:58pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/2 "2018-08-01T17:58:22Z")

</div>

Hi @Archness!

You should run the install script as the `elastic` user, not `root`, ie not using `sudo` ([https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing.html](https://www.elastic.co/guide/en/cloud-enterprise/current/ece-installing.html))

---

<div class="post-metadata">

**Author:** ![Archness](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Archness](https://discuss.elastic.co/u/Archness)\
**Post date:** [August 1, 2018, 6:03pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/3 "2018-08-01T18:03:49Z")

</div>

Thanks for the quick reply. When I followed the configure my own host, I created and mounted the /mnt/data folder.

Its now tossing me this error which is why I think I was trying to run it as sudo:

```
elastic@ece1:~$ bash elastic-cloud-enterprise.sh install
mkdir: cannot create directory ‘/mnt/data’: Permission denied
```

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [August 1, 2018, 6:06pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/4 "2018-08-01T18:06:53Z")

</div>

Did you definitely do this step?

```auto
sudo install -o $USER -g $USER -d -m 700 /mnt/data

```

(where `$USER` is `elastic`)

(EDIT: and can you check the perms of that dir regardless if you ran the above, eg maybe the command failed for some reason?)

Or if you did, are you definitely running the install as `elastic`?

If you're getting a permission denied, I _think_ one of the above 2 things must be not happening?

---

<div class="post-metadata">

**Author:** ![Archness](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Archness](https://discuss.elastic.co/u/Archness)\
**Post date:** [August 1, 2018, 7:49pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/5 "2018-08-01T19:49:20Z")

</div>

Thanks, I did run that but it didn't stick for some reason.

It stuck and now the installer is running. I am hitting one error with bootstrap.

```auto
Errors have caused Elastic Cloud Enterprise installation to fail
Bootstrap monitoring process did not exit as expected
Traceback (most recent call last):
  File "/elastic_cloud_apps/bootstrap-initiator/initiator.py", line 76, in <module>
    exitcode = monitor.logging_and_bootstrap_monitor(bootstrap_properties, enable_debug)
  File "/elastic_cloud_apps/bootstrap-initiator/bootstrap_initiator/monitor.py", line 25, in logging_and_bootstrap_monitor
    raise BootstrapMonitoringException('Bootstrap monitoring process did not exit as expected')
bootstrap_initiator.monitor.BootstrapMonitoringException: Bootstrap monitoring process did not exit as expected

```

I checked the log folder and couldn't find a log to check for additional details.

```
elastic@ece1:/mnt/data/elastic/logs/bootstrap-logs$ ll
total 0
drwxr-xr-x 1 elastic elastic 0 Aug 1 15:29 ./
drwxr-xr-x 1 elastic elastic 28 Aug 1 15:29 ../

```

When I check docker it show there are no running containers:

```
elastic@ece1:/mnt/data/elastic$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

```

Only the ECE Image is on the machine:  
elastic@ece1:~$ docker images  
REPOSITORY TAG IMAGE ID CREATED SIZE  
[docker.elastic.co/cloud-enterprise/elastic-cloud-enterprise](http://docker.elastic.co/cloud-enterprise/elastic-cloud-enterprise) 1.1.4 00b518b576ef 7 weeks ago 422.1 MB

---

<div class="post-metadata">

**Author:** ![Archness](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Archness](https://discuss.elastic.co/u/Archness)\
**Post date:** [August 1, 2018, 8:13pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/6 "2018-08-01T20:13:51Z")

</div>

I double checked the permissions on /mnt/data and did another run which produced the following error:

```
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/process.py", line 249, in _bootstrap
    self.run()
  File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/elastic_cloud_apps/bootstrap-initiator/bootstrap_initiator/logging.py", line 85, in monit or_bootstrap_log
    raise IOError("{0}/logs/bootstrap-logs/bootstrap.log doesn't exist after 2 mins of retrying".f ormat(bootstrap_properties['HOST_STORAGE_PATH']))
OSError: /mnt/data/elastic/logs/bootstrap-logs/bootstrap.log doesn't exist after 2 mins of retryin g
^CTraceback (most recent call last):
  File "/elastic_cloud_apps/bootstrap-initiator/initiator.py", line 76, in <module>
    exitcode = monitor.logging_and_bootstrap_monitor(bootstrap_properties, enable_debug)
  File "/elastic_cloud_apps/bootstrap-initiator/bootstrap_initiator/monitor.py", line 18, in logging_and_bootstrap_monitor
    sleep(5)
```

---

<div class="post-metadata">

**Author:** ![Archness](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Archness](https://discuss.elastic.co/u/Archness)\
**Post date:** [August 1, 2018, 8:20pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/7 "2018-08-01T20:20:25Z")

</div>

I might just need to delete the folder and reinstall docker. I'll give that a try later today.

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [August 1, 2018, 8:26pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/8 "2018-08-01T20:26:42Z")

</div>

@Archness, makes sense - my normal suggestion if perms of `/mnt/data` get messed up is to reinstall everything from scratch 🙂

---

<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:** [August 15, 2018, 8:26pm UTC](https://discuss.elastic.co/t/uid-gid-error-on-install/142633/9 "2018-08-15T20:26:45Z")

</div>

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