minidlna doesn't start automatically

(Replaces the existing UPnP-AV server support) Enables playback of videos, music and pictures from DLNA/UPnP AV network media players. Also adds TiVo HMO support.

minidlna doesn't start automatically

Postby manda » Mon Jun 25, 2012 4:40 am

Hy guys,

I've a Readynas NVX+ (x86) with RAIDiator 4.2.21.

Since several times I see when I start my NAS, the ReadyDLNA server doesn't start automatically. I tried to upgrade the module with the last one found on this forum but the problem still !

When I'm connecting to the frontview on the appropriate webpage, I see that the service has to be launch, when I uncheck and click on apply, the server return an error "there is a problem when stopping the service", which (on my point of view) is normal because the minidlna server is not started...

After if I recheck the service and click on apply, the service start.

Now when I check my NAS just after the power on directly on the ssh shell, I see that the minidlna server didn't start, all the trouble seems to be here ! I would check the initscript, but I don't find the one that should be use to start the server ...

Any help ?

(temporary fixed, I push in /etc/rc.local the server) but it's not the right way to solve the problem ...

Thks
Renaud
manda
ReadyNAS Newbie
 
Posts: 5
Joined: Mon Jun 25, 2012 4:18 am
ReadyNAS: NVX

Re: minidlna doesn't start automatically

Postby manda » Sat Jun 30, 2012 8:18 am

Hi

For those in that case I fixed it creating the initscript from http://zeldor.biz/2012/01/dlna-minidlna-on-debian/

And using the first command to add the iniscript at the right runlevel.
manda
ReadyNAS Newbie
 
Posts: 5
Joined: Mon Jun 25, 2012 4:18 am
ReadyNAS: NVX

Re: minidlna doesn't start automatically

Postby alessio.71 » Wed Jul 25, 2012 11:50 am

manda wrote:Hi

For those in that case I fixed it creating the initscript from http://zeldor.biz/2012/01/dlna-minidlna-on-debian/

And using the first command to add the iniscript at the right runlevel.

Can you tell me the exact command to put the script in the RIGHT runlevel? i've tried without luck.
Thanks,
Alessio
Last edited by alessio.71 on Wed Jul 25, 2012 10:30 pm, edited 1 time in total.
alessio.71
ReadyNAS Newbie
 
Posts: 13
Joined: Sun Dec 05, 2010 11:01 am
ReadyNAS: Pro

Re: minidlna doesn't start automatically

Postby manda » Wed Jul 25, 2012 3:27 pm

Hi Agessio,

Well netgear has completely override all startup routine.

on my NAS the current runlevel is:

readynasnvx:~# who -r
run-level 2 2012-07-25 09:57 last=S

So in fact after creating the initscript from the previous website, I added into /etc/rc2.d/S01readynas_startup :

echo -n "Starting DLNA server" >$OUT
/usr/sbin/minidlna -f /etc/minidlna.conf
echo "." >$OUT

However this modification will probably not survive to an firmware upgrade :(

Regards,
Renaud
manda
ReadyNAS Newbie
 
Posts: 5
Joined: Mon Jun 25, 2012 4:18 am
ReadyNAS: NVX

Re: minidlna doesn't start automatically

Postby alessio.71 » Wed Jul 25, 2012 10:37 pm

Hi Renaud,
I've already tried that, i've added the command in that script but, still, after reboot, no minidlna process active
Code: Select all
nas:~# ps -ef | grep minidlna | grep -v grep
nas:~#

I've even created a script called minidlna in /etc/init.d as the post you suggested and added it to rc
Code: Select all
update-rc.d minidlna defaults
but nothing, at reboot doesn't start.
If I launch it manually obviously it starts.
Any idea?
Thank you very much,
Alessio

P.S.
Same runlevel than yours
Code: Select all
who -r
run-level 2  Jul 26 07:30      last=S
alessio.71
ReadyNAS Newbie
 
Posts: 13
Joined: Sun Dec 05, 2010 11:01 am
ReadyNAS: Pro

Re: minidlna doesn't start automatically

Postby mdgm » Wed Jul 25, 2012 10:40 pm

When enabled in Frontview ReadyDLNA should start automatically. Rather than trying to setup some 3rd party workaround I would think it would be best to contact support and seek their assistance. You could open a case at my.netgear.com and post the case number.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28621
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: minidlna doesn't start automatically

Postby manda » Thu Jul 26, 2012 1:53 am

mdgm wrote:When enabled in Frontview ReadyDLNA should start automatically. Rather than trying to setup some 3rd party workaround I would think it would be best to contact support and seek their assistance. You could open a case at my.netgear.com and post the case number.


You're right, that should work, but it's not .... I would prefer to have a fix and it's why I initially posted here ...
manda
ReadyNAS Newbie
 
Posts: 5
Joined: Mon Jun 25, 2012 4:18 am
ReadyNAS: NVX

Re: minidlna doesn't start automatically

Postby manda » Thu Jul 26, 2012 2:04 am

Hi Renaud,
I've already tried that, i've added the command in that script but, still, after reboot, no minidlna process active
Code: Select all
nas:~# ps -ef | grep minidlna | grep -v grep
nas:~#


You can check the logfile /var/log/upnp-av.log to see if something is wrong. (Sometimes minidlna doesn't start simply because it tried to bind an IP address which is not yet setup)

I've even created a script called minidlna in /etc/init.d as the post you suggested and added it to rc
Code: Select all
update-rc.d minidlna defaults
but nothing, at reboot doesn't start.
If I launch it manually obviously it starts.
Any idea?
Thank you very much,
Alessio


it's due to heavily customisation of netgear

As mdgm said, you could also contact the support, in my case there were unsuccessful to fix my trouble ;)
manda
ReadyNAS Newbie
 
Posts: 5
Joined: Mon Jun 25, 2012 4:18 am
ReadyNAS: NVX

Re: minidlna doesn't start automatically

Postby alessio.71 » Thu Jul 26, 2012 10:08 am

manda wrote:You can check the logfile /var/log/upnp-av.log to see if something is wrong. (Sometimes minidlna doesn't start simply because it tried to bind an IP address which is not yet setup)

In this log file I've foiund this:
Code: Select all
[2012/07/26 19:02:37] minidlna.c:153: warn: received signal 15, good-bye

Anybody knows what this means?

Anyway, opend a case online n# 19067253

Thank you,
Alessio
alessio.71
ReadyNAS Newbie
 
Posts: 13
Joined: Sun Dec 05, 2010 11:01 am
ReadyNAS: Pro

Re: minidlna doesn't start automatically

Postby alessio.71 » Sun Jul 29, 2012 6:29 am

alessio.71 wrote:Anyway, opend a case online n# 19067253

Thank you,
Alessio

They've escalated to engineers...
alessio.71
ReadyNAS Newbie
 
Posts: 13
Joined: Sun Dec 05, 2010 11:01 am
ReadyNAS: Pro

Re: minidlna doesn't start automatically

Postby alessio.71 » Wed Aug 01, 2012 8:30 am

Problem solved! :D
I'm afraid I don't know what they did but they stated that
The fix was done by a senior engineer based in the US. I am afraid I do not have exact details of the fix applied but I have been informed that this fix will be rolled into the next firmware release 4.2.22.

Mr. Brendan stated also that he will
see if I can get a Jedi on the forum to update the forum thread.
alessio.71
ReadyNAS Newbie
 
Posts: 13
Joined: Sun Dec 05, 2010 11:01 am
ReadyNAS: Pro


Return to ReadyDLNA



Who is online

Users browsing this forum: No registered users and 2 guests