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 --no-color proftpd 2>&1' with exit code '1': Timo-NAS.local:
----------
ID: configure_proftpd_mod_core
Function: file.managed
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: File /etc/proftpd/proftpd.conf updated
Started: 21:26:15.405470
Duration: 136.625 ms
Changes:
----------
diff:
---
+++
@@ -53,50 +53,3 @@
-
- DefaultRoot /srv/ftp
- MaxClients 5
- MaxLoginAttempts 1
- RequireValidShell on
- # This option is useless because this is handled via the PAM
- # pam_listfile.so module, so set it to 'off' by default.
- UseFtpUsers off
-
-
- AuthPAM on
- AuthPAMConfig proftpd
-
-
- BanEngine off
- BanControlsACLs all allow user root
- BanLog /var/log/proftpd/ban.log
- BanMessage Host %a has been banned
- BanTable /run/proftpd/ban.tab
-
-
- ControlsEngine on
- ControlsMaxClients 2
- ControlsLog /var/log/proftpd/controls.log
- ControlsInterval 5
- ControlsSocket /run/proftpd/proftpd.sock
-
-
- AdminControlsEngine off
-
-
- DelayEngine on
-
-
- FACLEngine on
-
-
- QuotaEngine off
-
-
- Ratios off
-
-
- TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
- TCPAccessSyslogLevels info warn
- TCPServiceName ftpd
-
----------
ID: configure_proftpd_mod_core_default_login_msg
Function: file.managed
Name: /srv/ftp/welcome.msg
Result: True
Comment: File /srv/ftp/welcome.msg is in the correct state
Started: 21:26:15.542296
Duration: 3.041 ms
Changes:
----------
ID: prereq_proftpd_mod_tls_certificates
Function: salt.state
Result: True
Comment: States ran successfully. Updating Timo-NAS.local.
Started: 21:26:15.546790
Duration: 2104.717 ms
Changes:
Timo-NAS.local:
----------
ID: remove_ssl_certificates_crt
Function: module.run
Result: True
Comment: file.find: []
Started: 21:26:15.807479
Duration: 11.522 ms
Changes:
----------
file.find:
----------
ID: remove_ssl_certificates_key
Function: module.run
Name: file.find
Result: True
Comment:
Started: 21:26:15.819153
Duration: 0.827 ms
Changes:
----------
ID: update_ssl_certificates
Function: cmd.run
Name: update-ca-certificates --fresh
Result: True
Comment: Command "update-ca-certificates --fresh" run
Started: 21:26:15.820926
Duration: 1821.751 ms
Changes:
----------
pid:
8263
retcode:
0
stderr:
stdout:
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
137 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
----------
ID: remove_ssh_certificates
Function: module.run
Result: True
Comment: file.find: []
Started: 21:26:17.643176
Duration: 4.346 ms
Changes:
----------
file.find:
Summary for Timo-NAS.local
------------
Succeeded: 4 (changed=3)
Failed: 0
------------
Total states run: 4
Total run time: 1.838 s
----------
ID: configure_proftpd_mod_tls
Function: file.managed
Name: /etc/proftpd/tls.conf
Result: True
Comment: File /etc/proftpd/tls.conf is in the correct state
Started: 21:26:17.651837
Duration: 28.839 ms
Changes:
----------
ID: configure_proftpd_mod_auth
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 9 lines
Started: 21:26:17.680874
Duration: 20.564 ms
Changes:
----------
diff:
---
+++
@@ -53,3 +53,12 @@
+
+ DefaultRoot /srv/ftp
+ MaxClients 5
+ MaxLoginAttempts 1
+ RequireValidShell on
+ # This option is useless because this is handled via the PAM
+ # pam_listfile.so module, so set it to 'off' by default.
+ UseFtpUsers off
+
----------
ID: proftpd_ftpusers_deny_root
Function: file.uncomment
Name: /etc/ftpusers
Result: True
Comment: Pattern already uncommented
Started: 21:26:17.701628
Duration: 2.927 ms
Changes:
----------
ID: configure_proftpd_mod_auth_pam
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 4 lines
Started: 21:26:17.704728
Duration: 3.443 ms
Changes:
----------
diff:
---
+++
@@ -62,3 +62,7 @@
# pam_listfile.so module, so set it to 'off' by default.
UseFtpUsers off
+
+ AuthPAM on
+ AuthPAMConfig proftpd
+
----------
ID: configure_proftpd_mod_ban
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 7 lines
Started: 21:26:17.708314
Duration: 16.498 ms
Changes:
----------
diff:
---
+++
@@ -66,3 +66,10 @@
AuthPAM on
AuthPAMConfig proftpd
+
+ BanEngine off
+ BanControlsACLs all allow user root
+ BanLog /var/log/proftpd/ban.log
+ BanMessage Host %a has been banned
+ BanTable /run/proftpd/ban.tab
+
----------
ID: configure_proftpd_mod_ctrls
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 7 lines
Started: 21:26:17.724991
Duration: 4.581 ms
Changes:
----------
diff:
---
+++
@@ -73,3 +73,10 @@
BanMessage Host %a has been banned
BanTable /run/proftpd/ban.tab
+
+ ControlsEngine on
+ ControlsMaxClients 2
+ ControlsLog /var/log/proftpd/controls.log
+ ControlsInterval 5
+ ControlsSocket /run/proftpd/proftpd.sock
+
----------
ID: configure_proftpd_mod_ctrls_admin
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 3 lines
Started: 21:26:17.729744
Duration: 3.27 ms
Changes:
----------
diff:
---
+++
@@ -80,3 +80,6 @@
ControlsInterval 5
ControlsSocket /run/proftpd/proftpd.sock
+
+ AdminControlsEngine off
+
----------
ID: configure_proftpd_mod_delay
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 3 lines
Started: 21:26:17.733155
Duration: 3.196 ms
Changes:
----------
diff:
---
+++
@@ -83,3 +83,6 @@
AdminControlsEngine off
+
+ DelayEngine on
+
----------
ID: configure_proftpd_mod_facl
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 3 lines
Started: 21:26:17.736499
Duration: 3.168 ms
Changes:
----------
diff:
---
+++
@@ -86,3 +86,6 @@
DelayEngine on
+
+ FACLEngine on
+
----------
ID: configure_proftpd_mod_quotatab
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 3 lines
Started: 21:26:17.739848
Duration: 3.203 ms
Changes:
----------
diff:
---
+++
@@ -89,3 +89,6 @@
FACLEngine on
+
+ QuotaEngine off
+
----------
ID: configure_proftpd_mod_ratio
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 3 lines
Started: 21:26:17.743201
Duration: 3.22 ms
Changes:
----------
diff:
---
+++
@@ -92,3 +92,6 @@
QuotaEngine off
+
+ Ratios off
+
----------
ID: configure_proftpd_mod_vroot
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: False
Comment: An exception occurred in this state: 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 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 "", line 9, in top-level template code
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='942c1f8b-3d1c-4d4e-89f7-d11e506659eb']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/state.py", line 2154, in call
*cdata["args"], **cdata["kwargs"]
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2106, in wrapper
return f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 6284, in append
source_list=sl_, template=template, defaults=defaults, context=context
File "/usr/lib/python3/dist-packages/salt/states/file.py", line 1256, in _get_template_texts
source, "", template=template, saltenv=__env__, context=tmpctx, **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 812, in get_template
data = salt.utils.templates.TEMPLATE_REGISTRY[template](sfn, **kwargs)
File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 260, 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='942c1f8b-3d1c-4d4e-89f7-d11e506659eb']
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 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 "", line 9, in top-level template code
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='942c1f8b-3d1c-4d4e-89f7-d11e506659eb']
; line 9
---
[...]
VRootEngine {{ v_root_engine }}
VRootLog {{ v_root_log }}
{%- for share in config.shares.share -%}
{%- if share.enable | to_bool -%}
{%- set sfname = salt['omv_conf.get_sharedfolder_path'](share.sharedfolderref) -%} <======================
{%- set sfpath = salt['omv_conf.get_sharedfolder_name'](share.sharedfolderref) %}
VRootAlias "{{ sfname }}" "{{ sfpath.rstrip('/') }}"
{%- endif -%}
{%- endfor %}
[...]
---
Started: 21:26:17.746574
Duration: 72.209 ms
Changes:
----------
ID: configure_proftpd_mod_wrap
Function: file.append
Name: /etc/proftpd/proftpd.conf
Result: True
Comment: Appended 5 lines
Started: 21:26:17.819029
Duration: 4.871 ms
Changes:
----------
diff:
---
+++
@@ -95,3 +95,8 @@
Ratios off
+
+ TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
+ TCPAccessSyslogLevels info warn
+ TCPServiceName ftpd
+
----------
ID: create_proftpd_hosts_file_-etc-hosts.allow
Function: file.managed
Name: /etc/hosts.allow
Result: True
Comment: File /etc/hosts.allow exists with proper permissions. No changes made.
Started: 21:26:17.824068
Duration: 2.07 ms
Changes:
----------
ID: create_proftpd_hosts_file_-etc-hosts.deny
Function: file.managed
Name: /etc/hosts.deny
Result: True
Comment: File /etc/hosts.deny exists with proper permissions. No changes made.
Started: 21:26:17.826301
Duration: 2.043 ms
Changes:
----------
ID: start_proftpd_service
Function: test.nop
Result: True
Comment: Success!
Started: 21:26:17.829361
Duration: 0.692 ms
Changes:
----------
ID: unmonitor_proftpd_service
Function: module.run
Name: monit.unmonitor
Result: True
Comment:
Started: 21:26:17.830971
Duration: 0.697 ms
Changes:
----------
ID: stop_proftpd_service
Function: service.dead
Name: proftpd
Result: True
Comment: The service proftpd is already dead
Started: 21:26:17.852379
Duration: 79.355 ms
Changes:
Summary for Timo-NAS.local
-------------
Succeeded: 20 (changed=12)
Failed: 1
-------------
Total states run: 21
Total run time: 2.499 s in /usr/share/php/openmediavault/system/process.inc:195
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/bgstatusN3...', '/tmp/bgoutputRh...')
#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}