Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable ipv6 in 2.1.1 and above #312

Closed
axiom00 opened this issue Mar 1, 2020 · 9 comments
Closed

Option to disable ipv6 in 2.1.1 and above #312

axiom00 opened this issue Mar 1, 2020 · 9 comments

Comments

@axiom00
Copy link

axiom00 commented Mar 1, 2020

Updated to the latest 2.1.1 and npm container no longer starts. Following error appears multiple time in the log.
80 failed (97: Address family not supported by protocol)

Researched the issue and it seems to be related to ipv6 being disabled and in my case ipv6 is turned off on my host.

As a temporary fix, I re-enable ipv6 and npm started no problem.

@asadhaider
Copy link

I also had this problem, have no need for ipv6 on my network so its' disabled and got the same error when trying to deploy Nginx Proxy Manager. Fixed it by enabling ipv6 on the host again.

@vsc55
Copy link

vsc55 commented Apr 6, 2020

Hi,
I have had the same problem my solution was to modify the nginx configuration in the container to disable ipv6.

Process:

  1. Check that the container is started.
  2. We connect to the container:
    # docker exec -it nginx-proxy-manager /bin/bash
    My container name is "nginx-proxy-manager", you can get container list with:
    docker container list -a
  3. We install nano:
    #apk add nano
  4. We disable ipv6:
    #cd /etc/nginx/conf.d/
    # nano default.conf
    We comment lines:
    listen [::]: 80;
    listen [::]: 443 ssl;
    #nano production.conf
    We comment lines:
    listen [::]: 81 default;

With this, it would work again without ipv6 support.

@jc21 jc21 closed this as completed in bdb591a Apr 7, 2020
@axiom00
Copy link
Author

axiom00 commented Apr 7, 2020

@jc21 Thank you for implementing the option to disable ipv6. Latest v2.2.2 works perfectly with the host's ipv6 disabled.

@jc21
Copy link
Member

jc21 commented Apr 7, 2020

Glad to hear :)

@poudenes
Copy link

4. nano production.conf

Hi,
I have had the same problem my solution was to modify the nginx configuration in the container to disable ipv6.

Process:

  1. Check that the container is started.
  2. We connect to the container:
    # docker exec -it nginx-proxy-manager /bin/bash
    My container name is "nginx-proxy-manager", you can get container list with:
    docker container list -a
  3. We install nano:
    #apk add nano
  4. We disable ipv6:
    #cd /etc/nginx/conf.d/
    # nano default.conf
    We comment lines:
    listen [::]: 80;
    listen [::]: 443 ssl;
    #nano production.conf
    We comment lines:
    listen [::]: 81 default;

With this, it would work again without ipv6 support.

Maybe im stupid.
What to do after this?

I restart the Add-On inside HA, but then the old values are back.

@vsc55
Copy link

vsc55 commented May 31, 2020

Hi @poudenes,
With the latest versions there is no need to do anything.
An option has been added in the docker to disable IPv6.
You have to use the following "ENV":
DISABLE_IPV6=true

https://github.com/jc21/nginx-proxy-manager/blob/546f8622360747e85ec07306ddf7ec0eef35e177/docker/docker-compose.dev.yml#L18

@poudenes
Copy link

Hi @poudenes,
With the latest versions there is no need to do anything.
An option has been added in the docker to disable IPv6.
You have to use the following "ENV":
DISABLE_IPV6=true

https://github.com/jc21/nginx-proxy-manager/blob/546f8622360747e85ec07306ddf7ec0eef35e177/docker/docker-compose.dev.yml#L18

Thanks. I have installed this all as Add-On in HA. But let me look into it

@webspes
Copy link

webspes commented May 4, 2023

Hi @poudenes,
With the latest versions there is no need to do anything.
An option has been added in the docker to disable IPv6.
You have to use the following "ENV":
DISABLE_IPV6=true
https://github.com/jc21/nginx-proxy-manager/blob/546f8622360747e85ec07306ddf7ec0eef35e177/docker/docker-compose.dev.yml#L18

Thanks. I have installed this all as Add-On in HA. But let me look into it

This options seems to no longer work, not supported key during build.

@webspes
Copy link

webspes commented May 4, 2023

  1. nano production.conf

Hi,
I have had the same problem my solution was to modify the nginx configuration in the container to disable ipv6.
Process:

  1. Check that the container is started.
  2. We connect to the container:
    # docker exec -it nginx-proxy-manager /bin/bash
    My container name is "nginx-proxy-manager", you can get container list with:
    docker container list -a
  3. We install nano:
    #apk add nano
  4. We disable ipv6:
    #cd /etc/nginx/conf.d/
    # nano default.conf
    We comment lines:
    listen [::]: 80;
    listen [::]: 443 ssl;
    #nano production.conf
    We comment lines:
    listen [::]: 81 default;

With this, it would work again without ipv6 support.

Maybe im stupid. What to do after this?

I restart the Add-On inside HA, but then the old values are back.

Don't restart the app, just enter "nginx -s reload". I found out after an hour of searching :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants