SmallNetBuilder Forums
Go Back   SmallNetBuilder Forums > Wireless Networking > ASUS Wireless > Asuswrt-Merlin

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-25-2013, 12:34 PM
Anaksanamune Anaksanamune is offline
New Member
 
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Anaksanamune is just starting out
Default Device full...?

So today I tried to FTP onto my router and it failed, I then tried samba, but nothing was appearing, so decided to take a look into the logs.

Code:
Jan 25 17:07:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:08:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:09:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:10:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:11:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:12:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:13:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:14:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:15:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 7760 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] smbd/lanman.c:get_server_info(1136)
Jan 25 17:16:48 smbd[14731]:   get_server_info: failed to enlarge servers info struct!
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 4096 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 7760 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] smbd/lanman.c:get_server_info(1136)
Jan 25 17:16:48 smbd[14731]:   get_server_info: failed to enlarge servers info struct!
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 4096 bytes
Seems the device is full which I confirmed with:
Code:
admin@RT-N66U:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                22.4M     22.4M         0 100% /
tmpfs                   117.1M      2.8M    114.3M   2% /tmp
devfs                   117.1M         0    117.1M   0% /dev
/dev/mtdblock4            8.1M    516.0K      7.6M   6% /jffs
/dev/sda1                90.2G     27.2G     58.4G  32% /tmp/mnt/sda1
then I go for a rummage around. My /rom folder:
Code:
drwxr-xr-x    2 admin    root         136 Dec 31 22:50 Beceem_firmware/
-rw-r--r--    1 admin    root     1018.4K Dec 31 22:50 asus_base_apps.tgz
-rw-r--r--    1 admin    root        4.1M Dec 31 22:50 downloadmaster_3.1.0.59_mipsel.ipk
drwxr-xr-x    2 admin    root         326 Dec 31 22:50 easy-rsa/
drwxr-xr-x    6 admin    root         216 Dec 31 22:50 etc/
-rw-r--r--    1 admin    root      349.9K Dec 31 22:50 libcurl_7.21.7-1_mipsel.ipk
-rw-r--r--    1 admin    root      301.4K Dec 31 22:50 libevent_2.0.11-1_mipsel.ipk
-rw-r--r--    1 admin    root      139.8K Dec 31 22:50 libpar2_0.2-5_mipsel.ipk
-rw-r--r--    1 admin    root        7.4K Dec 31 22:50 libsigc++_2.2.3-1_mipsel.ipk
-rw-r--r--    1 admin    root       64.6K Dec 31 22:50 libuclibc++_0.2.2-9_mipsel.ipk
-rw-r--r--    1 admin    root      916.2K Dec 31 22:50 libxml2_2.7.8-1_mipsel.ipk
-rw-r--r--    1 admin    root      529.1K Dec 31 22:50 ncurses_5.7-1_mipsel.ipk
-rw-r--r--    1 admin    root      693.4K Dec 31 22:50 openssl_0.9.7m-5_mipsel.ipk
drwxr-xr-x    2 admin    root          26 Dec 31 22:50 openvpn/
-rw-r--r--    1 admin    root        2.4K Dec 31 22:50 optware.asus
-rw-r--r--    1 admin    root      482.5K Dec 31 22:50 optware.oleg
-rw-r--r--    1 admin    root      236.6K Dec 31 22:50 pcre_8.30-1_mipsel.ipk
-rw-r--r--    1 admin    root        8.5K Dec 31 22:50 spawn-fcgi_1.6.3-1_mipsel.ipk
-rw-r--r--    1 admin    root       71.8K Dec 31 22:50 zlib_1.2.5-1_mipsel.ipk
also my /lib folder is spammed up with .so files and links to other folders containing items that probably should be on sda1


I have installed entware, I assume this is the trouble maker, although I thought it would keep to sda1...
If anyone can help fix me up that would be great as I can't access my external drive and I don't want to delete these files until I know the problem as:
A. are they needed?
B. It may just re-write them all back? - not ideal for the flash.

Also slightly off-topic what are tmpfs and devfs each 117.1M, and where are they (physically)?

Thanks

P.S. Not a Linux Guru, so keep it reasonable

Last edited by Anaksanamune; 01-25-2013 at 12:43 PM.
Reply With Quote
  #2  
Old 01-25-2013, 02:55 PM
RMerlin's Avatar
RMerlin RMerlin is offline
Very Senior Member
 
Join Date: Apr 2012
Location: Canada
Posts: 8,593
Thanks: 44
Thanked 4,487 Times in 1,904 Posts
RMerlin is just starting out
Default

Your message is about memory, not storage.

Code:
free
Either you are running too many programs, or one of them is leaking memory.

Root is always full because it's not writable.

tmpfs and devfs are virtual filesystem stored in RAM.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers
Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.

Last edited by RMerlin; 01-25-2013 at 02:57 PM.
Reply With Quote
  #3  
Old 01-25-2013, 03:25 PM
Anaksanamune Anaksanamune is offline
New Member
 
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Anaksanamune is just starting out
Default

Ah well that explains a lot.
Wow, I managed to go completely the wrong way...
anyway...

Code:
admin@RT-N66U:/tmp/home/root# free
              total         used         free       shared      buffers
  Mem:       239868       172464        67404            0         1128
 Swap:            0            0            0
Total:       239868       172464        67404
I'm not sure what normal usage is, or how full it should be
Only things I have on it is transmission and entware

Also 'top' gives this (only pasted things over 1% RAM usage )
Code:
  619   618 admin    S N  91880  38%   0% minidlna -f /etc/minidlna.conf
  608     1 admin    S    91880  38%   0% minidlna -f /etc/minidlna.conf
  618   608 admin    S    91880  38%   0% minidlna -f /etc/minidlna.conf
21875     1 admin    S    18692   8%   0% transmission-daemon -g /opt/etc/transm
  517     1 admin    S     4272   2%   0% httpd
I'll assume the 3 'minidlna' are all the same thing?
Not really sure what that is apart for something to do with media serving, I guess its part of the ASUS software as I have not specifically installed it. I don't have anything set up to do with it as far as I know.
Reply With Quote
  #4  
Old 01-25-2013, 09:11 PM
RMerlin's Avatar
RMerlin RMerlin is offline
Very Senior Member
 
Join Date: Apr 2012
Location: Canada
Posts: 8,593
Thanks: 44
Thanked 4,487 Times in 1,904 Posts
RMerlin is just starting out
Default

minidlna is the Media Server that is used to stream your media files to a device that supports the DLNA protocol (many smart TVs do). If you aren't sharing video/music/photos from a plugged USB drive beside through a network drive then I recommend disabling the Media Server. It will save up on resources and RAM.

They're all the same program, it's just multithreaded so it can handle media scanning in parallel with actually streaming.

Most likely it's Download Master taking up a lot of your RAM.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers
Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
Reply With Quote
  #5  
Old 01-26-2013, 06:23 AM
Anaksanamune Anaksanamune is offline
New Member
 
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Anaksanamune is just starting out
Default

I'll turn off minidlna, although I assume it SHOULD work and this is a bug with asus somewhere?
Problem can't be download master, it is not installed. I followed the transmission through entware guide from scratch because download master was hogging all the ram and just plain bad.
Reply With Quote
  #6  
Old 01-26-2013, 01:31 PM
RMerlin's Avatar
RMerlin RMerlin is offline
Very Senior Member
 
Join Date: Apr 2012
Location: Canada
Posts: 8,593
Thanks: 44
Thanked 4,487 Times in 1,904 Posts
RMerlin is just starting out
Default

Quote:
Originally Posted by Anaksanamune View Post
I'll turn off minidlna, although I assume it SHOULD work and this is a bug with asus somewhere?
Problem can't be download master, it is not installed. I followed the transmission through entware guide from scratch because download master was hogging all the ram and just plain bad.
Download Master or self-installed Transmission is the same - Transmission will use a fair amount of RAM on its own.

This isn't actually a bug, just the router not having enough RAM to run everything you are trying to run on it at the same time.
__________________
Asuswrt-Merlin: Customized firmware for Asus routers
Github: github.com/RMerl - Twitter: RMerlinDev
See the sticky post for more info.
Reply With Quote
  #7  
Old 01-26-2013, 07:45 PM
Anaksanamune Anaksanamune is offline
New Member
 
Join Date: Jan 2013
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Anaksanamune is just starting out
Default

Hmm...
Just not sure where it is gone, watching top with transmission running at full speed the RAM never goes over 8% and CPU stays around 3 - 5%
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 02:29 AM.

Top 10 Stats
Top Posters* Top Thanked
RMerlin  401
stevech  156
thelonelycode...  151
L&LD  126
azazel1024  119
KGB7  86
jim769  80
DrTeeth  69
Adamm  65
speedingcheet...  61
RMerlin  4487
stevech  275
ryzhov_al  199
TeHashX  194
RogerSC  166
L&LD  163
joegreat  105
jlake  102
PrivateJoker  93
sinshiva  88
Most Viewed Threads* Hottest Threads*
Old Asuswrt-Merli...  31771
Old Asuswrt-Merli...  23588
Old ASUS...  22682
Old Beta Version...  17523
Old 'Heartbleed'...  14282
Old Linksys...  9411
Old Potential...  7929
Old Asus-Merlin...  7099
Old Groundhog...  6421
Old Linksys...  5703
Old Asuswrt-Merli...  218
Old Asuswrt-Merli...  176
Old Linksys...  144
Old ASUS...  125
Old Beta Version...  112
Old Potential...  98
Old Linksys...  79
Old Groundhog...  49
Old Asus router...  43
Old USB drive...  39



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2006-2014 Pudai LLC All Rights Reserved.