Disabling IPv6 causes webserver to not start

  • Pretty simple, I installed OMV 6.0.12-1 in a VM today. Don't want or need IPv6 on any of them right now, so it's pretty standard practice to disable IPv6 in grub (/etc/default/grub and add 'ipv6.disable=1' to the linux default line). But on reboot I noticed a console message about something failing to start.


    Turns out it's the webserver. Can't get to the web admin interface when IPv6 is disabled. I re-enabled, rebooted and it was fine. Disabled, rebooted and couldn't access it. I would like to be able to disable IPv6 and still use the system.


    This was in syslog, not sure if it's an important part.


    Feb 13 15:30:11 nas monit[434]: 'nas' Monit 5.27.2 started

    Feb 13 15:30:11 nas monit[434]: 'nginx' process is not running

    Feb 13 15:30:11 nas monit[434]: 'nginx' trying to restart

    Feb 13 15:30:11 nas monit[434]: 'nginx' start: '/bin/systemctl start nginx'

    Feb 13 15:30:11 nas systemd[1]: Starting A high performance web server and a reverse proxy server...

    Feb 13 15:30:11 nas nginx[733]: nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol

    )

    Feb 13 15:30:11 nas nginx[733]: nginx: configuration file /etc/nginx/nginx.conf test failed

    Feb 13 15:30:11 nas systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE

    Feb 13 15:30:11 nas systemd[1]: nginx.service: Failed with result 'exit-code'.

    Feb 13 15:30:11 nas systemd[1]: Failed to start A high performance web server and a reverse proxy server.


  • Instead of changing anything in GRUB, revert what you did.


    Run omv-firstaid and set your net device to only use IPv4.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!