minidlna: Returning UPnPError 402: Invalid Args

  • Hi :)
    Possibly not related to this forum, but if anybody can help, it would be nice, as I can't find google answer...


    I have the plugin working correctly (everything works), but I still have tens of entries daily in the log of:


    upnpsoap.c:1739: warn: Returning UPnPError 402: Invalid Args


    Been through the source code in Github...but its a fairly "generic" error and I can't trace it to a specific issue...(plus I don't code)


    Running OMV 1.3,


    installed minidlna:


    ||/ Name Version Architecture Description
    +++-==============-============-============-=================================
    ii minidlna 1.0.24+dfsg- armel lightweight DLNA/UPnP-AV server t
    ii openmediavault 1.0.9 all OpenMediaVault miniDLNA (DLNA ser


    cat/etc/minidlna.conf:


    port=8200
    #network_interface=eth0
    friendly_name=MiniDLNA Server en NAS
    db_dir=/var/cache/minidlna
    log_dir=/var/log
    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
    inotify=yes
    enable_tivo=no
    strict_dlna=no
    notify_interval=300
    serial=31446138
    model_number=1
    #root_container=.
    log_level=debug
    media_dir=/media/082c05a7-880a-4c5a-ad94-69be0e70edac/Media/


    thx!

    • Offizieller Beitrag

    I built a newer package (1.1.2) of minidlna for armel. Enable the testing repo on Primary tab of omv-extras and see if that fixes it.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks! Installed.
    I have a debug log.
    The former error doesn't see to appear :) , after 10 hours.
    However (sorry!):


    1- I am getting several errors on the rescan (which I wasn't before), so these files are not being indexed:

    Code
    [2014/11/30 11:56:44] sql.c:41: error: SQL ERROR 5 [database is locked]
    INSERT into OBJECTS (OBJECT_ID, PARENT_ID, CLASS, DETAIL_ID, NAME) VALUES ('64$4$2$2$0', '64$4$2$2', 'item.videoItem', 28120, '01 - La.Rencontre.1965.FRENCH.DVDRiP.X264-HuSh')


    2- Also got this one after finishing the rescan:

    Code
    [2014/11/30 12:03:43] playlist.c:125: warn: Parsing playlists...
    [2014/11/30 12:03:43] sql.c:117: warn: sql_get_int_field: step failed: SQL logic error or missing database
    SELECT (select count(distinct DETAIL_ID) from OBJECTS o left join DETAILS d on (o.DETAIL_ID = d.ID) where (OBJECT_ID glob '*$*') and (o.CLASS like "item.audioItem%" and REF_ID is NULL)) + (select count(*) from OBJECTS o left join DETAILS d on (o.DETAIL_ID = d.ID) where (OBJECT_ID = '*') and (o.CLASS like "item.audioItem%" and REF_ID is NULL))
    [2014/11/30 12:04:53] sql.c:41: error: SQL ERROR 5 [database is locked] UPDATE PLAYLISTS set FOUND = 0 where ID = 1
    [2014/11/30 12:04:53] playlist.c:256: warn: Finished parsing playlists


    nothing serious, as all seems to work (other than some files are not being indexed)

    • Offizieller Beitrag

    Looks like the database may need to be rewritten. Those are all database errors.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • indeed, I deleted it and recreated.
    all is well now!!
    THANKS !!! :thumbup:


    Code
    [2014/11/30 13:27:08] minidlna.c:1004: warn: Starting MiniDLNA version 1.1.2.
    [2014/11/30 13:27:08] minidlna.c:354: warn: Creating new database at /var/cache/minidlna/files.db
    [2014/11/30 13:27:09] minidlna.c:1043: warn: HTTP listening on port 8200
    [2014/11/30 13:27:09] scanner.c:702: warn: Scanning /media/082c05a7-880a-4c5a-ad94-69be0e70edac/Media
    [2014/11/30 14:07:32] scanner.c:789: warn: Scanning /media/082c05a7-880a-4c5a-ad94-69be0e70edac/Media finished (20126 files)!
    [2014/11/30 14:07:44] playlist.c:125: warn: Parsing playlists...
    [2014/11/30 14:08:44] playlist.c:256: warn: Finished parsing playlists.


    resolved (with this version)

    • Offizieller Beitrag

    Great!

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!