Hey everyone
I just finished installing OMV 5 on my Raspberry Pi 4 using this guide, and I began configuring it.
I managed to change the administrator password and the auto logout timer without problems. The problems began when I wanted to change the hostname.
I set the hostname to "nas" and applied changes. The hostname was indeed changed, but now the "Your configuration has been changed" prompt constantly shows up, and when I try to apply changes, I get:
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 avahi 2>&1' with exit code '1': Traceback (most recent call last):
File "/usr/lib/python3.7/encodings/idna.py", line 165, in encode
raise UnicodeError("label empty or too long")
UnicodeError: label empty or too long
The above exception was the direct cause of the following exception:
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 2259, in ip_fqdn
info = socket.getaddrinfo(_fqdn, None, socket_type)
File "/usr/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long) 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/bgstatusa4...', '/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}
Alles anzeigen
I used the latest Raspbian Buster Lite image from 2020-02-05. Rebooting the Pi does not affect the issue. Did I do something wrong?
EDIT: I tried to revert the changes using the "Revert" button, the message disappeared, but I'm also getting the same error when trying to mount a file system.
EDIT 2: I managed to recover from the issue by:
- clicking the "Revert" button to revert changes
- checking what's the default hostname set in "System > Network"
- changing the hostname back to default, which in my case was "sudo hostname raspberrypi"
The issue comes back every time I try to change the hostname either via the OMV panel, or with the "hostname" command.