What's new

clean upgrade to 384.15 - dnsmasq errors

  • 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!

Striker317

Regular Contributor
Should i be worried about these two type of errors

dnsmasq[19398]: failed to allocate 264 bytes

dnsmasq-dhcp[21055]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 11s)
I have 53 devices in my manually assignment list

Is there a better way of setting up these static dhcp lists?

384.15 on RT-AC86U
 
Should i be worried about these two type of errors

dnsmasq[19398]: failed to allocate 264 bytes

dnsmasq-dhcp[21055]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 11s)
I have 53 devices in my manually assignment list

Is there a better way of setting up these static dhcp lists?

384.15 on RT-AC86U

Just curious - why so many? I limit the range of my DHCP server to ...100 to ...200 and then set all my static ip's between ...1 and ...99 without the need to "reserve" any of them in the DHCP server Tab. Works for me.
 
This message has been reported many times. It is not directly connected to dnsmasq but a side effect of your router running out of memory.

Evaluate what non-standard customisation's you have made to your router that may be consuming large amounts of memory. Consider adding a swap file if you don't already have one. It may simply be a memory leak bug in some part of the firmware in which case rebooting the router may clear the problem for a while.
 
This message has been reported many times. It is not directly connected to dnsmasq but a side effect of your router running out of memory.

Evaluate what non-standard customisation's you have made to your router that may be consuming large amounts of memory. Consider adding a swap file if you don't already have one. It may simply be a memory leak bug in some part of the firmware in which case rebooting the router may clear the problem for a while.

Aside from the 53 static DHCP entries and one VPN client setup, I don't have other customizations going on.

Memory
Total
430.10 MB
Free 216.55 MB
Buffers 0.01 MB
Cache 26.25 MB
Swap No swap configured

Internal Storage
NVRAM usage
68266 / 131072 bytes
JFFS 1.57 / 48.00 MB

I will try setting up a swap space first.
 
@Striker317 can you outline the 'clean upgrade'? Was a saved backup config file used?

Did you also check the 'Initialize all variables...' checkbox too before you hit the 'Restore' button to reset the router?

Did you try flashing the firmware twice, and reset as above each time?
 
@Striker317 can you outline the 'clean upgrade'? Was a saved backup config file used?

Did you also check the 'Initialize all variables...' checkbox too before you hit the 'Restore' button to reset the router?

Did you try flashing the firmware twice, and reset as above each time?
  • No saved backup file was restored
  • "Initialize all the settings, and clear all the data log for AiProtection, Traffic Analyzer, and Web History." checkbox was checked ON before hitting the restore button beside Factory Default.
 
  • No saved backup file was restored
  • "Initialize all the settings, and clear all the data log for AiProtection, Traffic Analyzer, and Web History." checkbox was checked ON before hitting the restore button beside Factory Default.

I've now created a swap partition.
I also turned off the SAMBA server since I'm not using it. All other servers were already off.
 
@Striker317 a swap file using amtm, correct? :)

If this persists, a 'two flash' process may help.

Edit: How big are the descriptions (and icons?) in your static list? There is a hard limit on that one too. ;)
 
@Striker317 a swap file using amtm, correct? :)

If this persists, a 'two flash' process may help.

Edit: How big are the descriptions (and icons?) in your static list? There is a hard limit on that one too. ;)

no descriptions and icons. literally just MAC address and ip.

I saw there was a way to manually assign the static DHCP assignments in a dnsmasq file. I'm happy to try that too if someone has an instruction link for that.
 
Is there a better way of setting up these static dhcp lists?
Do you have a USB stick plugged into your router?

I highly recommend creating a file named 'static_leases' save it on your USB drive... use this format for your device names/address'.
Code:
00:00:00:00:00:00,Devicename,192.168.1.100

Then you can SSH into your router and add this
cd /jffs/configs
nano dnsmasq.conf.add
Code:
dhcp-hostsfile=/mnt/NAMEOFYOURUSBDRIVE/static_leases
ctrl+x to save and exit
Code:
service restart_dnsmasq

Then check your router logs... you should have a line
dnsmasq-dhcp [1006]: read /mnt/NAMEOFYOURUSBDRIVE/static_leases

No more entering all your static leases.... only downside is they dont appear in the GUI afterwards

You can save the list to your /jffs/ as well, but keeping it on your USB saves space
 
I am having periodic WAN connection loss on 384.15 with an RT-AC86U. This has been happening for weeks and with a few slightly earlier firmware versions too. I get a connection loss roughly once or twice a week, and have to login to the router and reboot it to fix. Any help will be much appreciated. I am using Diversion on a USB key attached to the router, that is the only "extra feature" I am using.

Here is a summary of my log. The first part does not look good. What can I do? Thank you so much!

Mar 2 02:00:05 rc_service: service 5994:notify_rc restart_dnsmasq
Mar 2 02:00:05 dnsmasq-dhcp[1727]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Mar 2 02:00:06 custom_script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)

Mar 2 02:00:06 Diversion: restarted Dnsmasq to apply settings
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 60 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 60 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 68 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 57 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 58 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 62 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 57 bytes

[ I get TONS of these, maybe 1,000-2,000 lines and then:]

Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 55 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 2048 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 2048 bytes
Mar 2 02:00:06 dnsmasq[6117]: failed to allocate 2048 bytes
Mar 2 02:00:06 dnsmasq[6117]: cannot read /tmp/resolv.dnsmasq: Cannot allocate memory
Mar 2 02:16:50 wlceventd: WLCEVENTD wlceventd_proc_event(401): eth5: Disassoc 00:D0:2D:3B:2D:68, status: 0, reason: Disassociated because sending station is leaving (or has left) BSS (8)
Mar 2 02:16:53 wlceventd: WLCEVENTD wlceventd_proc_event(420): eth5: Auth 00:D0:2D:3B:2D:68, status: 0, reason: d11 RC reserved (0)
Mar 2 02:16:53 wlceventd: WLCEVENTD wlceventd_proc_event(449): eth5: Assoc 00:D0:2D:3B:2D:68, status: 0, reason: d11 RC reserved (0)
Mar 2 02:31:21 wlceventd: WLCEVENTD wl
 
Do you have a USB stick plugged into your router?

I highly recommend creating a file named 'static_leases' save it on your USB drive... use this format for your device names/address'.
Code:
00:00:00:00:00:00,Devicename,192.168.1.100

Then you can SSH into your router and add this
cd /jffs/configs
nano dnsmasq.conf.add
Code:
dhcp-hostsfile=/mnt/NAMEOFYOURUSBDRIVE/static_leases
ctrl+x to save and exit
Code:
service restart_dnsmasq

Then check your router logs... you should have a line

No more entering all your static leases.... only downside is they dont appear in the GUI afterwards

You can save the list to your /jffs/ as well, but keeping it on your USB saves space

Sorry. I should have followed up.

I have now done all my static lease assignments through this method and I have no more errors described in my Original post.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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