MediaTomb breaking after Ubuntu upgrade

Yesterday, upgraded Ubuntu Server from 14.10 to 15.04, and somehow it broke MediaTomb. After upgrade, my uPnP server was not showing up in consuming devices.

I looked at the logs, and found that MediaTomb was binding to localhost

cat /var/log/mediatomb
2015-06-07 12:31:46    INFO: Loading configuration from: /etc/mediatomb/config.xml
2015-06-07 12:31:46    INFO: Checking configuration...
2015-06-07 12:31:46    INFO: Setting filesystem import charset to UTF-8
2015-06-07 12:31:46    INFO: Setting metadata import charset to UTF-8
2015-06-07 12:31:46    INFO: Setting playlist charset to UTF-8
2015-06-07 12:31:46 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check http://www.youtube.com/t/terms
By using this feature you may be violating YouTube
service terms and conditions!
2015-06-07 12:31:46    INFO: Configuration check succeeded.
2015-06-07 12:31:46    INFO: Initialized port: 50500
2015-06-07 12:31:46    INFO: Server bound to: 127.0.0.1

Instead of 127.0.0.1, there should be the actual IP address assigned to the Server.

I then checked the /etc/default/mediatomb file, and found that MT_INTERFACE variable was set to “lo”. THIS SHOULD BE SET TO YOUR ETH INTERFACE, which in my case is eth0

So, setting MT_INTERFACE=eth0, and restarting MediaTomb fixed the issue

2015-06-07 12:44:25    INFO: Loading configuration from: /etc/mediatomb/config.xml
2015-06-07 12:44:25    INFO: Checking configuration...
2015-06-07 12:44:25    INFO: Setting filesystem import charset to UTF-8
2015-06-07 12:44:25    INFO: Setting metadata import charset to UTF-8
2015-06-07 12:44:25    INFO: Setting playlist charset to UTF-8
2015-06-07 12:44:25 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check http://www.youtube.com/t/terms
By using this feature you may be violating YouTube
service terms and conditions!
2015-06-07 12:44:25    INFO: Configuration check succeeded.
2015-06-07 12:44:25    INFO: Initialized port: 50500
2015-06-07 12:44:25    INFO: Server bound to: 192.168.0.9
2015-06-07 12:44:26    INFO: MediaTomb Web UI can be reached by following this link:
2015-06-07 12:44:26    INFO: http://192.168.0.9:50500/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.