Problems with PATH-Variable

  • Hello,
    since the upgrade to omv 3.0 i got some problems with the PATH-varibale.
    APT-Clean in OMVExtras and backup are not working anymore.


    These exeptions were thrown:


    Code
    exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf backup 2>&1': E: Clean of / is not supported' in /usr/share/openmediavault/engined/rpc/backup.inc:72
    Stack trace:
    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMVRpcServiceBackup->{closure}('/tmp/bgstatus3S...', '/tmp/bgoutputpp...')
    #1 /usr/share/openmediavault/engined/rpc/backup.inc(75): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #2 [internal function]: OMVRpcServiceBackup->doBackup(NULL, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('doBackup', NULL, Array)
    #5 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('Backup', 'doBackup', NULL, Array, 1)
    #6 {main}


    I hope i picked the right forum, and my question is not that dump. :D I am truly no linux genius.


    Can anybody help?


    Thanks a lot!
    Lars

    • Offizieller Beitrag

    Did you remove them both and reinstall?

    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 purged and reinstalled omv-extras and backup again.


    That fixed the exception with the missing proberty "path".


    But if i try to run a backup or run apt-clean "Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/....." still appears.

    • Offizieller Beitrag

    What is the output of:


    ls -al /etc/apt/apt.conf.d/02nocache

    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

    rm -f /etc/apt/apt.conf.d/02nocache
    apt-get clean
    apt-get update

    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

    It was a bug in an older version of the flashmemory plugin that caused the apt cache files to be put in root (/). You can run apt-get clean with the files in root and that is what both of the failing commands were doing.

    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!

Jetzt mitmachen!

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