linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
725 stars 105 forks source link

Nginx can not support IPV6? #199

Closed jyxgood closed 4 months ago

jyxgood commented 7 months ago

Is there an existing issue for this?

Current Behavior

I try to deploy on my web container, there is some error message with the proxy. It seems to be nginx can not support Ipv6

image

Expected Behavior

No response

Steps To Reproduce

railway.app service

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

railway.app service

Container logs

nginx: [emerg] invalid port in resolver "fd12::10" in /config/nginx/resolver.conf:3

nginx: [emerg] invalid port in resolver "fd12::10" in /config/nginx/resolver.conf:3

nginx: [emerg] invalid port in resolver "fd12::10" in /config/nginx/resolver.conf:3
github-actions[bot] commented 7 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

aptalca commented 7 months ago

That's an issue with our baseimage. It reads the resolv.conf and interprets it for Nginx. It's supposed to ignore ipv6 entries but it seems to have failed in this case.

This is the code responsible: https://github.com/linuxserver/docker-baseimage-alpine-nginx/blob/master/root/etc/s6-overlay/s6-rc.d/init-nginx/run#L38-L53

Please post the contents of your /etc/resolv.conf from inside the container so we can try and mitigate.

jyxgood commented 7 months ago

That's an issue with our baseimage. It reads the resolv.conf and interprets it for Nginx. It's supposed to ignore ipv6 entries but it seems to have failed in this case.

This is the code responsible: https://github.com/linuxserver/docker-baseimage-alpine-nginx/blob/master/root/etc/s6-overlay/s6-rc.d/init-nginx/run#L38-L53

Please post the contents of your /etc/resolv.conf from inside the container so we can try and mitigate.

the support of railway.app told me they don't have ssh or ftp functional to enter the container. I think the problem may be they use only IPV6 nameserver.

aptalca commented 7 months ago

?? docker exec -it bookstack bash gets you into the container terminal

Edit: oh you mean you can't get ssh on the host? I have no idea what railway.app is

LinuxServer-CI commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 months ago

This issue is locked due to inactivity