Page 1 of 1

Serice not starting

PostPosted: Sun Mar 13, 2016 1:21 am
by ytrewq
I have Serviio on a Windows 7 media NAS/Server. It is powered on by BIOS and off by Task Scheduler every day. When it restarts after a shutdown Serviio service is not starting automatically, even though it is set to do so and I have to remote in and do it manually every day. Any ideas? Thanks

Re: Serice not starting

PostPosted: Sun Mar 13, 2016 11:16 am
by DenyAll
Does a detailed log shed any light on why it is not starting?
The log should show Serviio attempting to start and then perhaps give a clue as to what went wrong. If there is nothing in the log showing it attempting to start, I'd suggest you havent got the auto start set correctly (run services.msc and check that the Serviio Service is set to StartUp Type: Automatic).
Are you doing a full shutdown, not hibernate or sleep?

Re: Serice not starting

PostPosted: Mon Mar 14, 2016 6:42 am
by ytrewq
Thanks for the reply. As you can see from my post it is set to run automatically, but just isn't doing it. It is scheduled to do a full shutdown. Here is a copy of the log:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="500KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>

<category name="org.serviio">
<priority value="INFO"/>
</category>

<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>

<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>

<category name="org.restlet">
<priority value="OFF"/>
</category>

<category name="LogService"> <!-- Restlet access log -->
<priority value="OFF"/>
</category>

<category name="org.apache.jcs">
<priority value="WARN"/>
</category>

<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>

</log4j:configuration>

I can't see anything obvious that identifies the problem.

Re: Serice not starting

PostPosted: Mon Mar 14, 2016 11:39 am
by DenyAll
Wrong file. The log file is in "C:\Program Files\Serviio\log\serviio.log".

The file in your post ("C:\Program Files\Serviio\config\log4j.xml") controls the level of detail in the log file. You can set:
  Code:
<category name="org.serviio">
<priority value="INFO"/>
</category>
to
  Code:
<category name="org.serviio">
<priority value="DEBUG"/>
</category>
and then save the file and restart your PC/Serviio Service. This sets Serviio to debug mode and gives the most information.

After your task scheduler does its thing and Serviio fails to start, look at the bottom of the log and see if it sheds any light on what is happening.

Once you have the info you need, reset the 'log4j.xml" file back to the way it was, and restart.

Re: Serice not starting

PostPosted: Wed Mar 16, 2016 9:45 am
by ytrewq
Hmmm. Something up with this forum site. From the time I clicked login it took around 1 minute to actually log in. Posting this reply took the same amount of time before I got here. I expect SUBMIT will be the same based on this.

Is there a way I can get email notification when there is a response as I have no idea if anyone has replied?

I'll take another look at the log and get back, that's if I can log in....

Re: Serice not starting

PostPosted: Thu Mar 17, 2016 9:12 am
by ytrewq
Here's a different log based on debug:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ===================================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ===================================================================== -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true" />
<param name="File" value="${serviio.home}/log/serviio.log" />
<param name="MaxFileSize" value="500KB" />
<param name="MaxBackupIndex" value="5" />
<param name="Encoding" value="UTF-8" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] %m%n"/>
</layout>
</appender>

<category name="org.serviio">
<priority value="debug"/>
</category>

<category name="com.sun.syndication">
<priority value="ERROR"/>
</category>

<category name="org.jaudiotagger">
<priority value="ERROR"/>
</category>

<category name="org.restlet">
<priority value="OFF"/>
</category>

<category name="LogService"> <!-- Restlet access log -->
<priority value="OFF"/>
</category>

<category name="org.apache.jcs">
<priority value="WARN"/>
</category>

<root>
<priority value="INFO"/>
<appender-ref ref="FILE"/>
</root>

</log4j:configuration>

Is this log any better? I can't see anything that helps me so unless anyone can come up with a solution I'll have to uninstall Serviio and try something else.

Re: Serice not starting

PostPosted: Thu Mar 17, 2016 9:20 am
by DenyAll
No , you need to post the C:\Program Files\Serviio\log\serviio.log file (after restarting your PC).