GithubHelp home page GithubHelp logo

IPv6 about docker-swag HOT 13 CLOSED

linuxserver avatar linuxserver commented on May 30, 2024
IPv6

from docker-swag.

Comments (13)

glensc avatar glensc commented on May 30, 2024 2

Disagree with @j0nnymoe comment. I have ipv6 disabled for ages, and now only this container fails to start:

swag    | nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)                       

from docker-swag.

glensc avatar glensc commented on May 30, 2024 2

The fix is to remove ipv6 listen lines.

@nemchik perhaps you need to test from scratch config dir, as you may already have modified config in place.

diff --git a/config/nginx/site-confs/default b/config/nginx/site-confs/default
index 6d76de6..980e5be 100644
--- a/config/nginx/site-confs/default
+++ b/config/nginx/site-confs/default
@@ -5,7 +5,6 @@ error_page 502 /502.html;
 # redirect all traffic to https
 server {
        listen 80 default_server;
-       listen [::]:80 default_server;
        server_name _;
        return 301 https://$host$request_uri;
 }
@@ -13,7 +12,6 @@ server {
 # main server block
 server {
        listen 443 ssl http2 default_server;
-       listen [::]:443 ssl http2 default_server;

        root /config/www;
        index index.html index.htm index.php;
(END)

from docker-swag.

j0nnymoe avatar j0nnymoe commented on May 30, 2024 1

@glensc well no - as per one of your other comments about libseccomp, your container is failing due to that, not ipv6

from docker-swag.

glensc avatar glensc commented on May 30, 2024 1

@j0nnymoe posted: #92 (comment)

from docker-swag.

github-actions avatar github-actions commented on May 30, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

from docker-swag.

Roxedus avatar Roxedus commented on May 30, 2024

How is this a container issue?

from docker-swag.

gastonMM avatar gastonMM commented on May 30, 2024

sorry, yes, in docker

from docker-swag.

gastonMM avatar gastonMM commented on May 30, 2024

in ubuntu server 20.04, in grub I put ipv6.disable = 1:

this removes IPv6 from Ubuntu. and I start to have the error
(97: address family not supported by protocol)
in the container log

from docker-swag.

j0nnymoe avatar j0nnymoe commented on May 30, 2024

Disabling ipv6 on the host causes problems with docker itself, not the container. This isn't a container issue.

from docker-swag.

nemchik avatar nemchik commented on May 30, 2024

I can confirm i'm running the latest image pulled as of 4am CST and my system has ipv6 disabled and I do not have issues.

from docker-swag.

glensc avatar glensc commented on May 30, 2024

@j0nnymoe no. the ipv6 errors are still there. and due the repeat interval I would say it's retried every 1 second

glen@acai:~/scm/swag$ docker-compose up -d
Starting swag ... done

glen@acai:~/scm/swag$ docker-compose logs --tail=20 -t
Attaching to swag                                                                                              
swag    | 2021-02-20T07:44:23.261374104Z [services.d] starting services
swag    | 2021-02-20T07:44:23.287080938Z [services.d] done.
swag    | 2021-02-20T07:44:23.413942329Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)
swag    | 2021-02-20T07:44:24.013937160Z Server ready
swag    | 2021-02-20T07:44:24.382779503Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)
swag    | 2021-02-20T07:44:25.441645760Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)
swag    | 2021-02-20T07:44:26.449157126Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)
swag    | 2021-02-20T07:44:27.449683444Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)
swag    | 2021-02-20T07:44:28.445631179Z nginx: [emerg] socket() [::]:80 failed (97: Address family not support
ed by protocol)

and the service (nginx stays down), connection refused.

glen@acai:~/scm/swag$ curl localhost
curl: (56) Recv failure: Connection reset by peer


6 glen@acai:~/scm/swag$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

It's really connection refused from application point, but docker port forwarding makes error appear as connection reset.

glen@acai:~/scm/swag$ docker-compose exec swag netstat -nat|grep LISTEN
tcp        0      0 127.0.0.11:34147        0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN
glen@acai:~/scm/swag$

ipv6 is disabled via kernel commandline here;

glen@acai:~/scm/swag$ cat /proc/cmdline
... ipv6.disable=1

from docker-swag.

nemchik avatar nemchik commented on May 30, 2024

The fix is to remove ipv6 listen lines.

@nemchik perhaps you need to test from scratch config dir, as you may already have modified config in place.

diff --git a/config/nginx/site-confs/default b/config/nginx/site-confs/default
index 6d76de6..980e5be 100644
--- a/config/nginx/site-confs/default
+++ b/config/nginx/site-confs/default
@@ -5,7 +5,6 @@ error_page 502 /502.html;
 # redirect all traffic to https
 server {
        listen 80 default_server;
-       listen [::]:80 default_server;
        server_name _;
        return 301 https://$host$request_uri;
 }
@@ -13,7 +12,6 @@ server {
 # main server block
 server {
        listen 443 ssl http2 default_server;
-       listen [::]:443 ssl http2 default_server;

        root /config/www;
        index index.html index.htm index.php;
(END)

This is not required. I am using the stock configs that include these lines. I run swag on a system in my lan and on a vps, neither have ipv6, both using the same config files which include the listen lines, neither one has any issues like you're mentioning.

Would you please post your compose file here so we can have a look at how you've got that set?

from docker-swag.

j0nnymoe avatar j0nnymoe commented on May 30, 2024

In fact @glensc please open a new issue posting the information we request so we can track it correctly rather than using an old issue. Thanks.

from docker-swag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.