Hello,
First time having issues with OMV 5. Did a maintenance update then applied the configs which I got an Error #0 with 'base:omv.deploy.cronapt.default'
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 --no-color cronapt 2>&1' with exit code '1': debian:
Data failed to compile:
----------
Rendering SLS 'base:omv.deploy.cronapt.default' failed: 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 498, 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 24, 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 236, in validate
self.model.validate(self.get_dict())
File "/usr/lib/python3/dist-packages/openmediavault/config/datamodel.py", line 202, in validate
self.schema.validate(data)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 175, in validate
self._validate_type(value, schema, name)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 229, in _validate_type
raise last_exception
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 200, in _validate_type
self._validate_object(value, schema, name)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 305, in _validate_object
self._check_properties(value, schema, name)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 519, in _check_properties
self._validate_type(value[propk], propv, path)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 229, in _validate_type
raise last_exception
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 209, in _validate_type
self._validate_string(value, schema, name)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 284, in _validate_string
self._check_enum(value, schema, name)
File "/usr/lib/python3/dist-packages/openmediavault/json/schema.py", line 475, in _check_enum
% (valuev, ", ".join(map(str, schema['enum']))),
openmediavault.json.schema.SchemaValidationException: tls: Invalid value '0', allowed values are 'none, ssl, starttls, auto'.
; line 24
---
[...]
{% set notification_config = salt['omv_conf.get_by_filter'](
'conf.system.notification.notification',
{'operator': 'stringEquals', 'arg0': 'id', 'arg1': 'cronapt'},
min_result=1, max_result=1)[0] %}
{% set email_config = salt['omv_conf.get']('conf.system.notification.email') %} <======================
{% set refrain_file = salt['pillar.get']('default:OMV_CRONAPT_REFRAINFILE', '/etc/cron-apt/refrain') %}
# If this file exist cron-apt will silently exit, so make sure
# it does not exist.
remove_cron-apt_refrain_file:
[...]
--- in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): 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/bgstatusIO...', '/tmp/bgoutputN4...')
#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}
Alles anzeigen
Was wondering what to do now? I haven't reverted yet...