Advertisement
Guest User

Untitled

a guest
Feb 10th, 2022
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.15 KB | None | 0 0
  1. Error #0:
  2. 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 samba 2>&1' with exit code '1': debian:
  3. ----------
  4. ID: configure_samba_global
  5. Function: file.managed
  6. Name: /etc/samba/smb.conf
  7. Result: True
  8. Comment: File /etc/samba/smb.conf is in the correct state
  9. Started: 14:23:21.086672
  10. Duration: 35.005 ms
  11. Changes:
  12. ----------
  13. ID: configure_samba_shares
  14. Function: file.append
  15. Name: /etc/samba/smb.conf
  16. Result: False
  17. Comment: An exception occurred in this state: Traceback (most recent call last):
  18. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 732, in execute
  19. self._response = self._response[0]
  20. IndexError: list index out of range
  21.  
  22. During handling of the above exception, another exception occurred:
  23.  
  24. Traceback (most recent call last):
  25. File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 497, in render_jinja_tmpl
  26. output = template.render(**decoded_context)
  27. File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
  28. return original_render(self, *args, **kwargs)
  29. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
  30. return self.environment.handle_exception(exc_info, True)
  31. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
  32. reraise(exc_type, exc_value, tb)
  33. File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
  34. raise value.with_traceback(tb)
  35. File "<template>", line 33, in top-level template code
  36. File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
  37. return __context.call(__obj, *args, **kwargs)
  38. File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
  39. return self.loader.run(run_func, *args, **kwargs)
  40. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
  41. return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  42. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
  43. return _func_or_method(*args, **kwargs)
  44. File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 100, in get_sharedfolder_path
  45. mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref'])
  46. File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, in get
  47. objs = db.get(id_, identifier)
  48. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get
  49. query.execute()
  50. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 737, in execute
  51. raise DatabaseQueryNotFoundException(self.xpath, self.model)
  52. openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/fstab/mntent[uuid='15b6e836-2e89-4011-9aec-9bf3a8a08d78']
  53.  
  54. During handling of the above exception, another exception occurred:
  55.  
  56. Traceback (most recent call last):
  57. File "/usr/lib/python3/dist-packages/salt/state.py", line 2172, in call
  58. *cdata["args"], **cdata["kwargs"]
  59. File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
  60. return self.loader.run(run_func, *args, **kwargs)
  61. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
  62. return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  63. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
  64. return _func_or_method(*args, **kwargs)
  65. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2316, in wrapper
  66. return f(*args, **kwargs)
  67. File "/usr/lib/python3/dist-packages/salt/states/file.py", line 6162, in append
  68. source_list=sl_, template=template, defaults=defaults, context=context
  69. File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1124, in _get_template_texts
  70. source, "", template=template, saltenv=__env__, context=tmpctx, **kwargs
  71. File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
  72. return self.loader.run(run_func, *args, **kwargs)
  73. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
  74. return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  75. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
  76. return _func_or_method(*args, **kwargs)
  77. File "/usr/lib/python3/dist-packages/salt/modules/cp.py", line 318, in get_template
  78. return _client().get_template(path, dest, template, makedirs, saltenv, **kwargs)
  79. File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 806, in get_template
  80. data = salt.utils.templates.TEMPLATE_REGISTRY[template](sfn, **kwargs)
  81. File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 261, in render_tmpl
  82. output = render_str(tmplstr, context, tmplpath)
  83. File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 543, in render_jinja_tmpl
  84. "Jinja error: {}{}".format(exc, out), line, tmplstr, trace=tracestr
  85. salt.exceptions.SaltRenderError: Jinja error: No such object: //system/fstab/mntent[uuid='15b6e836-2e89-4011-9aec-9bf3a8a08d78']
  86. Traceback (most recent call last):
  87. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 732, in execute
  88. self._response = self._response[0]
  89. IndexError: list index out of range
  90.  
  91. During handling of the above exception, another exception occurred:
  92.  
  93. Traceback (most recent call last):
  94. File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 497, in render_jinja_tmpl
  95. output = template.render(**decoded_context)
  96. File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
  97. return original_render(self, *args, **kwargs)
  98. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
  99. return self.environment.handle_exception(exc_info, True)
  100. File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
  101. reraise(exc_type, exc_value, tb)
  102. File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
  103. raise value.with_traceback(tb)
  104. File "<template>", line 33, in top-level template code
  105. File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 438, in call
  106. return __context.call(__obj, *args, **kwargs)
  107. File "/usr/lib/python3/dist-packages/salt/loader.py", line 1235, in __call__
  108. return self.loader.run(run_func, *args, **kwargs)
  109. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2268, in run
  110. return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
  111. File "/usr/lib/python3/dist-packages/salt/loader.py", line 2283, in _run_as
  112. return _func_or_method(*args, **kwargs)
  113. File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 100, in get_sharedfolder_path
  114. mp_obj = get('conf.system.filesystem.mountpoint', sf_obj['mntentref'])
  115. File "/var/cache/salt/minion/extmods/modules/omv_conf.py", line 39, in get
  116. objs = db.get(id_, identifier)
  117. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 85, in get
  118. query.execute()
  119. File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 737, in execute
  120. raise DatabaseQueryNotFoundException(self.xpath, self.model)
  121. openmediavault.config.database.DatabaseQueryNotFoundException: No such object: //system/fstab/mntent[uuid='15b6e836-2e89-4011-9aec-9bf3a8a08d78']
  122.  
  123. ; line 33
  124.  
  125. ---
  126. [...]
  127. {%- for share in config.shares.share | selectattr('enable') %}
  128. [{{ salt['omv_conf.get_sharedfolder_name'](share.sharedfolderref) }}]
  129. {%- if share.comment | length > 0 %}
  130. comment = {{ share.comment }}
  131. {%- endif %}
  132. path = {{ salt['omv_conf.get_sharedfolder_path'](share.sharedfolderref) }} <======================
  133. guest ok = {% if share.guest != 'no' %}yes{% else %}no{% endif %}
  134. guest only = {% if share.guest == 'only' %}yes{% else %}no{% endif %}
  135. read only = {% if share.readonly | to_bool %}yes{% else %}no{% endif %}
  136. browseable = {% if share.browseable | to_bool %}yes{% else %}no{% endif %}
  137. inherit acls = {% if share.inheritacls | to_bool %}yes{% else %}no{% endif %}
  138. [...]
  139. ---
  140. Started: 14:23:21.121774
  141. Duration: 160.167 ms
  142. Changes:
  143. ----------
  144. ID: configure_samba_recyclebin_cron
  145. Function: file.managed
  146. Name: /etc/cron.daily/openmediavault-samba-recycle
  147. Result: True
  148. Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state
  149. Started: 14:23:21.282133
  150. Duration: 2.41 ms
  151. Changes:
  152. ----------
  153. ID: remove_samba_recyclebin_cron_scripts
  154. Function: module.run
  155. Result: True
  156. Comment: file.find: []
  157. Started: 14:23:21.285280
  158. Duration: 1.576 ms
  159. Changes:
  160. ----------
  161. file.find:
  162. ----------
  163. ID: configure_default_wsdd
  164. Function: file.managed
  165. Name: /etc/default/wsdd
  166. Result: True
  167. Comment: File /etc/default/wsdd is in the correct state
  168. Started: 14:23:21.286982
  169. Duration: 1.759 ms
  170. Changes:
  171. ----------
  172. ID: divert_default_wsdd
  173. Function: omv_dpkg.divert_add
  174. Name: /etc/default/wsdd
  175. Result: True
  176. Comment: Leaving 'local diversion of /etc/default/wsdd to /etc/default/wsdd.distrib'
  177. Started: 14:23:21.289210
  178. Duration: 16.304 ms
  179. Changes:
  180. ----------
  181. ID: divert_samba_smb_config
  182. Function: omv_dpkg.divert_add
  183. Name: /etc/samba/smb.conf
  184. Result: True
  185. Comment: Leaving 'local diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distrib'
  186. Started: 14:23:21.305777
  187. Duration: 16.737 ms
  188. Changes:
  189. ----------
  190. ID: test_samba_service_config
  191. Function: cmd.run
  192. Name: samba-tool testparm --suppress-prompt
  193. Result: True
  194. Comment: Command "samba-tool testparm --suppress-prompt" run
  195. Started: 14:23:21.324054
  196. Duration: 125.061 ms
  197. Changes:
  198. ----------
  199. pid:
  200. 25419
  201. retcode:
  202. 0
  203. stderr:
  204. stdout:
  205. # Global parameters
  206. [global]
  207. disable spoolss = Yes
  208. encrypt passwords = Yes
  209. guest account = nobody
  210. log file = /var/log/samba/log.%m
  211. logging = syslog
  212. log level = 0
  213. map to guest = Bad User
  214. max log size = 1000
  215. pam password change = Yes
  216. panic action = /usr/share/samba/panic-action %d
  217. passdb backend = tdbsam
  218. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  219. passwd program = /usr/bin/passwd %u
  220. printcap name = /dev/null
  221. server string = %h server
  222. socket options = TCP_NODELAY IPTOS_LOWDELAY
  223. unix extensions = Yes
  224. workgroup = WORKGROUP
  225. fruit:aapl = yes
  226. aio read size = 16384
  227. aio write size = 16384
  228. create mask = 0777
  229. directory mask = 0777
  230. use sendfile = Yes
  231. ----------
  232. ID: start_samba_service
  233. Function: service.running
  234. Name: smbd
  235. Result: False
  236. Comment: One or more requisite failed: omv.deploy.samba.20shares.configure_samba_shares
  237. Started: 14:23:21.469446
  238. Duration: 0.009 ms
  239. Changes:
  240. ----------
  241. ID: start_samba_service_nmbd
  242. Function: service.running
  243. Name: nmbd
  244. Result: False
  245. Comment: One or more requisite failed: omv.deploy.samba.default.start_samba_service
  246. Started: 14:23:21.469800
  247. Duration: 0.003 ms
  248. Changes:
  249. ----------
  250. ID: start_wsdd_service
  251. Function: service.running
  252. Name: wsdd
  253. Result: True
  254. Comment: Service wsdd is already enabled, and is running
  255. Started: 14:23:21.469869
  256. Duration: 75.088 ms
  257. Changes:
  258. ----------
  259. wsdd:
  260. True
  261.  
  262. Summary for debian
  263. ------------
  264. Succeeded: 8 (changed=3)
  265. Failed: 3
  266. ------------
  267. Total states run: 11
  268. Total run time: 434.119 ms in /usr/share/php/openmediavault/system/process.inc:196
  269. Stack trace:
  270. #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
  271. #1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
  272. #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
  273. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
  274. #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
  275. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusto...', '/tmp/bgoutputmN...')
  276. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
  277. #7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
  278. #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
  279. #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
  280. #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
  281. #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
  282. #12 {main}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement