LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2014, 06:40 PM   #1
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Rep: Reputation: Disabled
minidlna boot issue


Distribution is Debian 7.7.
I have installed minidlna, but I have problem with the start
of minidlna at the boot time, although there are correct links
in rc?.d directories.
After boot I can start minidlna without any problem. Simple

sudo /etc/init.d/minidlna start

will do the job. After this manual start, minidlna is working ok.
 
Old 11-04-2014, 07:12 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

are any error messages logged to indicate why minidlna is failing to start? Also, can you really confirm that the links really are correct. Eg the output of:
Code:
ls -l /etc/rc*.d/*minidlna
runlevel
Finally, can you confirm that you are using sysvinit?

Evo2.
 
Old 11-04-2014, 07:27 PM   #3
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi,
Output of ls -l /etc/rc*.d/*minidlna is:
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc0.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc1.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc2.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc3.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc4.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc5.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc6.d/K01minidlna -> ../init.d/minidlna

runlevel is 2.
I don'd know what you mean by sysvinit. I am using init version installed by debian.

Pythagorasmk
 
Old 11-04-2014, 07:55 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by pythagorasmk View Post
Output of ls -l /etc/rc*.d/*minidlna is:
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc0.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc1.d/K01minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc2.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc3.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc4.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc5.d/S22minidlna -> ../init.d/minidlna
lrwxrwxrwx 1 root root 18 Nov 4 16:32 /etc/rc6.d/K01minidlna -> ../init.d/minidlna

runlevel is 2.
That seems to be ok. Did you check /var/log/minidlna.log? Also, does

Quote:
Originally Posted by pythagorasmk View Post
I don'd know what you mean by sysvinit. I am using init version installed by debian.
Ok, then presumably you are using sysvinit. Can you confirm that you are able to start it using invoke-rc.d? Eg
Code:
invoke-rc.d minidlna start
Evo2.
 
Old 11-04-2014, 08:14 PM   #5
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
> Did you check /var/log/minidlna.log?
Log file is empty.

> Can you confirm that you are able to start it using invoke-rc.d?
yes I can confirm that.

Pythagorasmk
 
Old 11-04-2014, 08:23 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by pythagorasmk View Post
Log file is empty.
That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
Code:
log_level=debug
Quote:
Originally Posted by pythagorasmk View Post
> Can you confirm that you are able to start it using invoke-rc.d?
yes I can confirm that.
Ok. Is there anything out of the ordinary about your setup? Are you using the standard minidlna from wheezy? Nothing strange in your /etc/default/minidlna or /etc/minidlna.conf?

Evo2.
 
Old 11-04-2014, 08:46 PM   #7
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

That is peculiar. I suggest you increase the logging verbosity. Eg in your /etc/minidlna.conf set
Code:
log_level=debug

Ok. Is there anything out of the ordinary about your setup? Are you using the standard minidlna from wheezy? Nothing strange in your /etc/default/minidlna or /etc/minidlna.conf?

Evo2.
Here is the content of /var/log/minidlna.log, after manual start with 'invoke-rc.d minidlna start' and after I have added log_level=debug:

[2014/11/05 03:35:07] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.13].
[2014/11/05 03:35:07] inotify.c:195: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [2] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.
[2014/11/05 03:35:07] minidlna.c:1006: warn: HTTP listening on port 8200

I am using the standard minidlna from wheezy. The only changes in minidlna.conf are media_dir and friendly_name. There are no changes in /etc/default/minidlna.
 
Old 11-04-2014, 09:11 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

ok, it seems to start normally. This is somewhat puzzling to me. Do you see any messages on the console when you when you start it, or at boot? If not it may be worthwhile setting "VERBOSE=yes" in /etc/default/rcS and trying again.

Evo2.
 
Old 11-04-2014, 09:33 PM   #9
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
> This is somewhat puzzling to me.
even more for me
> Do you see any messages on the console when you when you start it, or at boot?
No.
> If not it may be worthwhile setting "VERBOSE=yes" in /etc/default/rcS and trying again.
I have set "VERBOSE=yes" but there are no changes, either in messages when I am starting
minidlna, either in the log file.
 
Old 11-04-2014, 10:09 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I think you need to work out if /etc/init.d/minidlna is actually being called at boot time and then failing to start the daemon for some reason, or if it is not being called. I'm don't know the best way to do this...

Evo2.
 
Old 11-05-2014, 10:42 AM   #11
pythagorasmk
LQ Newbie
 
Registered: Oct 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Hi,

> I think you need to work out if /etc/init.d/minidlna is actually being called at boot time ...
I have added 'echo "bla bla ..." > /aaa.txt' at the beginning of the /etc/init.d/minidlna, and after reboot there was a file /aaa.txt, so the script is called at boot time.

> ... and then failing to start the daemon for some reason
There must be some service or somethig else that /etc/init.d/minidlna is expecting to be running when the script is called, but that service is not started for some reason. I don't know how to check this.

Pythagorasmk
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
minidlna boot issue pythagorasmk Linux - Hardware 2 11-04-2014 07:46 PM
Minidlna on Slackware | librairies missing madhavramdin Linux - Desktop 2 04-22-2013 05:46 AM
[SOLVED] minidlna and Slackware 14 dimm0k Slackware 14 02-12-2013 08:30 AM
minidlna on slackware and em7080 the_zone Slackware 1 11-07-2012 09:47 PM
[SOLVED] Mandriva firewall and minidlna Johng Linux - Security 9 11-23-2011 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration