Created
December 30, 2021 15:10
-
-
Save belegdol/6d1784972c06261a12221044b30e95a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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': odroidxu4: | |
---------- | |
ID: configure_samba_global | |
Function: file.managed | |
Name: /etc/samba/smb.conf | |
Result: True | |
Comment: File /etc/samba/smb.conf is in the correct state | |
Started: 16:02:49.944001 | |
Duration: 208.473 ms | |
Changes: | |
---------- | |
ID: configure_samba_shares | |
Function: file.append | |
Name: /etc/samba/smb.conf | |
Result: False | |
Comment: An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 495, in render_jinja_tmpl | |
template = jinja_env.from_string(tmplstr) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 941, in from_string | |
return cls.from_code(self, self.compile(source), globals, None) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 638, in compile | |
self.handle_exception(source=source_hint) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 832, in handle_exception | |
reraise(*rewrite_traceback_stack(source=source)) | |
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 28, in reraise | |
raise value.with_traceback(tb) | |
File "<unknown>", line 75, in template | |
jinja2.exceptions.TemplateAssertionError: no filter named 'omv_conf_get_by_identifier' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/lib/python3/dist-packages/salt/state.py", line 2171, in call | |
ret = self.states[cdata["full"]]( | |
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 6161, in append | |
tmpret = _get_template_texts( | |
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1123, in _get_template_texts | |
rndrd_templ_fn = __salt__["cp.get_template"]( | |
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 514, in render_jinja_tmpl | |
raise SaltRenderError( | |
salt.exceptions.SaltRenderError: Jinja syntax error: no filter named 'omv_conf_get_by_identifier'; line 75 | |
--- | |
[...] | |
recycle:subdir_mode = {{ recycle_subdir_mode }} | |
recycle:exclude = {{ recycle_exclude }} | |
recycle:exclude_dir = {{ recycle_exclude_dir }} | |
recycle:maxsize = {{ share.recyclemaxsize }} | |
{%- endif %} | |
{%- if share.sharedfolderref | omv_conf_get_by_identifier('conf.system.sharedfolder') | attr('mntentref') | omv_conf_get_by_identifier('conf.system.filesystem.mountpoint') | attr('type') == 'btrfs' %} <====================== | |
{%- set _ = vfs_objects.append('btrfs') %} | |
{%- endif %} | |
vfs objects = {{ vfs_objects | unique | join(' ') }} | |
printable = {{ printable }} | |
create mask = {{ create_mask }} | |
[...] | |
--- | |
Started: 16:02:50.153111 | |
Duration: 181.377 ms | |
Changes: | |
---------- | |
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: 16:02:50.335317 | |
Duration: 12.242 ms | |
Changes: | |
---------- | |
ID: remove_samba_recyclebin_cron_scripts | |
Function: module.run | |
Result: True | |
Comment: file.find: [] | |
Started: 16:02:50.351880 | |
Duration: 4.493 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: 16:02:50.356829 | |
Duration: 6.874 ms | |
Changes: | |
---------- | |
ID: divert_default_wsdd | |
Function: omv_dpkg.divert_add | |
Name: /etc/default/wsdd | |
Result: True | |
Comment: Leaving 'local diversion of /etc/default/wsdd to /etc/default/wsdd.distrib' | |
Started: 16:02:50.365602 | |
Duration: 58.881 ms | |
Changes: | |
---------- | |
ID: divert_samba_smb_config | |
Function: omv_dpkg.divert_add | |
Name: /etc/samba/smb.conf | |
Result: True | |
Comment: Leaving 'local diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distrib' | |
Started: 16:02:50.425305 | |
Duration: 60.219 ms | |
Changes: | |
---------- | |
ID: test_samba_service_config | |
Function: cmd.run | |
Name: samba-tool testparm --suppress-prompt | |
Result: True | |
Comment: Command "samba-tool testparm --suppress-prompt" run | |
Started: 16:02:50.491104 | |
Duration: 505.696 ms | |
Changes: | |
---------- | |
pid: | |
4404 | |
retcode: | |
0 | |
stderr: | |
Unknown parameter encountered: "write cache size" | |
Ignoring unknown parameter "write cache size" | |
INFO 2021-12-30 16:02:50,958 pid:4405 /usr/lib/python3/dist-packages/samba/netcmd/testparm.py #96: Loaded smb config files from /etc/samba/smb.conf | |
INFO 2021-12-30 16:02:50,958 pid:4405 /usr/lib/python3/dist-packages/samba/netcmd/testparm.py #97: Loaded services file OK. | |
stdout: | |
# Global parameters | |
[global] | |
disable spoolss = Yes | |
encrypt passwords = Yes | |
getwd cache = Yes | |
guest account = nobody | |
log file = /var/log/samba/log.%m | |
logging = syslog | |
log level = 0 | |
max log size = 1000 | |
min receivefile size = 16384 | |
pam password change = Yes | |
panic action = /usr/share/samba/panic-action %d | |
passdb backend = tdbsam | |
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . | |
passwd program = /usr/bin/passwd %u | |
printcap name = /dev/null | |
server string = %h server | |
socket options = TCP_NODELAY IPTOS_LOWDELAY | |
unix extensions = Yes | |
workgroup = WORKGROUP | |
fruit:aapl = yes | |
aio read size = 16384 | |
aio write size = 16384 | |
create mask = 0777 | |
directory mask = 0777 | |
use sendfile = Yes | |
---------- | |
ID: start_samba_service | |
Function: service.running | |
Name: smbd | |
Result: False | |
Comment: One or more requisite failed: omv.deploy.samba.20shares.configure_samba_shares | |
Started: 16:02:51.052517 | |
Duration: 0.035 ms | |
Changes: | |
---------- | |
ID: start_samba_service_nmbd | |
Function: service.running | |
Name: nmbd | |
Result: False | |
Comment: One or more requisite failed: omv.deploy.samba.default.start_samba_service | |
Started: 16:02:51.053395 | |
Duration: 0.021 ms | |
Changes: | |
---------- | |
ID: start_wsdd_service | |
Function: service.running | |
Name: wsdd | |
Result: True | |
Comment: The service wsdd is already running | |
Started: 16:02:51.053572 | |
Duration: 169.718 ms | |
Changes: | |
Summary for odroidxu4 | |
------------ | |
Succeeded: 8 (changed=2) | |
Failed: 3 | |
------------ | |
Total states run: 11 | |
Total run time: 1.208 s | |
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': odroidxu4: | |
---------- | |
ID: configure_samba_global | |
Function: file.managed | |
Name: /etc/samba/smb.conf | |
Result: True | |
Comment: File /etc/samba/smb.conf is in the correct state | |
Started: 16:02:49.944001 | |
Duration: 208.473 ms | |
Changes: | |
---------- | |
ID: configure_samba_shares | |
Function: file.append | |
Name: /etc/samba/smb.conf | |
Result: False | |
Comment: An exception occurred in this state: Traceback (most recent call last): | |
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 495, in render_jinja_tmpl | |
template = jinja_env.from_string(tmplstr) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 941, in from_string | |
return cls.from_code(self, self.compile(source), globals, None) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 638, in compile | |
self.handle_exception(source=source_hint) | |
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 832, in handle_exception | |
reraise(*rewrite_traceback_stack(source=source)) | |
File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 28, in reraise | |
raise value.with_traceback(tb) | |
File "<unknown>", line 75, in template | |
jinja2.exceptions.TemplateAssertionError: no filter named 'omv_conf_get_by_identifier' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/usr/lib/python3/dist-packages/salt/state.py", line 2171, in call | |
ret = self.states[cdata["full"]]( | |
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 6161, in append | |
tmpret = _get_template_texts( | |
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1123, in _get_template_texts | |
rndrd_templ_fn = __salt__["cp.get_template"]( | |
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 514, in render_jinja_tmpl | |
raise SaltRenderError( | |
salt.exceptions.SaltRenderError: Jinja syntax error: no filter named 'omv_conf_get_by_identifier'; line 75 | |
--- | |
[...] | |
recycle:subdir_mode = {{ recycle_subdir_mode }} | |
recycle:exclude = {{ recycle_exclude }} | |
recycle:exclude_dir = {{ recycle_exclude_dir }} | |
recycle:maxsize = {{ share.recyclemaxsize }} | |
{%- endif %} | |
{%- if share.sharedfolderref | omv_conf_get_by_identifier('conf.system.sharedfolder') | attr('mntentref') | omv_conf_get_by_identifier('conf.system.filesystem.mountpoint') | attr('type') == 'btrfs' %} <====================== | |
{%- set _ = vfs_objects.append('btrfs') %} | |
{%- endif %} | |
vfs objects = {{ vfs_objects | unique | join(' ') }} | |
printable = {{ printable }} | |
create mask = {{ create_mask }} | |
[...] | |
--- | |
Started: 16:02:50.153111 | |
Duration: 181.377 ms | |
Changes: | |
---------- | |
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: 16:02:50.335317 | |
Duration: 12.242 ms | |
Changes: | |
---------- | |
ID: remove_samba_recyclebin_cron_scripts | |
Function: module.run | |
Result: True | |
Comment: file.find: [] | |
Started: 16:02:50.351880 | |
Duration: 4.493 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: 16:02:50.356829 | |
Duration: 6.874 ms | |
Changes: | |
---------- | |
ID: divert_default_wsdd | |
Function: omv_dpkg.divert_add | |
Name: /etc/default/wsdd | |
Result: True | |
Comment: Leaving 'local diversion of /etc/default/wsdd to /etc/default/wsdd.distrib' | |
Started: 16:02:50.365602 | |
Duration: 58.881 ms | |
Changes: | |
---------- | |
ID: divert_samba_smb_config | |
Function: omv_dpkg.divert_add | |
Name: /etc/samba/smb.conf | |
Result: True | |
Comment: Leaving 'local diversion of /etc/samba/smb.conf to /etc/samba/smb.conf.distrib' | |
Started: 16:02:50.425305 | |
Duration: 60.219 ms | |
Changes: | |
---------- | |
ID: test_samba_service_config | |
Function: cmd.run | |
Name: samba-tool testparm --suppress-prompt | |
Result: True | |
Comment: Command "samba-tool testparm --suppress-prompt" run | |
Started: 16:02:50.491104 | |
Duration: 505.696 ms | |
Changes: | |
---------- | |
pid: | |
4404 | |
retcode: | |
0 | |
stderr: | |
Unknown parameter encountered: "write cache size" | |
Ignoring unknown parameter "write cache size" | |
INFO 2021-12-30 16:02:50,958 pid:4405 /usr/lib/python3/dist-packages/samba/netcmd/testparm.py #96: Loaded smb config files from /etc/samba/smb.conf | |
INFO 2021-12-30 16:02:50,958 pid:4405 /usr/lib/python3/dist-packages/samba/netcmd/testparm.py #97: Loaded services file OK. | |
stdout: | |
# Global parameters | |
[global] | |
disable spoolss = Yes | |
encrypt passwords = Yes | |
getwd cache = Yes | |
guest account = nobody | |
log file = /var/log/samba/log.%m | |
logging = syslog | |
log level = 0 | |
max log size = 1000 | |
min receivefile size = 16384 | |
pam password change = Yes | |
panic action = /usr/share/samba/panic-action %d | |
passdb backend = tdbsam | |
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . | |
passwd program = /usr/bin/passwd %u | |
printcap name = /dev/null | |
server string = %h server | |
socket options = TCP_NODELAY IPTOS_LOWDELAY | |
unix extensions = Yes | |
workgroup = WORKGROUP | |
fruit:aapl = yes | |
aio read size = 16384 | |
aio write size = 16384 | |
create mask = 0777 | |
directory mask = 0777 | |
use sendfile = Yes | |
---------- | |
ID: start_samba_service | |
Function: service.running | |
Name: smbd | |
Result: False | |
Comment: One or more requisite failed: omv.deploy.samba.20shares.configure_samba_shares | |
Started: 16:02:51.052517 | |
Duration: 0.035 ms | |
Changes: | |
---------- | |
ID: start_samba_service_nmbd | |
Function: service.running | |
Name: nmbd | |
Result: False | |
Comment: One or more requisite failed: omv.deploy.samba.default.start_samba_service | |
Started: 16:02:51.053395 | |
Duration: 0.021 ms | |
Changes: | |
---------- | |
ID: start_wsdd_service | |
Function: service.running | |
Name: wsdd | |
Result: True | |
Comment: The service wsdd is already running | |
Started: 16:02:51.053572 | |
Duration: 169.718 ms | |
Changes: | |
Summary for odroidxu4 | |
------------ | |
Succeeded: 8 (changed=2) | |
Failed: 3 | |
------------ | |
Total states run: 11 | |
Total run time: 1.208 s in /usr/share/php/openmediavault/system/process.inc:196 | |
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/bgstatusco...', '/tmp/bgoutputUK...') | |
#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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment