arakasi72 / rtinst

seedbox installation script for Ubuntu and Debian systems
MIT License
1.22k stars 259 forks source link

Avoid to install or edit nginx #617

Open amlopin opened 1 year ago

amlopin commented 1 year ago

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

https://github.com/arakasi72/rtinst/issues/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 commented 1 year ago

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