Beiträge von fl2003
-
-
Code
Alles anzeigenroot@omv:~# cat /etc/iptables/openmediavault-firewall.sh #!/bin/sh # This file is auto-generated by openmediavault (https://www.openmediavault.org) # WARNING: Do not edit this file, your changes will get lost. . /usr/share/openmediavault/scripts/helper-functions set -e # Make sure that only one instance of this shell script is running at # the same time. LOCK_FILE=/run/openmediavault-iptables.lock if ! mkdir "${LOCK_FILE}"; then omv_error "Locking failed, another job is running" exit 0 fi trap "rm -rf ${LOCK_FILE}" 0 1 2 3 5 15 case "$1" in start) iptables -t filter -F INPUT iptables -t filter -F OUTPUT iptables -A INPUT -p all --source * --destination * -j ACCEPT ;; stop) iptables -t filter -F INPUT iptables -t filter -F OUTPUT iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT ip6tables -t filter -F INPUT ip6tables -t filter -F OUTPUT ip6tables -P INPUT ACCEPT ip6tables -P OUTPUT ACCEPT ;; esac exit 0 root@omv:~#
-
root@omv:~# /etc/iptables/openmediavault-firewall.sh start
Bad argument `bitcoind-docker'
Try `iptables -h' or 'iptables --help' for more information.
WTF bitcoind? Got I hacked?
-
Part 4:
Code
Alles anzeigenTotal states run: 5 Total run time: 1.856 s [ERROR ] Command '/bin/systemd-run' failed with return code: 1 [ERROR ] stderr: Running scope as unit: run-rcedc6a0a70364266badb8bec6a23d68d.scope Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. [ERROR ] retcode: 1 [ERROR ] An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call ret = self.states[cdata["full"]]( File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run return _run(**kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run func_ret = _call_function( File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs) File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function return salt_function(*function_args, **function_kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart raise CommandExecutionError(_strip_scope(ret["stderr"])) salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:242 Stack trace: #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute() #1 /usr/share/openmediavault/engined/rpc/config.inc(178): 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(620): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusrx...', '/tmp/bgoutputTx...') #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #7 /usr/share/openmediavault/engined/rpc/config.inc(199): 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}
-
Part 3:
Code
Alles anzeigenID: restart_firewall_service Function: module.run Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call ret = self.states[cdata["full"]]( File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run return _run(**kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run func_ret = _call_function( File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs) File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function return salt_function(*function_args, **function_kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart raise CommandExecutionError(_strip_scope(ret["stderr"])) salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. Started: 14:22:41.275112 Duration: 143.583 ms Changes: Summary for debian ------------ Succeeded: 4 (changed=1) Failed: 1 ------------
-
Part 2:
Code
Alles anzeigenSummary for debian ------------ Succeeded: 4 (changed=1) Failed: 1 ------------ Total states run: 5 Total run time: 1.856 s [ERROR ] Command '/bin/systemd-run' failed with return code: 1 [ERROR ] stderr: Running scope as unit: run-rcedc6a0a70364266badb8bec6a23d68d.scope Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. [ERROR ] retcode: 1 [ERROR ] An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call ret = self.states[cdata["full"]]( File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run return _run(**kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run func_ret = _call_function( File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs) File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function return salt_function(*function_args, **function_kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart raise CommandExecutionError(_strip_scope(ret["stderr"])) salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. 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; export LANGUAGE=; omv-salt deploy run --no-color iptables 2>&1' with exit code '1': debian: ---------- ID: configure_firewall_script Function: file.managed Name: /etc/iptables/openmediavault-firewall.sh Result: True Comment: File /etc/iptables/openmediavault-firewall.sh is in the correct state Started: 14:22:35.857043 Duration: 495.536 ms Changes: ---------- ID: configure_firewall_unit_file Function: file.managed Name: /etc/systemd/system/openmediavault-firewall.service Result: True Comment: File /etc/systemd/system/openmediavault-firewall.service is in the correct state Started: 14:22:36.352992 Duration: 189.909 ms Changes: ---------- ID: iptables_systemctl_daemon_reload Function: module.run Result: True Comment: service.systemctl_reload: True Started: 14:22:36.545042 Duration: 874.833 ms Changes: ---------- service.systemctl_reload: True ---------- ID: enable_firewall_service Function: service.enabled Name: openmediavault-firewall.service Result: True Comment: Service openmediavault-firewall.service is already enabled, and is in the desired state Started: 14:22:41.121646 Duration: 152.024 ms Changes: ----------
-
It is too long for one post. So here is part 1:
Code
Alles anzeigenFailed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color iptables 2>&1' with exit code '1': debian: ---------- ID: configure_firewall_script Function: file.managed Name: /etc/iptables/openmediavault-firewall.sh Result: True Comment: File /etc/iptables/openmediavault-firewall.sh is in the correct state Started: 14:22:35.857043 Duration: 495.536 ms Changes: ---------- ID: configure_firewall_unit_file Function: file.managed Name: /etc/systemd/system/openmediavault-firewall.service Result: True Comment: File /etc/systemd/system/openmediavault-firewall.service is in the correct state Started: 14:22:36.352992 Duration: 189.909 ms Changes: ---------- ID: iptables_systemctl_daemon_reload Function: module.run Result: True Comment: service.systemctl_reload: True Started: 14:22:36.545042 Duration: 874.833 ms Changes: ---------- service.systemctl_reload: True ---------- ID: enable_firewall_service Function: service.enabled Name: openmediavault-firewall.service Result: True Comment: Service openmediavault-firewall.service is already enabled, and is in the desired state Started: 14:22:41.121646 Duration: 152.024 ms Changes: ---------- ID: restart_firewall_service Function: module.run Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 2401, in call ret = self.states[cdata["full"]]( File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1282, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 396, in run return _run(**kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 451, in _run func_ret = _call_function( File "/usr/lib/python3/dist-packages/salt/states/module.py", line 497, in _call_function mret = salt.utils.functools.call_function(__salt__[name], *func_args, **func_kwargs) File "/usr/lib/python3/dist-packages/salt/utils/functools.py", line 174, in call_function return salt_function(*function_args, **function_kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1249, in _run_as return _func_or_method(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/systemd_service.py", line 966, in restart raise CommandExecutionError(_strip_scope(ret["stderr"])) salt.exceptions.CommandExecutionError: Job for openmediavault-firewall.service failed because the control process exited with error code. See "systemctl status openmediavault-firewall.service" and "journalctl -xe" for details. Started: 14:22:41.275112 Duration: 143.583 ms Changes:
-
Hallo,
ich habe vor einiger Zeit OMV eingerichtet und ein wenig herumprobiert. Heute habe ich mich im Webinterface angemeldet und diesen Fehler entdeckt. Scheinbar stimmt mit den iptables etwas nicht. Könnt ihr mir helfen?
-
Hey guys,
I have installed OMV with a NFS server on a SSD. The share is on the SSD. Here I have the following problem:
When I access the share with a client (Windows 10 or DVB Receiver), the share hangs. Windows Task Manager shows "No response". It is similar to when I access a hard drive in Windows and it has to wake up first. After about 5 seconds the share is accessible.
This hang is not acceptable for me, because I record TV programs with my DVB receiver. If I now record a program and I start another recording during this program, it comes to this hang. Both recordings are then damaged at this point.
-
Install the sharerootfs plugin.
Thank you. Now it works.
-
Filesystems tab.
No. The systems's disk doesn't show up there.
That is a dangerous practice. If you use up all the space it will cause many problems. If you want to use the space partition the disk to keep it from filling the os partition.
Thanks, I'll think about it. Can I also change the partitions afterwards?
-
Hey,
I have a NFS share on my OMV system's disk. Where can I see the free disk space of the system's disk in webinterface?
Thanks!
-
Here's what else I've noticed. Maybe it helps with troubleshooting?
When I manually spindown the HDD via hdparm -y and it comes up again it stays up.
If I manually put the drive into spindown and then it wakes up again, it stays awake. It no longer goes into spindown.
But if I then read the hard disk information and status via hdparm -I and hdparm -C, it goes into spindown after a short time. Strange, isn't it?
-
I have the same problem: no auto spindown on fresh OMV6. Is there already a solution?
Code
Alles anzeigenroot@OMV:~# omv-showkey hdparm <hdparm> <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid> <devicefile>/dev/xxx</devicefile> <apm>0 = disable|1-255<apm> <aam>0|128|254</aam> <spindowntime>0 = disabled|1-254</spindowntime> <writecache>0|1</writecache> </hdparm> <hdparm> <uuid>1dde588b-75a4-49ef-ba2d-7c72c13442c6</uuid> <devicefile>/dev/disk/by-id/ata-SAMSUNG_HD103SI_S1Y5J9CZ109589</devicefile> <apm>127</apm> <aam>0</aam> <spindowntime>240</spindowntime> <writecache>0</writecache> </hdparm>
-
Hey,
ich habe genau dasselbe Problem. Was meinst du mit "Label"?