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

Avoid to install or edit nginx #617

Open
amlopin opened this issue Mar 1, 2023 · 1 comment
Open

Avoid to install or edit nginx #617

amlopin opened this issue Mar 1, 2023 · 1 comment

Comments

@amlopin
Copy link

amlopin commented Mar 1, 2023

Hi all

I had a issue a long ago and it was resolved by changing:

sudo nano /etc/nginx/sites-enabled/default
#listen [::]:80;
#listen [::]:443 ssl http2 default_server;
sudo /etc/init.d/nginx restart

#579

The problem now it is I am reinstalling the script in the previous install, but when I execute the script, it removes the "#" in the default file. So the issue is back and I can avoid it as before.

Is there any way I can avoid this? I tried to edit the script but it fails and now I get the following error all the time:

Installing nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

If I put back the "#" nginx service is running again, but it is not configured, so rutorrent is not starting. Rtorrent is running but not rutorrent.

@amlopin
Copy link
Author

amlopin commented Mar 2, 2023

Hi all,

According with "journalctl -xe" the issue is "nginx[29146]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)"
So, nginx is trying to start on IPv6 address “[::]:80” and failed due to unsupported address family. It means, the machine does not have an IPv6 address set.

How can I tell the script to avoid to start on IPv6?

If I put "#" before that lines it works fine, but if I reinstalling the script it is overwritting the Nginx config and the error show up again.

Help please

Many thanks

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