NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
couch_potatoe
Dec 12, 2012Aspirant
NAS 1100 / RAIDiator 4.1.10: ReadyDLNA 1.0.25 fails to start
Hi Folks,
Recent problems with my 1100 and ReadyDLNA are driving me round the bend!
Up until a few months ago everything was fine, now I've got to the point that I can't even start the DLNA service in Frontview. I've even gone to the extreme of a Factory Reset and re-install of all my media with no joy.
With DLNA Debugging enabled and after deleting /var/cache/minidlna/files.db attempting to restart the service from Frontview results in:
An fsck reveals no disk errors on the system so, with my limited linux and sql knowledge I'm at a loss where to go from here!
Any thoughts / advice gratefully received...
Thanks!
Andy B.
Recent problems with my 1100 and ReadyDLNA are driving me round the bend!
Up until a few months ago everything was fine, now I've got to the point that I can't even start the DLNA service in Frontview. I've even gone to the extreme of a Factory Reset and re-install of all my media with no joy.
With DLNA Debugging enabled and after deleting /var/cache/minidlna/files.db attempting to restart the service from Frontview results in:
NAS-1:/var/log# cat upnp-av.log
[2012/12/12 20:29:47] minidlna.c:881: warn: Starting ReadyDLNA version 1.0.25.
[2012/12/12 20:29:47] minidlna.c:907: warn: Creating new database...
[2012/12/12 20:29:47] sql.c:41: error: SQL ERROR 10 [disk I/O error]
CREATE TABLE OBJECTS ( ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
[2012/12/12 20:29:47] minidlna.c:928: fatal: ERROR: Failed to create sqlite database! Exiting...
[2012/12/12 20:29:48] minidlna.c:881: warn: Starting ReadyDLNA version 1.0.25.
[2012/12/12 20:29:48] sql.c:41: error: SQL ERROR 11 [database disk image is malformed]
pragma journal_mode = OFF
[2012/12/12 20:29:48] sql.c:41: error: SQL ERROR 11 [database disk image is malformed]
pragma synchronous = OFF;
[2012/12/12 20:29:48] sql.c:41: error: SQL ERROR 11 [database disk image is malformed]
pragma default_cache_size = 8192;
[2012/12/12 20:29:48] sql.c:88: error: prepare failed: database disk image is malformed
SELECT UPDATE_ID from SETTINGS
[2012/12/12 20:29:48] sql.c:117: warn: sql_get_int_field: step failed: database disk image is malformed
PRAGMA user_version
[2012/12/12 20:29:48] minidlna.c:907: warn: Creating new database...
[2012/12/12 20:29:48] sql.c:41: error: SQL ERROR 10 [disk I/O error]
CREATE TABLE OBJECTS ( ID INTEGER PRIMARY KEY AUTOINCREMENT, OBJECT_ID TEXT UNIQUE NOT NULL, PARENT_ID TEXT NOT NULL, REF_ID TEXT DEFAULT NULL, CLASS TEXT NOT NULL, DETAIL_ID INTEGER DEFAULT NULL, NAME TEXT DEFAULT NULL);
[2012/12/12 20:29:48] minidlna.c:928: fatal: ERROR: Failed to create sqlite database! Exiting...
An fsck reveals no disk errors on the system so, with my limited linux and sql knowledge I'm at a loss where to go from here!
Any thoughts / advice gratefully received...
Thanks!
Andy B.
3 Replies
Replies have been turned off for this discussion
- couch_potatoeAspirantWell, after lots of buggering about I think it's a problem with ReadyDLNA...
I finally got it running again from a ssh session, it runs quite happily with the -d (debug mode) option.
running it like this:cd /c/home/[my-home-directory]
nohup minidlna -d &
chmod 666 nohup.out
From a root prompt works, its not elegant but it works, and at least I don't need to keep logging in to keep an eye on nohup.out and it picks up new media and the family are happy because media is streaming again.
Question now is why? What's broken the normal method of running through Frontview?
Does anyone know the command line Frontview generates or the user it runs as?
Again, any thoughts / advice gratefully received...
Andy B. - richtoyTutorHi Andy,
I have similar issues on my X6 box. Do you have more than one DLNA client? I do and this appears to make the problems much worse and this has led me to believe that it is an issue with how the program is built. The source is available on sourceforge and only uses the -pthreads flag in the makefile but you can find many examples of makefiles for Solaris (Sparc) where the -D_REENTRANT preprocessor flag is also present. The -D_REENTRANT flag causes the compiler to include a thread safe errno and -ptheads should be sufficient with the latest versions of gcc. A non thread safe errno can give these type of errors where a system call from one thread sets errno only for its value to be (incorrectly) interpreted by another thread giving leading to hard to understand errors. Without knowing the environment used to build the daemon its impossible to know if this the case. I will root my machine and try your fix to see if it makes any difference.
Richard - couch_potatoeAspirantHi Richard,
Thanks for the reply...
I'm only streaming to a single client at the moment, a Sony BluRay Player, other than "stuttering" with high contrast mkv's I have no issues...
Hope the tweak works for you as it did for me
Happy Christmas!
Andy B.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!