[opensuse] 13.1 - spastic 'Unit dbus-org.freedesktop.ModemManager1.service' log messages
All, How in the heck do I stop dbus from filling my logs with ModemManager nonsense? My logs are literally filled with: 2015-10-12T01:49:35.685011-05:00 alchemy dbus[594]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service' 2015-10-12T01:49:35.686490-05:00 alchemy dbus[594]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory. This is my toshiba laptop, it has a software modem -- it will never work. I have disabled the service: # sc status ModemManager ModemManager.service - Modem Manager Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; disabled) Active: inactive (dead) but still my logs keep filling up... How do I tell 13.1 to "forget about ModemManger, let it rest, drop it already..." I guess what I'm properly looking for is "How do I take ModemManager out of the dbus check that is continually running?" Do I delete the .conf file in /etc/dbus-1/system.d/ ? What's the trick? -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-12 08:54, David C. Rankin wrote:
All,
How in the heck do I stop dbus from filling my logs with ModemManager nonsense? My logs are literally filled with:
2015-10-12T01:49:35.685011-05:00 alchemy dbus[594]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service' 2015-10-12T01:49:35.686490-05:00 alchemy dbus[594]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
I filter out thousands of "org.freedesktop" messages about many issues. Somebody apparently made some update with debug messages enabled, several months ago. I thought I had reported in Bugzilla, but I can't find it. Or maybe remove modemmamanger from the system. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
12.10.2015 09:54, David C. Rankin пишет:
All,
How in the heck do I stop dbus from filling my logs with ModemManager nonsense? My logs are literally filled with:
2015-10-12T01:49:35.685011-05:00 alchemy dbus[594]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service' 2015-10-12T01:49:35.686490-05:00 alchemy dbus[594]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.
This is my toshiba laptop, it has a software modem -- it will never work.
I have disabled the service:
# sc status ModemManager ModemManager.service - Modem Manager Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; disabled) Active: inactive (dead)
but still my logs keep filling up...
This is the *EXACT* reason for your logs filling up. Enable it and errors will go away.
How do I tell 13.1 to "forget about ModemManger, let it rest, drop it already..."
Uninstall NetworkManager
I guess what I'm properly looking for is "How do I take ModemManager out of the dbus check that is continually running?" Do I delete the .conf file in /etc/dbus-1/system.d/ ? What's the trick?
/usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service but it will be back on update. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/13/2015 11:46 AM, Andrei Borzenkov wrote:
I have disabled the service:
# sc status ModemManager ModemManager.service - Modem Manager Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; disabled) Active: inactive (dead)
but still my logs keep filling up...
This is the *EXACT* reason for your logs filling up. Enable it and errors will go away.
No, that is incorrect, it just fills my logs with different messages. Why do you think I started looking for a way to turn the damn thing off to begin with. The modem is not compatible with modem manager and it cannot find a compatible USB device when it is running, so I get those messages instead.
How do I tell 13.1 to "forget about ModemManger, let it rest, drop it already..."
Uninstall NetworkManager
I use NetworkManager, why it is not smart enough to recognize incompatible software modems given that is has been around long enough to mature, is another question altogether.
I guess what I'm properly looking for is "How do I take ModemManager out of the dbus check that is continually running?" Do I delete the .conf file in /etc/dbus-1/system.d/ ? What's the trick?
/usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service but it will be back on update.
~/.bashrc mmsvc=/usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service [ -f "$mmsvc" ] && sudo rm -f "$mmsvc" Thanks -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-10-14 04:24, David C. Rankin wrote:
On 10/13/2015 11:46 AM, Andrei Borzenkov wrote:
This is the *EXACT* reason for your logs filling up. Enable it and errors will go away.
No, that is incorrect, it just fills my logs with different messages. Why do you think I started looking for a way to turn the damn thing off to begin with. The modem is not compatible with modem manager and it cannot find a compatible USB device when it is running, so I get those messages instead.
Then filter them out. In "/etc/rsyslog.conf" I have: if ($programname startswith 'org.gtk.' and $msg contains '### debug:') or ($programname startswith 'org.gtk.vfs.Daemon') or ($programname startswith 'org.freedesktop. Tracker1') \ or ($programname startswith 'org.gnome.evince.Daemon' and ($msg contains 'egisterDocument' or $msg contains 'Watch name')) \ or ($programname startswith 'org.gnome.zeitgeist.Engine') \ or ($programname startswith 'org.xfce.FileManager' and ($msg contains 'fixme:' )) \ or ($programname == 'systemd' and ($msg contains 'Failed to open private bus connection: Failed to connect to socket' )) \ then -/var/log/pruned & stop if ($syslogfacility-text == 'mail') and ($programname == 'spamd' or $syslogtag == '[spamd]:') and \ ($msg contains_i 'Use of each() on hash after insertion without resetting hash iterator results in undefined behavior') \ then -/var/log/pruned.warn & stop You would need something like, before the entries for warn and messages: # 2015-10-12T01:49:35.685011-05:00 alchemy dbus[594]: [system] Activating via systemd: service name='org.freedesktop.ModemManager1' unit='dbus-org.freedesktop.ModemManager1.service' # 2015-10-12T01:49:35.686490-05:00 alchemy dbus[594]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.ModemManager1.service': Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory. if ($programname == 'dbus' and $syslogtag == '[system]:') and \ ($msg contains_i 'Activation via systemd') and ($msg contains_i 'dbus-org.freedesktop.ModemManager1.service') \ then -/var/log/pruned & stop Test it via: #CER: Test config by using # rsyslogd -N 2 -f /etc/rsyslog.conf # Then restart service (reload is not enough) Warning: sometimes rules fail and it is impossible to find out why. rsyslog has terrible syntax error reporting, IMO. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
participants (3)
-
Andrei Borzenkov
-
Carlos E. R.
-
David C. Rankin