Opened 13 months ago
Closed 13 months ago
#1475 closed defect (fixed)
MiniDLNA Plugin fails to start because sqlite database is missing (BETA-3)
| Reported by: | protosd | Owned by: | william |
|---|---|---|---|
| Priority: | major | Milestone: | 8.2.0-RELEASE |
| Component: | GUI | Version: | 8.2.0-BETA2 |
| Keywords: | plugin, jail, minidlna | Cc: |
Description
When trying to start MiniDLNA plugin from GUI it silently fails to start.
jexec'ing into the jail and looking at /var/log/minidlna.log I see:
[2012/04/20 08:05:44] minidlna.c:324: fatal: ERROR: Failed to open sqlite database! Exiting...
(It seem like the Trac reporting system needs a new catagory for Components - Plugins or Jail)
Change History (6)
comment:1 Changed 13 months ago by protosd
comment:2 Changed 13 months ago by protosd
This doesn't seem to work either
chmod the parent folder 777
chmod 666 the minidlna.db
chown dlna:dlna minidlna.db
/usr/local/etc/rc.d/minidlna start doesn't complain
(IF a media folder is defined, although a defined mount point doesn't show up when doing df)
comment:3 follow-up: ↓ 5 Changed 13 months ago by william
How do you have same file with different permissions?
Also, it is not that db you care about, this db is the plugin one, not the minidlna...
Try (within jail):
# mkdir -p /var/db/minidlna
# chown -R dlna:dlna /var/db/minidlna
# chmor -R 755
comment:4 Changed 13 months ago by william
- Owner set to william
- Status changed from new to accepted
If you confirm it fixes the issue it will be handled in r11209
comment:5 in reply to: ↑ 3 Changed 13 months ago by protosd
Replying to william:
How do you have same file with different permissions?
There were 2 different files
Also, it is not that db you care about, this db is the plugin one, not the minidlna...
Try (within jail):
# mkdir -p /var/db/minidlna
# chown -R dlna:dlna /var/db/minidlna
# chmor -R 755
The mkdir command wasn't necessary, /var/db/minidlna was already there. The other 2 commands worked, I can start minidlna from the GUI and verify it is running in the jail with ps -ax
Thanks William, keep up the good work and thanks for all your help!
comment:6 Changed 13 months ago by william
- Resolution set to fixed
- Status changed from accepted to closed
Thanks

It looks like the permissions are wrong:
/mnt/plugins/pbi/minidlna-amd64/plugins/minidlna/data/db/minidlna.db
0 08:06 /usr/pbi/minidlna-amd64/plugins/minidlna/data/db/minidlna.db