[closed without resolution] Setting minidlna.conf variables

Following this OpenWRT page MiniDLNA, there is a link to:

Example

A video demonstration of how MiniDLNA 1.1.3-1 in the repositories can be installed on OpenWrt 14.07 Barrier Breaker: https://www.youtube.com/watch?v=-vU2zOw6ga0

I am looking only for examples of the .conf template, not a cut and paste. Yes Barrier Breaker is out-of-date. I tried following the link, but it has been removed or otherwise deprecated.

Looking over the variables, I think I would have to create the directory names, before writing the variable configs, but the page doesn't address this. For example:

# Directory of media is depend on your storage
#------------------------------------------------------#
media_dir=A,/mnt/sda1/music
media_dir=P,/mnt/sda1/picture
media_dir=V,/mnt/sda1/video

I must make a directory "video" on sda1? Or does this modifying the minidlna.conf automate this?

I keep most of my MiniDLNA config at defaults so I can't speak to all, but yes, the media directories have to be created and then pointed to in the config, changing log and database form defaults will automatically generate the new locations, so it may just depend on which settings you're changing.

@mike FWIW, I've not changed the config template at all. It is as installed under apt-get. I did unmount the router-attached drive, put the drive onto my desktop 'puter and make folders as the minidlna shows (for example: videos is now where all the recorded videos are located under /dev/sda1. But opening the minidlna device still finds folders "video", again, for example, unpopulated or empty.

What am I doing wrong? And again, @mike thank you for your help. See below:

root@OpenWrt:/# cd /etc/config
root@OpenWrt:/etc/config# ls
dhcp           luci           network        ucitrack       wireless
dropbear       luci-opkg      rpcd           ucitrack-opkg
firewall       **minidlna**       system         uhttpd
fstab          minidlna.save  ubootenv       uhttpd-opkg
root@OpenWrt:/etc/config# minidlna -R
-ash: minidlna: not found

Here is the output of nano minidlna under etc/config

config minidlna 'config'
        option user 'minidlna'
        option port '8200'
        option interface 'br-lan'
        option friendly_name 'OpenWrt DLNA Server'
        option db_dir '/var/run/minidlna'
        option notify_interval '900'
        option serial '12345678'
        option model_number '1'
        option root_container '.'
        list media_dir '/mnt'
        option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumarts>
        option enabled '1'
        option uuid '3b7d271f-809b-4996-9772-351ba89ac4eb'
        option log_dir '/dev/sda1/'

root@OpenWrt:/# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.143 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b000000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480  MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=152d ProdID=1561 Rev= 2.04
S:  Manufacturer=SABRENT
S:  Product=SABRENT
S:  SerialNumber=DB9876543214E
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=uas
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 0 Alt= 1 #EPs= 4 Cls=08(stor.) Sub=06 Prot=62 Driver=uas
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.143 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1b400000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

The "media_dir" variables indicate where are your files; so, yes, you have to create those directories first, and yes you must populate them with your media. What's the output of "ls /mnt/sda1/video"?

@eduperez - Thanks for thinking of me. Passing strange, running

ls /mnt/sda1/video

A Funny Thing Happened.mp4 

and the rest of the movies, about 50 in all.

That looks correct... is there any message in the logs, when you restart the service?

Just a brief update, some of the objects terminate in .mts (local video format from a dvr device). I find no object with the name of "log" in it, either in /mnt/sda1 or in /etc/config (where an object named: minidlna and another named: minidlna.save are. But please, if you know, where is the log file you want to see the contents of?

Logs can be read using the "logread" command.

PLEASE read no further. The problem may be with my TP-Link Archer C7 (v2) router having insufficient memory to install Samba files for serving media. I remove this. The trouble lays with not having enough space. That was resolved by adding a 2nd USB thumb drive as an /overlay. While the mnt/overlay is now there other problems have come and I'll post about that elsewhere, as it's not about minidlna, I believe.

Thank you for the logread cli.
This line:
Fri Dec 31 15:12:15 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

repeats about 650 times. A few lines mention other information. I looked up that line and it's specific to OpenWRT but was a bug some while ago.

root@OpenWrt:~# logread
Fri Dec 31 15:12:15 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

Fri Dec 31 15:33:55 2021 daemon.info dnsmasq-dhcp[2982]: DHCPREQUEST(br-lan) 192.168.1.220 b4:f1:da:e7:88:40
Fri Dec 31 15:33:55 2021 daemon.info dnsmasq-dhcp[2982]: DHCPACK(br-lan) 192.168.1.220 b4:f1:da:e7:88:40 android-4c9900a9236b00a7

Fri Dec 31 16:19:56 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address
Fri Dec 31 16:20:02 2021 daemon.info dnsmasq[2982]: read /etc/hosts - 4 addresses
Fri Dec 31 16:20:02 2021 daemon.info dnsmasq[2982]: read /tmp/hosts/odhcpd - 4 addresses
Fri Dec 31 16:20:02 2021 daemon.info dnsmasq[2982]: read /tmp/hosts/dhcp.cfg01411c - 1 addresses
Fri Dec 31 16:20:02 2021 daemon.info dnsmasq-dhcp[2982]: read /etc/ethers - 0 addresses
Fri Dec 31 16:20:19 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

Fri Dec 31 16:45:44 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address
Fri Dec 31 16:46:04 2021 daemon.info dnsmasq-dhcp[2982]: DHCPREQUEST(br-lan) 192.168.1.151 0c:fe:45:6b:6d:5c
Fri Dec 31 16:46:04 2021 daemon.info dnsmasq-dhcp[2982]: DHCPACK(br-lan) 192.168.1.151 0c:fe:45:6b:6d:5c
Fri Dec 31 16:46:07 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

Fri Dec 31 16:49:32 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address
Fri Dec 31 16:49:33 2021 daemon.info dnsmasq-dhcp[2982]: DHCPREQUEST(br-lan) 192.168.1.184 6c:33:a9:13:d1:12
Fri Dec 31 16:49:33 2021 daemon.info dnsmasq-dhcp[2982]: DHCPACK(br-lan) 192.168.1.184 6c:33:a9:13:d1:12
Fri Dec 31 16:49:35 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

Fri Dec 31 16:56:40 2021 authpriv.info dropbear[20205]: Child connection from 192.168.1.185:45796
Fri Dec 31 16:56:43 2021 authpriv.notice dropbear[20205]: Password auth succeeded for 'root' from 192.168.1.185:45796
Fri Dec 31 16:56:50 2021 daemon.warn dnsmasq-dhcp[2982]: DHCP packet received on wlan1-1 which has no address

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.