Menu

MiniDLNA does not show newly added folder

2018-04-30
2018-05-01
  • Fred Flintstone

    Fred Flintstone - 2018-04-30

    I am using MiniDLNA version 1.1.6 on a Raspberry Pi 3B with Raspbian Lite.
    when I add a new folder with video-files, this folder is not recognised by MiniDLNA.
    using the command “sudo minidlna -R” or sudo service minidlna restart does not help.
    the access rights of this folder is normally "drwxrw-rw- 2 fred44nl fred44nl"
    the only way to get this corrected is with the command "chmod 777" for that folder.
    this results in "drwxrwxrwx 2 fred44nl fred44nl", after which MiniDLNA recognises the folder.
    the obvious solution would be to have MiniDLNA to run as user fred44nl.
    but when I change the user in the config, MiniDLNA does not start up.
    this could be changed in /etc/minidlna.conf:

    #Specify the user name or uid to run as.
    user=minidlna
    ## user=fred44nl  -  this does not work
    

    in /etc/group, I have the following:

    fred44nl:x:1001:pi,fred44nl,minidlna
    minidlna:x:115:pi,fred44nl
    

    what is the solution here ??

     

    Last edit: Fred Flintstone 2018-04-30
    • Shrimpkin

      Shrimpkin - 2018-05-01

      Looks like a permission/sysadmin problem.

      When changing the user for minidlna, rebuild the database using the same username. Also, the username most likely does not have write access to the default locations in the /var directory. Correct the problem.

       

Log in to post a comment.