PowerScheduler Client not able to connect to server (1 Viewer)

MaJo

New Member
December 30, 2006
1
0
Home Country
Sweden Sweden
TV-Server Version: 1.0
MediaPortal Version: 1.0 RC2
MediaPortal Skin: Blue wide
Windows Version: Windows XP sp3
CPU Type: Athlon 64 3200+
HDD: 250 GB + 120 GB
Memory: 1 GB PC3200 single channel
Motherboard: Soltek K8T890 PRO-939
Video Card: ATI Radeon X600
Video Card Driver: 8.522.0.0
Sound Card: VIA on board - Vinyl AC'97
Sound Card AC3: Optical
Sound Card Driver: 6.14.1.4180
1. TV Card: Hauppage HVR 1300
1. TV Card Type: analog/DVB-T
1. TV Card Driver: 2.119.25023.0
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: MPV
MPEG2 Audio Codec: MPA
h.264 Video Codec: CoreAVC Pro 1.7.0.0
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote: Hauppage
TV:
TV - HTPC Connection: DVI

I have recently for the first time ever installed a TV-server. Everything is on a new clean Windows, and I'm running both server and client on the same machine. I get everything to work, including TV (at least the DVB-T. Having problems with switching between analog/digital), but when I enable the PowerScheduler Client I get the following error message from MP:

2008-09-18 20:10:32.343750 [ERROR][MPMain]: Unable to start plugin:MediaPortal.Plugins.Process.PowerSchedulerClientPlugin exception:confused:ystem.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---

Server stack trace:
at System.Net.HttpWebRequest.GetRequestStream()
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at TvEngine.PowerScheduler.Interfaces.IPowerController.RegisterRemote(String standbyHandlerURI, String wakeupHandlerURI)
at MediaPortal.Plugins.Process.PowerScheduler.OnResume()
at MediaPortal.Plugins.Process.PowerScheduler.Start()
at MediaPortal.Plugins.Process.PowerSchedulerClientPlugin.Start()
at MediaPortal.GUI.Library.PluginManager.Start()​

So, it seems like the client cannot properly connect to the remote (?) server. MP works fine with PS enabled but it will not go to sleep (S3) or wake up automatically. With the remote I can turn off and on without problems. I have both client and server PS set on suspend after 10 min. Does anyone understand the error message or where I should start digging? As digital TV works the client apparently is capable of connecting to the server sometimes...

I'd be very grateful for some help!

/MaJo
 

hoborg

Portal Pro
June 13, 2008
4,413
1,644
Nový Jičín
Home Country
Czech Republic Czech Republic
Hello. I have exactly same problem. Did you find solution?

XP SP3+MP RC3

My error log:
2008-10-13 16:32:20.531250 [ERROR][MPMain]: Unable to start plugin:MediaPortal.Plugins.Process.PowerSchedulerClientPlugin exception:confused:ystem.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:31457
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
--- End of inner exception stack trace ---

Server stack trace:
at System.Net.HttpWebRequest.GetRequestStream()
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndSend(IMessage msg, ITransportHeaders headers, Stream inputStream)
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at TvEngine.PowerScheduler.Interfaces.IPowerController.RegisterRemote(String standbyHandlerURI, String wakeupHandlerURI)
at MediaPortal.Plugins.Process.PowerScheduler.OnResume()
at MediaPortal.Plugins.Process.PowerScheduler.Start()
at MediaPortal.Plugins.Process.PowerSchedulerClientPlugin.Start()
at MediaPortal.GUI.Library.PluginManager.Start()

EDIT:
Ok, the solution is simple, just enable powersheduler plugin inside TV Server.
 

mrspock

Portal Pro
September 14, 2008
124
32
Madrid
Home Country
Spain Spain
Still the same error

I have also have the same problem and exactly the same error in error.log.

I have WXPSP3 + MP1.0 final + TVserver, with both Power Scheduler Client plugin in MediaPortal Configuration and Power Scheduler in TVServer Configuration enabled.

Help needed, please!
 

Diddip

Portal Member
February 14, 2008
15
0
Also have the same problem and the same error messages in the error.log file.

Both Client and TV-Server plugins are configured.

Edit: My problem was with Windows firewall. I disabled the firewall and restarted the PC. Enabled the firewall and restarted the PC again. After that my problems disappeared.
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Anyone who is having this error (and both server and client have the PS plugin enabled) are you using "restart Mediaportal on resume" setting?
     

    mrspock

    Portal Pro
    September 14, 2008
    124
    32
    Madrid
    Home Country
    Spain Spain
    Anyone who is having this error (and both server and client have the PS plugin enabled) are you using "restart Mediaportal on resume" setting?

    I have both plugins enabled and I am not using "restart Mediaportal on resume" setting.

    Anyway, I cannot resume as long as I cannot hibernate it when TV is on...;) I get that error both manually starting MP from Windows, or resuming after manually turn TV off and then hibernate.
     

    mrspock

    Portal Pro
    September 14, 2008
    124
    32
    Madrid
    Home Country
    Spain Spain
    Solved, but new problem

    Thanks to Diddip, the problem with PowerScheduler was solved: I disabled Windows firewall and restarted the PC, run MP and stopped. Enabled the firewall and restarted the PC again. After that my problems with PowerScheduler disappeared.

    But a new error appeared in error.log at TVServer logs:

    Code:
    2009-03-03 01:05:45.656250 [TVService]: Exception   :Error: DatabaseUnavailableUnclassified
    Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached.
    Check the connection string: Password=MediaPortal;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=htpc\SQLEXPRESS;Connection Timeout=300; ---> System.Data.SqlClient.SqlException: Cannot open database "MpTvDb" requested by the login. The login failed.
    Login failed for user 'sa'.
       en System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       en System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       en System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       en System.Data.SqlClient.SqlConnection.Open()
       en Gentle.Provider.SQLServer.SQLServerProvider.GetConnection()
       --- Fin del seguimiento de la pila de la excepcin interna ---
       en Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
       en Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
       en Gentle.Provider.SQLServer.SQL92Analyzer.Analyze(String tableName)
       en Gentle.Provider.SQLServer.SQLServerAnalyzer.Analyze(String tableName)
       en Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map)
       en Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type)
       en Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type)
       en Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator)
       en Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type)
       en TvDatabase.TvBusinessLayer.GetSetting(String tagName, String defaultValue)
       en TvLibrary.Implementations.TvCardCollection..ctor()
       en TvService.TVController.InitController()System.Data.SqlClient.SqlException: Cannot open database "MpTvDb" requested by the login. The login failed.
    Login failed for user 'sa'.
       en System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       en System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       en System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       en System.Data.SqlClient.SqlConnection.Open()
       en Gentle.Provider.SQLServer.SQLServerProvider.GetConnection()
    Exception   :The database backend (provider SQLServer) could not be reached.
    Check the connection string: Password=MediaPortal;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=htpc\SQLEXPRESS;Connection Timeout=300;
      site      :Void FailWith(Gentle.Common.Severity, Gentle.Common.Error, System.Exception, System.String)
      source    :Gentle.Common
      stacktrace:   en Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
       en Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
       en Gentle.Provider.SQLServer.SQL92Analyzer.Analyze(String tableName)
       en Gentle.Provider.SQLServer.SQLServerAnalyzer.Analyze(String tableName)
       en Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map)
       en Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type)
       en Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type)
       en Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator)
       en Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type)
       en TvDatabase.TvBusinessLayer.GetSetting(String tagName, String defaultValue)
       en TvLibrary.Implementations.TvCardCollection..ctor()
       en TvService.TVController.InitController()

    I don't know what this means, but not accessing the BD sounds quite bad. Any idea what means and how to solve it?

    I reinstalled MP and these errors happened the same.
     

    Users who are viewing this thread

    Top Bottom