diff --git a/scripts/cloudron-support b/scripts/cloudron-support index dae482ba6..3065d3514 100755 --- a/scripts/cloudron-support +++ b/scripts/cloudron-support @@ -361,6 +361,16 @@ function check_node() { success "node version is correct" } +function check_ipv6() { + ipv6_disable=$(cat /sys/module/ipv6/parameters/disable) + if [[ "${ipv6_disable}" == "1" ]]; then + fail "IPv6 is disabled in kernel. Cloudron requires IPv6 in kernel" + echo "Instead of disabling IPv6 globally, you can disable it at an interface level using 'net.ipv6.conf..disable_ipv6 = 1'" + fi + + success "IPv6 is enabled" +} + function check_docker() { if ! systemctl is-active -q docker; then info "Docker is down. Trying to restart docker ..." @@ -503,6 +513,7 @@ function troubleshoot() { # note: disk space test has already been run globally print_system check_node + check_ipv6 check_docker check_host_mysql check_nginx # requires mysql to be checked