Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in logs

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
undesign
Posts: 108
Joined: 2015-05-27 09:03
Has thanked: 8 times
Been thanked: 8 times

Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in logs

#1 Post by undesign »

My log is full of messages like this:
Dec 02 22:53:38 studio256 dbus-daemon[753]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.655' (uid=1000 pid=1831 comm="/usr/lib/firefox-esr/firefox-esr ")
Dec 02 22:53:38 studio256 systemd[1]: Starting Hostname Service...
Dec 02 22:53:38 studio256 dbus-daemon[753]: [system] Successfully activated service 'org.freedesktop.hostname1'
Dec 02 22:53:38 studio256 systemd[1]: Started Hostname Service.
Dec 02 22:54:08 studio256 systemd[1]: systemd-hostnamed.service: Succeeded.
I also searched on Google, but I did not found something useful.

Any hint will be appreciated. The system is an up to date Debian 11 and the browser is indeed Firefox, but I guess it is not the culprit here.
Last edited by undesign on 2021-12-29 19:57, edited 1 time in total.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#2 Post by FreewheelinFrank »

Seems to be normal behaviour: applications request start of the hostname service via dbus. Journalctl has many entries for various applications, including Firefox, doing so.
Oct 02 12:25:42 Toshiba-laptop dbus-daemon[650]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.144' (uid=1000 pid=14141 comm="/usr/lib/firefox-esr/firefox-esr ")
Oct 02 12:25:43 Toshiba-laptop dbus-daemon[650]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct 02 12:26:13 Toshiba-laptop systemd[1]: systemd-hostnamed.service: Succeeded.
Why would this be of concern?

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 45 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#3 Post by reinob »

$ man systemd-hostnamed

This service autostarts on-demand (and then shuts down) and can e.g. provide the calling program with the hostname (like reading /etc/hostname).

undesign
Posts: 108
Joined: 2015-05-27 09:03
Has thanked: 8 times
Been thanked: 8 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#4 Post by undesign »

The idea is that these messages are seen quite often. I don't know if this is normal or not, at a first glance it seems to e a bug.

Is there a way to suppress these messages in logs?

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 45 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#5 Post by reinob »

It's not a bug/error. Otherwise the messages would indicate some kind of error, but they don't.
If you log to syslog you could filter them out easily.
If you use systemd-journal you can't filter them out (as far as I know anyway), but the question is: why bother.

undesign
Posts: 108
Joined: 2015-05-27 09:03
Has thanked: 8 times
Been thanked: 8 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#6 Post by undesign »

reinob wrote: 2021-12-15 11:48 If you log to syslog you could filter them out easily.
How?

User avatar
NorthEast
Posts: 348
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#7 Post by NorthEast »

Configuration for syslog is in /etc/rsyslog.conf and /etc/rsyslog.d/

undesign
Posts: 108
Joined: 2015-05-27 09:03
Has thanked: 8 times
Been thanked: 8 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#8 Post by undesign »

My /etc/rsyslog.d/drop-user-messages already contains:
:msg,contains,"[system] Activating via systemd: service name='org.freedesktop.hostname1'" stop
:msg,contains,"[system] Successfully activated service 'org.freedesktop.hostname1'" stop
According to the documentation stop means discard. Also /etc/rsyslogd/*.conf is referenced in the main configuration file (/etc/rsyslog.conf):
$IncludeConfig /etc/rsyslog.d/*.conf
So, what's wrong?

undesign
Posts: 108
Joined: 2015-05-27 09:03
Has thanked: 8 times
Been thanked: 8 times

Re: Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' in lo

#9 Post by undesign »

...strange, it doesn't work even if I put the rules first in the main config file in the rules section.

Later edit: I modified the service unit to explicitly specify the config file, but unfortunately the result is the same.

Post Reply