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

[BUG] nginx: [emerg] "stream" directive is not allowed #318

Closed
1 task done
relains opened this issue Jan 22, 2023 · 2 comments
Closed
1 task done

[BUG] nginx: [emerg] "stream" directive is not allowed #318

relains opened this issue Jan 22, 2023 · 2 comments

Comments

@relains
Copy link

relains commented Jan 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After update to version [1.32.0-ls173] (problem occurs also in [2.2.0-ls174]) when I ran ten container I get following entry in logs:

nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3

Reverting back to [1.32.0-ls172] solves the issue.

Expected Behavior

No response

Steps To Reproduce

Run the container afeter update.

Environment

- OS: UNRAID 6.11.5
- How docker service was installed: Through community apps

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='swag'
  --net='bridge'
  --privileged=true
  -e TZ="Europe/Warsaw"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="UNRAID"
  -e HOST_CONTAINERNAME="swag"
  -e 'EMAIL'='stepienraf@gmail.com'
  -e 'URL'='relains.ovh'
  -e 'SUBDOMAINS'='cloud,ha,office,xibo,aptekaolmed,drogeriaolmed,telemedycyna,overseerr,crafty,mattermost,collabora'
  -e 'ONLY_SUBDOMAINS'='false'
  -e 'VALIDATION'='dns'
  -e 'DNSPLUGIN'='cloudflare'
  -e 'EXTRA_DOMAINS'=''
  -e 'STAGING'='false'
  -e 'DUCKDNSTOKEN'=''
  -e 'PROPAGATION'='30'
  -e 'DOCKER_MODS'='linuxserver/mods:swag-auto-reload|linuxserver/mods:swag-cloudflare-real-ip|linuxserver/mods:swag-dashboard'
  -e 'PUID'='99'
  -e 'PGID'='100'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:81]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver-ls-logo.png'
  -p '81:80/tcp'
  -p '444:443/tcp'
  -p '82:81/tcp'
  -v '/mnt/user/appdata/swag':'/config':'rw'
  --cap-add=NET_ADMIN 'linuxserver/swag:1.32.0-ls173'
1a61c94f4328205bab4fdfefcb1c62685666e67ac446fb16e38900e10f12ef38

Container logs

-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

using keys found in /config/keys
Variables set:
PUID=99
PGID=100
TZ=Europe/Warsaw
URL=relains.ovh
SUBDOMAINS=cloud,ha,office,xibo,aptekaolmed,drogeriaolmed,telemedycyna,overseerr,crafty,mattermost,collabora
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=cloudflare
EMAIL=stepienraf@gmail.com
STAGING=false

Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Sub-domains processed are:  -d cloud.relains.ovh -d ha.relains.ovh -d office.relains.ovh -d xibo.relains.ovh -d aptekaolmed.relains.ovh -d drogeriaolmed.relains.ovh -d telemedycyna.relains.ovh -d overseerr.relains.ovh -d crafty.relains.ovh -d mattermost.relains.ovh -d collabora.relains.ovh
E-mail address entered: stepienraf@gmail.com
dns validation via cloudflare 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).
/config/nginx/geoip2.conf exists.
        Please migrate to https://github.com/linuxserver/docker-mods/tree/swag-maxmind
/config/nginx/ldap.conf exists.
        Please apply any customizations to /config/nginx/ldap-server.conf
        Ensure your configs are updated and remove /config/nginx/ldap.conf
        If you do not use this config, simply remove it.
**** 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. ****
/config/nginx/nginx.conf
/config/nginx/ssl.conf
/config/nginx/proxy.conf
/config/nginx/ldap-server.conf
/config/nginx/authelia-server.conf
/config/nginx/authelia-location.conf
/config/nginx/site-confs/default.conf
/config/nginx/proxy-confs/youtube-dl.subfolder.conf
/config/nginx/proxy-confs/sonarr.subfolder.conf
/config/nginx/proxy-confs/radarr.subfolder.conf
/config/nginx/proxy-confs/phpmyadmin.subdomain.conf
/config/nginx/proxy-confs/nextcloud.subdomain.conf
/config/nginx/proxy-confs/homeassistant.subdomain.conf

**** Applying the SWAG dashboard mod... ****
**** Installing/updating goaccess ****
**** Adding swag-auto-reload deps to package install list ****
**** libmaxminddb already installed, skipping ****
**** Applied the SWAG dashboard mod ****
[mod-init] **** Installing all mod packages ****
fetch http://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
(1/2) Installing inotify-tools-libs (3.22.6.0-r0)
(2/2) Installing inotify-tools (3.22.6.0-r0)
Executing busybox-1.35.0-r29.trigger
OK: 206 MiB in 206 packages
[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.
Server ready
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/conf.d/stream.conf:3
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@j0nnymoe
Copy link
Member

Dupe #316

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

No branches or pull requests

2 participants