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

Error on fresh install: [::]:80 failed (97: Address family not supported by protocol) #148

Open
IronTooch opened this issue Dec 24, 2024 · 0 comments

Comments

@IronTooch
Copy link

So this error occurs on a fresh install. Ubuntu Server 24.04 LTS. The install appears to go well, but then the webpage is unavailable when the install is complete. Looking at docker ps, it turned out that the nginx container was in a constant restart cycle. Looking at the docker logs for the nginx container, the following error shows up:

[emerg] 1#1: socket() [::]:80 failed (97: Address family not supported by protocol)

Turns out this is related to having IPv6 disabled on the server. This line in the nginx.conf throws up.

The quick and dirty fix at the moment is to go to the conf.d folder, and change the config. In Ubuntu, that's /home/labca/nginx_data/conf.d/labca.conf, and make the following changes:

server {
    listen 80 default_server;
#    listen [::]:80 default_server ipv6only=off;

...

server {
    listen 443 default_server ssl;
#    listen [::]:443 default_server ssl ipv6only=on;

Once that's done, a simple service docker restart and the container comes up. Wanted to put this here for any home-labbers who have IPv6 disabled for whatever reason.

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

1 participant