Description of problem: NM gets 'stuck' and spams logs. Version-Release number of selected component (if applicable): NetworkManager-0.7.0-0.11.svn3930.fc9.x86_64 (from koji) kernel-2.6.25.11-97.fc9.x86_64 wpa_supplicant-0.6.3-6.1bb.fc9.x86_64 (patched for bug 449754) How reproducible: Often, but not always Steps to Reproduce: 1. Log in to X 2. Nothing plugged into ethernet port, wireless connection active Actual results: nm starts logging tons of: NetworkManager: <WARN> nm_error_monitoring_device_link_state(): error monitoring wired ethernet link state: error occurred while waiting for data on socket Doesn't connect - nm-applet has both circles as grey (not green) Expected results: Connects, doesn't spam logs Additional info: If I restart NM a few times, this stops happening. Related to NM upgrade - kernel hasn't changed. [root@plum ~]# grep -c monitoring_device_link /var/log/messages 2889364 When running NM from a shell with -no-daemon, the logs are: NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete. NetworkManager: <info> Config: set interface ap_scan to 1 NetworkManager: <info> (wlan0): supplicant connection state change: 0 -> 2 NetworkManager: <WARN> nm_error_monitoring_device_link_state(): error monitoring wired ethernet link state: error occurred while waiting for data on socket NetworkManager: <WARN> nm_error_monitoring_device_link_state(): error monitoring wired ethernet link state: error occurred while waiting for data on socket .... etc, until I kill it
*** Bug 462339 has been marked as a duplicate of this bug. ***
There should be something to do about this, NM is filling my /var and renders the system unusable. Is is possible to filter out his messages?
It's strange enough, and it seems to not be always spamming. Anyway, this patch should help reduce the number of spam messages :) Maybe you need to rework it a bit, but seems to work for me.
Created attachment 320005 [details] only log to syslog any 5 minutes Be careful, this is not about caching the log message, it may miss some other important information.
I reworked the patch so that only this message is sent to the log system any 5 minutes. I'm not very used to the g_signal thingy, so I'm not sure it's 100% correct (it seems to work). Also, I'm not sure of the internals of NetworkManager, but I don't see anything in the code that tells me that this message can come from different sources (and if so, the message is always the same anyway), so I guess that suppressing instead of catching is not a big issue here. Maybe we could add a counter to tell the user something like "I tried that many times in the last 5 minutes and got always the same error, so I give up and log it".
Created attachment 320801 [details] only log to syslog any 5 minutes (2nd version)
What wireless hardware do people have? Other reports from other distros indicate this is due to a _WiFi_ driver, not an ethernet driver (the NM logs use "wired" regardless of the type). Does rmmod-ing any wifi driver you have stop the spam?
fix upstream in svn r4334
iwl4965 for me. I'll try rmmod next time it happens
rmmod didn't help. I'll try the new version when it hits koji, but I've only ever had this happen at uni, and I'm only here for another couple of weeks.
Ahh! It's doing it again! Dec 8 08:23:26 nbecker1 NetworkManager: <WARN> nm_error_monitoring_device_link_state(): error monitoring wired ethernet link state: error occurred while waiting for data on socket#012 I'm running a backup (heavily using eth0). rsyslog is running loadave 53%, NM is running 40%. My disk will soon fill with these log messages!\ This is NetworkManager-0.7.0-0.12.svn4326.fc10.x86_64
FYI, this should be fixed upstream in r4334 and will get into the next fedora build.
Thanks. Please drop a note here when a new build is available. The problem here is pretty severe. It happened again today, this time not doing any backups or anything special. Killing rsyslog leaves NM running 100% cpu. I have to kill NM.
NetworkManager-0.7.0-1.git20090102.fc10,NetworkManager-vpnc-0.7.0-1.svn13.fc10,NetworkManager-openvpn-0.7.0-18.svn11.fc10,NetworkManager-pptp-0.7.0-1.svn16.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/NetworkManager-0.7.0-1.git20090102.fc10,NetworkManager-vpnc-0.7.0-1.svn13.fc10,NetworkManager-openvpn-0.7.0-18.svn11.fc10,NetworkManager-pptp-0.7.0-1.svn16.fc10
NetworkManager-0.7.0-1.git20090102.fc9,NetworkManager-vpnc-0.7.0-1.svn13.fc9,NetworkManager-openvpn-0.7.0-18.svn11.fc9,NetworkManager-pptp-0.7.0-1.svn16.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/NetworkManager-0.7.0-1.git20090102.fc9,NetworkManager-vpnc-0.7.0-1.svn13.fc9,NetworkManager-openvpn-0.7.0-18.svn11.fc9,NetworkManager-pptp-0.7.0-1.svn16.fc9
NetworkManager-0.7.0-1.git20090102.fc10, NetworkManager-vpnc-0.7.0-1.svn13.fc10, NetworkManager-openvpn-0.7.0-18.svn11.fc10, NetworkManager-pptp-0.7.0-1.svn16.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update NetworkManager NetworkManager-vpnc NetworkManager-openvpn NetworkManager-pptp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-0023
NetworkManager-0.7.0-1.git20090102.fc9, NetworkManager-vpnc-0.7.0-1.svn13.fc9, NetworkManager-openvpn-0.7.0-18.svn11.fc9, NetworkManager-pptp-0.7.0-1.svn16.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing-newkey update NetworkManager NetworkManager-vpnc NetworkManager-openvpn NetworkManager-pptp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-0222
NetworkManager-0.7.0-1.git20090102.fc10, NetworkManager-vpnc-0.7.0-1.svn13.fc10, NetworkManager-openvpn-0.7.0-18.svn11.fc10, NetworkManager-pptp-0.7.0-1.svn16.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
NetworkManager-0.7.0.99-1.fc9,NetworkManager-vpnc-0.7.0.99-1.fc9,NetworkManager-openvpn-0.7.0.99-1.fc9,NetworkManager-pptp-0.7.0.99-1.fc9,NetworkManager-openconnect-0.7.0.99-1.fc9 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/NetworkManager-0.7.0.99-1.fc9,NetworkManager-vpnc-0.7.0.99-1.fc9,NetworkManager-openvpn-0.7.0.99-1.fc9,NetworkManager-pptp-0.7.0.99-1.fc9,NetworkManager-openconnect-0.7.0.99-1.fc9
NetworkManager-0.7.0.99-1.fc9, NetworkManager-vpnc-0.7.0.99-1.fc9, NetworkManager-openvpn-0.7.0.99-1.fc9, NetworkManager-pptp-0.7.0.99-1.fc9, NetworkManager-openconnect-0.7.0.99-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.