Postinstall fails with Docker

Hi !

In order to get Yunohost running alongside and isolated from other applications, I am trying to run it with Docker.

On a Debian (Jessie) system, I have installed Docker and downloaded the Yunohost image.

I can run the container but I have some problems with the post-installation.
When I run yunohost tools postinstall in command-line, I have this error :

Installing YunoHost...
Generating a 2048 bit RSA private key
..+++
..............................+++
writing new private key to '/usr/share/yunohost/yunohost-config/ssl/yunoCA/ca/cakey.pem'
-----
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Error: Unable to reach LDAP server

I don’t know how to solve this problem. If anyone has any idea… :wink:

Thanks.

Guillaume

can you check that ldap is running with service slapd status?

Hi,

Indeed, the slapd service was not running. It seems to be a problem of memory consumption with slapd in a docker container : https://github.com/docker/docker/issues/8231

As mentionned on the GitHub issue page, I’ll try to work around this problem with ulimit -n 1024.

The ulimit -n 1024 didn’t solve the problem. I don’t know how to solve this.

According to the thread on GitHub, I understand that the problem occurs with Docker running on a virtual machine.

Maybe it would work on a physical machine, but I don’t want to reinstall my server from scratch until I’m not shure I can get Yunohost running on Docker with all my data.

So, if anyone has any idea to fix this…