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....

hostnamectl: Failed to activate service

Postby ^rooker » Mon Apr 13, 2020 1:45 pm

[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
  • 0

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!
User avatar
^rooker
Site Admin
 
Posts: 1446
Joined: Fri Aug 29, 2003 8:39 pm
Reputation: 0

Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 4 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Google [Bot] and 34 guests

cron
Reputation System ©'