What's new

[RT-AC3200 384.13-2] dnsmasq - out of space/no resolution

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Nigel Jones

Regular Contributor
This morning I noticed I wasn't able to reach many web sites on my phone. same on pc. some recently used sites ok. Checked my router, and noted errors :

Jan 29 08:31:38 dnsmasq-dhcp[285]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 29 08:31:45 dnsmasq[285]: failed to allocate 328 bytes
Jan 29 08:31:45 dnsmasq[285]: failed to allocate 328 bytes


I am using dns over tls to google.

Also

nigel@RT-AC3200-AD90:/tmp/home/root# ps w | grep dns
285 nobody 3352 S dnsmasq --log-async
nigel@RT-AC3200-AD90:/tmp/home/root# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 31872 31872 0 100% /
devtmpfs 127576 0 127576 0% /dev
tmpfs 127716 1876 125840 1% /tmp
/dev/mtdblock4 65536 13144 52392 20% /jffs
/dev/sda1 3845677072 986188224 2664139704 27% /tmp/mnt/PLANETF1
/dev/root 31872 31872 0 100% /usr/sbin/tc



Although I didn't capture it, the GUI was showing around 50% mem used, and this was confirmed by looking at /proc/meminfo.

The filesystem did seem full up - in fact even after a reboot it's really full - so not sure if I can do something there, perhaps getting dnsmasq to write leases elsewhere -- though if it's already got a file written I doubt it would get into another block to cause a write issue.

The memory allocation failure is odd.

I could switch over dns over tls, configure clients instead, perhaps try the 3200 alpha build - though the release notes don't indicate much changed (shame no new GPL code :-( )

My initial thought is to change the lease location to somewhere under /jffs? ie change default
#dhcp-leasefile=/var/lib/misc/dnsmasq.leases


Anyone else noticed this?
 
This error has been reported many times over the years. It's not a dnsmasq problem per se but just an indication that you have run out of free memory. The /var filesystem is held in memory.
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top