Posts by Newtren

    I suspected that there might be a cron/anacron job somewhere. I found it here:


    /etc/cron.d/openmediavault-rsync


    It contains

    Code
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    # m h dom mon dow user command
    13 8 * * * root /var/lib/openmediavault/cron.d/rsync-fcc54383-1496-4715-8ca7-d1e17016770a >/dev/null 2>&1


    So I checked


    /var/lib/openmediavault/cron.d/rsync-fcc54383-1496-4715-8ca7-d1e17016770a


    it contains


    So I executed this rsync command (line 30) in bash:

    the rsync command works (here with password (line 2)).


    My thesis:
    rsync may fail due to login issue on libreelec.


    So I configured passwordless login:


    (public key already exists already on OMV, so I just copied public key to remote device "libreelec"):


    and it works with ssh:


    Now the rsync command works in bash without PW:


    Final test: what if I execute the rsync job in OMV web gui (did not change the settings):


    :thumbsup:


    Conclusion:
    rsync works in my case only with public key authentication even the rsync job is set up with password authentication.

    My first Idea: I would like to check which rsync command is in fact composed (and executed) from my settings in the rsync job. Where can I find this?


    My second idea: is </srv/dev-disk-by-label-BK01/Backup/libreelec> the same as /sharedfolders/Backup/libreelec ?

    Hello forum,


    is this a reasonable approach to solve my issue?


    • How can I check the full rsync command which is composed by OMV?
    • Can someone confirm, that /srv/dev-disk-by-label-BK01/Backup/libreelec is the same as /sharedfolders/Backup/libreelec?
      Otherwise I need to search in a different direction
    • "Permission denied (publickey,password,keyboard-interactive)." - shall I try to setup a passwordless login with public key?


    Thanks for any hints


    Newtren

    Hello Forum,


    I would like to maintain this command as rsync job in OMV web interface (4.1.12 (Arrakis):

    Code
    rsync --rsync-path=/storage/.kodi/addons/virtual.network-tools/bin/rsync -avb root@libreelec:/var/media/INTENSO/Fotos /sharedfolders/Backup/libreelec/


    When I execute this in OMV bash, I need to enter the password of root@libreelec and then all folders/files get pulled from Libreelec to my OMV system.


    These are my settings in rsync jobs:

    • Type: Remote
    • Mode: Pull
    • Source Server: root@libreelec:/var/media/INTENSO/Fotos
    • Destination shared folder: libreelec [on BK01, Backup/libreelec/]
    • Authentication: Password
    • Password: *****
    • all additional settings: unchanged
    • extra options: --rsync-path=/storage/.kodi/addons/virtual.network-tools/bin/rsync

    When I perform "run" I receive this error message:

    my user rights for folder /sharedfolders/Backup/libreelec (and subfolders):


    drwxrwxrwx 3 root root 19 Mai 9 09:37 libreelec


    My first Idea: I would like to check which rsync command is in fact composed (and executed) from my settings in the rsync job. Where can I find this?


    My second idea: is </srv/dev-disk-by-label-BK01/Backup/libreelec> the same as /sharedfolders/Backup/libreelec ?


    Any other ideas how to solve this?


    Many thanks for your kind support


    Newtren

    I accidentally got rid of the error message:

    • I deleted all rsync jobs
    • I created a rsync job for local backup using an existing destination shared folder: no error message after "Apply"
    • I created a rsync job for remote push backup using an existing destination shared folder: no error message after "Apply"
    • I created a rsync job for remote pull backup (the desired version) using an existing destination shared folder: no error message after "Apply


    • Finally, I deleted the unneeded rsync jobs (local, push) so only the relevant job was left: still no error messages after "Apply"

    My problem seems to be solved (reason unclear)

    The next day, I kept on trying and I created a complete new folder with this setting:

    • Type: Remote
    • Mode: Pull
    • source server: root@libreelec:/var/media/INTENSO/Fotos/
    • Destination shared folder: rsyncbackup [on BK01, rsyncbackup/]
    • Authentication: Password
    • Password: ******

    When I tried to apply the changes, I received this error message:


    Then I tried to "Revert" the changes, but the new line was not deleted, but the yellow bar with Apply/Revert was gone.
    So I performed "Run" with the new line and the new rsync job seems to be executed!
    But unfortunately with another error message:

    But this seems to be related to a different/rsync issue.


    When I try to view/edit the new Job all the settings are empty and I receive this error message:

    Code
    Failed to execute XPath query '//services/rsync/jobs/job[uuid='7be60cde-6e6d-42d3-b8bd-a3434df0488c']'.
    Error #0:
    OMV\Config\DatabaseException: Failed to execute XPath query '//services/rsync/jobs/job[uuid='7be60cde-6e6d-42d3-b8bd-a3434df0488c']'. in /usr/share/php/openmediavault/config/database.inc:78
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/rsync.inc(129): OMV\Config\Database->get('conf.service.rs...', '7be60cde-6e6d-4...')
    #1 [internal function]: OMVRpcServiceRsync->get(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
    #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Rsync', 'get', Array, Array, 1)
    #5 {main}

    How to solve this now?


    Thanks in advance for your support

    I would like to run rsync on OMV (4.1.12 Arrakis) to pull content from a remote system for backup.


    I try to setup the rsync job within the web gui of OMV like this:


    I can save this setting, but when I try to apply the changes, I receive this error message:




    This occurs regardless, if I create a new folder or if I use an existing one within the existing Backup folder.





    What am I doing wrong here?


    Thanks for your kind support


    Newtren