hostnamectl: Failed to activate service

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1480
Joined: Fri Aug 29, 2003 8:39 pm

hostnamectl: Failed to activate service

Post 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
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply