Compromised OMV installation after apt upgrade

  • A few days ago one of my OMV installations autoupdated and the Web GUI is now unreachable.
    Also, an apt upgrade shows the following:


    The current Debian version is 8.9, so the distribution is still on jessie.

    • Offizieller Beitrag

    A few days ago one of my OMV installations autoupdated

    OMV doesn't auto-update. It will download the packages but you still have to install them manually. Post the output of the following (might need to attach as files):


    dpkg -l | grep openm
    cat /var/log/apt/history.log
    cat /var/log/apt/term.log

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I believed the upgrade was performed through Unattended Upgrades, but I know see that it was manually done.


    Code
    rc  openmediavault                        3.0.88                           all          Open network attached storage solution
    rc  openmediavault-clamav                 3.3.3                            all          OpenMediaVault ClamAV plugin
    ii  openmediavault-keyring                1.0                              all          GnuPG archive keys of the OpenMediaVault archive
    rc  openmediavault-omvextrasorg           3.4.26                           all          OMV-Extras.org Package Repositories for OpenMediaVault
    rc  openmediavault-openvpn                3.0.6                            all          OpenVPN plugin for OpenMediaVault.
    rc  openmediavault-usbbackup              3.2.20                           all          OpenMediaVault USB/eSATA backup plugin
    rc  openmediavault-virtualbox             3.0.8                            all          VirtualBox plugin for OpenMediaVault.



    history.log:

  • term.log:


    It looks like sendmail installation triggered the removal of OMV, I just don't see why that would happen.

    • Offizieller Beitrag

    It looks like sendmail installation triggered the removal of OMV, I just don't see why that would happen.

    Yep. When you installed sendmail (not sure why), it told you it would uninstall openmediavault and postfix. OMV has a dependency on postfix. So, you can't install sendmail since it conflicts with postfix.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Yep. When you installed sendmail (not sure why), it told you it would uninstall openmediavault and postfix. OMV has a dependency on postfix. So, you can't install sendmail since it conflicts with postfix.

    I see, is there a way to recover from this situation? Can I force a reinstallation of OMV without losing all the configured services which are still running?

    • Offizieller Beitrag

    I see, is there a way to recover from this situation?

    Restore from backup -or- apt-get install postfix openmediavault which should remove the offending sendmail package. Your OMV packages aren't purged from the looks of it. So, you should be able to re-install without losing the configurations. you will have to reinstall the plugins as well. I highly recommend that you install all of those other packages (that you have manually installed) in a VM or docker to prevent this problem.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The login screen is giving me the following error: Failed to connect to socket: No such file or directory


    Details:


    Code
    Error #0:
    exception 'OMV\Rpc\Exception' with message 'Failed to connect to socket: No such file or directory' in /usr/share/php/openmediavault/rpc/rpc.inc:140
    Stack trace:
    #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
    #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
    #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
    #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
    #6 {main}

    How can I fix this?

    • Offizieller Beitrag

    Did omv reinstall successfully?
    Did you clear your browser cache?
    Do you see any errors in the terminal after (as root):
    monit stop omv-engined
    omv-engined -df
    and then try logging in

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    systemctl enable openmediavault-engined
    systemctl start openmediavault-engined

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I came across this thread, in search of some sort of answer…


    Why is it that OMV specifically requires postfix, rather than just a member of the default-mta | mail-transport-agent group?

Jetzt mitmachen!

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