Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Responding ERROR 404

Help
Anonymous
2011-08-12
2013-05-29

  • Anonymous
    2011-08-12

    Hi.

    I have compiled minidlna from the cvs (1.0.21)

    Listed below is what I see in the log.

    My questions are the errors of the following:
    a.    / not found, responding ERROR 404
    b.    /favicon.ico not found, responding ERROR 404

    Secondly, I still can not see my minidlna server … the log does not show and ssdp entries either ???

    minidlna.c:899: warn: Starting MiniDLNA version 1.0.21 .
    minidlna.c:991: warn: HTTP listening on port 8200
    upnphttp.c:918: warn: / not found, responding ERROR 404
    upnphttp.c:918: warn: /favicon.ico not found, responding ERROR 404
    upnphttp.c:918: warn: / not found, responding ERROR 404
    upnphttp.c:918: warn: /favicon.ico not found, responding ERROR 404

     
  • dieoma
    dieoma
    2011-08-15

    can you post your /etc/minidlna.conf?

     

  • Anonymous
    2011-08-15

    Gere is a copy of the /etc/minidlna.conf

    sh-3.2# cat minidlna.conf
    # port for HTTP (descriptions, SOAP, media transfer) traffic
    port=8200

    # network interfaces to serve, comma delimited
    #network_interface=eth0

    # set this to the directory you want scanned.
    # * if have multiple directories, you can have multiple media_dir= lines
    # * if you want to restrict a media_dir to a specific content type, you
    #   can prepend the type, followed by a comma, to the directory:
    #   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
    #   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
    #   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
    media_dir=/opt

    # set this if you want to customize the name that shows up on your clients
    friendly_name=HOLLYDLNA

    # set this if you would like to specify the directory where you want MiniDLNA to  store its database and album art cache
    db_dir=/var/cache/minidlna

    # set this if you would like to specify the directory where you want MiniDLNA to  store its log file
    log_dir=/var/log

    # this should be a list of file names to check for when searching for album art
    # note: names should be delimited with a forward slash ("/")
    album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt .jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

    # set this to no to disable inotify monitoring to automatically discover new fil es
    # note: the default is yes
    inotify=yes

    # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo  supporting HMO
    enable_tivo=no

    # set this to strictly adhere to DLNA standards.
    # * This will allow server-side downscaling of very large JPEG images,
    #   which may hurt JPEG serving performance on (at least) Sony DLNA products.
    strict_dlna=no

    # default presentation url is http address on port 80
    #presentation_url=http://www.mylan/index.php

    # notify interval in seconds. default is 895 seconds.
    notify_interval=900

    # serial and model number the daemon will report to clients
    # in its XML description
    serial=42345678
    model_number=1

    # specify the path to the MiniSSDPd socket
    minissdpdsocket=/var/run/minissdpd.sock

    # use different container as root of the tree
    # possible values:
    #   + "." - use standard container (this is the default)
    #   + "B" - "Browse Directory"
    #   + "M" - "Music"
    #   + "V" - "Video"
    #   + "P" - "Pictures"
    # if you specify "B" and client device is audio-only then "Music/Folders" will b e used as root
    #root_container=.
    sh-3.2#

     
  • Justin Maggard
    Justin Maggard
    2011-08-15

    You'll get more logging output if you use the "-d" command line option.

     

  • Anonymous
    2012-03-30

    I have the same problem with minidlna 1.0.19 on openwrt. file indexing, streaming,.. everything works well, only the webinterface responds with an 404 error all the time.

    Here some debugging information:

    root@blinky:~# minidlna -d
    [2012/03/30 09:40:25] minidlna.c:849: warn: Starting MiniDLNA version 1.0.19 [SQLite 3.7.7.1].
    [2012/03/30 09:40:25] minidlna.c:937: warn: HTTP listening on port 8200
    [2012/03/30 09:40:25] minissdp.c:328: debug: Sending SSDP notifies
    [2012/03/30 09:40:25] minidlna.c:1144: debug: HTTP connection from 192.168.1.140:53136
    [2012/03/30 09:40:25] upnphttp.c:453: debug: Added client [3/192.168.1.140/60:6B:BD:D1:87:A2] to cache slot 0.
    [2012/03/30 09:40:25] upnphttp.c:763: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.0
    HOST: 192.168.1.1:8200
    USER-AGENT: SEC_HHP_[TV]UE40D5000/1.0
    ACCEPT-LANGUAGE: en-us
    [2012/03/30 09:40:25] upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 2209
    Server: CentOS/5.6 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0
    <?xml version="1.0"?>
    <root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><device><deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType><friendlyName>Blinky</friendlyName><manufacturer>Justin Maggard</manufacturer><manufacturerURL>http://www.kernel.org/</manufacturerURL><modelDescription>MiniDLNA on CentOS</modelDescription><modelName>Windows Media Connect compatible (MiniDLNA)</modelName><modelNumber>1</modelNumber><modelURL>http://www.kernel.org/</modelURL><serialNumber>12345678</serialNumber><UDN>uuid:4d696e69-444c-164e-9d41-a021b7bada7d</UDN><dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC><presentationURL>http://blinky:8200/</presentationURL><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.jpg</url></icon></iconList><serviceList><service><serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType><serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId><controlURL>/ctl/ContentDir</controlURL><eventSubURL>/evt/ContentDir</eventSubURL><SCPDURL>/ContentDir.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType><serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId><controlURL>/ctl/ConnectionMgr</controlURL><eventSubURL>/evt/ConnectionMgr</eventSubURL><SCPDURL>/ConnectionMgr.xml</SCPDURL></service><service><serviceType>urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1</serviceType><serviceId>urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar</serviceId><controlURL>/ctl/X_MS_MediaReceiverRegistrar</controlURL><eventSubURL>/evt/X_MS_MediaReceiverRegistrar</eventSubURL><SCPDURL>/X_MS_MediaReceiverRegistrar.xml</SCPDURL></service></serviceList></device></root>
    [2012/03/30 09:40:25] minidlna.c:1144: debug: HTTP connection from 192.168.1.140:53163
    [2012/03/30 09:40:25] upnphttp.c:153: debug: Client found in cache. [type 3/entry 0]
    [2012/03/30 09:40:25] upnphttp.c:763: debug: HTTP REQUEST: GET /rootDesc.xml HTTP/1.0
    HOST: 192.168.1.1:8200
    USER-AGENT: SEC_HHP_[TV]UE40D5000/1.0
    ACCEPT-LANGUAGE: en-us
    [2012/03/30 09:40:25] upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 200 OK
    Content-Type: text/xml; charset="utf-8"
    Connection: close
    Content-Length: 2209
    Server: CentOS/5.6 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0
    <?xml version="1.0"?>
    <root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>0</minor></specVersion><device><deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType><friendlyName>Blinky</friendlyName><manufacturer>Justin Maggard</manufacturer><manufacturerURL>http://www.kernel.org/</manufacturerURL><modelDescription>MiniDLNA on CentOS</modelDescription><modelName>Windows Media Connect compatible (MiniDLNA)</modelName><modelNumber>1</modelNumber><modelURL>http://www.kernel.org/</modelURL><serialNumber>12345678</serialNumber><UDN>uuid:4d696e69-444c-164e-9d41-a021b7bada7d</UDN><dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC><presentationURL>http://blinky:8200/</presentationURL><iconList><icon><mimetype>image/png</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.png</url></icon><icon><mimetype>image/png</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.png</url></icon><icon><mimetype>image/jpeg</mimetype><width>48</width><height>48</height><depth>24</depth><url>/icons/sm.jpg</url></icon><icon><mimetype>image/jpeg</mimetype><width>120</width><height>120</height><depth>24</depth><url>/icons/lrg.jpg</url></icon></iconList><serviceList><service><serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType><serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId><controlURL>/ctl/ContentDir</controlURL><eventSubURL>/evt/ContentDir</eventSubURL><SCPDURL>/ContentDir.xml</SCPDURL></service><service><serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType><serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId><controlURL>/ctl/ConnectionMgr</controlURL><eventSubURL>/evt/ConnectionMgr</eventSubURL><SCPDURL>/ConnectionMgr.xml</SCPDURL></service><service><serviceType>urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1</serviceType><serviceId>urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar</serviceId><controlURL>/ctl/X_MS_MediaReceiverRegistrar</controlURL><eventSubURL>/evt/X_MS_MediaReceiverRegistrar</eventSubURL><SCPDURL>/X_MS_MediaReceiverRegistrar.xml</SCPDURL></service></serviceList></device></root>
    [2012/03/30 09:40:39] minidlna.c:1144: debug: HTTP connection from 192.168.1.232:52748
    [2012/03/30 09:40:39] minidlna.c:1144: debug: HTTP connection from 192.168.1.232:52749
    [2012/03/30 09:40:39] upnphttp.c:763: debug: HTTP REQUEST: GET / HTTP/1.1
    Host: blinky:8200
    Connection: keep-alive
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en,en-GB;q=0.8,de;q=0.6,de-AT;q=0.4
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: show_filter=true; show_inspector=true
    [2012/03/30 09:40:39] upnphttp.c:875: warn: / not found, responding ERROR 404
    [2012/03/30 09:40:39] upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 404 Not Found
    Content-Type: text/html
    Connection: close
    Content-Length: 134
    Server: CentOS/5.6 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0
    <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Found</H1>The requested URL was not found on this server.</BODY></HTML>
    [2012/03/30 09:40:40] minidlna.c:1144: debug: HTTP connection from 192.168.1.232:52750
    [2012/03/30 09:40:40] upnphttp.c:763: debug: HTTP REQUEST: GET /favicon.ico HTTP/1.1
    Host: blinky:8200
    Connection: keep-alive
    Accept: */*
    User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.79 Chrome/17.0.963.79 Safari/535.11
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en,en-GB;q=0.8,de;q=0.6,de-AT;q=0.4
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Cookie: show_filter=true; show_inspector=true
    [2012/03/30 09:40:40] upnphttp.c:875: warn: /favicon.ico not found, responding ERROR 404
    [2012/03/30 09:40:40] upnphttp.c:1083: debug: HTTP RESPONSE: HTTP/1.1 404 Not Found
    Content-Type: text/html
    Connection: close
    Content-Length: 134
    Server: CentOS/5.6 DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0
    <HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>Not Found</H1>The requested URL was not found on this server.</BODY></HTML>
    [2012/03/30 09:40:53] upnphttp.c:915: warn: HTTP Connection closed unexpectedly
    

    and my minidlna.conf:

    root@blinky:~# cat /etc/minidlna.conf 
    # port for HTTP (descriptions, SOAP, media transfer) traffic
    port=8200
    # network interface to bind to (this is the only interface that will serve files)
    network_interface=br-lan
    # set this to the directory you want scanned.
    # * if have multiple directories, you can have multiple media_dir= lines
    # * if you want to restrict a media_dir to a specific content type, you
    #   can prepend the type, followed by a comma, to the directory:
    #   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
    #   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
    #   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
    media_dir=/mnt/Media/TV-Shows
    media_dir=/mnt/Media/Bibliothek
    # set this if you want to customize the name that shows up on your clients
    friendly_name=Blinky
    # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
    db_dir=/mnt/Media/.minidlna
    # set this if you would like to specify the directory where you want MiniDLNA to store its log file
    #log_dir=/var/log
    # this should be a list of file names to check for when searching for album art
    # note: names should be delimited with a forward slash ("/")
    album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
    # set this to no to disable inotify monitoring to automatically discover new files
    # note: the default is yes
    inotify=no
    # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
    enable_tivo=no
    # set this to strictly adhere to DLNA standards.
    # * This will allow server-side downscaling of very large JPEG images,
    #   which may hurt JPEG serving performance on (at least) Sony DLNA products.
    strict_dlna=no
    # default presentation url is http address on port 80
    presentation_url=http://blinky:8200/
    # notify interval in seconds. default is 895 seconds.
    notify_interval=900
    # serial and model number the daemon will report to clients
    # in its XML description
    serial=12345678
    model_number=1
    

    Thanks for helping me!

     
  • sam bul
    sam bul
    2012-10-26

    Can someone comment on these log errors:

    [2012/10/26 15:06:41] upnphttp.c:918: warn: /favicon.ico not found, responding ERROR 404
    [2012/10/26 15:06:41] upnphttp.c:918: warn: HTTP connection closed unexpectedly
    

    They are recorded each time miniDLNA web interface is accessed, despite it works. What do they mean, and how to fix?

     
  • Craig Chambers
    Craig Chambers
    2012-11-16

    AFAIK miniDLNA doesn't have a web interface (web page).  If you have one, it's a different project than the actual server.

    /Craig

     
  • Robert Klauco
    Robert Klauco
    2013-03-16

    Craigchambers: You are wrong. I have minidlna compiled from source on debian compiled from source, version 1.0.25 and its web interface is working just fine - showing the actual number of indexed files for audio, video and pictures.
    However, the deb version on ubuntu (1.0.21) performs exactly as described above - it works as DLNA server, indexes files, etc, but the web interface responds with 404 error and logs the same data as described above.

     
  • hiero
    hiero
    2013-03-17

    [2012/10/26 15:06:41] upnphttp.c:918: warn: /favicon.ico not found, responding ERROR 404 [2012/10/26 15:06:41] upnphttp.c:918: warn: HTTP connection closed unexpectedly

    This shows the client(player) requests to get " /favicon.ico", and minidlna responds error because there is no " /favicon.ico" file.  "favicon.ico" is used for the icon on web site. Web browser tries to get  "favicon.ico".
    What client are you using?

    hiero

     
  • Craig Chambers
    Craig Chambers
    2013-03-19

    rklauko: I stand corrected.  I have just confirmed this on my own set-up.