[SOLVED] Can't execute "rsnapshot"

  • Hi,


    today i recognized that i can't execute rsnapshot. I got the following error:


    Code
    Fehler #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; /bin/sh daily xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2>&1': /bin/sh: 0: Can't open daily in /usr/share/openmediavault/engined/rpc/rsnapshot.inc:202
    Stack trace:
    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMVRpcServiceRsnapshot->{closure}('/tmp/bgstatusz9...', '/tmp/bgoutputB7...')
    #1 /usr/share/openmediavault/engined/rpc/rsnapshot.inc(204): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #2 [internal function]: OMVRpcServiceRsnapshot->execute(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
    #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('RSnapshot', 'execute', Array, Array, 1)
    #6 {main}


    Via Web-UI, i've re-created an entry on page "Rsnapshot", but the error still occurs.


    Installed versions:

    • OMV 4.1.22-1
    • openmediavault-rsnapshot 4.2.1
    • rsnapshot 1.4.2-1

    Thank you for your help.


    Regards,
    Rig

  • Hi,


    the following is simplified OMV-Code:

    The code in line 9 returned an empty string. Something with the globals thems to be wrong?!?



    I decided to reinstall the package

    Bash
    sudo apt-get install --reinstall openmediavault-rsnapshot

    and now everything works fine and rsnapshot is executeable from the OMV UI.



    Regards,
    Rig

  • Something with the globals thems to be wrong?!?

    When the plugin is installed, it adds an entry to /etc/default/openmediavault that looks like OMV_RSNAPSHOT_CRONSCRIPT="/var/lib/openmediavault/cron.d/rsnapshot". That must not have happened correctly on your system. I would have been curious to see what the installed state of the plugin was before you fixed it. I'm guessing it was not ii.

    omv 5.6.13 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.2 | kvm plugin 5.1.6
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • Hi,


    today i updated OVM to 5.6.2-1 (Usul) and the error occurs again.


    Error Message:

    Code
    Fehler #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; /bin/sh daily xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2>&1': /bin/sh: 0: Can't open daily in /usr/share/openmediavault/engined/rpc/rsnapshot.inc:202
    Stack trace:
    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMVRpcServiceRsnapshot->{closure}('/tmp/bgstatusOq...', '/tmp/bgoutputBy...')
    #1 /usr/share/openmediavault/engined/rpc/rsnapshot.inc(204): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #2 [internal function]: OMVRpcServiceRsnapshot->execute(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
    #5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('RSnapshot', 'execute', Array, Array, 1)
    #6 {main}



    With the update the file /etc/default/openmediavault seems to be modified:

    Code
    /etc/default
    user@host> ls -ltr | tail -6
    -rw-r--r-- 1 root root 193 Sep 28 22:01 wsdd
    -rw-r--r-- 1 root root 3049 Sep 28 23:19 openmediavault.dpkg-old
    -rw-r--r-- 1 root root 172 Dec 10 00:35 avahi-daemon
    drwxr-xr-x 2 root root 4096 Mar 21 18:51 grub.d
    -rw-r--r-- 1 root root 1199 Mar 21 18:51 grub
    -rw-r--r-- 1 root root 1895 Mar 21 18:52 openmediavault


    And all the lines regarding rsnapshot seems to be "forgotten":


    Regards,

    Rig

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!