Hostname change / Pending changes

  • Hi,


    I changed a hostname on my RPI4 OMV machine. Applied changes.

    Now it still asked me to apply pending changes, even if I've just done it probably 5-6 times already.

    I have this:


    Logged in through SSH and /etc/hostname shows the new name, but /etc/hosts show the old one.


    I can log in to the web admin dashboard using both - old and new hostname.


    Currently I'm on 6.6.0-2 (just upgraded from probably one version down.


    Is the restart required to apply the changes permanently?

    OMV7 on RPi4B, WD elements 4TB

    • Official Post

    Is the restart required to apply the changes permanently?

    Does not hurt.



    I've just done it probably 5-6 times already

    Do you get any error message? Check also the bell icon in the top right corner.


    Do you use any special characters in the new hostname?

  • No special characters in the hostname.

    Old name was "rpi4", new one is "omv" (as I have more rpi4s in the network and it became confusing)


    The /var/lib/openmediavault/dirtymodules.json file shows this:


    Code
    [
    "avahi",
    "postfix",
    "hostname",
    "hosts",
    "systemd-networkd"
    ]




    After applying changes (again!) I got this error info in the top right bell icon (sorry, the post was over 10000 chars, so I had to make pastebin link): https://pastebin.com/RCm3V4Ug




    If not other option - I'll restart it and will see then.

    OMV7 on RPi4B, WD elements 4TB

    • Official Post

    Please check if the file contains {} after appyling the changes in the UI.

    It really is []

    • Official Post
    Quote

    subprocess.CalledProcessError: Command '['systemctl', 'start', 'systemd-networkd.service', 'netplan-wpa-wlan0.service', 'netplan-ovs-cleanup.service']' returned non-zero exit status 1.

    This seems to be the problem. Can you find out some more information when running


    systemctl start systemd-networkd.service netplan-wpa-wlan0.service netplan-ovs-cleanup.service


    manually?

  • This seems to be the problem. Can you find out some more information when running


    systemctl start systemd-networkd.service netplan-wpa-wlan0.service netplan-ovs-cleanup.service


    manually?



    When run it again I didn't have the D-bus warning, but hangs up at the end (doesn't show the command prompt for a minute or two, the show this:

    A dependency job for netplan-wpa-wlan0.service failed. See 'journalctl -xe' for details.

    The same when using sudo before the command.


    The result of journalctl -xe:


    Code
    Aug 22 22:48:07 omv sudo[4318]:       pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/systemctl start systemd-networkd.service netplan-wpa-wlan0.service netplan-ovs-cleanup.service
    Aug 22 22:48:07 omv sudo[4318]: pam_unix(sudo:session): session opened for user root(uid=0) by pi(uid=1000)
    Aug 22 22:49:37 omv sudo[4318]: pam_unix(sudo:session): session closed for user root



    Then applied pending changes and still have similar errors as previously.


    Reboot didn't help.

    Still get the same errors when try to apply pending changes.


    Is it something related to the WLAN adaptor?

    I use wired LAN only. Can I disable WLAN somehow?

    OMV7 on RPi4B, WD elements 4TB

  • use wired LAN only. Can I disable WLAN somehow?

    Yes. And bluetooth also if not needed too.


    sudo cp -a /boot/config.txt /boot/config.txt.bak


    sudo nano /boot/config.txt


    Add these two lines if they don't exist or uncomment them if they exist:

    dtoverlay=disable-wifi

    dtoverlay=disable-bt


    Ctrl+O and ENTER

    Ctrl+X


    Reboot

    7 Ways to Disable Wi-Fi on Raspberry Pi (Lite/Desktop) – RaspberryTips

  • my question was more like: Is the error related to the WLAN adaptor?

    Can't answer to that one.

    I never used an WLAN adapter on the Pis.


    And I always disable everything that I have no need for, WiFi and such.

  • Just to let you all know - when I've been asked to apply the changes again I clicked cancel or revert (cannot remember how it is called) and it doesn't show the notification any longer. Also the /var/lib/openmediavault/dirtymodules.json file is empty. And the hostname is the new hostname I set up a few days ago. So I guess all is as it should be.

    OMV7 on RPi4B, WD elements 4TB

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!