Hello all.
I just upgraded to OMV5 and I am facing this error whenever I try to apply any change thorugh the webUI (rsync changes in this example):
Error #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 rsync 2>&1' with exit code '1': Traceback (most recent call last):
File "/usr/sbin/omv-salt", line 136, in <module>
sys.exit(main())
File "/usr/sbin/omv-salt", line 132, in main
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/sbin/omv-salt", line 120, in deploy_run
caller = salt.client.Caller(mopts=mopts)
File "/usr/lib/python3/dist-packages/salt/client/__init__.py", line 1995, in __init__
self.sminion = salt.minion.SMinion(self.opts)
File "/usr/lib/python3/dist-packages/salt/minion.py", line 842, in __init__
opts['grains'] = salt.loader.grains(opts)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 784, in grains
ret = funcs[key]()
File "/usr/lib/python3/dist-packages/salt/grains/core.py", line 2379, in dns
resolv = salt.utils.dns.parse_resolv()
File "/usr/lib/python3/dist-packages/salt/utils/dns.py", line 1143, in parse_resolv
for line in src_file:
File "/usr/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 10: invalid start byte in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): 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/bgstatusz3...', '/tmp/bgoutputdE...')
#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}
Alles anzeigen
Has it something to do with python module? Should I try to reinstall it?. What is omv-salt exactly? It looks like a new OMV5 thing.
I did:
And I have no packets to be updated at the moment.
I tried browser cache cleaning and locale changing to English/Spanish.
PD: Done some research. It seems there is another user on the same situation: https://forum.openmediavault.o…26061-Salt-Stack-in-OMV5/
Zitat"Every time you apply a configuration change OMV5 checks against its salt states and will fail if they aren't there.
I then have to enable the custom OMV Salt Configuration, apply the change and then disable the config again."
Thanks in advance.
PD: Nevermind, got fixed after a reboot.