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
Automatically generated nginx resolver setting is invalid when /etc/resolv.conf contains IPv6 addresses #1437
Comments
What environment is that? |
Do I see it right that this has not made it into the stable release yet? |
The commit has been in 9 stable release, since 8044. |
Ah, I got confused since I didn't see it in the release notes and the commit in the pull request didn't show any branches/commits (it seems that the pull request doesn't contain the same commit as the master branch). Anyways, I am running into this error message with the current
Which results in the following nginx config:
This results in the following error message:
I have found an nginx issue that might explain this: https://trac.nginx.org/nginx/ticket/2509 It seems like the /etc/resolv.conf file inside the container is the same as on my system, so as a workaround I guess I have to investigate how that address ends up there in the first place and get rid of it. |
Looks like it doesn't like the scope ID. I'd take a PR which filters those addresses while Nginx fixes it. If you want to take a crack at it, just ignore the addresses with a % in them. |
Hi,
the code for generating the nginx resolver setting when the setting is not explicitly specified can be found here:
docker-jitsi-meet/web/rootfs/etc/cont-init.d/10-config
Line 68 in 53b2654
When the
/etc/resolv.conf
contains IPv6 addresses, the resulting config snippet looks as follows:This results in the following error, leading to nginx not being able to start:
According to the documentation IPv6 resolvers must be specified by surrounding the addresses with brackets: https://nginx.org/en/docs/http/ngx_http_core_module.html#resolver
When manually changing the setting to the following, nginx starts up normally
The text was updated successfully, but these errors were encountered: