Running an Asus RT-N16 with Tomato firmware (v1.28.9050 MIPSR2-beta20 K26 USB Ext) and Optware Mega (http://www.xtremecoders.org/forums/f78/tomato-optware-mega-package-ver-1-0-0-scheduled-197/ which includes Mediatomb V0.11.0-5)
After freshly installing Optware (with a reboot) I can access the Mediatomb Web UI (even though according to the log file it is being bound to the internet interface of the router, not the local LAN interface), and can add directories to be monitored and it appears to begin to scan this, the mediatomb.db file grows accordingly for a while, then everything seems to "semi" lock up - the file stops growing, the message in the interface saying what it is scanning stops, then after a while longer the interface becomes unavailable etc.
Even after a reboot of the router, nothing progresses. Generally it will now say problem loading page, but occasionally seems to get the 3 main sections of the web page, with a message in each saying can't load.
There is still a process running :
958 1 root S 5756 5% 0% /opt/bin/mediatomb -d -u root -g root -P /opt/var/run/mediatomb.pid -l /opt/var/lo
After a reboot, the only thing in the log is:
2010-11-11 21:40:48 INFO: Loading configuration from: /opt/etc/mediatomb/config.xml
2010-11-11 21:40:48 INFO: Checking configuration…
2010-11-11 21:40:48 INFO: Setting filesystem import charset to ASCII
2010-11-11 21:40:48 INFO: Setting metadata import charset to ASCII
2010-11-11 21:40:48 INFO: Setting playlist charset to ASCII
2010-11-11 21:40:48 INFO: Configuration check succeeded.
Have tried various things:
Deleting everything in etc/mediatomb and restarting
Binding mediatomb to either the interface br0 or the LAN ip
Tried various other settings in either of the config files (mediatomb.conf & config.xml)
Was thinking that maybe it is corrupted files/filenames, but seems to stop at a "reasonably" different place each time (after a reinstall), and the same file structure/files work in a mediatomb directory on my local PC, and deleting everything in the config directory should(?) make it reconfig?
Have setup ushare on the same device and it seems to work OK, but would prefer to be able to use mediatomb (ushare is pretty basic… :-( )
Regarding interfaces: this is how libupnp works, you can bind to one interface and UPnP will be available through this interface, but the web server and thus the UI will be available on all interfaces, so it's advisable to firewall that port so it can't be reached from the WAN.
Can't say much about the lockup problem, check where the database is located. Make sure that it resides on your harddrive (i.e. on your storage drive), otherwise it could become too big and eat up all space on your root file system (which might explain the lockups). You can configure the database location in the config.xml file, make sure to restart MediaTomb after you edit the file.
Have been persevering with this, but having very little luck… Have been trying to run this as root on the router, rather than as a daemon process, and have discovered that if I let it start normally (creating it's own config and database file) it fails on startup with a : terminate called after throwing an instance of 'StorageException' message.
If I create the database file using the info here, it all starts up OK, but after selecting the music to add, after a random period, it fails with a message: terminate called after throwing an instance of 'zmm::Exception'
I thought it may be due to illegal characters in filenames/playlists, but after testing, I don't think so as it fails at a different spot most times…
Normally it runs with about half a dozen processes (threads??) running at about 6% mem and little CPU:
10481 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10463 1 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10465 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10468 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10473 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10470 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10472 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10466 10464 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
10464 10463 root S 7724 6% 0% mediatomb -m /opt/home/root -e br0 -p 50500 -l /opt/
and there is plenty of space on the disk:
/dev/sdb2 986104 275124 660888 29% /opt
How can I debug this further? The log file never has errors etc in it, just tells me the last playlist scanned successfully:
2010-11-24 08:57:30 JS: Processing playlist: /mnt/Asus_Back/share/Music/III/Icehouse/Ice
house/IceHouse - IceHouse.m3u
2010-11-24 08:57:34 JS: Processing playlist: /mnt/Asus_Back/share/Music/III/Its a Beauti
ful Day/Its a Beautiful Day.m3u
2010-11-24 08:58:05 JS: Processing playlist: /mnt/Asus_Back/share/Music/JJJ/John Lennon/
Imagine/John Lennon - Imagine.m3u
If I select to scan using the basic level, it gets a lot further, but still fails…
Anyone have any ideas on this…?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.