Job for sharedfolders-Backup.mount failed

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Job for sharedfolders-Backup.mount failed

      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:
      [Blocked Image: https://imgur.com/a/wYkIQrH]

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

      Source Code

      1. Die Konfiguration wurde geändert. Sie müssen die Änderungen bestätigen damit sie wirksam werden.
      2. Seite
      3. von 1
      4. 1 - 1 von 1 angezeigt
      5. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-Backup.mount' 2>&1' with exit code '1': Job for sharedfolders-Backup.mount failed. See "systemctl status sharedfolders-Backup.mount" and "journalctl -xe" for details.
      6. Fehler #0:
      7. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-Backup.mount' 2>&1' with exit code '1': Job for sharedfolders-Backup.mount failed.
      8. See "systemctl status sharedfolders-Backup.mount" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:182
      9. Stack trace:
      10. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      11. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      12. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      13. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      14. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      15. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      16. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      17. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusRg...', '/tmp/bgoutputs0...')
      18. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      19. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      20. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      21. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      22. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      23. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      24. #14 {main}
      Display All



      Source Code

      1. root@ser03:~# systemctl status sharedfolders-Backup.mount
      2. ● sharedfolders-Backup.mount - Mount shared folder Backup to /sharedfolders/Backup
      3. Loaded: loaded (/etc/systemd/system/sharedfolders-Backup.mount; enabled; vendor preset: enabled)
      4. Active: active (mounted) (Result: exit-code) since Wed 2019-05-08 23:25:32 CEST; 29s ago
      5. Where: /sharedfolders/Backup
      6. What: /dev/md0
      7. Process: 21920 ExecUnmount=/bin/umount /sharedfolders/Backup (code=exited, status=32)
      8. Tasks: 0 (limit: 4915)
      9. CGroup: /system.slice/sharedfolders-Backup.mount
      10. Mai 08 23:20:35 ser03 systemd[1]: Failed unmounting Mount shared folder Backup to /sharedfolders/Backup.
      11. Mai 08 23:21:16 ser03 systemd[1]: Unmounting Mount shared folder Backup to /sharedfolders/Backup...
      12. Mai 08 23:21:16 ser03 systemd[1]: sharedfolders-Backup.mount: Mount process exited, code=exited status=32
      13. Mai 08 23:21:16 ser03 systemd[1]: Failed unmounting Mount shared folder Backup to /sharedfolders/Backup.
      14. Mai 08 23:23:23 ser03 systemd[1]: Unmounting Mount shared folder Backup to /sharedfolders/Backup...
      15. Mai 08 23:23:23 ser03 systemd[1]: sharedfolders-Backup.mount: Mount process exited, code=exited status=32
      16. Mai 08 23:23:23 ser03 systemd[1]: Failed unmounting Mount shared folder Backup to /sharedfolders/Backup.
      17. Mai 08 23:25:32 ser03 systemd[1]: Unmounting Mount shared folder Backup to /sharedfolders/Backup...
      18. Mai 08 23:25:32 ser03 systemd[1]: sharedfolders-Backup.mount: Mount process exited, code=exited status=32
      19. Mai 08 23:25:32 ser03 systemd[1]: Failed unmounting Mount shared folder Backup to /sharedfolders/Backup.
      Display All

      Source Code

      1. root@ser03:~# journalctl -xe
      2. --
      3. -- Unit sharedfolders-Backup.mount has finished shutting down.
      4. Mai 08 23:24:01 ser03 cron[1018]: (*system*openmediavault-rsync) RELOAD (/etc/cron.d/openmediavault-rsync)
      5. Mai 08 23:25:32 ser03 systemd[1]: Reloading.
      6. Mai 08 23:25:32 ser03 systemd[1]: apt-daily.timer: Adding 1h 5min 80.664ms random time.
      7. Mai 08 23:25:32 ser03 systemd[1]: anacron.timer: Adding 54.362548s random time.
      8. Mai 08 23:25:32 ser03 systemd[1]: apt-daily-upgrade.timer: Adding 6min 56.118369s random time.
      9. Mai 08 23:25:32 ser03 systemd[1]: Unmounting Mount shared folder public to /sharedfolders/public...
      10. -- Subject: Unit sharedfolders-public.mount has begun shutting down
      11. -- Defined-By: systemd
      12. -- Support: https://www.debian.org/support
      13. --
      14. -- Unit sharedfolders-public.mount has begun shutting down.
      15. Mai 08 23:25:32 ser03 systemd[1]: Unmounted Mount shared folder public to /sharedfolders/public.
      16. -- Subject: Unit sharedfolders-public.mount has finished shutting down
      17. -- Defined-By: systemd
      18. -- Support: https://www.debian.org/support
      19. --
      20. -- Unit sharedfolders-public.mount has finished shutting down.
      21. Mai 08 23:25:32 ser03 systemd[1]: Mounting Mount shared folder public to /sharedfolders/public...
      22. -- Subject: Unit sharedfolders-public.mount has begun start-up
      23. -- Defined-By: systemd
      24. -- Support: https://www.debian.org/support
      25. --
      26. -- Unit sharedfolders-public.mount has begun starting up.
      27. Mai 08 23:25:32 ser03 systemd[1]: Mounted Mount shared folder public to /sharedfolders/public.
      28. -- Subject: Unit sharedfolders-public.mount has finished start-up
      29. -- Defined-By: systemd
      30. -- Support: https://www.debian.org/support
      31. --
      32. -- Unit sharedfolders-public.mount has finished starting up.
      33. --
      34. -- The start-up result is done.
      35. Mai 08 23:25:32 ser03 systemd[1]: Unmounting Mount shared folder Backup to /sharedfolders/Backup...
      36. -- Subject: Unit sharedfolders-Backup.mount has begun shutting down
      37. -- Defined-By: systemd
      38. -- Support: https://www.debian.org/support
      39. --
      40. -- Unit sharedfolders-Backup.mount has begun shutting down.
      41. Mai 08 23:25:32 ser03 systemd[1]: sharedfolders-Backup.mount: Mount process exited, code=exited status=32
      42. Mai 08 23:25:32 ser03 systemd[1]: Failed unmounting Mount shared folder Backup to /sharedfolders/Backup.
      43. -- Subject: Unit sharedfolders-Backup.mount has finished shutting down
      44. -- Defined-By: systemd
      45. -- Support: https://www.debian.org/support
      46. --
      47. -- Unit sharedfolders-Backup.mount has finished shutting down.
      48. Mai 08 23:26:01 ser03 cron[1018]: (*system*openmediavault-rsync) RELOAD (/etc/cron.d/openmediavault-rsync)
      49. lines 1811-1857/1857 (END)
      Display All

      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

      The post was edited 6 times, last by Newtren: tried another option with different result, and then transferred the result to new posting ().

    • 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:

      Source Code

      1. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-libreelec.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-libreelec.mount.
      2. Error #0:
      3. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; systemctl restart 'sharedfolders-libreelec.mount' 2>&1' with exit code '1': Assertion failed on job for sharedfolders-libreelec.mount. in /usr/share/php/openmediavault/system/process.inc:182
      4. Stack trace:
      5. #0 /usr/share/php/openmediavault/system/systemctl.inc(86): OMV\System\Process->execute(Array, 1)
      6. #1 /usr/share/php/openmediavault/system/systemctl.inc(160): OMV\System\SystemCtl->exec('restart', NULL, false)
      7. #2 /usr/share/openmediavault/engined/module/sharedfolders.inc(66): OMV\System\SystemCtl->restart()
      8. #3 /usr/share/openmediavault/engined/rpc/config.inc(194): OMVModuleSharedfolders->startService()
      9. #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      10. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      11. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(565): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatuscQ...', '/tmp/bgoutputRB...')
      13. #8 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      14. #9 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      15. #10 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      16. #11 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      17. #12 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      18. #13 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      19. #14 {main}
      Display All

      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:

      Source Code

      1. Please wait, syncing < root@libreelec:/var/media/INTENSO/Fotos/> to </srv/dev-disk-by-label-BK01/Backup/xback> ...
      2. Permission denied, please try again.
      3. Permission denied, please try again.
      4. Permission denied (publickey,password,keyboard-interactive).
      5. rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
      6. rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.2]
      7. The synchronisation has completed successfully.
      8. Done ...
      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:

      Source Code

      1. Failed to execute XPath query '//services/rsync/jobs/job[uuid='7be60cde-6e6d-42d3-b8bd-a3434df0488c']'.
      2. Error #0:
      3. 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
      4. Stack trace:
      5. #0 /usr/share/openmediavault/engined/rpc/rsync.inc(129): OMV\Config\Database->get('conf.service.rs...', '7be60cde-6e6d-4...')
      6. #1 [internal function]: OMVRpcServiceRsync->get(Array, Array)
      7. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      8. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
      9. #4 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Rsync', 'get', Array, Array, 1)
      10. #5 {main}
      How to solve this now?

      Thanks in advance for your support
    • I accidentally got rid of the error message:
      1. I deleted all rsync jobs
      2. I created a rsync job for local backup using an existing destination shared folder: no error message after "Apply"
      3. I created a rsync job for remote push backup using an existing destination shared folder: no error message after "Apply"
      4. I created a rsync job for remote pull backup (the desired version) using an existing destination shared folder: no error message after "Apply

      5. 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)