Menu

Web interface available but not showing up on clients

Help
Harald S.
2016-12-18
2016-12-18
  • Harald S.

    Harald S. - 2016-12-18

    Hi,
    I am stuck with this problem for a while (I have already tried it on 2 machines with the same result) :(

    The UI is showing up and works fine, but if I search for the device on the client nothing is showing up. I have tried the following clients:
    VLC
    PS4-MediaPlayer
    UPNPTools - Device Spy http://www.meshcommander.com/upnptools
    UPNPTools - Device Sniffer http://www.meshcommander.com/upnptools

    Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-53-generic x86_64)
    Insatllation guid: https://wiki.ubuntuusers.de/Mediatomb/

    Here the result of nmap:
    PORT STATE SERVICE
    137/udp open netbios-ns
    138/udp open|filtered netbios-dgm
    631/udp open|filtered ipp
    1900/udp open|filtered upnp
    5353/udp open|filtered zeroconf
    22/tcp open ssh
    139/tcp open netbios-ssn
    445/tcp open microsoft-ds
    50500/tcp open unknown

    Config file:

    ## Network interface on which the server will run, you need to edit this!
    MT_INTERFACE="lo"
    
    ## User defined command line options that may be passed to the server
    MT_OPTIONS=""
    
    ## MediaTomb will be started on port 50500
    MT_PORT="50500"
    
    ## MediaTomb will run as mediatomb
    MT_USER="root"
    MT_GROUP="root"
    
    ## Location of the PID file
    MT_PIDFILE="/var/run/mediatomb.pid"
    
    ## Location of the log file
    MT_LOGFILE="/var/log/mediatomb"
    
    ## Location of the config file/database
    MT_HOME="/etc"
    MT_CFGDIR="mediatomb"
    
    # Debian: keep for compat with old sysv init script
    # The route command and arguments to be used if INTERFACE is defined.
    # These variables should normally be left unmodified.
    ROUTE_ADD="/sbin/route add -net 239.0.0.0 netmask 255.0.0.0"
    ROUTE_DEL="/sbin/route del -net 239.0.0.0 netmask 255.0.0.0"
    
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd">
         <!--
         Read /usr/share/doc/mediatomb-common/README.gz section 6 for more
         information on creating and using config.xml configration files.
        -->
      <server>
        <ui enabled="yes" show-tooltips="yes">
          <accounts enabled="yes" session-timeout="30">
            <account user="****" password="****"/>
          </accounts>
        </ui>
        <name>MediaTomb</name>
        <udn>uuid:2b5ade4c-5ffe-4a68-a3c6-0008a3469329</udn>
        <home>/var/lib/mediatomb</home>
        <webroot>/usr/share/mediatomb/web</webroot>
        <storage caching="yes">
          <sqlite3 enabled="yes">
            <database-file>mediatomb.db</database-file>
          </sqlite3>
          <mysql enabled="no">
            <host>localhost</host>
            <username>mediatomb</username>
            <database>mediatomb</database>
          </mysql>
        </storage>
        <protocolInfo extend="yes"/><!-- For PS3 support change to "yes" --><!--
           Uncomment the lines below to get rid of jerky avi playback on the
           DSM320 or to enable subtitles support on the DSM units
        --><!--
        <custom-http-headers>
          <add header="X-User-Agent: redsonic"/>
        </custom-http-headers>
    
        <manufacturerURL>redsonic.com</manufacturerURL>
        <modelNumber>105</modelNumber>
        --><!-- Uncomment the line below if you have a Telegent TG100 --><!--
           <upnp-string-limit>101</upnp-string-limit>
        -->
        <extended-runtime-options>
          <ffmpegthumbnailer enabled="no">
            <thumbnail-size>128</thumbnail-size>
            <seek-percentage>5</seek-percentage>
            <filmstrip-overlay>yes</filmstrip-overlay>
            <workaround-bugs>no</workaround-bugs>
          </ffmpegthumbnailer>
          <mark-played-items enabled="no" suppress-cds-updates="yes">
            <string mode="prepend">*</string>
          </mark-played-items>
        </extended-runtime-options>
      </server>
      <import hidden-files="no">
        <scripting script-charset="UTF-8">
          <common-script>/usr/share/mediatomb/js/common.js</common-script>
          <playlist-script>/usr/share/mediatomb/js/playlists.js</playlist-script>
          <virtual-layout type="builtin">
            <import-script>/usr/share/mediatomb/js/import.js</import-script>
            <dvd-script>/usr/share/mediatomb/js/import-dvd.js</dvd-script>
          </virtual-layout>
        </scripting>
        <mappings>
          <extension-mimetype ignore-unknown="yes">
            <map from="divx" to="video/x-divx"/>
            <map from="avi" to="video/mp4"/>
            <map from="mp3" to="audio/mpeg"/>
            <map from="ogg" to="application/ogg"/>
            <map from="asf" to="video/x-ms-asf"/>
            <map from="asx" to="video/x-ms-asf"/>
            <map from="wma" to="audio/x-ms-wma"/>
            <map from="wax" to="audio/x-ms-wax"/>
            <map from="wmv" to="video/x-ms-wmv"/>
            <map from="wvx" to="video/x-ms-wvx"/>
            <map from="wm" to="video/x-ms-wm"/>
            <map from="wmx" to="video/x-ms-wmx"/>
            <map from="m3u" to="audio/x-mpegurl"/>
            <map from="pls" to="audio/x-scpls"/>
            <map from="flv" to="video/x-flv"/>
            <map from="mkv" to="video/x-matroska"/>
            <map from="mka" to="audio/x-matroska"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
          </extension-mimetype>
          <mimetype-upnpclass>
            <map from="audio/*" to="object.item.audioItem.musicTrack"/>
            <map from="video/*" to="object.item.videoItem"/>
            <map from="image/*" to="object.item.imageItem"/>
            <map from="application/ogg" to="object.item.audioItem.musicTrack"/>
          </mimetype-upnpclass>
          <mimetype-contenttype>
            <treat mimetype="audio/mpeg" as="mp3"/>
            <treat mimetype="application/ogg" as="ogg"/>
            <treat mimetype="audio/x-flac" as="flac"/>
            <treat mimetype="image/jpeg" as="jpg"/>
            <treat mimetype="audio/x-mpegurl" as="playlist"/>
            <treat mimetype="audio/x-scpls" as="playlist"/>
            <treat mimetype="audio/x-wav" as="pcm"/>
            <treat mimetype="audio/L16" as="pcm"/>
            <treat mimetype="video/x-msvideo" as="avi"/>
            <treat mimetype="video/mp4" as="mp4"/>
            <treat mimetype="audio/mp4" as="mp4"/>
            <treat mimetype="application/x-iso9660" as="dvd"/>
            <treat mimetype="application/x-iso9660-image" as="dvd"/>
            <treat mimetype="video/x-matroska" as="mkv"/>
            <treat mimetype="audio/x-matroska" as="mka"/>
          </mimetype-contenttype>
        </mappings>
        <online-content><!-- Make sure to setup a transcoding profile for flv -->
          <YouTube enabled="no" refresh="28800" update-at-start="no" purge-after="604800" racy-content="exclude" format="flv" hd="no">
            <favorites user="mediatomb"/>
            <standardfeed feed="most_viewed" time-range="today"/>
            <playlists user="mediatomb"/>
            <uploads user="mediatomb"/>
            <standardfeed feed="recently_featured" time-range="today"/>
          </YouTube>
          <Weborama enabled="no" refresh="28800" update-at-start="no">
            <playlist name="Active" type="playlist" mood="active"/>
            <playlist name="Metal" type="playlist">
              <filter>
                <genres>metal</genres>
              </filter>
            </playlist>
          </Weborama>
          <AppleTrailers enabled="no" refresh="43200" update-at-start="no" resolution="640"/>
        </online-content>
      </import>
      <transcoding enabled="no">
        <mimetype-profile-mappings>
          <transcode mimetype="video/mpeg" using="mpeg2mpeg"/>
          <transcode mimetype="video/mp4" using="divx2mpeg"/>
          <transcode mimetype="video/x-flv" using="vlcmpeg"/>
          <transcode mimetype="application/ogg" using="vlcmpeg"/>
          <transcode mimetype="application/ogg" using="oggflac2raw"/>
          <transcode mimetype="audio/x-flac" using="oggflac2raw"/>
        </mimetype-profile-mappings>
        <profiles>
          <profile name="oggflac2raw" enabled="no" type="external">
            <mimetype>audio/L16</mimetype>
            <accept-url>no</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>no</accept-ogg-theora>
            <agent command="ogg123" arguments="-d raw -o byteorder:big -f %out %in"/>
            <buffer size="1048576" chunk-size="131072" fill-size="262144"/>
          </profile>
          <profile name="vlcmpeg" enabled="no" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
            <agent command="vlc" arguments="-I dummy %in --sout #transcode{venc=ffmpeg,vcodec=mp2v,vb=4096,fps=25,aenc=ffmpeg,acodec=mpga,ab=192,samplerate=44100,channels=2}:standard{access=file,mux=ps,dst=%out} vlc:quit"/>
            <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
          </profile>
    
          <profile name="mpeg2mpeg" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
           <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
    
            <agent command="ffmpeg" arguments="-i %in -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f mpegts -y %out" />
            <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
          </profile>
          <profile name="divx2mpeg" enabled="yes" type="external">
            <mimetype>video/mpeg</mimetype>
            <accept-url>yes</accept-url>
            <first-resource>yes</first-resource>
            <accept-ogg-theora>yes</accept-ogg-theora>
    
            <agent command="ffmpeg" arguments="-i %in -qscale 0 -f mpegts -y %out" />
            <buffer size="14400000" chunk-size="512000" fill-size="120000"/>
          </profile>
    
        </profiles>
      </transcoding>
    </config>
    

    And the log:

    2016-12-18 11:54:15    INFO: Loading configuration from: /root/.mediatomb/config.xml
    2016-12-18 11:54:15    INFO: Checking configuration...
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/tmpdir using default value: /tmp/
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/servedir using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/storage/attribute::caching using default value: yes
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/storage/sqlite3/synchronous using default value: off
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/storage/sqlite3/on-error using default value: restore
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/storage/sqlite3/backup/attribute::enabled using default value: no
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/storage/sqlite3/backup/attribute::interval using default value: 600
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/ui/attribute::poll-when-idle using default value: no
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/ui/attribute::poll-interval using default value: 2
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/ui/items-per-page/attribute::default using default value: 25
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/mappings/extension-mimetype/attribute::case-sensitive using default valu
    e: no
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:1371] validate(): received UTF-8 from nl_langinfo
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/filesystem-charset using default value: UTF-8
    2016-12-18 11:54:15    INFO: Setting filesystem import charset to UTF-8
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/metadata-charset using default value: UTF-8
    2016-12-18 11:54:15    INFO: Setting metadata import charset to UTF-8
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/playlist-charset using default value: UTF-8
    2016-12-18 11:54:15    INFO: Setting playlist charset to UTF-8
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/protocolInfo/attribute::samsung-hack using default value: no
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/pc-directory/attribute::upnp-hide using default value: no
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/interface using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/ip using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/bookmark using default value: mediatomb.html
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/modelName using default value: MediaTomb
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/modelDescription using default value: Free UPnP AV MediaServer, GNU GPL
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/modelNumber using default value: 0.12.2
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/serialNumber using default value: 1
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/manufacturerURL using default value: http://mediatomb.cc/
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/presentationURL using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/presentationURL/attribute::append-to using default value: none
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/upnp-string-limit using default value: -1
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/port using default value: 0
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /server/alive using default value: 1800
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/autoscan/attribute::use-inotify using default value: auto
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/library-options/libexif/auxdata using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/library-options/id3/auxdata using default value:
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2373] getOption(): Config: option not found: /import/magic-file using default value:
    2016-12-18 11:54:15 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-12-18 11:54:15    INFO: Configuration check succeeded.
    2016-12-18 11:54:15   DEBUG: [../src/config_manager.cc:2275] validate(): Config file dump after validation:
    
    SEE ABOVE
    
    2016-12-18 11:54:15   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 0 -> 1
    2016-12-18 11:54:15   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 1 -> 2
    2016-12-18 11:54:15   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 2 -> 3
    2016-12-18 11:54:15   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 3 -> 4
    2016-12-18 11:54:15   DEBUG: [../src/server.cc:118] upnp_init(): start
    2016-12-18 11:54:15   DEBUG: [../src/storage/sqlite3/sqlite3_storage.cc:196] init(): db_version: 3
    2016-12-18 11:54:15   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 4 -> 5
    2016-12-18 11:54:15    INFO: Initialized port: 49152
    2016-12-18 11:54:15    INFO: Server bound to: 192.168.2.10
    2016-12-18 11:54:15   DEBUG: [../src/server.cc:203] upnp_init(): webroot: /usr/share/mediatomb/web
    2016-12-18 11:54:15   DEBUG: [../src/upnp_xml.cc:200] UpnpXML_RenderDeviceDescription(): start
    2016-12-18 11:54:16   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 5 -> 6
    2016-12-18 11:54:16   DEBUG: [../src/storage/sql_storage.cc:1815] updateAutoscanPersistentList(): setting persistent autoscans untouched - scanmode: timed;
    2016-12-18 11:54:16   DEBUG: [../src/storage/sql_storage.cc:1826] updateAutoscanPersistentList(): updating/adding persistent autoscans (count: 0)
    2016-12-18 11:54:16   DEBUG: [../src/storage/sql_storage.cc:1815] updateAutoscanPersistentList(): setting persistent autoscans untouched - scanmode: inotify;
    2016-12-18 11:54:16   DEBUG: [../src/storage/sql_storage.cc:1826] updateAutoscanPersistentList(): updating/adding persistent autoscans (count: 0)
    2016-12-18 11:54:16   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 6 -> 7
    2016-12-18 11:54:16   DEBUG: [../src/singleton.cc:73] registerSingleton(): registering new singleton... - 7 -> 8
    2016-12-18 11:54:16   DEBUG: [../src/autoscan_inotify.cc:65] AutoscanInotify(): Max watches on the system: 8192
    2016-12-18 11:54:16    INFO: MediaTomb Web UI can be reached by following this link:
    2016-12-18 11:54:16    INFO: http://192.168.2.10:49152/
    2016-12-18 11:54:16   DEBUG: [../src/server.cc:311] upnp_init(): end
    2016-12-18 11:54:16   DEBUG: [../src/timer.cc:67] triggerWait(): triggerWait. - 0 subscriber(s)
    2016-12-18 11:54:16   DEBUG: [../src/timer.cc:98] triggerWait(): nothing to do, sleeping...
    2016-12-18 11:54:16   DEBUG: [../src/update_manager.cc:291] staticThreadProc(): starting update thread... thread: 1191171840
    

    Thanks!

     
  • Harald S.

    Harald S. - 2016-12-18

    Thanks,
    I guess he meant
    apt-get install --no-install-recommends mediatomb
    I have already tried that without luck

     

Log in to post a comment.