DebuggingNetworkManager

Differences between revisions 49 and 51 (spanning 2 versions)
Revision 49 as of 2014-10-19 00:03:21
Size: 4388
Editor: 50-0-30-165
Comment: corrected URL for debug-helper.py
Revision 51 as of 2015-03-13 23:19:12
Size: 4126
Editor: 5e00a246
Comment: Simplify instructions for running debug-helper.py, which is now installed with NetworkManager
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
First, make sure you have the debug helper script: [[http://cgit.freedesktop.org/NetworkManager/NetworkManager/plain/tools/debug-helper.py]].

Download it with the following command:

{{{
wget http://cgit.freedesktop.org/NetworkManager/NetworkManager/plain/tools/debug-helper.py
}}}
Line 35: Line 27:
sudo python debug-helper.py --nm debug sudo /usr/lib/NetworkManager/debug-helper.py --nm debug
Line 43: Line 35:
sudo python debug-helper.py --mm debug sudo /usr/lib/NetworkManager/debug-helper.py --mm debug
Line 53: Line 45:
sudo python debug-helper.py --wpa msgdump sudo /usr/lib/NetworkManager/debug-helper.py --wpa msgdump
Line 112: Line 104:


== Debugging Cr

Available languages: Italiano,

Debugging Central

This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages.

Bug Summary

If a network-manager bug report is about not being able to connect the title or summary should be in the format:

"[CHIPSET] cannot connect to (ENCRYPT_METHOD)"

where the CHIPSET is the wireless driver used and ENCRYPT_METHOD is the encryption method used by your wireless network.

Understanding your bug and getting more information

Getting debug logs

You can then follow developers' intructions on a bug report for the exact command line to use; or run it directly as such:

Getting NetworkManager debug logs

sudo /usr/lib/NetworkManager/debug-helper.py --nm debug

Then get the logs which will be written to /var/log/syslog. To disable it, pass info instead of debug in the above command, or reboot.

Getting ModemManager debug logs

sudo /usr/lib/NetworkManager/debug-helper.py --mm debug

Then get the logs which will be written to /var/log/syslog. To disable it, pass info instead of debug in the above command, or reboot.

See also DebuggingModemmanager.

Getting wpasupplicant debug logs

sudo /usr/lib/NetworkManager/debug-helper.py --wpa msgdump

Then get the logs which will be written to /var/log/syslog. To disable it, pass info instead of debug in the above command, or reboot.

Getting a capture of syslog

Mixing and mashing the above is perfectly acceptable as well if you want to see how NetworkManager and other parts of the stack interact together.

In order to understand whats going on and track down issues, its good to have a full log. To do so, capture the complete test case and submit the whole file (don't cut out what you think is important). Please add markers in the log file so the bug triager can easily see what actions the user takes at what point of time (this isn't essential, but helps a lot).

To capture the syslog, do:

 tail -n0 -f /var/log/syslog > /tmp/syslog

and to stop capturing do Ctrl-C (you will have to type your other commands in an other window or tab)

Adding markers is just like adding new lines with an editor that show the triager what happened at what point of time. You can also do this on the fly as you test with the command logger "[ clicked on wireless network 'ubuntu']" .

Example marker:

Sep  6 08:12:30 ...

[ clicked on wireless network 'ubuntu']

Sep  6 08:12:31 ...
...

Handling 3G / modem issues

An few extra things that are very helpful to add in case of issues with 3G:

The output of udevadm for tty devices, and output of lsusb:

$ udevadm info --query=all --path=/sys/class/tty/... --attribute-walk

$ lsusb

A Testcase

A good testcase is a step by step instruction to reproduce your bug starting with driver unloaded and NetworkManager stopped.

Stop NetworkManager

  sudo stop network-manager

To unload your driver  sudo modprobe -r DRIVER .

Then load the driver  sudo modprobe DRIVER  and start NetworkManager:

  sudo start network-manager

DebuggingNetworkManager (last edited 2023-06-27 20:21:45 by hellsworth)