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
  #21  
Old 07-15-2006, 06:42 PM
NEOSG NEOSG is offline
Sage Aficionado
 
Join Date: May 2006
Posts: 271
I use UNC paths and I reference them by the static IP assigned to the sage server. So, rather than referencing storage for recordings and imported media by \\servername\sharename , I use\\serverip\sharename

This require no DNS lookup.

What would be the advatage to using \\servername\sharename vs \\serverip\sharename ? (other than having to change things if the internal network changes. But how often does that happen)
Reply With Quote
  #22  
Old 07-15-2006, 06:46 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Quote:
Originally Posted by NEOSG
I use UNC paths and I reference them by the static IP assigned to the sage server. So, rather than referencing storage for recordings and imported media by \\servername\sharename , I use\\serverip\sharename

This require no DNS lookup.

What would be the advatage to using \\servername\sharename vs \\serverip\sharename ? (other than having to change things if the internal network changes. But how often does that happen)
I would think that since this works that making an entry in the server's hosts file for itself would work too.
Reply With Quote
  #23  
Old 07-15-2006, 10:14 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
NEOSG ,

I tested your way and it does not work either. If I disconnect from the router while recording it will fail and it will say 0 space availible. Simply put if all you use is UNC paths and you lose your router your recordings will fail.
Reply With Quote
  #24  
Old 07-15-2006, 10:55 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by nyplayer
NEOSG ,

I tested your way and it does not work either. If I disconnect from the router while recording it will fail and it will say 0 space availible. Simply put if all you use is UNC paths and you lose your router your recordings will fail.
Thank you. I haven't had the chance to test this idea out yet. It sounded like a possiblity but I guess not. Guess I'll stick with my method.

BobP.
Reply With Quote
  #25  
Old 07-16-2006, 05:07 AM
NEOSG NEOSG is offline
Sage Aficionado
 
Join Date: May 2006
Posts: 271
Quote:
Originally Posted by nyplayer
NEOSG ,

I tested your way and it does not work either. If I disconnect from the router while recording it will fail and it will say 0 space availible. Simply put if all you use is UNC paths and you lose your router your recordings will fail.
Thank you for the feedback. Is your sagetv server directly connected to your router?

I ask, becasue if it goes to a switch first, I am wondering if the issue is one of 2 things. Is it the nic on the sage server losing it's conectivity that casues the sage server to stop recording, or is it that if the sage servers gateway connection is unreachable, then the recording stops.
Reply With Quote
  #26  
Old 07-16-2006, 12:32 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
it's not a problem with Sagetv... It is just the way networks work period. If you are going to use UNC paths for recording only and not local paths ... Then you must be aware that you also have introduced another point of failure.

Your HTPC is now dependent on a router to record... If the router fails your HTPC is more or less useless. Whereby using just local paths even if you lose the router it will not affect your scheduled recordings or recordings in progress.

Using UNC paths points of failure below.
1. Router failure
2. HTPC failure

Using Local Paths points of failure below.
1. HTPC failure.

Even a network Hiccup could cause a corrupted file.

So weighing the above I am now using local paths exclusively on my server.
Reply With Quote
  #27  
Old 07-16-2006, 12:53 PM
NEOSG NEOSG is offline
Sage Aficionado
 
Join Date: May 2006
Posts: 271
Quote:
Originally Posted by nyplayer
it's not a problem with Sagetv... It is just the way networks work period. If you are going to use UNC paths for recording only and not local paths ... Then you must be aware that you also have introduced another point of failure.

Your HTPC is now dependent on a router to record... If the router fails your HTPC is more or less useless. Whereby using just local paths even if you lose the router it will not affect your scheduled recordings or recordings in progress.

Using UNC paths points of failure below.
1. Router failure
2. HTPC failure

Using Local Paths points of failure below.
1. HTPC failure.

Even a network Hiccup could cause a corrupted file.

So weighing the above I am now using local paths exclusively on my server.

OK, maybe I am missing something, but lets look at the following hypothetical scenerio.

SageTV server ip 192.168.0.5
Recording path for encoder on same server is \\192.168.0.5\sharename
SageTV server 192.168.0.5 is connected to an unmanaged switch which is then connected to a router with the ip of 192.168.0.1. This router is the sageTV servers primary gateway

The router with the IP of 192.168.0.1 gets fried. But, since the SageTV server is connected to a switch, its NIC is still up.

I see no reason why sagetv should stop recording just because the server cannot reach the gateway/router due to it being down.

So, am I missing something in the above scenerio that would explain why the sageTV server would stop recording just bacause it would not reach it's gateway?

p.s Not trying to be argumentative, just trying to see where your coming from.
Reply With Quote
  #28  
Old 07-16-2006, 12:55 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
There is a workaround that I believe will work. I don't have UNC paths setup in Sage but I tested this by browsing a local UNC path in Windows Explorer with my network cable unplugged and it worked after I did this.

These instructions are for XP Pro SP2 other versions of windows may vary slightly but same principles apply.
Go to Control Panel-> Add New Hardware
Click Next to continue (it will search for hardware not yet installed)
Choose Yes I have already connected the hardware and click Next
Scroll all the way to the bottom of the list and choose Add a new hardware device and click Next
Choose Install the hardware that I manually select from a list (Advanced)
Choose Network adapters and click next
Choose Microsoft on the left and select Microsoft Loopback Adapter and click next
Click Next again
Click Finish
Now go to your Network connections and find the Local Area Connection associated with the Microsoft Loopback adapter and edit the TCP/IP properties.
Change it to assign IP manually and give it a bogus private IP that isn't on your network ie (192.168.99.0) and let it choose default subnet and apply those changes etc. and now using local UNC paths should work even when network fails or is unplugged.
I'd like to know the results if someone can actually test this with Sage.
Reply With Quote
  #29  
Old 07-16-2006, 02:28 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by ToxMox
There is a workaround that I believe will work. I don't have UNC paths setup in Sage but I tested this by browsing a local UNC path in Windows Explorer with my network cable unplugged and it worked after I did this.

These instructions are for XP Pro SP2 other versions of windows may vary slightly but same principles apply.
Go to Control Panel-> Add New Hardware
Click Next to continue (it will search for hardware not yet installed)
Choose Yes I have already connected the hardware and click Next
Scroll all the way to the bottom of the list and choose Add a new hardware device and click Next
Choose Install the hardware that I manually select from a list (Advanced)
Choose Network adapters and click next
Choose Microsoft on the left and select Microsoft Loopback Adapter and click next
Click Next again
Click Finish
Now go to your Network connections and find the Local Area Connection associated with the Microsoft Loopback adapter and edit the TCP/IP properties.
Change it to assign IP manually and give it a bogus private IP that isn't on your network ie (192.168.99.0) and let it choose default subnet and apply those changes etc. and now using local UNC paths should work even when network fails or is unplugged.
I'd like to know the results if someone can actually test this with Sage.
Ding Ding Ding - we have a winner. I set this up and from the Server in question I cannot browse any other computer on the network but it is still recording. When I plug the cable back in the browsing capability as well as remote desktop comes back. I get my boot drive back now.

Thank you. I was hoping somebody would know how to set this up. Now to setup my second server this way too. This info needs a Sticky.
BobP.

Edit: in case your wondering. I disconnect the network cable from the back of the SageTV Server for this testing so I know it was not connected to anything on the network and I deleted my local directory from Sage and off the drive.

Last edited by BobPhoenix; 07-16-2006 at 02:53 PM.
Reply With Quote
  #30  
Old 07-16-2006, 03:42 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Yesss. It works great Thanks ToxMox for the workaround.

And thanks to everyone that contributed to this discussion and for the various testing.
Reply With Quote
  #31  
Old 07-16-2006, 03:52 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
NEOSG,

I have my server wired to a Linksys 4 port and wireless router. I do not have a switch in between... So if the Router fails and I am using UNC paths it wont record.... but now with the Loop Back workaround all is ok now.
Reply With Quote
  #32  
Old 07-16-2006, 04:32 PM
NEOSG NEOSG is offline
Sage Aficionado
 
Join Date: May 2006
Posts: 271
Quote:
Originally Posted by nyplayer
NEOSG,

I have my server wired to a Linksys 4 port and wireless router. I do not have a switch in between... So if the Router fails and I am using UNC paths it wont record.... but now with the Loop Back workaround all is ok now.

NYPlayer,

thanks for letting me know. That explains everything. I was thinking in terms of having a switch in between your pc and the router. Thus, when the router goes down, since the switch may still be up, the sage nic stays up. I frogot that in many cases, people only have the single router with the built-in switch.

Regardless, I'm glad you found a workaround that keeps you rolling!
Reply With Quote
  #33  
Old 07-16-2006, 06:04 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
About the work around....for comskip to work I've always heard that the client must be able to access the .txt file at the same location the server does. Using UNC paths or mapped drives this isn't a problem. Does it still work when using the loopback adapter?
Reply With Quote
  #34  
Old 07-16-2006, 06:16 PM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Adding the loopback adapter doesn't have any effect on the networking of the server. All it does it keep the networking services on the machine running even when the cable is unplugged on the real network adapter because it still thinks it is connected to a network via the loopback adapter so it keeps the UNC up and running locally.
Everything will be fine with the loopback added to the system.
Reply With Quote
  #35  
Old 07-16-2006, 08:57 PM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
Thanks for the explanation.
Reply With Quote
  #36  
Old 07-16-2006, 09:48 PM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
wow, I haven't checked this thread for a while and now its gotten quite interesting. I know the MS loopback driver was meant to emulate a NIC even when your system doesn't have a physical one. So kudos to ToxMox for coming up with the idea to use it to correct UNC paths failures in SageTV. I will have to try it now. If it works, I'll message opus4 and maybe have him add this info to the UNC path of SageTV FAQ.
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.
Reply With Quote
  #37  
Old 07-22-2006, 03:46 AM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
Just to update on the loopback driver trick, I found a problem after restarting SageTV service, my MVP Extender stopped connecting to the server.

This is whats happening, when I set the bogus loopback IP to 192.168.99.100, and I launched SageTV Client on the same machine as the server, and went into SageTV System Information screen, where it says IP Address, I noticed that it changed to 192.168.99.100 also, which is the bogus IP. When I disable the Loopback driver, then System Information shows the correct real LAN IP of the Server. The problem is the MVP extender would fail to connect if the server IP is using the bogus one. I have to disable the loop driver in order for MVP to connect. But once the MVP is connected, then its fine to enable the loopback driver.

So my question now is if you have two NICs with different IPs, in this case a LAN IP and a bogus loopback IP, in what order is SageTV picking the IP to use? And why is it for me that it keeps picking the bogus IP over the Lan one? At this point, I'm disabling the loopback driver as I can't imagine any reason for my router to fail besides a power outage, which would kill my sagetv server also anyway.
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.

Last edited by mayamaniac; 07-22-2006 at 03:49 AM.
Reply With Quote
  #38  
Old 07-22-2006, 05:38 AM
pjwerdna pjwerdna is offline
Sage Aficionado
 
Join Date: Oct 2004
Location: UK, Slough
Posts: 397
Quote:
Originally Posted by mayamaniac
So my question now is if you have two NICs with different IPs, in this case a LAN IP and a bogus loopback IP, in what order is SageTV picking the IP to use?
It's probably picking the first ip address it finds on the machine.

You could try changing the order of the connections. On the network connections screen, goto the Advanced Menu and select Advaned Settings.
Try changing the order to..
1 Local Area Connection
2 Loop Back Adapter

Dont have an MVP to try myself.

Edit: cos I got the wrong order!
__________________
SageTV Server : Akasa Inifiiti Case, Gigabyte GA-P35C-DS3 MB, 8600GT, Core2 Duo (E6850 3GHz), 4GB RAM, ~6TB Filestore , Nova-TD500, TBS 6280, SageTV 7.1.9
New Client 2 :MSI P67A-GD53, i5 2500K Quad core (3.3GHz), 12GB, Windows 10 Pro (and test SageTV 9 Install)
Sage Client 1 : HD300, Logitech Harmony One

Last edited by pjwerdna; 07-22-2006 at 05:42 AM.
Reply With Quote
  #39  
Old 07-23-2006, 04:54 AM
mayamaniac's Avatar
mayamaniac mayamaniac is offline
Sage Icon
 
Join Date: May 2004
Posts: 2,177
Quote:
Originally Posted by pjwerdna
It's probably picking the first ip address it finds on the machine.

You could try changing the order of the connections. On the network connections screen, goto the Advanced Menu and select Advaned Settings.
Try changing the order to..
1 Local Area Connection
2 Loop Back Adapter

Dont have an MVP to try myself.

Edit: cos I got the wrong order!
This will probably work. It needs a reboot to take effect, and I can't reboot at the moment, but will do so later. Thanks for the tip.
__________________
Mayamaniac

- SageTV 7.1.9 Server. Win7 32bit in VMWare Fusion. HDHR (FiOS Coax). HDHR Prime 3 Tuners (FiOS Cable Card). Gemstone theme.
- SageTV HD300 - HDMI 1080p Samsung 75" LED.
Reply With Quote
  #40  
Old 07-24-2006, 01:32 PM
pjwerdna pjwerdna is offline
Sage Aficionado
 
Join Date: Oct 2004
Location: UK, Slough
Posts: 397
Quote:
Originally Posted by mayamaniac
I'm disabling the loopback driver as I can't imagine any reason for my router to fail besides a power outage, which would kill my sagetv server also anyway.
There is a good reason to have the loop back driver actually...

If you have a UPS and are using UNC paths, then with the loopback driver the machine can shutdown sage and the OS properly and avoid getting corrupted mpegs that cause sage to lockup when the power comes back.
__________________
SageTV Server : Akasa Inifiiti Case, Gigabyte GA-P35C-DS3 MB, 8600GT, Core2 Duo (E6850 3GHz), 4GB RAM, ~6TB Filestore , Nova-TD500, TBS 6280, SageTV 7.1.9
New Client 2 :MSI P67A-GD53, i5 2500K Quad core (3.3GHz), 12GB, Windows 10 Pro (and test SageTV 9 Install)
Sage Client 1 : HD300, Logitech Harmony One
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


All times are GMT -6. The time now is 10:40 PM.


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