My minidlna wouldn't update anymore, even if i did a rescan.
After looking at the logs i noticed the SQL DB (/var/cache/minidlna/files.db) was corrupt/read only. I had to manually delete the db file to get it working again.
Here is a sample of the errors I saw:
Code:[2012/05/19 21:02:01] sql.c:40: error: SQL ERROR 8 [attempt to write a readonly database] INSERT into DETAILS (PATH, SIZE, TIMESTAMP, DURATION, DATE, CHANNELS, BITRATE, SAMPLERATE, RESOLUTION, TITLE, CREATOR, ARTIST, GENRE, COMMENT, DLNA_PN, MIME, ALBUM_ART) VALUES ('/var/lib/storage/recordings/1012_20120519202800.mpg', 3356234468, 1337425320, '0:34:00.420', '2012-05-19T21:02:00', '5', '1644874', '48000', '1440x1080', '1012_20120519202800', NULL, NULL, NULL, NULL, 'MPEG_TS_HD_NA_ISO;DLNA.ORG_OP=01;DLNA.ORG_CI=0', 'video/mpeg', 0); [2012/05/19 21:02:01] scanner.c:498: warn: Unsuccessful getting details for /var/lib/storage/recordings/1012_20120519202800.mpg! [2012/05/19 21:22:12] sql.c:40: error: SQL ERROR 8 [attempt to write a readonly database] DELETE from DETAILS where ID = 32 [2012/05/19 21:22:12] sql.c:40: error: SQL ERROR 8 [attempt to write a readonly database] DELETE from OBJECTS where DETAIL_ID = 32



Adv Reply




Bookmarks