UPNP no longer working after upgrading to Kodi 19 (LE10.0.1)

  • Hi,

    I have a LE setup running on a RPi4.

    Since I upgraded my LE9 system to LE10, UPNP has stopped working.

    I can still browse the library but when I want to play a video, the UPNP player (VLC in this case) just isn't able to play the file.

    The logs seem to point to a permission error with SMB accessing the server (Windows 2008R2).

    The weird thing is that I can play the same file (using the same SMB share) without issue locally.

    Has something changed in the UPNP set-up that could cause this permission error?

    FYI. My other LE system (also running on RPi4) still on LE9 isn't showing this behaviour and is able to stream the file(s) from the same server over UPNP just fine.

    Code
    2022-01-05 17:44:34.735 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object '0', with sort criteria +dc:title
    2022-01-05 17:44:35.932 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object 'library://video/', with sort criteria +dc:title
    2022-01-05 17:44:36.829 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object 'library://video/tvshows/', with sort criteria +dc:title
    2022-01-05 17:44:38.190 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object 'library://video/tvshows/inprogressshows.xml/', with sort criteria +dc:title
    2022-01-05 17:44:44.324 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object 'videodb://inprogresstvshows/138/', with sort criteria +dc:title
    2022-01-05 17:44:45.689 T:16857    INFO <CUPnPServer[Eros]>: Received Browse DirectChildren request for object 'videodb://inprogresstvshows/138/4/?tvshowid=138', with sort criteria +dc:title
    2022-01-05 17:44:47.467 T:16867    INFO <general>: SMBFile->Open: Unable to open file : 'smb://10.0.0.100/pelikaan/Multimedia/Series/Star%20Trek%20Discovery/star.trek.discovery.s04e03.720p.web.h264-cakes.mkv'
                                                       unix_err:'d' error : 'Permission denied'
  • Bump.

    I recently replaced my SMB server (Windows 2008R2) with a Synology NAS.

    Unfortunately, I'm seeing the same problem there as well.

    Kodi can access and play the files from the SMB share without issue.

    However, when I try to access the same files using UPNP, I get a permission error.

    This behaviour only started after upgrading from LE9 to LE10.

    Anyone out there who can shed some light on this or help me troubleshoot this issue further?

    Log file upload: https://paste.kodi.tv/gilicemira (Line 2735 shows (one of) the permission errors).

  • I have updated from LibreELEC 9 to LibreELEC (Matrix) 10.0.3 today and I see the same error. As described by Peter, Kodi can access and play the files from the SMB share without issue. However, when I try to access the same files using UPNP, I get a permission error.

    Code
    2022-11-26 12:03:44.237 T:5928     INFO <CUPnPServer[Kodi (LibreElec-EG)]>: Received Browse DirectChildren request for object 'smb://openmediavault/OMV-Data1/Video/Die Pfefferkörner/', with sort 
    criteria 
    2022-11-26 12:04:07.995 T:5946     INFO <general>: Skipped 1 duplicate messages..
    2022-11-26 12:04:07.995 T:5946     INFO <general>: SMBFile->Open: Unable to open file : 'smb://192.168.178.39/OMV-Data1/Video/Die%20Pfefferk%c3%b6rner/Die%20Pfefferk%c3%b6rner-S18E13.%20Die%20Pake
    tagentin.mp4'
                                                       unix_err:'d' error : 'Permission denied'
  • Meanwhile, I was able to fix the issue. You have to get Kodi into a state where it asks again for the password of the smb share. In this dialogue, you have the option to let Kodi save the password. If you activate this switch, the UPNP server can access the saved smb password and the error does not occur anymore.

    However, when I have initially added the smb share as a source for videos or for music, I haven't seen this switch. But you can force Kodi to display the dialogue if you remove the file with the saved passwords

    Code
    mv /storage/.kodi/userdata/passwords.xml /storage/.kodi/userdata/passwords.xml.hidden

    After removing the saved password, Kodi will display the dialogue if you try to access your media from the smb share.