Address already in use in service

docker

#1

Hi,

I’m using CircleCI 2.0 workflow with two services to run func tests : openldap and postgres. Since a few days, openldap fails to bootstrap with Address already in use error.

Last successful build is https://circleci.com/gh/dalibo/ldap2pg/4289
An example of failure : https://circleci.com/gh/dalibo/ldap2pg/4363

The container starts a slapd instance for setup (see https://github.com/osixia/docker-openldap/blob/stable/image/service/slapd/startup.sh#L196 ) with fails with:

5a4ce46d daemon: listen(ldap://localhost, 5) failed errno=98 (Address already in use)

I tried various workaround at https://github.com/dalibo/ldap2pg/pull/154 and didn’t find any solution. Do you have some clue ?

Happy new year !

Regards,
Étienne


#2

It looks like you have an ldap container running and you then try to start an ldap service. That’s going to be a port collision.

You could always define the name of the ldap container so you can overload ports:
https://circleci.com/docs/2.0/configuration-reference/#docker--machine--macosexecutor


#3

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