Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 06, 2014 @ 11:23
    Ismail Mayat
    0

    upgrade breaks media section

    Guys,

    I have upgraded 4.11.7 to 6.1.6 and on my staging server all runs fine. After upgrading i deployed to my live site so took backup and files and restored on live. Site runs fine loads etc, however in the backend when i goto media section i just get a spinnner. In the log file i get:

    2014-03-06 10:14:02,161 [33] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 37] at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:line 235 at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>cDisplayClass4.3() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext() 2014-03-06 10:14:02,161 [33] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 37] An unhandled exception occurred System.Data.SqlClient.SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:line 235 at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>cDisplayClass4.3() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Umbraco.Core.Persistence.Repositories.EntityRepository.GetByQuery(IQuery1 query, Guid objectTypeId) at Umbraco.Core.Services.EntityService.GetChildren(Int32 parentId, UmbracoObjectTypes umbracoObjectType) at umbraco.cms.presentation.Trees.BaseMediaTree.Render(XmlTree& tree) at umbraco.loadMedia.Render(XmlTree& tree) at umbraco.presentation.webservices.TreeDataService.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ClientConnectionId:54a18ea8-76ac-434f-9c41-604a5d8a810e 2014-03-06 10:14:08,161 [33] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 48] at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at StackExchange.Profiling.Data.ProfiledDbCommand.ExecuteDbDataReader(CommandBehavior behavior) in c:\Code\github\SamSaffron\MiniProfiler\StackExchange.Profiling\Data\ProfiledDbCommand.cs:line 235 at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() at Umbraco.Core.Persistence.PetaPocoCommandExtensions.<>cDisplayClass4.3() at Umbraco.Core.Persistence.FaultHandling.RetryPolicy.ExecuteAction[TResult](Func1 func) at Umbraco.Core.Persistence.Database.<Query>d__1c1.MoveNext()

    Looks like something is timing out but no idea why. The live site is exact copy of staging. Staging is running on win2k8 iis7.5 and live is running win2k12 and iis8 both run on sql server 2012. Anyone seen this before?? Also could be related to http://our.umbraco.org/forum/using/ui-questions/48401-Media-nodes-backend-very,-very-slow-after-upgrade-411-616 although this is sql ce i am using sql server.

    Regards

    Ismail

  • Ravi Motha 290 posts 500 karma points MVP 8x c-trib
    Mar 06, 2014 @ 11:29
    Ravi Motha
    0

    Is your issue happening across just the media section or is this applicable in other back office sections?

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 06, 2014 @ 11:42
    Ismail Mayat
    0

    Ravi,

    Just the media section, also any content items with mntp media picker when you hit that item the content opens but the tree is not filled. However where we have mntp but the start folder is not root then it loads that part of media tree. Really really weird. Im just running sql trace on db see whats going on.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 06, 2014 @ 12:05
    Ismail Mayat
    0

    Bit more information, looking at chrome inspector an ajax call is being made namely

    http://mysite/base/FolderBrowserService/GetChildren/-1?_=1394103673741

    this works on staging instance however on live we get error 500, "There is a problem with the resource you are looking for, and it cannot be displayed"

    Regards

    Ismail

  • Tom Steer 161 posts 596 karma points
    Mar 07, 2014 @ 12:00
  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 07, 2014 @ 12:07
    Ismail Mayat
    0

    Bit more update on this. I stuck a sql trace on the db and the query it is trying to run is

    SELECT umbracoNode.id, umbracoNode.trashed, umbracoNode.parentID, 
                umbracoNode.nodeUser, umbracoNode.level, umbracoNode.path, umbracoNode.sortOrder, 
                umbracoNode.uniqueID, umbracoNode.text, umbracoNode.nodeObjectType, 
                umbracoNode.createDate, 
                COUNT(parent.parentID) as children, published.versionId as publishedVerison, 
                latest.versionId as newestVersion, contenttype.alias, 
                contenttype.icon, contenttype.thumbnail, 
                property.dataNvarchar as umbracoFile, 
                property.controlId
                FROM umbracoNode umbracoNode
                LEFT JOIN umbracoNode parent ON parent.parentID = umbracoNode.id
                INNER JOIN cmsContent content ON content.nodeId = umbracoNode.id
                LEFT JOIN cmsContentType contenttype ON contenttype.nodeId = content.contentType
                LEFT JOIN (SELECT nodeId, versionId FROM cmsDocument WHERE published = 1 GROUP BY nodeId, versionId) as published
                ON umbracoNode.id = published.nodeId
                LEFT JOIN (SELECT nodeId, versionId FROM cmsDocument WHERE newest = 1 GROUP BY nodeId, versionId) as latest ON umbracoNode.id = latest.nodeId
                LEFT JOIN (SELECT contentNodeId, versionId, dataNvarchar, controlId FROM cmsPropertyData INNER JOIN umbracoNode ON cmsPropertyData.contentNodeId = umbracoNode.id 
                INNER JOIN cmsPropertyType ON cmsPropertyType.id = cmsPropertyData.propertytypeid 
                INNER JOIN cmsDataType ON cmsPropertyType.dataTypeId = cmsDataType.nodeId 
                WHERE umbracoNode.nodeObjectType = 'B796F64C-1F99-4FFB-B886-4BF4BC011A9C'
                AND [umbracoNode].[parentID] = -1) as property
                ON umbracoNode.id = property.contentNodeId
                WHERE (umbracoNode.nodeObjectType = 'b796f64c-1f99-4ffb-b886-4bf4bc011a9c')
                AND ([umbracoNode].[parentID] = -1)
                GROUP BY umbracoNode.id, umbracoNode.trashed, umbracoNode.parentID, umbracoNode.nodeUser, umbracoNode.level, umbracoNode.path, umbracoNode.sortOrder, umbracoNode.uniqueID, umbracoNode.text, 
                umbracoNode.nodeObjectType, umbracoNode.createDate, published.versionId, latest.versionId, contenttype.alias, contenttype.icon, contenttype.thumbnail, property.dataNvarchar, property.controlId
                ORDER BY umbracoNode.sortOrder
    

    On my dev server it takes 1 second to run. On my live server it was over 2mins and still running i had to cancel it. The database is exactly the same. The sql server versions are:

    dev sqlserver 2012 express 32bit v 11.0.2100.60

    live sqlserver 2012 express 64bit 11.0.2100.60

    Any ideas?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 07, 2014 @ 12:21
    Ismail Mayat
    0

    Tom,

    I have seen similar issue after upgrade on our.umbraco but that was with sql ce db namely the indexes are removed and you have to re create them. So i thought maybe i have similar issue but i checked and indexes are still there. Also the live db is a straight restore of back up from dev.

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 17, 2014 @ 11:53
    Ismail Mayat
    100

    Right sorted my issue. I have updated all my app pools in iis on my live server and this has reduced memoery usage from 98% to 70% also now my media section loads.

    Regards

    Ismail

  • Zakhar 171 posts 397 karma points
    Mar 17, 2014 @ 12:15
    Zakhar
    0

    Hi Ismail,

    Just out of curiosity, what exactly did you do to your app pools?

    Cheers

  • Zakhar 171 posts 397 karma points
    Mar 17, 2014 @ 12:15
    Zakhar
    0

    Hi Ismail,

    Just out of curiosity, what exactly did you do to your app pools?

    Cheers

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 17, 2014 @ 12:17
    Ismail Mayat
    0

    Doh my bad. I updated the app pools to enable 32 bit applications and it sorted it right out. So reduced memory foot print and got my media section loading on the other site. It was all fine on dev server as that was 32bit.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft