File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 100, in get_sharedfolder_path mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref']) 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/fstab/mntent[uuid='d9e6f830-4c23-4c4b-b965-717bd5b1b8f3'] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call *cdata["args"], **cdata["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 "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/file.py", line 6162, in append source_list=sl_, template=template, defaults=defaults, context=context File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1124, in _get_template_texts source, "", template=template, saltenv=__env__, context=tmpctx, **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 "/usr/lib/python3/dist-packages/salt/modules/cp.py", line 318, in get_template return _client().get_template(path, dest, template, makedirs, saltenv, **kwargs) File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 806, in get_template data = salt.utils.templates.TEMPLATE_REGISTRY[template](sfn, **kwargs) File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 261, in render_tmpl output = render_str(tmplstr, context, tmplpath) File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 543, in render_jinja_tmpl "Jinja error: {}{}".format(exc, out), line, tmplstr, trace=tracestr salt.exceptions.SaltRenderError: Jinja error: No such object: //system/fstab/mntent[uuid='d9e6f830-4c23-4c4b-b965-717bd5b1b8f3'] 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 33, 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 100, in get_sharedfolder_path mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref']) 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/fstab/mntent[uuid='d9e6f830-4c23-4c4b-b965-717bd5b1b8f3'] ; line 33 --- [...] {%- for share in config.shares.share | selectattr('enable') %} [{{ salt['omv_conf.get_sharedfolder_name'](share.sharedfolderref) }}] {%- if share.comment | length > 0 %} comment = {{ share.comment }} {%- endif %} path = {{ salt['omv_conf.get_sharedfolder_path'](share.sharedfolderref) }} <====================== guest ok = {% if share.guest != 'no' %}yes{% else %}no{% endif %} guest only = {% if share.guest == 'only' %}yes{% else %}no{% endif %} read only = {% if share.readonly | to_bool %}yes{% else %}no{% endif %} browseable = {% if share.browseable | to_bool %}yes{% else %}no{% endif %} inherit acls = {% if share.inheritacls | to_bool %}yes{% else %}no{% endif %} [...] --- Started: 19:57:33.888147 Duration: 263.31 ms Changes: ---------- ID: configure_samba_homes Function: file.append Name: /etc/samba/smb.conf Result: True Comment: Appended 13 lines Started: 19:57:34.151702 Duration: 23.874 ms Changes: ---------- diff: --- +++ @@ -40,3 +40,16 @@ server max protocol = SMB3 restrict anonymous = 2 usershare allow guests = no +#======================= Home Directories ======================= +[homes] +comment = Home directories +browseable = yes +writable = yes +create mask = 0600 +force create mode = 0600 +directory mask = 0700 +force directory mode = 0700 +valid users = %S +hide special files = yes +follow symlinks = yes +vfs objects = ---------- ID: configure_samba_recyclebin_cron Function: file.managed Name: /etc/cron.daily/openmediavault-samba-recycle Result: True Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state Started: 19:57:34.175679 Duration: 1.759 ms Changes: ---------- ID: remove_samba_recyclebin_cron_scripts Function: module.run Result: True Comment: file.find: [] Started: 19:57:34.177946 Duration: 1.018 ms Changes: ---------- file.find: ---------- ID: configure_default_wsdd Function: file.managed Name: /etc/default/wsdd Result: True Comment: File /etc/default/wsdd is in the correct state Started: 19:57:34.179056 Duration: 1.415 ms Changes: ---------- ID: divert_default_wsdd Function: omv_dpkg.divert_add Name: /etc/default/wsdd Result: True Comment: Dejando `desviación local de /etc/default/wsdd a /etc/default/wsdd.distrib' Started: 19:57:34.180842 Duration: 8.511 ms Changes: ---------- ID: divert_samba_smb_config Function: omv_dpkg.divert_add Name: /etc/samba/smb.conf Result: True Comment: Dejando `desviación local de /etc/samba/smb.conf a /etc/samba/smb.conf.distrib' Started: 19:57:34.189586 Duration: 8.806 ms Changes: ---------- ID: start_samba_service Function: test.nop Result: True Comment: Success! Started: 19:57:34.199497 Duration: 0.521 ms Changes: ---------- ID: stop_samba_service_smbd Function: service.dead Name: smbd Result: True Comment: The service smbd is already dead Started: 19:57:34.212145 Duration: 28.678 ms Changes: ---------- ID: stop_samba_service_nmbd Function: service.dead Name: nmbd Result: True Comment: The service nmbd is already dead Started: 19:57:34.241034 Duration: 23.122 ms Changes: ---------- ID: stop_wsdd_service Function: service.dead Name: wsdd Result: True Comment: The service wsdd is already dead Started: 19:57:34.264359 Duration: 25.265 ms Changes: Summary for debian ------------- Succeeded: 11 (changed=2) Failed: 1 ------------- Total states run: 12 Total run time: 426.113 ms