No free card available after hibernate (1 Viewer)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Hi again

    The error is this:

    [scheduler thread(22)]: card: unable to connect to slave controller at:santy

    I think the relevant code that is generating the error is (TvEngine3\TVLibrary\TvService\CardManagement\CardHandler\Recorder.Start() line 94):

    Code:
              try
              {
                RemoteControl.HostName = _cardHandler.DataBaseCard.ReferencedServer().HostName;
                if (!RemoteControl.Instance.CardPresent(_cardHandler.DataBaseCard.IdCard))
                  return TvResult.CardIsDisabled;
    
                if (_cardHandler.IsLocal == false)
                {
                  return RemoteControl.Instance.StartRecording(ref user, ref fileName, contentRecording, startTime);
                }
              }
              catch (Exception)
              {
                Log.Error("card: unable to connect to slave controller at:{0}",
                          _cardHandler.DataBaseCard.ReferencedServer().HostName);
                return TvResult.UnknownError;
              }

    I'm not sure that I fully understand what is going on but I believe it is something to do with networking - 90% sure it is that call to RemoteControl.Instance.CardPresent(). For that call to succeed there *must* be a connected network connection and the hostname (in this case "santy") must be resolvable via DNS or some other mechanism. In practise how this works out is that TV Server tries to start recording over and over again but each time the recording fails just before it starts.

    So my first question would be: are you using a static IP address on the TV Server machine?
    Second: have you added the host name (santy) to the system hosts file (C:\windows\system32\drivers\etc\hosts) on the server and any clients?

    If the answer to either of those questions is no then please fix those issues and see whether it helps. You can read how to edit the system hosts file -->here<--.

    mm
     

    Santy

    Portal Pro
    September 4, 2007
    51
    1
    Home Country
    United Kingdom United Kingdom
    Thanks for the reply. The answer to both of your questions is no. I'm going to have to hold my hands up on this one and mention that I'm not really sure how to go about rectifying them. I'll do some research on the internet and get back to you when I've made the changes. I have edited the hosts file before so should be ok with that... As for my IP address being made static instead of dynamic - do I need to call my ISP about that?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,544
    8,236
    Home Country
    New Zealand New Zealand
    Thanks for the reply. The answer to both of your questions is no. I'm going to have to hold my hands up on this one and mention that I'm not really sure how to go about rectifying them. I'll do some research on the internet and get back to you when I've made the changes. I have edited the hosts file before so should be ok with that... As for my IP address being made static instead of dynamic - do I need to call my ISP about that?
    I'm assuming the PC running TV Server is connected to a router? If so then there is no need to call your ISP. You can follow the instructions -->here<--. It isn't too difficult but you do need to know the IP address of your router in advance. Typically it will be something like 192.168.1.1 or 192.168.1.254. Once you get to the "now select the radio button Use the following IP address and enter in the correct IP..." bit you'll need to select an IP address that is in the same subnet as your router. Example: if your router IP address is 192.168.1.1 and subnet mask is 255.255.255.0 then you should enter 192.168.1.x where x is any number except 1 and 255. Enter the IP address for your router as the default gateway and for both the primary and alternate DNS.

    So the trick is to figure out your router's IP address first. Once you've got that the rest should be relatively straightforward.

    mm
     

    Santy

    Portal Pro
    September 4, 2007
    51
    1
    Home Country
    United Kingdom United Kingdom
    OK, I've changed to a static IP address and given it an address of 192.168.1.2. In order to correct the hosts file do I need to create a line in there reading "192.168.1.2 santy"
     

    Santy

    Portal Pro
    September 4, 2007
    51
    1
    Home Country
    United Kingdom United Kingdom
    Well, I've been recording plenty of things to test this out and it hasn't failed once. I don't want to get too confident just yet but I think we may have finally gotten to the bottom of what was causing it. Thank you very much for your help.

    Seems a strange problem... do you think this is an issue which could be addressed in future versions of MP or do you think it's something specific to my setup?
     

    Users who are viewing this thread

    Top Bottom