nextcloud / vm

💻☁📦 The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
https://download.nextcloudvm.com
GNU General Public License v3.0
1.31k stars 661 forks source link

Install Nextcloud is not possible because of an network issue #1626

Closed herrschlupp closed 4 years ago

herrschlupp commented 4 years ago

Hello, I try to intall nextcloud, but it's not possible.

Nextcloud don't get an connection to the internet within the installation process. I got always the message "network settings are not correct".

But this is not possible. DNS is ok up and running. There is no IP adress conflict and my network is running corectly.

Has anybody an idea what I have todo?

Thanks -herrschlupp

Ginfred commented 4 years ago

Replace it

    # Check if IFACE is empty, if yes, try another method:
    if [ -n "$IFACE" ]
    then
        cat <<-IPCONFIG > "$INTERFACES"
network:
   version: 2
   ethernets:
       $IFACE: #object name
         dhcp4: false # dhcp v4 disable
         dhcp6: false # dhcp v6 disable
         addresses: 
         - $LANIP # client IP address
         gateway4: $GATEWAYIP # gateway address
         nameservers:
           addresses: [$DNSs] #name servers
IPCONFIG

        msg_box "These are your settings, please make sure they are correct:

$(cat /etc/netplan/01-netcfg.yaml)"
        netplan try
        set_systemd_resolved_dns "$IFACE"
    else
        cat <<-IPCONFIGnonvmware > "$INTERFACES"
network:
   version: 2
   ethernets:
       $IFACE2: #object name
         dhcp4: false # dhcp v4 disable
         dhcp6: false # dhcp v6 disable
         addresses: 
         - $LANIP # client IP address
         gateway4: $GATEWAYIP # gateway address
         nameservers:
           addresses: [$DNSs] #name servers
IPCONFIGnonvmware

in /var/scripts/static_ip.sh

I found some problems with variables