Debugging

This page tries to give a summary how to debug indicator-network and ConnMan issues. As always, please report a bug if you are having issues with the software.

Back to main page

The easy way to enable debug logs

The easiest way to enable debug logs is to run this command:

  • indicator-network-debug start

This will restart connman and ofono in debug mode, and also enables debug mode in indicator-network-service. All log messages will go to /var/log/syslog and there will be a lots of them Smile :)

Warning! Debug logs contain a lot of information and there might some confidential information, for example passwords. Always be careful when sending debug logs to public so that you don't reveal anything sensitive by accident.

To disable debug logs:

  • indicator-network-debug stop

Alternative method to disable debug logs is to reboot the computer. The system will run normally again.

ConnMan

The logs are in /var/log/syslog. For example, grep for connmand to see only the connman messages.

To enable debug logs:

  1. Edit /etc/init/connman.conf and edit the last line containing the exec stanza like this:
    exec connmand -c -d
  2. Restart connman:
    sudo restart connman
  3. You should see debug messages in /var/log/syslog now:
    Aug 23 12:43:12 dell-m520 connmand[2174]: Connection Manager version 0.59
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/storage.c:__connman_storage_init() 
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/element.c:__connman_element_init() 
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/element.c:connman_element_create() element 0x20ea14e8
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/element.c:__connman_element_initialize() element 0x20ea14e8
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/technology.c:__connman_technology_init() 
    Aug 23 12:43:12 dell-m520 connmand[2174]: src/notifier.c:__connman_notifier_init() 

connman debug logs contain passwords! Remember to replace the passwords, for example, with ****** and mention this in the bug report.

To disable debug logs:

  1. Edit /etc/init/connman.conf and edit the last line containing the exec stanza back to the original form:
    exec connmand -c
  2. Restart connman:
    sudo restart connman

oFono

The logs are in /var/log/syslog.

To enable debug logs permanently:

  1. Edit /etc/init/ofono.conf and edit the last line containing the exec stanza like this and add new env stanza:
    env OFONO_AT_DEBUG=1
    exec ofonod -d
  2. Restart ofono:
    sudo restart ofono

To disable ofono debug messages:

  1. Edit /etc/init/ofono.conf, remove the line containing the env stanza and edit the last line containing the exec stanza back to the original form:
    exec ofonod
    1. Restart ofono
    sudo restart ofono

wpa_supplicant

The logs are in /var/log/syslog.

Permanent solution

To enable debug logs permanently, meaning that debug mode is enabled accross reboots, do this:

  1. Edit /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service and add string '-ddd' to the Exec line like this:
    • [D-BUS Service]
      Name=fi.w1.wpa_supplicant1
      Exec=/sbin/wpa_supplicant -u -s -ddd
      User=root
  2. Stop connman:
    sudo stop connman
  3. Stop wpa_supplicant:
    sudo killall wpa_supplicant
  4. Start connman:
    sudo start connman

ConnMan/Debugging (last edited 2011-03-21 09:58:46 by kvalo)