Client/Server configuration with TV-Server turned off (1 Viewer)

mp.user

MP Donator
  • Premium Supporter
  • August 21, 2011
    34
    4
    Home Country
    Germany Germany
    Hi,

    I have a question concerning client/server setup running on different machines.

    My scenario: most of the time I listen to offline music or webradio on a client, which is possible without the TV server (I have a playlist per radio station and use My Music to listen). The TV server is running on a dedicated machine. Since I don't need it most of the time, I'd like to use the client having the TV server turned off. The server should only be running when I need it. I tried the WOL-PowerManager plugin to achieve this, and it perfectly wakes up the server when necessary, so no problem here.

    Unfortunately, the client wants to connect to the server all the time, even when I don't use TV or Radio; here are a few examples from the log.

    When the client is started:
    Code:
    2013-05-15 06:43:34.793993 [Info.][MPMain(1)]:   Load plugins from : C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\windows\TvPlugin.dll
    2013-05-15 06:43:34.801994 [Info.][MPMain(1)]:   File Version : 1.3.0.0
    2013-05-15 06:43:34.829995 [Info.][MPMain(1)]: RadioHome:OnAdded
    2013-05-15 06:43:56.006206 [Info.][MPMain(1)]: Exception while loading GUIWindows instances: TvPlugin.Radio
    2013-05-15 06:43:56.017207 [Info.][MPMain(1)]: The database backend (provider MySQL) could not be reached.

    When I press play or stop on the Top Bar in My Music:
    Code:
    2013-05-15 06:48:51.986135 [ERROR][MPMain(1)]: Exception   :The database backend (provider MySQL) could not be reached.
    Check the connection string: Server=base;Database=MpTvDb;User ID=root;Password=***;charset=utf8;Connection Timeout=30;
    2013-05-15 06:48:51.996136 [ERROR][MPMain(1)]:   site	  :Void FailWith(Gentle.Common.Severity, Gentle.Common.Error, System.Exception, System.String)
    2013-05-15 06:48:52.004136 [ERROR][MPMain(1)]:   source	:Gentle.Common
    2013-05-15 06:48:52.013137 [ERROR][MPMain(1)]:   stacktrace:   bei Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
       bei Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
       bei Gentle.Provider.MySQL.MySQLAnalyzer.Analyze(String tableName)
       bei Gentle.Framework.GentleAnalyzer.UpdateObjectMap(ObjectMap map)
       bei Gentle.Framework.ObjectFactory.ConstructMap(PersistenceBroker broker, Type type)
       bei Gentle.Framework.ObjectFactory.GetMap(PersistenceBroker broker, Type type)
       bei Gentle.Framework.SqlBuilder..ctor(IGentleProvider provider, StatementType stmtType, Type type, LogicalOperator logicalOperator)
       bei Gentle.Framework.SqlBuilder..ctor(StatementType stmtType, Type type)
       bei TvDatabase.TvBusinessLayer.GetRecordingByFileName(String fileName)
       bei TvPlugin.RadioRecorded.OnPlayRecordingBackEnded(MediaType type, String filename)
       bei MediaPortal.Player.g_Player.EndedHandler.Invoke(MediaType type, String filename)
       bei MediaPortal.Player.g_Player.OnEnded()
       bei MediaPortal.Player.g_Player.Process()
       bei MediaPortalApp.OnProcess()
       bei MediaPortal.D3DApp.Application_Idle(Object sender, EventArgs e)
       bei System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
       bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bei System.Windows.Forms.Application.Run(Form mainForm)
       bei MediaPortalApp.Main(String[] args)

    As long as the server is turned off, MP is quite unusable because when I press a button, it no longer responds until a timeout occurs.

    So my question is: can I configure MediaPortal in a way that the TV-related stuff is only loaded/used when I actually need it?

    I browsed the forums but didn't find anything useful; I'd be glad if someone could give a hint.
     

    Users who are viewing this thread

    Top Bottom