Cannot apply changes after update

  • Hi,

    I'm in the process of updating my OMV 4 server to 5 and then to 6. I did the 5 update according to the instructions: Upgrade OMV4 to 5 When logging in, the message "The configuration has been changed. You must apply the changes in order for them to take effect." However, Apply is not successful and the following error message appears:



    Code
    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 --no-color rsync 2>&1' with exit code '1': enigma.local: ---------- ID: prereq_rsync_certificates Function: salt.state Result: True Comment: States ran successfully. Updating enigma.local. Started: 14:47:40.841615 Duration: 2933.946 ms Changes: enigma.local: ---------- ID: remove_ssl_certificates_crt Function: module.run Result: True Comment: file.find: [] Started: 14:47:41.276884 Duration: 22.482 ms Changes: ---------- file.find: ---------- ID: remove_ssl_certificates_key Function: module.run Result: True Comment: file.find: [] Started: 14:47:41.299624 Duration: 3.093 ms Changes: ---------- file.find: ---------- ID: update_ssl_certificates Function: cmd.run Name: update-ca-certificates --fresh Result: True Comment: Command "update-ca-certificates --fresh" run Started: 14:47:41.304448 Duration: 2458.985 ms Changes: ---------- pid: 21088 retcode: 0 stderr: stdout: Clearing symlinks in /etc/ssl/certs... done. Updating certificates in /etc/ssl/certs... 126 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: 14:47:43.763997 Duration: 5.819 ms Changes: ---------- file.find: Summary for enigma.local ------------ Succeeded: 4 (changed=4) Failed: 0 ------------ Total states run: 4 Total run time: 2.490 s ---------- ID: configure_rsync_cron Function: file.managed Name: /etc/cron.d/openmediavault-rsync Result: True Comment: File /etc/cron.d/openmediavault-rsync is in the correct state Started: 14:47:43.781697 Duration: 279.459 ms Changes: ---------- ID: remove_rsync_cron_scripts Function: module.run Result: True Comment: file.find: [] Started: 14:47:44.062838 Duration: 3.107 ms Changes: ---------- file.find: ---------- ID: configure_rsync_cron_script_264c2630-2134-4e69-8c12-e10b63355496 Function: file.managed Name: /var/lib/openmediavault/cron.d/rsync-264c2630-2134-4e69-8c12-e10b63355496 Result: False Comment: Unable to manage file: Jinja error: No such object: //system/shares/sharedfolder[uuid='bff9cc4a-f467-4bee-9fa1-eea42f8901af'] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 732, 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 497, 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 10, in top-level template code File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call return __context.call(__obj, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 99, in get_sharedfolder_path sf_obj = get('conf.system.sharedfolder', uuid) File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, 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 737, in execute raise DatabaseQueryNotFoundException(self.xpath, self.model) openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/shares/sharedfolder[uuid='bff9cc4a-f467-4bee-9fa1-eea42f8901af'] ; line 10 --- [...] {%- set logfile = salt['pillar.get']('default:OMV_RSYNC_LOGFILE', '/var/log/rsync.log') -%} {%- set runfile = '/run' | path_join(script_prefix ~ job.uuid) -%} {%- if job.type == 'local' -%} {%- 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.sharedfolderref) -%} <====================== {%- 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) -%} [...] --- Started: 14:47:44.066252 Duration: 173.634 ms Changes: ---------- ID: configure_rsync_cron_script_9868d48d-de85-4bf2-b820-8349d9f3ae96 Function: file.managed Name: /var/lib/openmediavault/cron.d/rsync-9868d48d-de85-4bf2-b820-8349d9f3ae96 Result: False Comment: Unable to manage file: Jinja error: No such object: //system/shares/sharedfolder[uuid='bff9cc4a-f467-4bee-9fa1-eea42f8901af'] Traceback (most recent call last): File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 732, 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 497, 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 8, in top-level template code File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call return __context.call(__obj, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as return _func_or_method(*args, **kwargs) File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 99, in get_sharedfolder_path sf_obj = get('conf.system.sharedfolder', uuid) File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, 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 737, in execute raise DatabaseQueryNotFoundException(self.xpath, self.model) openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/shares/sharedfolder[uuid='bff9cc4a-f467-4bee-9fa1-eea42f8901af'] ; line 8 --- [...] {%- set ssh_keys_dir = salt['pillar.get']('default:OMV_SSH_KEYS_DIR', '/etc/ssh') -%} {%- set ssh_key_prefix = salt['pillar.get']('default:OMV_SSH_KEY_PREFIX', 'openmediavault-') -%} {%- set logfile = salt['pillar.get']('default:OMV_RSYNC_LOGFILE', '/var/log/rsync.log') -%} {%- set runfile = '/run' | path_join(script_prefix ~ job.uuid) -%} {%- if job.type == 'local' -%} {%- 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.sharedfolderref) -%} {%- set destmntdir = salt['omv_conf.get_sharedfolder_mount_path'](job.dest.sharedfolderref) -%} {%- elif job.type == 'remote' -%} {%- if job.mode == 'push' -%} [...] --- Started: 14:47:44.240211 Duration: 79.785 ms Changes: Summary for enigma.local ------------ Succeeded: 3 (changed=2) Failed: 2 ------------ Total states run: 5 Total run time: 3.470 s



    I tried to solve the problem with the following command lines

    omv-confdbadm migrate conf 5.2.0


    I also have tried it with:

    omv-confdbadm migrate conf 5.6.0 


    but unfortunately both were unsuccessful.


    Can someone please help me here?


    Many thanks in advance


    Regards

    Thorsten

Jetzt mitmachen!

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