OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.1k stars 207 forks source link

Script is not working on Odroid HC4 #106

Closed eskimos2000 closed 2 years ago

eskimos2000 commented 2 years ago

I hav installed Armbian Bulleyes. Did update setup basic after login and run script. However on the way they were errors:

Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service -> /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service -> /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ...

[WARNING ] /usr/lib/python3/dist-packages/salt/utils/files.py:396: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage

Failed to stop ntp.service: Unit ntp.service not loaded. Unit ntp.service does not exist, proceeding anyway. Created symlink /etc/systemd/system/ntp.service -> /dev/null. Failed to stop systemd-timesyncd.service: Unit systemd-timesyncd.service not loaded. Unit systemd-timesyncd.service does not exist, proceeding anyway. Created symlink /etc/systemd/system/systemd-timesyncd.service -> /dev/null.

`Package 'dhcpcd5' is not installed, so not removed The following packages will be REMOVED: libbluetooth3 libmm-glib0 libndp0 libnm0 libteamdctl0 network-manager network-manager-openvpn* 0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded. After this operation, 20.7 MB disk space will be freed. (Reading database ... 51082 files and directories currently installed.) Removing network-manager-openvpn (1.8.12-2) ... Removing network-manager (1.30.6-1+deb11u1) ... Removing libbluetooth3:arm64 (5.55-3.1) ... Removing libmm-glib0:arm64 (1.14.12-0.2) ... Removing libndp0:arm64 (1.6-1+b1) ... Removing libnm0:arm64 (1.30.6-1+deb11u1) ... Removing libteamdctl0:arm64 (1.31-1) ... Processing triggers for man-db (2.9.4-2) ... Processing triggers for dbus (1.12.20-2) ... Processing triggers for libc-bin (2.31-13+deb11u3) ... (Reading database ... 50832 files and directories currently installed.) Purging configuration files for network-manager (1.30.6-1+deb11u1) ... dpkg: warning: while removing network-manager, directory '/etc/NetworkManager/system-connections' not empty so not removed Purging configuration files for network-manager-openvpn (1.8.12-2) ... Enable and start systemd-resolved ... Unblocking wifi with rfkill ... Adding eth0 to openmedivault database ...

and as a result script stops with:

`---------- ID: apply_netplan_config Function: cmd.run Name: netplan apply Result: False Comment: Command "netplan apply" run Started: 20:48:54.077878 Duration: 533.782 ms Changes:

          pid:
              43706
          retcode:
              78
          stderr:
              /etc/netplan/armbian-default.yaml:3:12: Error in network definition: unknown renderer ''
                renderer:
                         ^
          stdout:

Summary for SkoNAS

Succeeded: 7 (changed=7) Failed: 1

Total states run: 8 Total run time: 7.692 s Error applying network changes. Skipping reboot!`

I tried a reboot but the system never get back online.

fscii commented 2 years ago

I can confirm it never gets back online. I have tried odroids own flavor of debian (without petitboot loader) using the omv install script, am able to get into omv and set some things up but when I reboot = DOA. So I tried armbian using armbian-config to install OMV and when it says success - reboot.... DOA never gets back online.

ryecoaaron commented 2 years ago

I don’t know what DOA means? Is the system functioning with a monitor and keyboard? I have an HC4 and never had an issue with it but I haven’t tried a fresh install lately. armbian-config runs my script. So, that isn’t doing anything different for you. Did you follow the install guide on the forum or omv-extras wiki?

fscii commented 2 years ago

I ran Armbian Buster with OMV5 on the HC4 for over a year. What I did on odroids debian was use the script command:

sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

Installed fine. I was able to access OMV but when I rebooted (always requires power cycle for some reason reboot commands don't work?), it no longer appeared on the network (DOA=dead on arrival). In the case of Armbian bullsye, I simply used armbian-config. It prompts for a reboot and it never comes back online.

In both cases they don't even reply to ping but the blue 'heartbeat' led is blinking indicating the kernel succeeded loading. Its quite possible that it does fully boot, but simply a problem with eth0 networking.

Edit: Tried a keyboard and monitor and no display output.

ryecoaaron commented 2 years ago

Sounds like a bad SD card. OMV uses netplan for networking. This change to netplan might cause it to have a different ip address on some routers but should never make the system unresponsive.

fscii commented 2 years ago

I tried another sd card. This time I used putty to scroll back and see the error. Just like the original poster of this issue, I got a netplan error.


      ID: apply_netplan_config
Function: cmd.run
    Name: netplan apply
  Result: False
 Comment: Command "netplan apply" run
 Started: 18:16:48.407155
Duration: 521.673 ms
 Changes:
          ----------
          pid:
              45274
          retcode:
              78
          stderr:
              /etc/netplan/armbian-default.yaml:3:12: Error in network definition: unknown renderer ''
                renderer:
                         ^
          stdout:

Summary for odroidhc4

Succeeded: 7 (changed=7) Failed: 1

Total states run: 8 Total run time: 7.544 s Error applying network changes. Skipping reboot!

eskimos2000 commented 2 years ago

I have exactly the same error when looked at connected screen.

So this is not the sdcard problem

On Mon, 12 Sept 2022 at 09:20, fscii @.***> wrote:

I tried another sd card. This time I used putty to scroll back and see the error. Just like the original poster of this issue, I got a netplan error.

  ID: apply_netplan_config

Function: cmd.run Name: netplan apply Result: False Comment: Command "netplan apply" run Started: 18:16:48.407155 Duration: 521.673 ms Changes:

      pid:
          45274
      retcode:
          78
      stderr:
          /etc/netplan/armbian-default.yaml:3:12: Error in network definition: unknown renderer ''
            renderer:
                     ^
      stdout:

Summary for odroidhc4 Succeeded: 7 (changed=7) Failed: 1

Total states run: 8 Total run time: 7.544 s Error applying network changes. Skipping reboot!

— Reply to this email directly, view it on GitHub https://github.com/OpenMediaVault-Plugin-Developers/installScript/issues/106#issuecomment-1243065123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEKR5W35RZWGTGPPNX62SDV5ZSMFANCNFSM6AAAAAAQJJERVU . You are receiving this because you authored the thread.Message ID: <OpenMediaVault-Plugin-Developers/installScript/issues/106/1243065123@ github.com>

eskimos2000 commented 2 years ago

I have connected monitor and on the end of OMV boot screen there is error:

Failed to start systemtd-networked. Some SS attached. I reckon Armbian is missing files or something.

PXL_20220911_224257797 PXL_20220911_225417905 MP

ryecoaaron commented 2 years ago

All I can recommend is calling the install script with the ‘-n’ flag to skip network setup until I can figure out what is missing. If something is missing, it will likely be an OMV issue as well.

thiscantbeserious commented 2 years ago

Exactly the same behaviour with the NanoPi M4V2 using another Bullseye Image here and the script.

What I noticed is that the lights on the LAN-Port are significantly less bright after the script was run

(verfied with a second install) - afterwards its not able to assign an IP anymore.

HDMI+USB-Keyboard however still works ... for me and I'm able to observe the systemd-networkd timeout ...

Is your script modifying anything Kernel related? Maybe its rather related to something OMV is doing itself ...

I did notice its purging the previous NetworkManager config but that shouldn't break the Ethernet-Port completely should it ... specifically since DHCP should be the default configuration ...

Let me try to break it a third time ... first by installing with the -n flag to edge out potential causes.


Edit: Same script works fine on EspressoBin V5 with Armbian - just installed 4 days ago mind you


Edit 2: Yep, running the install script with skipping the network setup flag (-n) seems to work.

At least the network is not broken anymore.

Edit 3: Had a short hiccup OMV webui not starting on first try, now it does no clue what changed but oh well ...

Just for the sake of trying to figure out why:

I found this here in the Armbian forums: https://forum.openmediavault.org/index.php?thread/28609-unclear-network-behaviour/&postID=221680#post221680

Also the official instructions for Armbian here ... https://wiki.omv-extras.org/doku.php?id=omv6:armbian_bullseye_install

ryecoaaron commented 2 years ago

This is obviously an Armbian change (not specific boards) that the script and/or OMV needs to account for. Just give me a chance to test (not sure why netplan does not have a provider which should be networkd). Either use an older armbian image or skip networking. Yes, the install script uninstalls networkmanager because OMV uses netplan. If you skip networking and don't configure networking in OMV's web interface, the board will keep using networkmanager.

No, the install script does not change kernel parameters.

The lan port light should not be affected by any network setup. No idea on that.

ryecoaaron commented 2 years ago

Armbian seems to be included an incomplete netplan file. Not sure why but removing it fixed everything on my Odroid HC4. Script has been updated. https://github.com/OpenMediaVault-Plugin-Developers/installScript/commit/f8e4ad5ec1da2cf95ab4ee231c166d8cc9985ea4

ryecoaaron commented 2 years ago

I was testing with this image - Armbian_22.08.1_Odroidhc4_bullseye_current_5.10.139.img.xz

eskimos2000 commented 2 years ago

Yeah, the script is working now, thanks a lot.