leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
520 stars 166 forks source link

Docker - Nginx not start - 97: Address family not supported by protocol #262

Open j-clavoie opened 6 months ago

j-clavoie commented 6 months ago

Hello,

I tried to install phpLDAPAdmin in a Docker. I'm not able to create the "App key", the ngix server doesn't want to start.

I follow the procedure on this page: https://github.com/leenooks/phpLDAPadmin/wiki/Docker-Container

But at the last step "* Starting NGINX..." I get this error message: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

My Docker is running under: Ubuntu 22.04.4 LTS IPv6 is disabled on my system. For many reasons I can only use IPv4.

It seems the issue is that Nginx's configuration requires to use IPv6.

There is a way to bypass this issue without activate IPv6 on my system?

Thanks

Mateusz-Grzelinski commented 6 months ago

it seems to be docker or nginx issue. I am running phpldapadmin 1.2.6.7 on docker and nginx and it runs ok. Those are my guesses:

TLDR: disable nginx ipv6 support, or enable docker ipv6 support

bendem commented 6 months ago

I concur, sounds like you are trying to bind to an ipv6 while not having one. Nothing to do with PLA

leenooks commented 6 months ago

Duplicate #242

j-clavoie commented 6 months ago

Hello, I know the issue is related to IPv6 disabled. I think the container should start even if we don't use IPv6. I'm quite new with docker image but i thought it's not so hard to add an protocol validation and use the appropriate Nginx configuration (IPv4 or IPv6).

But thank you all for you replies, I rely appreciate. I'll try to find a workaround.

Thanks