# Error connecting to QMI No resolv.conf for interface wwan0.udhcpc, no lease failing

**URL:** <https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653>\
**Category:** Cellular IoT HAT\
**Tags:** qmi\
**Created:** [August 12, 2020, 2:19am UTC](https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653 "2020-08-12T02:19:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dong\_jason](https://community.sixfab.com/letter_avatar_proxy/v4/letter/d/3be4f8/32.png) [@dong\_jason](https://community.sixfab.com/u/dong_jason)\
**Post date:** [August 12, 2020, 2:19am UTC](https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653/1 "2020-08-12T02:19:56Z")

</div>

**Followed the QMI setup tutorial and got error of udhcpc: no lease, failing. Running on Kernel version 5.4.51. Raspberry Pi 3.**

**Here is the terminal log:**  
pi@raspberrypi:~/files/quectel-CM $ sudo ./quectel-CM -s vzwinternet  
[08-11\_17:41:03:931] Quectel\_QConnectManager\_Linux\_V1.5.9  
[08-11\_17:41:03:932] Find /sys/bus/usb/devices/1-1.1.2 idVendor=0x2c7c idProduct=0x296, bus=0x001, dev=0x007  
[08-11\_17:41:03:933] Auto find qmichannel = /dev/cdc-wdm0  
[08-11\_17:41:03:933] Auto find usbnet\_adapter = wwan0  
[08-11\_17:41:03:933] netcard driver = qmi\_wwan, driver version = 22-Aug-2005  
[08-11\_17:41:03:933] Modem works in QMI mode  
[08-11\_17:41:03:952] cdc\_wdm\_fd = 7  
[08-11\_17:41:04:086] Get clientWDS = 1  
[08-11\_17:41:04:088] Get clientDMS = 1  
[08-11\_17:41:04:090] Get clientNAS = 1  
[08-11\_17:41:04:092] Get clientUIM = 1  
[08-11\_17:41:04:094] Get clientWDA = 1  
[08-11\_17:41:04:096] requestBaseBandVersion BG96MAR04A03M1G  
[08-11\_17:41:04:106] requestGetSIMStatus SIMStatus: SIM\_READY  
[08-11\_17:41:04:106] requestSetProfile[1] vzwinternet///0  
[08-11\_17:41:04:116] requestGetProfile[1] vzwinternet///0  
[08-11\_17:41:04:118] requestRegistrationState2 MCC: 311, MNC: 480, PS: Attached, DataCap: LTE  
[08-11\_17:41:04:120] requestQueryDataCall IPv4ConnectionStatus: DISCONNECTED  
[08-11\_17:41:04:120] ifconfig wwan0 down  
[08-11\_17:41:04:134] ifconfig wwan0 0.0.0.0  
[08-11\_17:41:04:156] requestSetupDataCall WdsConnectionIPv4Handle: 0x833d9050  
[08-11\_17:41:04:164] ifconfig wwan0 up  
[08-11\_17:41:04:176] busybox udhcpc -f -n -q -t 5 -i wwan0  
udhcpc: started, v1.30.1  
No resolv.conf for interface wwan0.udhcpc  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: no lease, failing  
[08-11\_17:41:19:855] File:ql\_raw\_ip\_mode\_check Line:105 udhcpc fail to get ip address, try next:  
[08-11\_17:41:19:855] ifconfig wwan0 down  
[08-11\_17:41:19:868] echo Y \> /sys/class/net/wwan0/qmi/raw\_ip  
[08-11\_17:41:19:868] ifconfig wwan0 up  
[08-11\_17:41:19:880] busybox udhcpc -f -n -q -t 5 -i wwan0  
udhcpc: started, v1.30.1  
No resolv.conf for interface wwan0.udhcpc  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: sending discover  
udhcpc: no lease, failing  
^C[08-11\_18:00:07:564] requestDeactivateDefaultPDP WdsConnectionIPv4Handle  
[08-11\_18:00:07:569] ifconfig wwan0 down  
[08-11\_18:00:07:587] ifconfig wwan0 0.0.0.0  
[08-11\_18:00:07:609] QmiWwanThread exit  
[08-11\_18:00:07:610] qmi\_main exit

**Also, I ran sudo ./qmi\_install.sh again and got the following output with warning message. Maybe there are some error in “Device.c”?**

Checking Kernel  
5.4.51-v7+ based kernel contains driver  
Installing udhcpc  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
udhcpc is already the newest version (1:1.30.1-4).  
The following package was automatically installed and is no longer required:  
rpi-eeprom-images  
Use ‘sudo apt autoremove’ to remove it.  
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
Copying udhcpc default script  
Change directory to /home/pi/files/quectel-CM  
rm -rf quectel-CM \*~  
rm -rf quectel-qmi-proxy  
gcc -Wall -s quectel-qmi-proxy.c -o quectel-qmi-proxy -lpthread -ldl  
gcc -Wall -s QmiWwanCM.c GobiNetCM.c main.c MPQMUX.c QMIThread.c util.c qmap\_bridge\_mode.c mbim-cm.c device.c udhcpc.c -o quectel-CM -lpthread -ldl  
device.c: In function ‘catch\_log’:  
device.c:380:55: **warning** : ‘%s’ directive writing up to 255 bytes into a region of size between 184 and 236 **[-Wformat-overflow=]**  
sprintf(tbuff, “%04d/%02d/%02d\_%02d:%02d:%02d %s”,  
^~  
tm-\>tm\_year+1900, tm-\>tm\_mon+1, tm-\>tm\_mday, tm-\>tm\_hour, tm-\>tm\_min, tm-\>tm\_sec, buff);  
~~~~  
device.c:380:9: note: ‘sprintf’ output between 21 and 328 bytes into a destination of size 256  
sprintf(tbuff, “%04d/%02d/%02d\_%02d:%02d:%02d %s”,  
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
tm-\>tm\_year+1900, tm-\>tm\_mon+1, tm-\>tm\_mday, tm-\>tm\_hour, tm-\>tm\_min, tm-\>tm\_sec, buff);  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
After reboot please follow commands mentioned below  
go to /home/pi/files/quectel-CM and run sudo ./quectel-CM -s [YOUR APN]

---

<div class="post-metadata">

**Author:** ![bruce-4470](https://community.sixfab.com/letter_avatar_proxy/v4/letter/b/fbc32d/32.png) [@bruce-4470](https://community.sixfab.com/u/bruce-4470)\
**Post date:** [August 18, 2020, 3:21am UTC](https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653/2 "2020-08-18T03:21:29Z")

</div>

I got by this by disabling dhcpd on my PI. Busybox is doing udhcp commands and they seem to get dropped if the “regular” dhcpd is running.

In my case the lP address was leased over LTE, but my other network interfaces eth0 and wlan0 are not working now.

---

<div class="post-metadata">

**Author:** ![santiago](https://community.sixfab.com/user_avatar/community.sixfab.com/santiago/32/728_2.png) [@santiago](https://community.sixfab.com/u/santiago)\
**Post date:** [October 10, 2020, 5:21am UTC](https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653/3 "2020-10-10T05:21:10Z")

</div>

I disabled dhcpcd to get a lease but still no internet at all

---

<div class="post-metadata">

**Author:** ![hanleynh1](https://community.sixfab.com/letter_avatar_proxy/v4/letter/h/e47774/32.png) [@hanleynh1](https://community.sixfab.com/u/hanleynh1)\
**Post date:** [November 19, 2020, 8:28pm UTC](https://community.sixfab.com/t/error-connecting-to-qmi-no-resolv-conf-for-interface-wwan0-udhcpc-no-lease-failing/653/4 "2020-11-19T20:28:29Z")

</div>

I’ve been scratching my head for two days now going through configs and came to this. I’m now getting network connection and no Apipa (169.x.x.x) address thankfully. Now to work around using the other ports for connectivity as well. Thank you for the info!

Update - I modified the dhcpcd.conf file to ignore the wwan0 interface. This allows the hat to function without convergence issues.
