OMV\ExecException error after pressing "apply changes" in webgui

  • Hey everyone,

    I am new to this forum and registered myself because of a problem I have with my OMV setup since last week. Since February, the whole system runs without any issues. Now, when I make changes to users or groups and press the apply button in the webgui I get the error, attached to the end of this comment and i have no idea how to fix that. Curiously the changes are applied afterwards... Maybe it is related to quotas? Because I thought I am in need of it but changed my mind about that really fast and "reset everything back to no quotas at all". The aquota.group and aquota.user files still exist. I hope someone gots an idea how to fix that becuase i do not really want to clean install OMV again and start from scratch.

  • Please go to the notification page and update the email configuration. Still if the data is displayed correctly, please change something, press apply, undo the changes and apply again. That's necessary because the UI does not do anything if there are no changes (to bad in this situation when the UI is too clever).

    After that the error should disappear. It seems a migration did not work out for you some version ago.

  • So I have a very simmular porbleme. In my case its when i try to apply a S.M.A.R.T change. So I recently added a hard drive and now i am trying to enable the SMART monitoring. This worked great for the other 4 disks but the last one which is the only one I wanted to activated today, cause i had already activated the others before, doesnt work. Every time I press apply it gives me a error message:


    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; omv-salt deploy run smartmontools 2>&1' with exit code '1': debian:
    ---------- ID: configure_default_smartmontools Function: file.managed Name: /etc/default/smartmontools Result: True Comment: File /etc/default/smartmontools is in the correct state Started: 14:38:29.512466 Duration: 158.546 ms Changes:
    ---------- ID: configure_smartd_conf Function: file.managed Name: /etc/smartd.conf Result: False Comment: Unable to manage file: Jinja error: tls: Invalid value '0', allowed values are 'none, ssl, starttls, auto'. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 400, 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 5, in top-level template code 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 724, in execute self._response = self._elements_to_object(elements) File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 485, in _elements_to_object result.validate() File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 235, in validate self.model.validate(self.get_dict()) File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 200, in validate self.schema.validate(data) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 170, in validate self._validate_type(value, schema, name) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 224, in _validate_type raise last_exception File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 195, in _validate_type self._validate_object(value, schema, name) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 300, in _validate_object self._check_properties(value, schema, name) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 508, in _check_properties self._validate_type(value[propk], propv, path) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 224, in _validate_type raise last_exception File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 204, in _validate_type self._validate_string(value, schema, name) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 279, in _validate_string self._check_enum(value, schema, name) File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 468, in _check_enum % (valuev, ", ".join(schema['enum'])), openmediavault.json.schema.SchemaValidationException: tls: Invalid value '0', allowed values are 'none, ssl, starttls, auto'.
    ; line 5
    --- {%- set smart_config = salt['omv_conf.get']('conf.service.smartmontools') -%} {%- set smart_devices = salt['omv_conf.get_by_filter']( 'conf.service.smartmontools.device', {'operator': 'equals', 'arg0': 'enable', 'arg1': '1'}) -%} {%- set email_config = salt['omv_conf.get']('conf.system.notification.email') -%} <====================== {%- set smart_notification_config = salt['omv_conf.get_by_filter']( 'conf.system.notification.notification', {'operator': 'stringEquals', 'arg0': 'id', 'arg1': 'smartmontools'})[0] -%} {%- set default_directives = salt['pillar.get']('default:OMV_SMARTMONTOOLS_DEFAULTDIRECTIVES', '-a -o on -S on -T permissive') -%} {{ pillar['headers']['multiline'] }} [...] --- Started: 14:38:29.671545 Duration: 382.948 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-Apacer_AS340_120GB_AA20190717A0101892 Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-Apacer_AS340_120GB_AA20190717A0101892' Result: True Comment: onlyif condition is false Started: 14:38:30.057427 Duration: 6210.675 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-ST2000DM008-2FR102_WFL023JZ Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST2000DM008-2FR102_WFL023JZ' Result: True Comment: onlyif condition is false Started: 14:38:36.268887 Duration: 126.284 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-ST2000LM007-1R8174_WDZBLZ0R Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST2000LM007-1R8174_WDZBLZ0R' Result: True Comment: onlyif condition is false Started: 14:38:36.396047 Duration: 124.538 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-ST2000LM015-2E8174_WDZHWL84 Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST2000LM015-2E8174_WDZHWL84' Result: True Comment: onlyif condition is false Started: 14:38:36.521373 Duration: 126.867 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-TOSHIBA_DT01ACA300_33337JVAS Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-TOSHIBA_DT01ACA300_33337JVAS' Result: True Comment: onlyif condition is false Started: 14:38:36.649115 Duration: 158.625 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-ST4000DM000-2AE166_WDH24CS4 Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST4000DM000-2AE166_WDH24CS4' Result: True Comment: onlyif condition is false Started: 14:38:36.808931 Duration: 199.403 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-ST4000VN000-1H4168_Z3025YSD Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-ST4000VN000-1H4168_Z3025YSD' Result: True Comment: onlyif condition is false Started: 14:38:37.009089 Duration: 172.653 ms Changes:
    ---------- ID: enable_smart_on_/dev/disk/by-id/ata-WDC_WD40EZRX-00SPEB0_WD-WCC4ECYT5Y90 Function: cmd.run Name: export LANG=C; smartctl -s on '/dev/disk/by-id/ata-WDC_WD40EZRX-00SPEB0_WD-WCC4ECYT5Y90' Result: True Comment: onlyif condition is false Started: 14:38:37.183060 Duration: 182.854 ms Changes:
    ---------- ID: start_smartmontools_service Function: service.running Name: smartmontools Result: False Comment: One or more requisite failed: omv.deploy.smartmontools.default.configure_smartd_conf Started: 14:38:37.371415 Duration: 0.03 ms Changes:

    Summary for debian
    ------------
    Succeeded: 9
    Failed: 2
    ------------
    Total states run: 11
    Total run time: 7.843 s in /usr/share/php/openmediavault/system/process.inc:182
    Stack trace:
    #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute()
    #1 /usr/share/openmediavault/engined/rpc/config.inc(167): 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/bgstatusLA...', '/tmp/bgoutputDb...')
    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
    #7 /usr/share/openmediavault/engined/rpc/config.inc(189): 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}

    So after reading your post votdev i tried removing the monitoring of a working device. And there is also a error message. I believe its the same. What do i do?

  • Have you changed the email configuration in the notification page?

    No I never had it turned on. Should I? I mean its not a problem of notification its just that it wont apply the changes I make in the UI.


    I checked and my device is SMART capable. and i have the smarttools version 6.6-1 installed.


    So I have now tried to activate email notivications and now the SMART Monitoring works somehow. Thanks votdev

  • votdev

    Added the Label resolved
  • Initially, there was no configuration on the notification page done because i did not want to use that feature anyways. After i gave my machine just the proper email configuration/ credentials the error was gone and everything worked again like it should. Actually, i do not even have to enable notifications, the configuration itself seems to be enough. Thats a very unexpected solution for my problem but it worked. Thanks a lot votdev!

Participate now!

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