home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
server doesn't start
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1097639" data-attributes="member: 82144"><p>[USER=27598]@mrkaras[/USER]</p><p>In your log files I can see three occasions where the TV service starts successfully:</p><ul> <li data-xf-list-type="ul">2014-08-25 19:26:56,557</li> <li data-xf-list-type="ul">2014-08-26 05:13:54,265</li> <li data-xf-list-type="ul">2014-08-26 19:00:04,962</li> </ul><p>I can't tell for sure whether these are automatic or manual starts, but on all three occasions the successful start is immediately preceded by a failed attempt... so I guess they're manual starts.</p><p>In the TV Server log the failures looks like this:</p><p></p><p></p><p>When I compare with the application event logs I see the following sequence...</p><p>1. Windows tells the SQL Server service to start:</p><p>"26/08/2014 6:52:26 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64)</p><p> Mar 29 2009 10:11:52</p><p> Copyright (c) 1988-2008 Microsoft Corporation</p><p> Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)</p><p>";"1073758893"</p><p></p><p>2. SQL Server reports it is ready for connections. Presumably the SQL Server service tells Windows it has finished starting at this point:</p><p>"26/08/2014 6:52:29 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].";"1073767872"</p><p>"26/08/2014 6:52:29 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Server local connection provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].";"1073767872"</p><p></p><p>3. Windows tells the TV Server service to start:</p><p>[2014-08-26 18:52:29,052] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent</p><p></p><p>4. SQL Server reports login failure:</p><p>"26/08/2014 6:52:30 PM";"MSSQL$SQLEXPRESS";"Logon";"FailureAudit";"Login failed for user 'sa'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]";"3221243928"</p><p>"26/08/2014 6:52:31 PM";"MSSQL$SQLEXPRESS";"Logon";"FailureAudit";"Login failed for user 'sa'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]";"3221243928"</p><p></p><p>5. TV Server fails to start:</p><p>"26/08/2014 6:52:35 PM";"TV Server";"(0)";"Error";"Service cannot be started. Error: DatabaseUnavailableUnclassified Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached. Check the connection string: Password=***;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=Mediaserver\SQLEXPRESS;Connection Timeout=30; ---> System.Data.SqlClient.SqlException: Cannot open database "MpTvDb" requested by the login. The login failed. Login failed for user 'sa'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Gentle.Provider.SQLServer.SQLServerProvider.GetConnection() --- End of inner exception stack trace --- at Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String ...";"0"</p><p></p><p>6. SQL Server reports it has loaded the TV Server database:</p><p>"26/08/2014 7:00:05 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Starting up database 'MpTvDb'.";"1073758961"</p><p></p><p>7. You manually start TV Server successfully:</p><p>"26/08/2014 7:00:11 PM";"TV Server";"(0)";"Information";"Service started successfully.";"0"</p><p></p><p></p><p>So, in short it appears like the problem is that SQL Server is saying it can accept connections before it has loaded the TV Server database... which results in TV Server's attempts to connect to its database being rejected. To me SQL Server's behaviour seems illogical, and I'm not sure that there is much TV Server can do about this.</p><p></p><p></p><p>In answer to your questions:</p><p></p><p></p><p>Services are started by Windows.</p><p>Windows starts a given service when all pre-requisite services for the service have successfully started.</p><p>When TV Server is installed and configured, it registers the TV service and includes a pre-requisite reference to the SQL Server service (or MySQL service - depending on what database engine you choose) that you configure.</p><p>What I'm trying to say with the above statements is:</p><ol> <li data-xf-list-type="ol">It is not the TV service's responsibility to wait for SQL Server. Windows manages when services are started.<br /> </li> <li data-xf-list-type="ol">Windows should already be configured to wait for the SQL Server service to finish starting before attempting to start the TV service.</li> </ol><p>On the second point: the application event logs appear to show Windows is indeed waiting until the SQL Server service is started before attempting to start the TV service. The question is why SQL Server is saying it is ready for connections when clearly it is not able to accept TV Server's connection attempt... and I'm not able to answer that.</p><p></p><p></p><p></p><p>Sorry but you're going to need to be more precise - like "the 26th at 7:26pm". "Yesterday" at the time you wrote that could be the 25th, 26th or 27th for all I know, especially considering I don't know what time zone you're in.</p><p></p><p></p><p></p><p>No, not common as far as I know.</p><p>No, the TV service is not crashing SQL Server.</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1097639, member: 82144"] [USER=27598]@mrkaras[/USER] In your log files I can see three occasions where the TV service starts successfully: [LIST] [*]2014-08-25 19:26:56,557 [*]2014-08-26 05:13:54,265 [*]2014-08-26 19:00:04,962 [/LIST] I can't tell for sure whether these are automatic or manual starts, but on all three occasions the successful start is immediately preceded by a failed attempt... so I guess they're manual starts. In the TV Server log the failures looks like this: When I compare with the application event logs I see the following sequence... 1. Windows tells the SQL Server service to start: "26/08/2014 6:52:26 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) ";"1073758893" 2. SQL Server reports it is ready for connections. Presumably the SQL Server service tells Windows it has finished starting at this point: "26/08/2014 6:52:29 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].";"1073767872" "26/08/2014 6:52:29 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Server local connection provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].";"1073767872" 3. Windows tells the TV Server service to start: [2014-08-26 18:52:29,052] [Log ] [4 ] [DEBUG] - Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent 4. SQL Server reports login failure: "26/08/2014 6:52:30 PM";"MSSQL$SQLEXPRESS";"Logon";"FailureAudit";"Login failed for user 'sa'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]";"3221243928" "26/08/2014 6:52:31 PM";"MSSQL$SQLEXPRESS";"Logon";"FailureAudit";"Login failed for user 'sa'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]";"3221243928" 5. TV Server fails to start: "26/08/2014 6:52:35 PM";"TV Server";"(0)";"Error";"Service cannot be started. Error: DatabaseUnavailableUnclassified Gentle.Common.GentleException: The database backend (provider SQLServer) could not be reached. Check the connection string: Password=***;Persist Security Info=True;User ID=sa;Initial Catalog=MpTvDb;Data Source=Mediaserver\SQLEXPRESS;Connection Timeout=30; ---> System.Data.SqlClient.SqlException: Cannot open database "MpTvDb" requested by the login. The login failed. Login failed for user 'sa'. at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at Gentle.Provider.SQLServer.SQLServerProvider.GetConnection() --- End of inner exception stack trace --- at Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String ...";"0" 6. SQL Server reports it has loaded the TV Server database: "26/08/2014 7:00:05 PM";"MSSQL$SQLEXPRESS";"Server";"Information";"Starting up database 'MpTvDb'.";"1073758961" 7. You manually start TV Server successfully: "26/08/2014 7:00:11 PM";"TV Server";"(0)";"Information";"Service started successfully.";"0" So, in short it appears like the problem is that SQL Server is saying it can accept connections before it has loaded the TV Server database... which results in TV Server's attempts to connect to its database being rejected. To me SQL Server's behaviour seems illogical, and I'm not sure that there is much TV Server can do about this. In answer to your questions: Services are started by Windows. Windows starts a given service when all pre-requisite services for the service have successfully started. When TV Server is installed and configured, it registers the TV service and includes a pre-requisite reference to the SQL Server service (or MySQL service - depending on what database engine you choose) that you configure. What I'm trying to say with the above statements is: [LIST=1] [*]It is not the TV service's responsibility to wait for SQL Server. Windows manages when services are started. [*]Windows should already be configured to wait for the SQL Server service to finish starting before attempting to start the TV service. [/LIST] On the second point: the application event logs appear to show Windows is indeed waiting until the SQL Server service is started before attempting to start the TV service. The question is why SQL Server is saying it is ready for connections when clearly it is not able to accept TV Server's connection attempt... and I'm not able to answer that. Sorry but you're going to need to be more precise - like "the 26th at 7:26pm". "Yesterday" at the time you wrote that could be the 25th, 26th or 27th for all I know, especially considering I don't know what time zone you're in. No, not common as far as I know. No, the TV service is not crashing SQL Server. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
server doesn't start
Contact us
RSS
Top
Bottom