Bug 768206 - messages from dbus-daemon are logged twice
Summary: messages from dbus-daemon are logged twice
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: dbus
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-16 02:02 UTC by Michal Schmidt
Modified: 2015-02-18 13:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-18 13:39:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Schmidt 2011-12-16 02:02:31 UTC
Description of problem:

Everything that dbus-daemon logs reaches the syslog in duplicate.
An example from my /var/log/messages:

Dec 16 02:42:20 alice dbus[1552]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 16 02:42:20 alice dbus-daemon[1552]: dbus[1552]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Dec 16 02:42:21 alice dbus[1552]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Dec 16 02:42:21 alice dbus-daemon[1552]: dbus[1552]: [system] Successfully activated service 'org.freedesktop.PackageKit'

It is caused by using LOG_PERROR:
dbus/dbus-sysdeps-util-unix.c:  openlog ("dbus", LOG_PID | LOG_PERROR, LOG_DAEMON);

LOG_PERROR makes it send the messages to stderr as well. By default all services have their stderr bridged to syslog by systemd.
Thus all messages from dbus-daemon reach the syslog twice: once directly and once indirectly via the stderr->syslog bridge.


Version-Release number of selected component (if applicable):
dbus-1.4.10-3.fc16.x86_64

How reproducible:
always

Steps to Reproduce:
1. look for dbus-daemon in /var/log/messages
  
Actual results:
duplicate messages

Expected results:
no duplication

Additional info:
To fix this, please either remove the LOG_PERROR flag, or use StandardError=null in the dbus.service unit file (with an explanatory comment).

Comment 1 Lennart Poettering 2012-01-12 20:27:03 UTC
I'll prepare a patch for dbus upstream

Comment 2 Fedora End Of Life 2013-01-16 13:02:10 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Håkon Løvdal 2013-02-10 04:34:47 UTC
This issue is not fixed, still a problem on Fedora 18:

Feb 10 05:24:45 localhost dbus-daemon[604]: dbus[604]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Feb 10 05:24:45 localhost dbus[604]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Feb 10 05:24:45 localhost dbus-daemon[604]: dbus[604]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Feb 10 05:24:45 localhost dbus[604]: [system] Successfully activated service 'org.freedesktop.PackageKit'

Comment 4 Fedora End Of Life 2013-02-13 13:41:27 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Fedora Admin XMLRPC Client 2013-02-22 15:20:27 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Fedora Admin XMLRPC Client 2013-02-22 15:24:44 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Håkon Løvdal 2013-07-06 14:53:01 UTC
How is progress for this bug? I it still unsolved for Fedora 19.


Jul  6 16:39:46 anton dbus-daemon[373]: dbus[373]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Jul  6 16:39:46 anton dbus[373]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Jul  6 16:39:46 anton dbus-daemon[373]: dbus[373]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jul  6 16:39:46 anton dbus[373]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jul  6 16:39:49 anton dbus-daemon[373]: dbus[373]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Jul  6 16:39:49 anton dbus[373]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper)
Jul  6 16:39:49 anton dbus-daemon[373]: dbus[373]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Jul  6 16:39:49 anton dbus[373]: [system] Successfully activated service 'org.freedesktop.PackageKit'

Comment 8 Fedora End Of Life 2013-12-21 14:59:11 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Fedora End Of Life 2014-02-05 22:43:58 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 10 Håkon Løvdal 2014-02-06 17:06:05 UTC
Please reopen and change product version to 19.

Comment 11 Fedora End Of Life 2015-01-09 21:54:54 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2015-02-18 13:39:57 UTC
Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.