Menu

Fresh install of Ubuntu 16.04 LTS xenial and Mediatomb

Help
Daniel
2016-06-07
2016-08-05
  • Daniel

    Daniel - 2016-06-07

    Hello, I have been running Mediatomb on my old Ubuntu 12.04 headless server for a very long time, however my trusty old HP Microserver died a slow and painful death so I had a spare Dell T320 laying around and I have installed 16.04 LTS and migrated all of my data over.

    Now my beloved Mediatomb is misbehaving on the new server.

    If I do a sudo service mediatomb status, I see that it is running and I can get to it at: http://localhost:49153 no problem. However When I go to my uPNP device(s) such as my PS3 and WD Live TV's, Mediatomb is not there.

    So, I head back to the server and type:
    sudo mediatomb and bingo, it is running, can still get to the web page and can now see it on my PS3 and WD's, however this isn't so good as I want the service to be running and not have to manually invoke it.

    So, I kill the service and run it as my root user by just typing meidatomb and I get this:

    daniel@BINSVR2:~$ mediatomb
    
    MediaTomb UPnP Server version 0.12.2 - http://mediatomb.cc/
    
    ===============================================================================
    Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
    MediaTomb is free software, covered by the GNU General Public License version 2
    
    2016-06-07 08:23:26    INFO: Loading configuration from: /home/daniel/.mediatomb/config.xml
    2016-06-07 08:23:26    INFO: Checking configuration...
    2016-06-07 08:23:26    INFO: Setting filesystem import charset to UTF-8
    2016-06-07 08:23:26    INFO: Setting metadata import charset to UTF-8
    2016-06-07 08:23:26    INFO: Setting playlist charset to UTF-8
    2016-06-07 08:23:26 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!
    
    2016-06-07 08:23:26    INFO: Configuration check succeeded.
    2016-06-07 08:23:26   ERROR: Error while accessing sqlite database file (/home/daniel/.mediatomb/mediatomb.db): Permission denied
    

    So I go and do a ls -l on the .mediatomb folder:

    daniel@BINSVR2:~/.mediatomb$ ls -l
    total 32
    -rw-r--r-- 1 root root  5317 Jun  3 18:50 config.xml
    -rw-r--r-- 1 root root 18432 Jun  7 08:22 mediatomb.db
    -rw-r--r-- 1 root root   128 Jun  7 08:22 mediatomb.html
    

    It seems to be ok to me (please now bear in mind that my Linux skills aren't so good.

    So I look at these forums etc and see that there may be an issue with my username not being associated with mediatomb in /etc/group
    So I add it like this:

    mediatomb:x:126:daniel:
    

    However, still no luck.

    Is there something blatantly obvious that I am missing?

    Thanks :)

     

    Last edit: Daniel 2016-06-07
  • Bryan Liff

    Bryan Liff - 2016-08-05

    You need to set the following values in /etc/default/mediatomb:

    MT_INTERFACE="eth0" #or whatever you external interface is

    MT_USER="root"
    MT_GROUP="root"

    You should then be able to run it as a service again.

     

    Last edit: Bryan Liff 2016-08-05

Log in to post a comment.