Closed bigbangus closed 1 year ago
The quick fix is to find
listen 443 ssl;
listen [::]:443 ssl;
in all of your active conf files and replace it with
listen 443 ssl http2;
listen [::]:443 ssl http2;
We will be releasing updated proxy conf templates shortly, but we won't be automatically replacing user confs. The logs will indicate which confs have updated samples though.
Is this also causing my SWAG Dashboard to no longer show proxy status despite them working?
Also using the fix above, it does not fix all my warnings. Some of the proxy-confs like guac and deluge still show log warnings despite adding http2 to the server listen 443 lines as above.
I also changed it to:
listen 443 ssl http2;
listen [::]:443 ssl http2;
but still see warnings:
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/emby.subdomain.conf:11 nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/emby.subdomain.conf:12
@OnkelBuTscH same, even after pulling latest version and updating all templates to 5/31/2023 version.
The quick fix is to find
listen 443 ssl; listen [::]:443 ssl;
in all of your active conf files and replace it with
listen 443 ssl http2; listen [::]:443 ssl http2;
We will be releasing updated proxy conf templates shortly, but we won't be automatically replacing user confs. The logs will indicate which confs have updated samples though.
Additional emphasis:
we won't be automatically replacing user confs
Replacing the confs will have to be a manual process. Updating the container will NOT replace anything for you, but the container logs will tell you which files need to be updated.
Yes, I am aware of that. I have changed the subdomain.conf files mentioned in the log. But still get the warning. Even if I just use the new sample templates without any manual changes I still get this warning.
The applications all work but the warning is still in the container log.
Wanted to join the conversation. I went through and changed each conf file and I still receive this warning in my logs. I may go through and reinstall the container and redo the conf files and see if that helped.
post your logs and mentioned confs
I hope this is appropriate for sending the logs. I am not familiar with what information they contain but I did see an access token so I hesitated.
On Thu, Jun 8, 2023 at 2:41 PM aptalca @.***> wrote:
post your logs and mentioned confs
— Reply to this email directly, view it on GitHub https://github.com/linuxserver/docker-swag/issues/377#issuecomment-1583229362, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO2JWJHSTEJ5LLYAZK7H6LLXKITH3ANCNFSM6AAAAAAYVO7TKE . You are receiving this because you commented.Message ID: @.***>
Same issue here, all proxies updated, yet I’m still getting the warnings
plus 1, all proxies configs updated, but for just one configuration I still get the warning in the log. I think this issue should be reopen
for every proxy conf that is giving an error, change
server { listen 443 ssl; listen [::]:443 ssl;
to
server { listen 443 ssl http2; listen [::]:443 ssl http2;
in the proxy conf
this is caused by the default conf having a different proto than the proxyconf thus the "protocol is being redifined error". addressing the hodgepodge of different proxy confs settings will fix this for folks in the future.
That sounds good, thank you!
I've updated all proxy.conf's and still get the message as well. Anyone know if these warnings actually affect the server/services? Or can they be ignored?
It is safe to ignore, but he's the solution to fix the problem correctly https://github.com/linuxserver/docker-swag/issues/377#issuecomment-1570995227
@nemchik
Thanks, but I still get it. Here (for example) is my adguard .conf:
## Version 2023/05/31
# make sure that your adguard container is named adguard
# make sure that your dns has a cname set for adguard
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name adguard.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# enable for ldap auth (requires ldap-location.conf in the location block)
#include /config/nginx/ldap-server.conf;
# enable for Authelia (requires authelia-location.conf in the location block)
#include /config/nginx/authelia-server.conf;
# enable for Authentik (requires authentik-location.conf in the location block)
#include /config/nginx/authentik-server.conf;
location / {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
# enable for ldap auth (requires ldap-server.conf in the server block)
#include /config/nginx/ldap-location.conf;
# enable for Authelia (requires authelia-server.conf in the server block)
#include /config/nginx/authelia-location.conf;
# enable for Authentik (requires authentik-server.conf in the server block)
#include /config/nginx/authentik-location.conf;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app adguard;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /control {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app adguard;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
location /dns-query {
# to properly use this please set `allow_unencrypted_doh: true` and `force_https: false` in adguard
# see https://github.com/AdguardTeam/AdGuardHome/wiki/Configuration#configuration-file
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app adguard;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
And what swag is showing me in the log:
8/16/2023 8:03:36 PM
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/subdomain/adguard.subdomain.conf:6
stderr
08/16/2023 8:03:36 PM
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/subdomain/adguard.subdomain.conf:7
Then there is another file causing the issue. Check your container logs for a message about outdated configs.
I have the same problem :
Complete SWAG logs at container startup :
[mod-init] Adding linuxserver/mods:swag-dashboard to container
[mod-init] Downloading linuxserver/mods:swag-dashboard from lscr.io
[mod-init] Installing linuxserver/mods:swag-dashboard
[mod-init] linuxserver/mods:swag-dashboard applied to container
[mod-init] Adding gilbn/theme.park:swag to container
[mod-init] Downloading gilbn/theme.park:swag from ghcr.io
[mod-init] Installing gilbn/theme.park:swag
[mod-init] gilbn/theme.park:swag applied to container
[mod-init] Adding linuxserver/mods:swag-auto-reload to container
[mod-init] Downloading linuxserver/mods:swag-auto-reload from lscr.io
[mod-init] Installing linuxserver/mods:swag-auto-reload
[mod-init] linuxserver/mods:swag-auto-reload applied to container
[mod-init] Adding linuxserver/mods:swag-crowdsec to container
[mod-init] Downloading linuxserver/mods:swag-crowdsec from lscr.io
[mod-init] Installing linuxserver/mods:swag-crowdsec
[mod-init] linuxserver/mods:swag-crowdsec applied to container
[mod-init] Adding linuxserver/mods:swag-maxmind to container
[mod-init] Downloading linuxserver/mods:swag-maxmind from lscr.io
[mod-init] Installing linuxserver/mods:swag-maxmind
[mod-init] linuxserver/mods:swag-maxmind applied to container
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
using keys found in /config/keys
Variables set:
PUID=1000
PGID=1000
TZ=Europe/Brussels
URL=ndd.tld
SUBDOMAINS=wildcard
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=zerossl
DNSPLUGIN=ovh
EMAIL=mail@ndd.tld
STAGING=false
ZeroSSL is selected as the cert provider, registering cert with mail@ndd.tld
SUBDOMAINS entered, processing
Wildcard cert for ndd.tld will be requested
E-mail address entered: mail@ndd.tld
dns validation via ovh plugin is selected
Certificate exists; parameters unchanged; starting nginx
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
**** The following active confs have different version dates than the samples that are shipped. ****
**** This may be due to user customization or an update to the samples. ****
**** You should compare the following files to the samples in the same folder and update them. ****
**** Use the link at the top of the file to view the changelog. ****
┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐
│ old date │ new date │ path │
├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤
│ │ 2023-05-31 │ /config/nginx/proxy-confs/themepark.subdomain.conf │
└────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘
**** Applying the SWAG dashboard mod... ****
**** Configuring CrowdSec nginx Bouncer ****
**** adding libmaxminddb to package install list ****
**** Adding goaccess to package install list ****
**** Adding swag-auto-reload deps to package install list ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
**** Successfully configured CrowdSec nginx Bouncer v1.0.5 ****
[mod-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/22) Installing gettext-envsubst (0.21.1-r7)
(2/22) Installing libgomp (12.2.1_git20220924-r10)
(3/22) Installing gettext-libs (0.21.1-r7)
(4/22) Installing gettext (0.21.1-r7)
(5/22) Installing goaccess (1.7.2-r1)
(6/22) Installing inotify-tools-libs (3.22.6.0-r2)
(7/22) Installing inotify-tools (3.22.6.0-r2)
(8/22) Installing libmaxminddb (1.7.1-r1)
(9/22) Installing lua5.1-libs (5.1.5-r12)
(10/22) Installing lua5.1 (5.1.5-r12)
(11/22) Installing lua-resty-http (0.17.1-r0)
(12/22) Installing lua-sec (1.3.1-r1)
(13/22) Installing lua5.1-socket (3.1.0-r1)
(14/22) Installing lua5.1-sec (1.3.1-r1)
(15/22) Installing lua5.1-cjson (2.1.0-r11)
(16/22) Installing luajit (2.1_p20230410-r1)
(17/22) Installing lua-resty-lrucache (0.13-r1)
(18/22) Installing lua-resty-core (0.1.26-r0)
(19/22) Installing nginx-mod-http-lua (1.24.0-r6)
(20/22) Installing serf (1.3.10-r0)
(21/22) Installing subversion-libs (1.14.2-r10)
(22/22) Installing subversion (1.14.2-r10)
Executing subversion-1.14.2-r10.pre-install
Executing busybox-1.36.1-r2.trigger
OK: 208 MiB in 231 packages
-------------------------
| SWAG theme.park Mod |
-------------------------
Applying the maxmind mod...
Variables set:
'TP_BRANCH'=
No branch set, defaulting to live
Applied the maxmind mod
[custom-init] No custom files found, skipping...
MOD Auto-reload: Watching the following files/folders for changes (excluding .sample and .md files):
/config/nginx
[ls.io-init] done.
**** Disabling fail2ban Service ****
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/apprise-api.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/apprise-api.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/baikal.subdomain.conf:4
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/baikal.subdomain.conf:5
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/bitwarden.subdomain.conf:7
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/bitwarden.subdomain.conf:8
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/borgwarehouse.subdomain.conf:5
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/borgwarehouse.subdomain.conf:6
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/calibre-web.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/calibre-web.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/drive.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/drive.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/grafana.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/grafana.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/iris.subdomain.conf:4
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/iris.subdomain.conf:5
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/jellyseerr.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/jellyseerr.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/pfsense.subdomain.conf:5
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/pfsense.subdomain.conf:6
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/portainer.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/portainer.subdomain.conf:7
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/snapcast.subdomain.conf:4
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/snapcast.subdomain.conf:5
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/unifi-controller.subdomain.conf:8
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/unifi-controller.subdomain.conf:9
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/valheim-supervisor.subdomain.conf:4
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/valheim-supervisor.subdomain.conf:5
nginx: [warn] protocol options redefined for 0.0.0.0:443 in /config/nginx/proxy-confs/zigbee2mqtt.subdomain.conf:6
nginx: [warn] protocol options redefined for [::]:443 in /config/nginx/proxy-confs/zigbee2mqtt.subdomain.conf:7
nginx: [alert] [lua] crowdsec_nginx.conf:4):8: [Crowdsec] Initialisation done
All thoses files have the http2 directive. If I diff these files :
and same for all other files, nothing related to the http2 missing or whatever.
Diff is empty if I try to compare default.conf to default.conf.sample
I'm using SWAG version 2.6.0-ls232 (latest as of now)
Bash into the container (ex: docker exec -it swag bash
) then run
grep -rnw '/config/nginx/' -e ':443 ssl;'
It should tell you which file is missing the http2 directive (assuming it follows the format of the other confs)
Thanks @nemchik , I think that might've helped me solve it. :)
I think it was my dashboard.subdomain.conf
that was the only one left w/out the http2.
Is there an existing issue for this?
Current Behavior
Since the latest update 2.6.0-ls214 as of 5/31/2023 I get this in the log:
this is my authelia.subdomain.conf file:
Expected Behavior
Not show those messages
Steps To Reproduce
After update
Environment
CPU architecture
x86-64
Docker creation
Container logs