run omv-firstaid as root got "command not found", run omv-firstaid as user got "not in the sudoers file. This incident will be reported."

  • Hi,


    I ran into some trouble when install NextCloud (
    install NextCloud 12.0.0 on omv 3.0.39, webui doesn't work any more, ssh, network share works fine). summary of issue: can ssh, can access shared folder, can't load webUI of OMV. quite similar to this thread (No web interface after update - no omv-firstaid)


    omv 3.0.39 on bootable USB stick
    Operating System: Debian GNU/Linux 8 (jessie)
    two 8TB WD RED, raid 1



    AFter 16 hours troubleshooting, here are my two goals
    Goal #1 run (how to run) omv-firstaid


    I ssh in as 3 account: root, user#1, user#2


    case#1) when login ssh as "root" , then run omv-firstaid, I always got the "command not found" error


    case#2)when I ssh using 1st user account, there two scenario
    2a) "omv-firstaid" generate this error “-dash: 1: omv-firstaid: not found”


    2b) "sudo omv-firstaid" get this
    *We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
    Respect the privacy of others. Think before you type. With great power comes great responsibility.[sudo] password for*
    However, after I enter password, it show "not in the sudoers file. This incident will be reported."


    Then I ran this "sudo usermod -aG sudo,adm 1st_account".
    After that I repeat "sudo omv-firstaid", and I got the same ""command not found" error.


    case#3) I then ssh using 2nd account, and I can reproduce exact same behavior as 1st account.



    btw, in /usr/sbin, I search for omv*, only this one show up: omv-mkgraph



    Goal#2 if it's easy to reinstall OMV, I can do that. my question is what should I do with the two WD RED drive full of data? Should I disconnect these two HDD, reinstall OMV, plug in 1st HDD to make sure data is there, then plug in the 2nd one?


    Thank you!


    Edited:
    $ dpkg -l| grep openmediavault
    rc openmediavault 3.0.80 all Open network attached storagesolution
    rc openmediavault-backup 3.6 all backup plugin for OpenMediaVault.
    rc openmediavault-flashmemory 3.4.3 all folder2ram plugin for OpenMediaVault
    ii openmediavault-keyring 1.0 all GnuPG archive keys of theOpenMediaVault archive
    rc openmediavault-mysql 3.0.4 all MySQL plugin for OpenMediaVault.
    rc openmediavault-nginx 3.0.11 all Nginx plugin for OpenMediaVault.
    rc openmediavault-omvextrasorg 3.4.25 all OMV-Extras.org Package Repositoriesfor OpenMediaVault
    rc openmediavault-syncthing 3.10 all Syncthing plugin for OpenMediaVault.

    Dell Poweredge T100 (Pentium E5400, 2.7GHz, 2MB Cache,800MH 2, 4GB DDR2 memory, 32-bit)
    OMV 3.0.39
    2 8TB WD RED, RAID 1

    3 Mal editiert, zuletzt von hiac ()

    • Offizieller Beitrag

    Goal#2 if it's easy to reinstall OMV, I can do that. my question is what should I do with the two WD RED drive full of data? Should I disconnect these two HDD, reinstall OMV, plug in 1st HDD to make sure data is there, then plug in the 2nd one?

    I did it like this:
    1.) disconnect the two WD red drives (especially to make sure not to install OMV on this drive by accident)
    2.) reinstall OMV
    3.) connect both WD RED drives
    4.) configure OMV

  • Hi macom,


    Thank you for your reply. in step 4, I am under impression "configure OMV will always formatting your HDD", is that true? Or you can choose to format or not?


    Thank you!

    Dell Poweredge T100 (Pentium E5400, 2.7GHz, 2MB Cache,800MH 2, 4GB DDR2 memory, 32-bit)
    OMV 3.0.39
    2 8TB WD RED, RAID 1

Jetzt mitmachen!

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