COU-440 - Courier CommitItem.aspx/GetTask 500 Error

Created by Chris Van Oort 12 Oct 2016, 22:18:23 Updated by Sebastiaan Janssen 09 Nov 2016, 08:57:15

Tags: Unscheduled

'''What did you do?''' I'm running both '''Umbraco 7.5.3''' and '''Courier 2.52.14''', and I'm getting errors trying to push changes from our Staging site to Live site. I can push media items and most other content nodes from staging to live no problem. However, some content nodes are not cooperating and are throwing 500 errors.

'''What did you expect to happen?''' I expected the content node changes to actually transfer from staging to the live site.

'''What actually happened?''' I received a 500 error with minimal information directly after the "collecting" staging of courier pushing. I screenshot (attached) the collecting screen and the subsequent error.

I've posted a ton of information about what I've tried and the specific trace log information I have here: https://our.umbraco.org/forum/using-umbraco-and-getting-started/80199-error-when-trying-to-transfer-with-courier#comment-257818

Unfortunately, I cannot figure this out and it means I cannot push new content to live that needs to go live.

Any ideas?

'''Edit (merging content in from my forums post):'''' This ''may be'' a related issue: https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback/72748-courier-support-for-nested-content

'''Things I have tried:'''

  • Restarting the site
  • Restarting the app pool
  • Dumping the TEMP files
  • Republishing the nodes I'm trying to push
  • Only pushing one node instead of a bunch at a time
  • I've tried also pushing from Live to Staging and have the same error.
  • I've validated permissions are set correctly on the folders, dumped TEMP on staging and live, restarted the sites and app pools, and republished.
  • I've also tried dumping the cache from both staging and live then republishing before attempting to push with Courier...still fails on the problem nodes.
  • I also tried (today) to figure out what specific property was causing an error and wasn't able to determine a specific cause in the node properties or grid editor. *# I recreated the page with only a headline for grid editor content and this pushed from staging to live just fine with Courier. So I started adding other things back in and pushing and the process continued to work. Then I added some more text into the editor and tried again and it failed. *# So I removed that text and it still fails. I continued this process of removing and trying to push with Courier to no avail. Even going back to previous grid editor points of 'success' Courier still fails with no error. *# Finally, I just removed all of the grid editor content, so only the page properties are populated (which worked before), and Courier is still unable to push this new "test" page to the live site.

Error Logs Collected: jquery.js:4 POST http://mywebsite.com/umbraco/plugins/courier/dialogs/CommitItem.aspx/GetTask 500 (Internal Server Error)send @ jquery.js:4ajax @ jquery.js:4updateCurrent @ VM3198 RevisionJsonRender.js:8(anonymous function) @ VM3199 CommitItem.aspx?providerGuid=d8e6ad83-e73a-11df-9492-0800200c9a66&itemid=ede1be3f-f058-4c13-:91

2016-10-06 15:46:04,140 [7] ERROR Umbraco.Courier.Core.TaskManager - [Thread 24] Error PackagingTask with id: 04d73f5c-458a-4e07-8bbc-1bd2747336a2 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue. at Newtonsoft.Json.Linq.JToken.get_Item(Object key) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.HandleMacro(Item item, ContentProperty propertyData, GridValueControlModel cell, Boolean packing) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.PackagingCell(Item item, ContentProperty propertyData, GridValueControlModel cell) at Umbraco.Courier.DataResolvers.PropertyDataResolvers.GridCellResolverProvider.PackagingProperty(Item item, ContentProperty propertyData) at Umbraco.Courier.DataResolvers.PropertyDataResolverProvider.Packaging(Item item) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Umbraco.Courier.Core.ResolutionManager.ExecuteResolver(Item item, ItemEvent e, ItemProvider provider) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Umbraco.Courier.RepositoryProviders.Local.Hash(ItemIdentifier itemId) at Umbraco.Courier.Core.Packaging.RevisionPackaging.CompareAndStoreItem(Item item, ItemProvider provider, QueuedItemIdentifier itemInQueue) at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.Tasks.PackagingTask.Run() at Umbraco.Courier.Core.BackgroundTaskRunner1.ConsumeTaskInternal(T task) 2016-10-06 15:46:04,140 [7] ERROR Umbraco.Courier.Core.BackgroundTaskRunner - [Thread 24] An error occurred consuming task System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue. at Newtonsoft.Json.Linq.JToken.get_Item(Object key) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.HandleMacro(Item item, ContentProperty propertyData, GridValueControlModel cell, Boolean packing) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.PackagingCell(Item item, ContentProperty propertyData, GridValueControlModel cell) at Umbraco.Courier.DataResolvers.PropertyDataResolvers.GridCellResolverProvider.PackagingProperty(Item item, ContentProperty propertyData) at Umbraco.Courier.DataResolvers.PropertyDataResolverProvider.Packaging(Item item) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Umbraco.Courier.Core.ResolutionManager.ExecuteResolver(Item item, ItemEvent e, ItemProvider provider) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Umbraco.Courier.RepositoryProviders.Local.Hash(ItemIdentifier itemId) at Umbraco.Courier.Core.Packaging.RevisionPackaging.CompareAndStoreItem(Item item, ItemProvider provider, QueuedItemIdentifier itemInQueue) at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.Tasks.PackagingTask.Run() at Umbraco.Courier.Core.BackgroundTaskRunner1.ConsumeTaskInternal(T task)

Buffer="<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">soap:Bodysoap:Faultsoap:ServerSystem.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Cannot access child value on Newtonsoft.Json.Linq.JValue. at Newtonsoft.Json.Linq.JToken.get_Item(Object key) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.HandleMacro(Item item, ContentProperty propertyData, GridValueControlModel cell, Boolean packing) at Umbraco.Courier.DataResolvers.GridCellDataResolvers.CoreCellEditorResolver.PackagingCell(Item item, ContentProperty propertyData, GridValueControlModel cell) at Umbraco.Courier.DataResolvers.PropertyDataResolvers.GridCellResolverProvider.PackagingProperty(Item item, ContentProperty propertyData) at Umbraco.Courier.DataResolvers.PropertyDataResolverProvider.Packaging(Item item) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Umbraco.Courier.Core.ResolutionManager.ExecuteResolver(Item item, ItemEvent e, ItemProvider provider) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Umbraco.Courier.RepositoryProviders.Local.Hash(ItemIdentifier itemId) --- End of inner exception stack trace ---</soap:Fault></soap:Body></soap:Envelope>"

4 Attachments

Download CourierTraceLog_LiveSite.txt

Download CourierTraceLog_StagingSite.txt

Comments

Chris Van Oort 13 Oct 2016, 14:54:49

Also attaching here the full CourierTraceLog from both Staging and Live sites from today, same error as before but maybe the sequence of events shown will allow someone to help debug this!


Chris Van Oort 17 Oct 2016, 18:22:30

@Shandem Is there anything I can to differently to try and determine what's going on here and how to fix it?


Chris Van Oort 19 Oct 2016, 20:23:31

Anyone have any ideas? Still can't get this solved. Really need some help with how to fix it.


Chris Van Oort 24 Oct 2016, 21:30:50

Still running into issues on this so I updated to Umbraco 7.5.4 and Courier 2.52.15, but issues persist. I checked the logs and the issue is the same as posted before.

Is there any way to determine what property or value is being expected that isn't there?

'''One other item of note:''' I did run through this troubleshooting guide today (https://cultiv.nl/blog/how-to-diagnose-umbraco-upgrade-problems/). I thought fixing some errant references might solve the issue but nope. Good news is all of that is much more consistent with known, good, standard configuration.


Chris Van Oort 25 Oct 2016, 14:34:15

Quick update today: I ran Developer-->Health Check and it did fix a bunch of invalid references under "XML Data Integrity." Unfortunately this didn't resolve the issue.


Chris Van Oort 31 Oct 2016, 13:13:59

@sebastiaan Any luck with checking the databases I sent over?


Sebastiaan Janssen 09 Nov 2016, 08:56:39

Fixed in commits: https://github.com/umbraco/UmbracoDeploy/commit/b6d70fd745fd450b46df8074234d81aa744f59d6 https://github.com/umbraco/UmbracoDeploy/commit/6e9b22affd98f5eb9c8b8a95470ef6ffe41ce5a9


Priority: Show-stopper

Type: Exception

State: Fixed

Assignee:

Difficulty:

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 2.52.14, 2.52.15

Due in version: 3.0.1

Sprint: Sprint 46

Story Points:

Cycle: