1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

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

Discussion in 'Asuswrt-Merlin' started by Nigel Jones, Jan 29, 2020.

  1. Nigel Jones

    Nigel Jones Regular Contributor

    May 23, 2017
    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.


    [email protected]:/tmp/home/root# ps w | grep dns
    285 nobody 3352 S dnsmasq --log-async
    [email protected]:/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

    Anyone else noticed this?
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Mar 31, 2014
    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.