Page 1 of 1

hostnamectl: Failed to activate service

Posted: Mon Apr 13, 2020 1:45 pm
by ^rooker
[PROBLEM]
Trying to set the hostname using "hostnamectl" (Xubuntu 18.04.1):

Code: Select all

$ hostnamectl set-hostname MY_HOSTNAME
Get the following error:
Could not set property: Failed to activate service 'org.freedesktop.hostname1': timed out (service_start_timeout=25000ms)
[SOLUTION]
It's weird, because executing the same command again "just worked".
The error message appeared after executing hostnamectl immediately after resuming from suspend mode. Maybe that's related :?


A possibly related Ansible issue?
https://github.com/ansible/ansible/issues/19814