What's new

Asuswrt-Merlin 378.56 Beta 2 is out

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

Status
Not open for further replies.
I'm still running beta 1 on my RT-AC87U, yet I believe this isn't beta 1 specific.

As of last night the filesystem seems full. I can't login anymore and syslog is full with:
Oct 23 08:57:45 192.168.1.1 dnsmasq-dhcp[438]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9s)

Also I can't SSH into it anymore:
user@host:/var/log$ ssh admin@192.168.1.1
ssh_exchange_identification: Connection closed by remote host

As I'm not at home I can't login via the GUI yet and the VPN server doesn't work either.
Download Manager is off, minidlna is off, only timemachine backups are on. I'll need to check what's filling the space but without access it will be difficult ;)

Anyone else perhaps seen this file system full?
 
Last edited:
Anyone else perhaps seen this file system full?

Ops, checked my two systems, one in router-mode and one in access-point mode and both showed this (2 x AC66U/beta2) :

Upgraded from 55 -> 56beta2. No factory reset.

# df -kh
Filesystem Size Used Available Use% Mounted on
/dev/root 20.9M 20.9M 0 100% /
tmpfs 117.0M 6.6M 110.3M 6% /tmp
devfs 117.0M 0 117.0M 0% /dev
/dev/mtdblock5 32.0M 1.2M 30.8M 4% /jffs
 
Last edited:
hi @thelonelycoder , I got an N66U with .55 Merlin, but Im trying to do this, but changing the paths to my own, .. I placed the dnsmasq.postconf in the jffs/scripts, made it executable, and it just says when I try to run it lin 9: cant creat : nonexistent directory
Thanks

Thanks Merlin, it works now as advertised! I am running the beta-2 again.

For the benefit of others here's my /jffs/scripts/dnsmasq.postconf
Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

if [ -d "/mnt/sda1" ]; then
        pc_append "
log-facility=/mnt/sda1/dnsmasq.log" $CONFIG
        pc_append "log-async" $CONFIG
        pc_append "log-queries" $CONFIG
fi
Note the line break in pc_append "log-facility=/mnt/sda1/dnsmasq.log" $CONFIG
This is to force a new line in the dnsmasq.conf. As I have a commented out entry at the end of dnsmasq.conf.add it would append log-facility=/mnt/sda1/dnsmasq.log to that line.

With the line break it works just fine.
 
Hi is it possible to create an selectable option to remove the NULL/npch from the logging, is filling up the whole log and syslog without any information. I read here that is is probably from a protected code, as it can't be remove we can at least try to suppress it?

Any thoughts?

Oct 20 22:22:43 dnsmasq-dhcp[430]: DHCPNAK(br0) 10.103.128.52 80:19:34:72:cd:f1 wrong network
Oct 20 22:22:48 dnsmasq-dhcp[430]: DHCPNAK(br0) 10.103.128.52 80:19:34:72:cd:f1 wrong network
Oct 20 23:09:55 disk_monitor: Got SIGALRM...
Oct 20 23:23:22 kernel: [truncated] pch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch
Oct 20 23:47:16 kernel: [truncated] L/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/np
Oct 21 06:02:24 kernel: [truncated] L/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/np
Oct 21 06:26:23 kernel: [truncated] L/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/np
Oct 21 06:50:22 kernel: [truncated] L/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/np
Oct 21 07:13:31 kernel: [truncated] L/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/npch ==NULL/np

Oct 21 21:10:00 ddns update: ez-ipupdate: starting...
Oct 21 21:10:00 ddns update: connected to nwsrv-ns1.asus.com (103.10.4.108) on port 80.
 
I'm still running beta 1 on my RT-AC87U, yet I believe this isn't beta 1 specific.

As of last night the filesystem seems full. I can't login anymore and syslog is full with:
Oct 23 08:57:45 192.168.1.1 dnsmasq-dhcp[438]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 9s)

Also I can't SSH into it anymore:
user@host:/var/log$ ssh admin@192.168.1.1
ssh_exchange_identification: Connection closed by remote host

As I'm not at home I can't login via the GUI yet and the VPN server doesn't work either.
Download Manager is off, minidlna is off, only timemachine backups are on. I'll need to check what's filling the space but without access it will be difficult ;)

Anyone else perhaps seen this file system full?

This is located in RAM. If that location is full, it means your router is out of RAM.
 
Hi is it possible to create an selectable option to remove the NULL/npch from the logging, is filling up the whole log and syslog without any information. I read here that is is probably from a protected code, as it can't be remove we can at least try to suppress it?

That debug output comes from a closed source component, it's totally outside of my control.
 
Ops, checked my two systems, one in router-mode and one in access-point mode and both showed this (2 x AC66U/beta2) :

Upgraded from 55 -> 56beta2. No factory reset.

# df -kh
Filesystem Size Used Available Use% Mounted on
/dev/root 20.9M 20.9M 0 100% /
tmpfs 117.0M 6.6M 110.3M 6% /tmp
devfs 117.0M 0 117.0M 0% /dev
/dev/mtdblock5 32.0M 1.2M 30.8M 4% /jffs

Nothing special or abnormal here.
 
Looks like / (root fs) is full. Or am I reading it wrong...
Yes, the / (root fs) is full - always - as it contains the firmware of the router and you cannot write to it - unless you flash a new firmware... :rolleyes:
 
Is there a way to test this without booting? dont want to mess up, my USB drive has a name, if I use it if I execute the dnsmasq.postconf it gives me an error, and if I use the sda1 it does not, but I check the file and there is nothing added to the dnsmasq.conf file, please help
thanks

Think I finally made it after multiples errors. The only thing that worked for me was $'\n'. I'm a complete noob. Thanks RMerlin and thelonelycoder. Note that logging is disabled on purpose for now.

Code:
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

if [ -d "/mnt/sda1" ]; then
        pc_append $'\n' $CONFIG
        pc_append "# dnsmasq logging" $CONFIG
        pc_append "# log-facility=/mnt/sda1/logs/dnsmasq.log" $CONFIG
        pc_append "# log-async" $CONFIG
        pc_append "# log-queries" $CONFIG
fi
 
shhooter40sw, no need to reboot. Just run 'service restart_dnsmasq ' and go to etc/dnsmasq.conf to see if you messed something. I did numerous times.
Thats what I have been doing, but nothing shows up in the file, My USB is named x, so instead of sda1, I replace it with the x, and everything works but with this it isn't , I place sda1, it runs ok but the file is justs the same, no modifications... don't get it...
 
Thats what I have been doing, but nothing shows up in the file, My USB is named x, so instead of sda1, I replace it with the x, and everything works but with this it isn't , I place sda1, it runs ok but the file is justs the same, no modifications... don't get it...
What is your full path to the dnsmasq.log file location? Look that up with:
Code:
find / -name dnsmasq.log
If the file is not present create it where you want it. Then run the find command again. Whatever the output is, this is your log-facility= path.
 
@shooter40sw An afterthought: When you change your paths only change the value of "log-facility=" and NOT in this line: if [ -d "/mnt/sda1" ]; then
 
I did it, look:
I tried with the /tmp and without it and the dnsmasq.postconf is executable, I also commented the lines and without the comment. Thanks for the help
Code:
/tmp/etc# find / -name dnsmasq.log
/tmp/mnt/x/logs/dnsmasq.log
------------------
#!/bin/sh
CONFIG=$1
source /usr/sbin/helper.sh

if [ -d "/tmp/mnt/x/logs" ]; then
        pc_append $'\n' $CONFIG
        pc_append "# log-facility=/tmp/mnt/x/logs/dnsmasq.log" $CONFIG
        pc_append "# log-async" $CONFIG
        pc_append "# log-queries" $CONFIG
fi
-------------------------------
Error:
/jffs/scripts# ./dnsmasq.postconf
./dnsmasq.postconf: line 10: can't create : nonexistent directory
./dnsmasq.postconf: line 10: can't create : nonexistent directory
./dnsmasq.postconf: line 10: can't create : nonexistent directory
./dnsmasq.postconf: line 10: can't create : nonexistent directory

--------------
/tmp/mnt/x/logs# ls -lah
-rw-rw-rw- 1 nobody root 1 Oct 23 07:08 dnsmasq.log
----------------

What is your full path to the dnsmasq.log file location? Look that up with:
Code:
find / -name dnsmasq.log
If the file is not present create it where you want it. Then run the find command again. Whatever the output is, this is your log-facility= path.
 
Last edited:
Just tested it, it does not give me the error, but it does not add the lines in the tmp/etc/dnsmasq.conf file either after restarting the service

@shooter40sw An afterthought: When you change your paths only change the value of "log-facility=" and NOT in this line: if [ -d "/mnt/sda1" ]; then
 
Just tested it, it does not give me the error, but it does not add the lines in the tmp/etc/dnsmasq.conf file either after restarting the service
Then something is not right with your /jffs/scripts/dnsmasq.postconf
Did you make it executable with:
Code:
chmod a+rx /jffs/scripts/*

Also maybe post your full path from the find output and your content of dnsmasq.postconf.

Sorry @RMerlin to hijack this thread with this. But it'll blow over soon...
 
Then something is not right with your /jffs/scripts/dnsmasq.postconf
Did you make it executable with:
Code:
chmod a+rx /jffs/scripts/*

Also maybe post your full path from the find output and your content of dnsmasq.postconf.

Sorry @RMerlin to hijack this thread with this. But it'll blow over soon...
Great, apologies....How about creating your own topic?
 
I only did the chmod +x and just did the chmod a+rx on the file
Code:
-rwxrwxrwx    1 Whatever  root         264 Oct 23 12:38 dnsmasq.postconf

------------------------
/tmp/etc/cat dnsmasq.conf
# AdBlocking
address=/0.0.0.0/0.0.0.0
ptr-record=0.0.0.0.in-addr.arpa,0.0.0.0
addn-hosts=/tmp/mnt/x/hosts/hosts.blocked
#addn-hosts=/tmp/mnt/x/hosts/blacklist.txt
#Dnscrypt
no-resolv
server=127.0.0.1#65053
#Logs
----------------------

EDIT:
Part of my syslog in the Router GUI
Oct 23 13:01:05 custom script: Running /jffs/scripts/dnsmasq.postconf (args: /etc/dnsmasq.conf)
Oct 23 13:01:05 dnsmasq[1829]: read /etc/hosts - 5 addresses
Oct 23 13:01:07 dnsmasq[1829]: read /tmp/mnt/x/hosts/hosts.blocked - 78358 addresses
Oct 23 13:01:07 dnsmasq[1829]: read /etc/hosts.dnsmasq - 3 addresses
Oct 23 13:01:07 dnsmasq-dhcp[1829]: read /etc/ethers - 3 addresses
Oct 23 13:01:07 dnsmasq[1829]: using nameserver 208.67.222.222#53 for domain local
Oct 23 13:01:07 dnsmasq[1829]: using nameserver 208.67.220.220#53 for domain local
Oct 23 13:01:07 dnsmasq[1829]: using nameserver 127.0.0.1#65053

Then something is not right with your /jffs/scripts/dnsmasq.postconf
Did you make it executable with:
Code:
chmod a+rx /jffs/scripts/*

Also maybe post your full path from the find output and your content of dnsmasq.postconf.

Sorry @RMerlin to hijack this thread with this. But it'll blow over soon...
 
Last edited:
Status
Not open for further replies.

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