SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2009, 07:39 AM
tomfisk's Avatar
tomfisk tomfisk is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Plainview, MN
Posts: 86
SageTVService slow startup

So I decided that it was time to update my sister's SageTV system. It was running SageTV 6.2 something and needed a driver and software refresh.

Did you ever notice that sometime when you think you are going to be making "progress" you end up loosing ground? Several problems, but I'll focus on one that I finally worked around, but has me still wondering...

After the upgrade to 6.6, I noticed that it would take a long time for the SageTV service to get going. Consistently around 12 minutes. During this time the PC is mostly usable...everything else appears to be running normally. However, things like modifying a service or trying to install/uninstall an application would hang until the SageTV service "unpaused".

Turned on the debug log...nothing remarkable except that it pauses...no errors.

I downloaded BootLog XP and looked at it's trace. It appeared that Sage was paused in the process of loading DShowFilter.dll. Don't know what that meant...

My initial thought that Sage was deadlocking with some other process for some resource and it took 12 minutes for the deadlock to timeout. Started turning off services that looked like candidates and rebooted after each. Still 12 minutes...

Finally decided to disable the SageTV service. PC booted up very quickly. Immediately after boot, brought up the SageTV service control panel, enabled it, and started it...started up right away.

So...turns out that the SageTV service can not be started immediately after a boot. I wrote a script that waits 15 seconds after boot and then does a "net start sagetv". That is working...however I'm left with a niggling feeling that I shouldn't have to do that...and that more "fun" is lurking around a corner somewhere...
__________________
Check it out! - http://www.vholdr.com/video/playing-sky
Reply With Quote
  #2  
Old 11-14-2009, 12:52 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
I do the same thing I start the Service via batch-file also after a reboot. I have recordings on a NAS and sometimes the service would hang if it started before the NAS came online... Delaying the start-up works for me also.

There are no ill effects from doing this once the service is started if it crashes it will restart again anyway you start it.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #3  
Old 11-16-2009, 07:26 PM
zoltran zoltran is offline
Sage User
 
Join Date: Dec 2008
Location: London,ON
Posts: 61
I have a sort-of-similar problem.
Sometimes the sage service starts before windows has finished enumerating the tuners.
The result is sage only sees one of them, and the fix is to simply restart the sage service.

Would you mind posting the batch file/script you used to delay sage from starting?
Thanks in advance
Reply With Quote
  #4  
Old 11-16-2009, 09:54 PM
DigitalMan DigitalMan is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 82
You can try setting a dependency for the Sage service on one of the other services that you think it might have issues with, then it won't start until the other one(s) do.
Reply With Quote
  #5  
Old 11-17-2009, 07:40 AM
tomfisk's Avatar
tomfisk tomfisk is offline
Sage Advanced User
 
Join Date: Oct 2006
Location: Plainview, MN
Posts: 86
Quote:
Originally Posted by DigitalMan View Post
You can try setting a dependency for the Sage service on one of the other services that you think it might have issues with, then it won't start until the other one(s) do.
I did try that...supposedly the print spooler is one of the last services to start and I made Sage dependent on that. Still didn't work.

Here is the script...I use Kixtart...pretty simple.

Code:
Sleep 15
Net Start SageTV
I use Fire Daemon Pro to run this script at boot...there is probably an easier way but it was simple for me to add it to Fire Daemon.
__________________
Check it out! - http://www.vholdr.com/video/playing-sky
Reply With Quote
  #6  
Old 11-17-2009, 07:53 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
can't you just drop the .bat file in your startup folder (in XP)?

should run fine from there. I use this on my work computer to auto-open Outlook, etc.
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #7  
Old 11-17-2009, 08:34 AM
CarlR's Avatar
CarlR CarlR is offline
Sage User
 
Join Date: Aug 2007
Posts: 63
I have this problem as well.

In XP you can define a scheduled task call the .bat file, which can be set to fire on system startup or user login.
Reply With Quote
  #8  
Old 11-17-2009, 08:47 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
1. you have to make sure the service is set to manual.
2. Make sure your computer is on autologon and your logon has administrative privileges.
3. Set up in task schedule and make sure you check to run at logon.

startsage.bat
Sleep 30
Net Start SageTV
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #9  
Old 11-17-2009, 09:35 PM
src666 src666 is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 459
How many shows are recorded, and how much history is there in the WIZ.BIN file? I've got a 3 year old Sage install, with nearly 3 TB of recordings, and it takes close to 20 minutes for Sage Service to stabilize after a restart. I think it's just a matter of Sage having to check everything to make sure nothing is wrong, look for orphaned recordings, etc. when it first starts.
Reply With Quote
  #10  
Old 11-17-2009, 09:47 PM
DigitalMan DigitalMan is offline
Sage Advanced User
 
Join Date: Aug 2007
Posts: 82
I've never seen this happen on any of the 3 different servers I've used with Sage over the years.

You guys should file a bug report on this.
Reply With Quote
  #11  
Old 11-18-2009, 02:22 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by DigitalMan View Post
I've never seen this happen on any of the 3 different servers I've used with Sage over the years.

You guys should file a bug report on this.
I see it happen all the time if the NAS is not online at the time Sage tries and start ... it is not a bug. It looks for the recordings on the Nas to verify and hangs for a while... I have over 2000 recordings on my NAS. I prefer starting sage after the server has completely reboot and all the network devices are connected.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 11-18-2009 at 02:34 AM.
Reply With Quote
  #12  
Old 11-18-2009, 02:37 AM
mickp's Avatar
mickp mickp is offline
Sage Aficionado
 
Join Date: Oct 2006
Posts: 468
I've been experiencing this for years. Here's another thread on the subject.

I'd love to know the cause of the problem. I don't think it's necessarily related to nas based storage as mine is all local to the machine and should be available at the time the service is starting.

Mick.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow client startup causes Sage to lose focus brewston SageTV Software 2 02-16-2009 03:33 AM
Slow startup coppit SageTV Software 14 02-01-2008 09:59 PM
VERY slow service startup on server reboot with v6.0.15 briands SageTV Beta Test Software 6 12-20-2006 10:18 PM
slow audio and video, slow-motion like... xlr8shun SageTV Software 3 05-26-2006 01:50 PM
SageTV Slow Slow Slow... Player0 Hardware Support 35 04-03-2004 02:03 PM


All times are GMT -6. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.