Issue setting remote RSync on OMV 5.0.5

  • Hi,


    I'm trying the new OMV 5.0.5 release.


    I have two OMV with shared SMB folders and I have to set remote (push) syncronization.


    On the remote OMV, RSync is enabled on standard 873 port, with a enabled module to share a folder.



    On the local OMV, I added a RSync Job (remote, push)



    After saved, when I apply the configuration changes, it show a window with 'An error has occurred' message, with these details:


    Code
    Error #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; omv-salt deploy run rsync 2>&1' with exit code '1': debian:---------- ID: prereq_rsync_certificates Function: salt.state Result: True Comment: States ran successfully. Updating debian. Started: 17:40:40.009417 Duration: 1287.05 ms Changes: debian: ---------- ID: remove_ssl_certificates_crt Function: module.run Result: True Comment: file.find: [] Started: 17:40:40.313068 Duration: 8.899 ms Changes: ---------- file.find: ---------- ID: remove_ssl_certificates_key Function: module.run Name: file.find Result: True Comment: Started: 17:40:40.322078 Duration: 0.368 ms Changes: ---------- ID: update_ssl_certificates Function: cmd.run Name: update-ca-certificates --fresh Result: True Comment: Command "update-ca-certificates --fresh" run Started: 17:40:40.323018 Duration: 968.675 ms Changes: ---------- pid: 17497 retcode: 0 stderr: stdout: Clearing symlinks in /etc/ssl/certs... done. Updating certificates in /etc/ssl/certs... 128 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. ---------- ID: remove_ssh_certificates Function: module.run Result: True Comment: file.find: [] Started: 17:40:41.292028 Duration: 1.732 ms Changes: ---------- file.find: Summary for debian ------------ Succeeded: 4 (changed=3) Failed: 0 ------------ Total states run: 4 Total run time: 979.674 ms---------- ID: configure_rsync_cron Function: file.managed Name: /etc/cron.d/openmediavault-rsync Result: True Comment: File /etc/cron.d/openmediavault-rsync updated Started: 17:40:41.298646 Duration: 68.155 ms Changes: ---------- diff: --- +++ @@ -3,4 +3,4 @@ SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command -*/29 17 * * * root /var/lib/openmediavault/cron.d/rsync-ad2e05ae-4658-4fa3-9cac-a609688a0b70 >/dev/null 2>&1 +*/10 17 * * * root /var/lib/openmediavault/cron.d/rsync-c099eb1e-dd31-4f66-93a7-70e752ebfe38 >/dev/null 2>&1---------- ID: remove_rsync_cron_scripts Function: module.run Result: True Comment: file.find: [] Started: 17:40:41.367460 Duration: 0.764 ms Changes: ---------- file.find:---------- ID: configure_rsync_cron_script_c099eb1e-dd31-4f66-93a7-70e752ebfe38 Function: file.managed Name: /var/lib/openmediavault/cron.d/rsync-c099eb1e-dd31-4f66-93a7-70e752ebfe38 Result: False Comment: Unable to manage file: Jinja error: No such object: //system/shares/sharedfolder[uuid='syncro@192.168.72.28::dati-test-sincro'] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 715, in execute self._response = self._response[0] IndexError: list index out of range During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 393, in render_jinja_tmpl output = template.render(**decoded_context) File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render return original_render(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise raise value.with_traceback(tb) File "<template>", line 16, in top-level template code File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 96, in get_sharedfolder_path sf_obj = get('conf.system.sharedfolder', uuid) File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 38, in get objs = db.get(id_, identifier) File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get query.execute() File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 720, in execute raise DatabaseQueryNotFoundException(self.xpath, self.model) openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/shares/sharedfolder[uuid='syncro@192.168.72.28::dati-test-sincro'] ; line 16 --- [...] {%- set destmntdir = salt['omv_conf.get_sharedfolder_mount_path'](job.dest.sharedfolderref) -%} {%- elif job.type == 'remote' -%} {%- if job.mode == 'push' -%} {%- set srcuri = salt['omv_conf.get_sharedfolder_path'](job.src.sharedfolderref) -%} {%- set srcmntdir = salt['omv_conf.get_sharedfolder_mount_path'](job.src.sharedfolderref) -%} {%- set desturi = salt['omv_conf.get_sharedfolder_path'](job.dest.uri) -%} <====================== {%- elif job.mode == 'pull' -%} {%- set srcuri = salt['omv_conf.get_sharedfolder_path'](job.src.uri) -%} {%- set desturi = salt['omv_conf.get_sharedfolder_path'](job.dest.sharedfolderref) -%} {%- set destmntdir = salt['omv_conf.get_sharedfolder_mount_path'](job.dest.sharedfolderref) -%} {%- endif -%} [...] --- Started: 17:40:41.368352 Duration: 97.722 ms Changes:Summary for debian------------Succeeded: 3 (changed=3)Failed: 1------------Total states run: 4Total run time: 1.454 s in /usr/share/php/openmediavault/system/process.inc:182Stack trace:#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute()#1 /usr/share/openmediavault/engined/rpc/config.inc(164): OMV\Engine\Module\ServiceAbstract->deploy()#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)#5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusmf...', '/tmp/bgoutputi5...')#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))#7 /usr/share/openmediavault/engined/rpc/config.inc(186): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)#8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)#9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)#10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)#11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)#12 {main}


    What happen?

  • Would this effect ssh with keys on command line as well, just trying to log in to another server with keys after I got the same rsync issue above.



    edit:
    I answered my own question. Yes you can not log in from terminal over ssh with a key generated on the web.


    And you can log in via ssh with a newly generated ssh key created on cli copied to a remote server, as one would expect. I had a look at the pull request so saw that it was in the jinja web template.

Jetzt mitmachen!

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