SageTV Community  

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

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-08-2010, 08:41 AM
Diego Garcia Diego Garcia is offline
Sage Aficionado
 
Join Date: Mar 2008
Location: Bay Area, California
Posts: 264
Problem w/Sage as a Service

I ran into a bunch of problems upon installing RC18 yesterday (this was my first installation of v7 software). Fortunately most of the problems have a single cause, but it's a problem I hope can be fixed before v7 ships.

Because I had a problem upgrading my HD200 firmware I followed the suggestion in the FAQ for rebooting my Sage server to see if that would solve the problem. I run Sage-as-a-service, and I had configured it to enable service recovery. The service was running before I rebooted the system.

After rebooting, and unbeknown to me, the service did not restart. The Sage UI came up, so I thought everything was fine, but it was using a different configuration than when the service is running. As a result I ran into a large number of issues (e.g., almost all of my recorded TV shows were filed under "Videos", rather than under "TV").

Restarting the service (and restarting the Sage client) "solved" the problem...but doesn't explain why the service didn't start on its own on system reboot. I haven't had a chance to try rebooting the system again to see if the failure to restart the service repeats. I'll do that later today and report back what I find.

Beyond hoping that any "service won't automatically start" problem will be solved, I strongly urge the Sage team to figure out how to make both scenarios -- service running and not -- use the same configuration. It is very confusing to the non-geek user to see software running "as per usual" when in reality it's running a different configuration.

I know, from experience, that this was an issue when you ran Sage v6 under Windows 7 or Vista. At the time this was ascribed to changes in how Microsoft changed disk access control by applications under Vista, forcing Sage in "standalone" mode (i.e., service not running) to use a configuration maintained in the VirtualStore under the C:\Users\... branch, while Sage in "service" mode used a configuration maintained in the C:\Program Files\... branch. I thought I'd read somewhere in the beta release notes that this dichotomy had been resolved in v7, but either I misread that or it's not yet completely fixed.

Whatever the cause, however, it's a significant distraction from using Sage which I hope can be fixed before v7 is officially released. Among many other reasons, it has a very low Wife Appreciation Factor .

Last edited by Diego Garcia; 10-08-2010 at 09:23 AM.
Reply With Quote
  #2  
Old 10-08-2010, 08:43 AM
Diego Garcia Diego Garcia is offline
Sage Aficionado
 
Join Date: Mar 2008
Location: Bay Area, California
Posts: 264
A follow up thought/question: would this problem go away if I had the Sage service run under a "real" user account? In other words, is the disk access control issue the result of the service using, by default, an account with limited disk access rights?
Reply With Quote
  #3  
Old 10-08-2010, 09:09 AM
madpoet madpoet is offline
Sage Aficionado
 
Join Date: Sep 2003
Posts: 262
If you do not use a User account and are trying to access remote file shares, you will not be able to. not sure if that is what you are asking. You must use a user account and be sure that account has rights to the remote shares.
Reply With Quote
  #4  
Old 10-08-2010, 09:14 AM
Diego Garcia Diego Garcia is offline
Sage Aficionado
 
Join Date: Mar 2008
Location: Bay Area, California
Posts: 264
No, but thanks for mentioning that aspect of deciding what user account to use. I don't store videos on network file shares, all my Sage files are on the same server.
Reply With Quote
  #5  
Old 10-08-2010, 09:38 AM
madpoet madpoet is offline
Sage Aficionado
 
Join Date: Sep 2003
Posts: 262
Ok, sorry then... not sure.
Reply With Quote
  #6  
Old 10-08-2010, 10:38 AM
darcilicious's Avatar
darcilicious darcilicious is offline
Sage Icon
 
Join Date: Jul 2009
Location: Venus
Posts: 1,306
I don't recall ever rebooting my Vista HTPC and the SageTV service NOT automatically starting. You may want to poke around the event logs for Windows.
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output
on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT)
via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB
Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd
Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2
Reply With Quote
  #7  
Old 10-08-2010, 01:51 PM
null_pointer_us null_pointer_us is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 135
This happened to me many times in v6.

Sage demanding complete reconfiguration every boot got old real fast.

So I eventually nuked it. Instructions are in last post.

AFAICT, when the app loads before the service, the service quits and leaves the app in standalone mode, where it uses a different settings file. Giving the SageTV app (e.g. the tray icon) a startup delay -- so that it starts *after* the service -- would probably be a decent workaround.
Reply With Quote
  #8  
Old 10-08-2010, 02:03 PM
null_pointer_us null_pointer_us is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 135
Quote:
Originally Posted by Diego Garcia View Post

... I strongly urge the Sage team to figure out how to make both scenarios -- service running and not -- use the same configuration. It is very confusing to the non-geek user to see software running "as per usual" when in reality it's running a different configuration.


Quote:
I know, from experience, that this was an issue when you ran Sage v6 under Windows 7 or Vista. At the time this was ascribed to changes in how Microsoft changed disk access control by applications under Vista, forcing Sage in "standalone" mode (i.e., service not running) to use a configuration maintained in the VirtualStore under the C:\Users\... branch, while Sage in "service" mode used a configuration maintained in the C:\Program Files\... branch. I thought I'd read somewhere in the beta release notes that this dichotomy had been resolved in v7, but either I misread that or it's not yet completely fixed.

Whatever the cause, however, it's a significant distraction from using Sage which I hope can be fixed before v7 is officially released. Among many other reasons, it has a very low Wife Appreciation Factor .
It's not UAC though I recommend installing SageTV in a non-UAC folder anyway. I don't trust SageTV to be Vista/7 compatible even if they say so.

The problem seems to be:

- You configure SageTV to run as a service.
- You run the SageTV app to watch some TV.
- In the app, you go to settings and configure it to load when Windows starts.
- Now the app will randomly start before the service has finished loading.
- When this happens, server will bail and app will use a different config.
- If the app config is uninitialized, you will be prompted for its settings.
- Oddly, all the server config's values show up as defaults for the app config.
Reply With Quote
  #9  
Old 10-08-2010, 02:13 PM
Diego Garcia Diego Garcia is offline
Sage Aficionado
 
Join Date: Mar 2008
Location: Bay Area, California
Posts: 264
I think maybe I'll whip up a little Windows app that manually launches the service first and then launches the client app if and only if the service is running. That shouldn't be too hard (famous last words if I've ever heard any ).

Alternatively, maybe I'll port over my "daemon monitor" from my linux box. It periodically checks to see which daemons are running, and sends me a text message if any "required" ones are not.
Reply With Quote
  #10  
Old 10-08-2010, 04:16 PM
null_pointer_us null_pointer_us is offline
Sage Advanced User
 
Join Date: Dec 2005
Posts: 135
Setting startup_delay=30 in Sage.properties might have been an effective workaround.

I just can't remember.
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
Problem with sagetv service? Or... mrrrl SageTV Software 0 10-01-2010 09:01 PM
New to sage - Having service problem. broconne SageTV Mac Edition 5 03-04-2009 10:05 AM
When running as service why does starting Sage UI say SageTV Service is initializing? GollyJer SageTV Software 2 12-27-2006 09:59 AM
Problem running Sage as Service Hector SageTV Beta Test Software 0 10-17-2004 03:17 AM


All times are GMT -6. The time now is 02:00 AM.


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