OMV 3 - Unable to change hostname

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • OMV 3 - Unable to change hostname

      New

      When I attempt to change my hostname through the web GUI, I go to:

      System --> Network --> General --> Hostname

      I input `SkyNet`.

      Click `Save`

      I see a banner appear with `The configuration has been changed. You must apply the changes in order for them to take effect.`, and I click `Apply` next to it.

      I get a loading bar for about a minute.

      I'm then greeted with the following error message:

      Source Code

      1. Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf hostname 2>&1' with exit code '1': Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a Got message type=method_return sender=org.freedesktop.DBus destination=:1.4 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a Sent message type=method_call sender=n/a destination=org.freedesktop.hostname1 object=/org/freedesktop/hostname1 interface=org.freedesktop.hostname1 member=SetPrettyHostname cookie=2 reply_cookie=0 error=n/a Could not set property: Activation of org.freedesktop.hostname1 timed out

      And with the `Show details` expanded:


      Source Code

      1. Error #0:
      2. exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf hostname 2>&1' with exit code '1': Sent message type=method_call sender=n/a destination=org.freedesktop.DBus object=/org/freedesktop/DBus interface=org.freedesktop.DBus member=Hello cookie=1 reply_cookie=0 error=n/a
      3. Got message type=method_return sender=org.freedesktop.DBus destination=:1.4 object=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 error=n/a
      4. Sent message type=method_call sender=n/a destination=org.freedesktop.hostname1 object=/org/freedesktop/hostname1 interface=org.freedesktop.hostname1 member=SetPrettyHostname cookie=2 reply_cookie=0 error=n/a
      5. Could not set property: Activation of org.freedesktop.hostname1 timed out' in /usr/share/php/openmediavault/system/process.inc:175
      6. Stack trace:
      7. #0 /usr/share/openmediavault/engined/module/hostname.inc(37): OMV\System\Process->execute()
      8. #1 /usr/share/openmediavault/engined/rpc/config.inc(168): OMVModuleHostname->applyConfig()
      9. #2 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      10. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      11. #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      12. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(528): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusBh...', '/tmp/bgoutputz3...')
      13. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      14. #7 /usr/share/openmediavault/engined/rpc/config.inc(213): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      15. #8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      16. #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      17. #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      18. #11 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      19. #12 {main}
      Display All


      Does anyone have any ideas?

      I'm a bit lost, and can't find any other similar issue on the forum.


      Thanks.