Comments (13)
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.
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.
@glensc well no - as per one of your other comments about libseccomp, your container is failing due to that, not ipv6
from docker-swag.
@j0nnymoe posted: #92 (comment)
from docker-swag.
Thanks for opening your first issue here! Be sure to follow the issue template!
from docker-swag.
How is this a container issue?
from docker-swag.
sorry, yes, in docker
from docker-swag.
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.
Disabling ipv6 on the host causes problems with docker itself, not the container. This isn't a container issue.
from docker-swag.
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.
@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.
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.
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)
- [BUG] SWAG dashboard: blank page HOT 1
- [FEAT] Add Tailscale as a DNS Plugin HOT 3
- [FEAT] install njs scripting language HOT 5
- [FEAT] Disable Copying Defaults/Samples Via Environment Variable HOT 2
- [BUG] no more logrotate with access.log HOT 3
- [FEAT] ngx_http_v3_module HOT 4
- [FEAT] Run swag on testing (development) environment HOT 5
- [FEAT] Date filtering for the Dashboard HOT 2
- [BUG] Dashboard - Cleaning up resources... HOT 3
- [BUG] No ASN stats HOT 2
- [FEAT] Add Dynu back to SWAG HOT 1
- DNSPLUGIN for hostido.pl HOT 10
- [BUG] 2.10.0 - Hangs at Please set the DNSPLUGIN variable to one of the following: HOT 9
- [FEAT] add ddns support HOT 2
- Suchen Sie die letzte Version mit php 7.4. Vorzugsweise Version 7.4.33 HOT 3
- [BUG] directadmin plugin: ValueError: too many values to unpack HOT 13
- [BUG] Swag-Cloudflare-STUCK HOT 8
- [BUG] IPs are banned but can still access the server/apps HOT 3
- [FEAT] Specify RSA Key Size HOT 3
- [BUG] fail2ban-client restart triggers loop HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-swag.