Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2166

Connman Fails on First Boot

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Guppy
    • Connectivity
    • None
    • Raspberry Pi 3 B+

      Hi,

      Today I noticed that from time to time connman fails on first boot on Raspberry Pi 3 B+. I have experienced it twice with AGL master and earlier with guppy. It seems as a race condition. Here is additional information:

      raspberrypi3:~# connmanctl 
      Error getting technologies: The name net.connman was not provided by any .service filesconnmanctl>
      
      raspberrypi3:~# systemctl status connman
      Warning: connman.service changed on disk. Run 'systemctl daemon-reload' to reload units.
      ● connman.service - Connection service
         Loaded: loaded (/lib/systemd/system/connman.service; enabled; vendor preset: enabled)
        Drop-In: /lib/systemd/system/connman.service.d
                 └─smack.conf
         Active: inactive (dead) since Fri 2019-02-08 10:17:50 UTC; 8min ago
       Main PID: 422 (code=exited, status=0/SUCCESS)
      
      Feb 08 10:17:45 raspberrypi3 connmand[422]: Adding interface wlan0 [ wifi ]
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {update} flags 36867 <UP>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 address B8:27:EB:A1:5D:31 mtu 1500
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 operstate 2 <DOWN>
      Feb 08 10:17:50 raspberrypi3 connmand[422]: D-Bus disconnect
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Remove interface eth0 [ ethernet ]
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Remove interface wlan0 [ wifi ]
      Feb 08 10:17:50 raspberrypi3 connmand[422]: eth0 {remove} index 2
      Feb 08 10:17:50 raspberrypi3 connmand[422]: wlan0 {remove} index 3
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Exit
      

      The full log:

      raspberrypi3:~# journalctl -u connman
      -- Logs begin at Fri 2019-02-08 10:17:33 UTC, end at Fri 2019-02-08 15:42:05 UTC. --
      Feb 08 10:17:44 raspberrypi3 systemd[1]: Starting Connection service...
      Feb 08 10:17:44 raspberrypi3 systemd[1]: Started Connection service.
      Feb 08 10:17:44 raspberrypi3 connmand[422]: Connection Manager version 1.34
      Feb 08 10:17:44 raspberrypi3 connmand[422]: Checking loopback interface settings
      Feb 08 10:17:44 raspberrypi3 connmand[422]: System hostname is raspberrypi3
      Feb 08 10:17:45 raspberrypi3 connmand[422]: lo {newlink} index 1 address 00:00:00:00:00:00 mtu 65536
      Feb 08 10:17:45 raspberrypi3 connmand[422]: lo {newlink} index 1 operstate 0 <UNKNOWN>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {create} index 2 type 1 <ETHER>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {update} flags 4098 <DOWN>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 address B8:27:EB:A1:5D:31 mtu 1500
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 operstate 2 <DOWN>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: Adding interface eth0 [ ethernet ]
      Feb 08 10:17:45 raspberrypi3 connmand[422]: wlan0 {create} index 3 type 1 <ETHER>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: wlan0 {update} flags 4098 <DOWN>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: wlan0 {newlink} index 3 address B8:27:EB:F4:08:64 mtu 1500
      Feb 08 10:17:45 raspberrypi3 connmand[422]: wlan0 {newlink} index 3 operstate 2 <DOWN>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: Adding interface wlan0 [ wifi ]
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {update} flags 36867 <UP>
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 address B8:27:EB:A1:5D:31 mtu 1500
      Feb 08 10:17:45 raspberrypi3 connmand[422]: eth0 {newlink} index 2 operstate 2 <DOWN>
      Feb 08 10:17:50 raspberrypi3 connmand[422]: D-Bus disconnect
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Remove interface eth0 [ ethernet ]
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Remove interface wlan0 [ wifi ]
      Feb 08 10:17:50 raspberrypi3 connmand[422]: eth0 {remove} index 2
      Feb 08 10:17:50 raspberrypi3 connmand[422]: wlan0 {remove} index 3
      Feb 08 10:17:50 raspberrypi3 connmand[422]: Exit
      

      So far I haven't seen this issue after the first boot. On first boot to manually fix it without rebooting I ran:

      systemctl restart connman
      

      After that in connmanctl I have disabled and enabled the wifi to make it work.

      Best regards,
      Leon

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            leonanavi Leon Anavi
            leonanavi Leon Anavi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: