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

nginx fails: [::]:80 address family not supported by protocol #477

Open
schokotets opened this issue Oct 27, 2019 · 6 comments
Labels
4.x

Comments

@schokotets
Copy link

@schokotets schokotets commented Oct 27, 2019

Description of issue/question

Nginx fails to start on the Raspberry Pi 3B when only an IPv4 address is provided via LAN.
nginx [emerg] socker() [::]:80 failed (97: Address family not supported by protocol)

My Setup

I am using a Raspberry Pi 3B to run OpenMediaVault. My laptop shares its WiFi connection with the RasPi via Ethernet, but only provides an IPv4 address, causing the Raspberry Pi to not launch.

Manual Fix

Manually editing /etc/nginx/sites-enabled/openmediavault-webgui fixes the issue. I changed listen [::]:80 ipv6only=off; to listen 80;. I believe that this file is responsible and not triggering correctly or not supporting IPv4 only setups.

Versions report

openmediavvault 4.1.7 (Arrakis) raspberrypi tty1

@schokotets schokotets changed the title Address Family nginx fails: [::]:80 address family not supported by protocol Oct 27, 2019
@votdev

This comment has been minimized.

Copy link
Collaborator

@votdev votdev commented Oct 27, 2019

The problem here is surely that your system reports IPv6 is enabled but has some strange problems with it. Maybe disabling IPv6 in the kernel solves your problem. OMV works and behaves correctly, so there is no bug in OMV.

@votdev votdev added the 4.x label Oct 27, 2019
@woodongwong

This comment has been minimized.

Copy link

@woodongwong woodongwong commented Oct 28, 2019

same question

@woodongwong

This comment has been minimized.

Copy link

@woodongwong woodongwong commented Oct 28, 2019

When I try to execute the "omv_utils.is_ipv6_enabled" function, I get the following error:

UnboundLocalError: local variable 's' referenced before assignment

@votdev

This comment has been minimized.

Copy link
Collaborator

@votdev votdev commented Oct 28, 2019

When I try to execute the "omv_utils.is_ipv6_enabled" function, I get the following error:

UnboundLocalError: local variable 's' referenced before assignment

Will be fixed in openmediavault 5.0.11, see 005a184

@woodongwong

This comment has been minimized.

Copy link

@woodongwong woodongwong commented Oct 29, 2019

@votdev Executing socket.socket(socket.AF_INET6) in my Raspberry Pi 3B will get the following error:
[Errno 97] Address family not supported by protocol

But the execution on the pc is ok. I don't know about python.

@votdev

This comment has been minimized.

Copy link
Collaborator

@votdev votdev commented Oct 29, 2019

@votdev Executing socket.socket(socket.AF_INET6) in my Raspberry Pi 3B will get the following error:
[Errno 97] Address family not supported by protocol

But the execution on the pc is ok. I don't know about python.

Fixed, see b10a578.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.