miniDLNA (null) error

VAmoroso
Posts: 6
Joined: Wed Apr 13, 2011 9:58 pm

miniDLNA (null) error

Postby VAmoroso » Thu Jul 26, 2012 8:58 pm

Since migrating to Ubuntu, I've found that some basic DLNA|UPNP compliment renderers will display a '(null)' error when displaying a folder in the media storage hierarchy that recently was itself or had something below it altered. For example:
  • Folder A
    Folder B
    Folder C
    Folder D
After an change in [Folder B], the new [Folder B]* is displayed as:
  • Folder A
    (null)
    Folder C
    Folder D
This seems to be because miniDLNA is unable to write-out to it's database file, [files.db], due to a permission problem. Frankly, I don't know where the hell the DLNA stuff is stored by default as last I checked it wasn't in the Fedora14 location or documented.

I found it's easiest to open the minidlna.conf file located at
Enable by uncommenting-out and set a database location for the following:
  • Code: Select all

    # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache db_dir=/[my arbitrary location]/[folder
This directory needs write privileges set, so from terminal:
  • Code: Select all

    sudo chmod 777 [my arbitrary location]/[folder]
And then it should work. I'd appreciate any advice, perhaps a more elegant way than 777.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: miniDLNA (null) error

Postby bigfoot65 » Fri Jul 27, 2012 4:47 am

We will have to take a look at this potential issue. Check the permissions on the folder to ensure it is owned by the admin user:users.

If you feel this is a bug, please submit a ticket in the bug tracker.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: miniDLNA (null) error

Postby richgrech » Tue Nov 27, 2012 7:06 am

I still have problems. Still when files are copied to my HDA via windows snyc toy, all files under /var/hda/files/drives/driveX/..... are root:root

DIRECTORIES are given the correct ownership, but files are not. I need to do a chown after every sync in order to make sure new files are properly indexed by miniDLNA etc etc.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: miniDLNA (null) error

Postby bigfoot65 » Tue Nov 27, 2012 10:11 am

This is puzzling. So I presume that /var/hda/files/drives is owned by firstadminuser:users as well. If it is not, it should be.

This sounds like one of those hard to track down issues. Have you considered uninstalling DLNA app, cleaning up any left behind files, and reinstalling? Maybe there was something changed in the app since you installed it that will correct this problem.

Sorry I am not much help, but not sure what else to do at this point.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: miniDLNA (null) error

Postby richgrech » Sat Dec 01, 2012 7:15 am

This is puzzling. So I presume that /var/hda/files/drives is owned by firstadminuser:users as well. If it is not, it should be.

This sounds like one of those hard to track down issues. Have you considered uninstalling DLNA app, cleaning up any left behind files, and reinstalling? Maybe there was something changed in the app since you installed it that will correct this problem.

Sorry I am not much help, but not sure what else to do at this point.
I don't think it's a DLNA issue...the issue is with the system itself because when those files are copied to the HDA remotely shouldn't they be assigned the correct ownership by the system? It's just a symptom that HDA isn't able ot access the files because they do not have the right ownership.

You are correct in that the parent directories all have the right ownership
/var/hda/files/
/var/hda/files/drives
/var/hda/files/drives/drive1
/var/hda/files/drives/drive2
/var/hda/files/drives/drive3

Directories created under those also have the right ownership when new files are copied and created
For example 2012-11-25 - Thanksgiving
var/hda/files/drives/drive1/photos/2012-11-25 - Thanksgiving will even have the correct ownership. It's only the files copied there that will not have the right ownership.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: miniDLNA (null) error

Postby bigfoot65 » Sat Dec 01, 2012 7:43 am

Does this happen when copying files using the Windows file manager or is this just a synctoy problem? Need to try different methods of copying to see if its the tool doing the copying that is the problem.

Sounds odd, but at least we can rule that out.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: miniDLNA (null) error

Postby richgrech » Tue Dec 11, 2012 11:25 am

It doesn't matter how I copy...whether manually using windows explorer or using synctoy.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: miniDLNA (null) error

Postby bigfoot65 » Tue Dec 11, 2012 5:01 pm

Sorry I am not much help. I don't know what to check now. Seems odd that it has this issue. Have you searched the forums or internet for any solutions?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 10 guests