Name resolution fails after a few days/weeks

–Updated–

Hi, I am running 16.10.1.m3 on an FX30s and am having problems with name resolution within my application after a period of time. It works fine for a while and after a few days/weeks it gets itself into a state, where it will not resolve the hostname within my app. I get “system error” as the result code to “getaddrinfo”.

But it will resolve it if using nslookup from the terminal. Below is the trace. Towards the bottom you will notice “Could not save the default gateway” which presumably is my problem.

However I can’t work out why this is a problem and how to get around it without rebooting the modem. After a reboot it works again for a while.

PS my APN profile is set up with IPV4 only (i.e. not IPV4V6 or IPV6)

Thanks,
Karl

Jul 30 11:59:18 fx30s user.err Legato: =ERR= | modemDaemon[579]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_GET_RUNTIME_SETTINGS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]
Jul 30 11:59:18 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1052 | Default gateway or interface is empty
Jul 30 11:59:18 fx30s user.info Legato: INFO | modemDaemon[579]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2211 | called
Jul 30 11:59:18 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c CellNetStateHandler() 2250 | Device is attached, ready to start a data session
Jul 30 11:59:18 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c TryStartDataSession() 1638 | Delaying data connection attempt.
Jul 30 11:59:23 fx30s user.err Legato: =ERR= | modemDaemon[579]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_WDS_GET_RUNTIME_SETTINGS_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=15.[0x0f]
Jul 30 11:59:23 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetDefaultGateway() 1052 | Default gateway or interface is empty
Jul 30 11:59:23 fx30s user.info Legato: INFO | modemDaemon[579]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2211 | called
Jul 30 11:59:23 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c CellNetStateHandler() 2250 | Device is attached, ready to start a data session
Jul 30 11:59:26 fx30s user.warn Legato: -WRN- | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c SetModemGateway() 1603 | Could not save the default gateway
Jul 30 11:59:26 fx30s user.info Legato: INFO | dcsDaemon[576]/dataConnectionService T=main | dcsServer.c AddNameserversToResolvConf() 1281 | Set DNS ‘8.8.8.8’ ‘212.9.0.136’

@karlkuhn, If you still have the issue, can you please take just the app logs with “logread -f | grep ” when the issue is happening?

Hi @mehdiALL1, thanks for your reply. Yes this problem still happens. I have gotten around it by restarting the device daily and restarting if I can’t resolve the address.

I will try collect logs on this… But it may take a little while. I was hoping this was resolved in the later versions, which is why I have been so keen for R17 (FX30) to come out now for months… over a year I think?

@karlkuhn, honestly, I don’t know when the R17 will be released.