#
jms
Hello,
the Cuyahoga CMS is running since several months in a shared hosting account almost without problems. The installation was smooth and without problems.
But since several weeks I am constantly having the site not responding as it should. Some times it lasts 24+ hours without any error, sometimes it stops responding every 10 or 15 minutes.
It is impossible for me to reproduce the behaviour.
I know that if the IIS is restarted the site loads again without problems.
I know that if I delete the Cuyahoga.Web.dll file and upload it again, the site loads again without problems.
I must say that I added some code to the PageEngine.cs which was saving some data in a MS Access database. I thought at first that my code could be interfering with how the request was handled by Cuyahoga, but unfortunatelly even after my code was removed the error still appears.
Extra 1: google adsense javascript code which at first was in the template and now it is used only in some pages by using the static html module. In both the error appears.
Extra 2: javascript code from a web tracker. This is set in the template.
I have no idea if these extras may have an influence or not, but I think it is worth to mention it.
Here is the last entry in the log file. I presume that this is the one that identifies the error.
I have noticed that there are many requests from google, msn and other bots. Can they make a difference in the way Cuyahoga handles their requests?
Does someone have any idea? Greatly appreciated!
Joel
the Cuyahoga CMS is running since several months in a shared hosting account almost without problems. The installation was smooth and without problems.
But since several weeks I am constantly having the site not responding as it should. Some times it lasts 24+ hours without any error, sometimes it stops responding every 10 or 15 minutes.
It is impossible for me to reproduce the behaviour.
500 An error occured:
Could not execute query
I know that if the IIS is restarted the site loads again without problems.
I know that if I delete the Cuyahoga.Web.dll file and upload it again, the site loads again without problems.
I must say that I added some code to the PageEngine.cs which was saving some data in a MS Access database. I thought at first that my code could be interfering with how the request was handled by Cuyahoga, but unfortunatelly even after my code was removed the error still appears.
Extra 1: google adsense javascript code which at first was in the template and now it is used only in some pages by using the static html module. In both the error appears.
Extra 2: javascript code from a web tracker. This is set in the template.
I have no idea if these extras may have an influence or not, but I think it is worth to mention it.
Here is the last entry in the log file. I presume that this is the one that identifies the error.
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.ADOException [(null)] <(null)> - Could not create connection from Driver
System.ObjectDisposedException: Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.FlushWrite()
at System.IO.BufferedStream.Flush()
at System.IO.BufferedStream.Close()
at MySql.Data.MySqlClient.NativeDriver.Close()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.ADOException [(null)] <(null)> - cannot open connection
NHibernate.ADOException: Could not create connection from Driver ---> System.ObjectDisposedException: Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.FlushWrite()
at System.IO.BufferedStream.Flush()
at System.IO.BufferedStream.Close()
at MySql.Data.MySqlClient.NativeDriver.Close()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
--- End of inner exception stack trace ---
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - cannot open connection
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Could not create connection from Driver
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
2006-03-27 05:53:13,262 [3052] ERROR NHibernate.ADOException [(null)] <(null)> - Could not execute query
NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> System.ObjectDisposedException: Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.FlushWrite()
at System.IO.BufferedStream.Flush()
at System.IO.BufferedStream.Close()
at MySql.Data.MySqlClient.NativeDriver.Close()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
--- End of inner exception stack trace ---
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
--- End of inner exception stack trace ---
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
at NHibernate.Impl.SessionImpl.get_Connection()
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand command)
at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes)
at NHibernate.Hql.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters)
2006-03-27 05:53:13,528 [3052] ERROR Cuyahoga.Web.Error [(null)] <(null)> - An unexpected error occured
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> NHibernate.ADOException: Could not execute query ---> NHibernate.ADOException: cannot open connection ---> NHibernate.ADOException: Could not create connection from Driver ---> System.ObjectDisposedException: Cannot access a disposed object named "System.Net.Sockets.NetworkStream".
Object name: "System.Net.Sockets.NetworkStream".
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BufferedStream.FlushWrite()
at System.IO.BufferedStream.Flush()
at System.IO.BufferedStream.Close()
at MySql.Data.MySqlClient.NativeDriver.Close()
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
--- End of inner exception stack trace ---
at NHibernate.Connection.DriverConnectionProvider.GetConnection()
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
--- End of inner exception stack trace ---
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
at NHibernate.Impl.SessionImpl.get_Connection()
at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand command)
at NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes)
at NHibernate.Hql.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters)
at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters)
--- End of inner exception stack trace ---
at NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters)
at NHibernate.Impl.QueryImpl.List()
at Cuyahoga.Core.Service.CoreRepository.GetSiteAliasByUrl(String url) in D:\MyDevelopment\development\Websites\asp.net\Cuyahoga\Core\Service\CoreRepository.cs:line 316
at Cuyahoga.Web.UI.PageEngine.OnInit(EventArgs e) in d:\mydevelopment\development\websites\asp.net\cuyahoga\web\ui\pageengine.cs:line 128
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain()
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain()
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2006-03-27 05:53:13,528 [3052] INFO Cuyahoga.Web.HttpModules.UrlHandlerModule [(null)] <(null)> - Total execution time : 265 ms.
2006-03-27 05:53:13,528 [3052] INFO Cuyahoga.Web.HttpModules.UrlHandlerModule [(null)] <(null)> - Ending request: /default.aspx
I have noticed that there are many requests from google, msn and other bots. Can they make a difference in the way Cuyahoga handles their requests?
Does someone have any idea? Greatly appreciated!
Joel