Copied to clipboard

Flag this post as spam?

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


  • Laurence Gillian 600 posts 1219 karma points
    May 28, 2013 @ 17:16
    Laurence Gillian
    0

    Broken Documents (4.10) and Courier

    Hello, 

    I am unable to use Courier to move an entire site into a new clean Umbraco instance. I believe this may be due to nodes getting broken due to a bug that was in Umbraco 4.10.

    I've looked through the stack traces and tried to trace the ID's through, but I've struggled to find these in the database. Fingers crossed there is some manual way of removing these broken documents and then Courier will run.

    Is there something I can run on the database to find orphaned nodes?

    Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item with id '92190bf8-fd93-48ee-93d6-4f3ad8a5a875' from provider 'Documents' ---> Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [92190bf8-fd93-48ee-93d6-4f3ad8a5a875] from provider [d8e6ad83-e73a-11df-9492-0800200c9a66]. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Courier.Persistence.V4.NHibernate.Persisters.DocumentItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Document.cs:line 146 at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) --- End of inner exception stack trace --- at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId) at Umbraco.Courier.ItemProviders.DocumentItemProvider.HandlePack(ItemIdentifier id) at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id) at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId) at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue) --- End of inner exception stack trace --- at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, 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.TaskManager.manageTask(IRevisionTask value) 28/05/2013 16:16:03
    

    Any hjælp or advice gratefully welcomed, Laurence

    Umbraco 4.11.8, Courier (latest)

  • Laurence Gillian 600 posts 1219 karma points
    May 29, 2013 @ 11:14
    Laurence Gillian
    0

    So I've tracked down the imaginery documents inside Courier, but I can't find them anywhere in the Content tree.

    With debugging turned on, this is the log data:

    29/05/2013 10:05:47; c06a2f60-ec68-4b48-81a4-0e98167cb84c return null
    29/05/2013 10:05:53; eaa8a356-ff32-4108-8fa1-e546da1126c3 return null
    29/05/2013 10:06:04; 9de451a2-14f5-4bb8-8c4c-c9360b199f50 return null
    29/05/2013 10:06:04; a2d0ea20-8da3-4ada-bca5-8a18c5094bfa return null
    29/05/2013 10:06:05; 5643edbe-4cbc-4ab4-9171-3a3613af3dcb return null
    29/05/2013 10:06:06; 545ca587-403a-4bb7-8096-2d81513bc79a return null
    29/05/2013 10:07:04; c91473cc-cf1a-491b-acb8-32e795f41541 return null
    29/05/2013 10:08:22; a81624dc-9835-47a8-861e-698e3ee4d4f2 return null

    29/05/2013 10:08:24; Umbraco.Courier.Core.Exceptions.PackageException: Unable to load item with id '92190bf8-fd93-48ee-93d6-4f3ad8a5a875' from provider 'Documents' ---> Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [92190bf8-fd93-48ee-93d6-4f3ad8a5a875] from provider [d8e6ad83-e73a-11df-9492-0800200c9a66]. ---> System.NullReferenceException: Object reference not set to an instance of an object.

    at Umbraco.Courier.Persistence.V4.NHibernate.Persisters.DocumentItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Document.cs:line 143

    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)

    --- End of inner exception stack trace ---

    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
    at Umbraco.Courier.ItemProviders.DocumentItemProvider.HandlePack(ItemIdentifier id)
    at Umbraco.Courier.Core.ItemProvider.Package(ItemIdentifier id)
    at Umbraco.Courier.RepositoryProviders.Local.Package(ItemIdentifier itemId)
    at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, ItemProvider provider, QueuedItemIdentifier itemInQueue)

    --- End of inner exception stack trace ---
    at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageItem(ItemIdentifier itemId, 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.TaskManager.manageTask(IRevisionTask value)

    Revision Log

    29/05/2013 10:08:23; [Error];92190bf8-fd93-48ee-93d6-4f3ad8a5a875;Umbraco.Courier.Persistence.V4.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item: 

     System.NullReferenceException: Object reference not set to an instance of an object.

    at Umbraco.Courier.Persistence.V4.NHibernate.Persisters.DocumentItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Document.cs:line 143

     at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId);

    29/05/2013 10:08:23; [Error];92190bf8-fd93-48ee-93d6-4f3ad8a5a875;Umbraco.Courier.Persistence.V4.NHibernate.NHibernateProvider;PersistenceManager;Could not retrieve item: 

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Umbraco.Courier.Persistence.V4.NHibernate.Persisters.DocumentItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.NHibernate\Persisters\Document.cs:line 143

    at Umbraco.Courier.Core.ItemCrudProvider.RetrieveItem[T](ItemIdentifier itemId)
  • Per Ploug 865 posts 3491 karma points MVP admin
    May 29, 2013 @ 11:35
    Per Ploug
    0

    Hi Laurence

    Tried clearing the /app_data/courier/cache folder to ensure that, its not the cache thats out of sync?

    /per

  • Laurence Gillian 600 posts 1219 karma points
    May 29, 2013 @ 14:32
    Laurence Gillian
    0

    Hi Per, thanks for the tip! This has resolved some of the unexplainables, but it's still struggling.

    To try and pin down exact errors, I've transferred over things by type. So for example Stylesheets - a okay, but Media throws this error.

    System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded. at System.Web.HttpRequest.GetEntireRawContent() at System.Web.HttpRequest.get_InputStream() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() --- End of inner exception stack trace --- at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.CommitResourceitem(String revision, ResourceItem resourceItem, String username, String password) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.CommitRevision(Revision revision) at Umbraco.Courier.Core.Transfer.RevisionTransfer.Transfer() at Umbraco.Courier.Core.Tasks.TransferTask.Run() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 29/05/2013 13:16:11
    

    It looks like this is linked to some form of SQL maxiumum request length parameter?

    Mine was maxRequestLength="20480" will increase to executionTimeout="9000" maxRequestLength="500000" 

    Fingers crossed and thank you for the pointer,

    Lau

     ** edit ** still falls over, I'll try setting to the maximum and seeing what happens. Hail Cesar, brute force version!! Hail, Hail Cesar!!!

  • Laurence Gillian 600 posts 1219 karma points
    May 29, 2013 @ 16:38
    Laurence Gillian
    0

    Hola!

    So, transfering everything is dead certain to fail, so I'm transfering groups of things and then finding the things with the things that fail. A process of trianglulation. 

    Stylesheets, Media Types, Macro's, Macro Properties, Templates will transfer across to a new vanilla install of Umbraco.

    Courier announcess success! Items transfered. And I can see lots of network activity for each item via an API Courier uses. 

    However upon visiting the other Umbraco installation, it is still empty and has no content, document types or even stylesheets to keep it company.

    Poor little lonely Umbraco instance! 

    Help! Lau

    p.s This is an error I'm getting on a group of media

    System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Courier.Core.Collections.Manifests.Item.ToXml() at Umbraco.Courier.Core.Collections.Manifests.Provider.ToXml() at Umbraco.Courier.Core.Collections.Manifests.RevisionManifest.ToXml() at Umbraco.Courier.Core.Packaging.RevisionPackaging.completeQueue() at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.Tasks.PackagingTask.Run() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 29/05/2013 15:30:08
    
  • Laurence Gillian 600 posts 1219 karma points
    May 29, 2013 @ 17:15
    Laurence Gillian
    0

    On further investigation, transfering an item by going 'right click' Courier -e.g. stylesheet-A.css -> works.

    However, this does not work the Courier section.

    Most perculiar! Lau

  • Laurence Gillian 600 posts 1219 karma points
    Jun 05, 2013 @ 11:04
    Laurence Gillian
    0

    Bumpty bump, Lau

  • Laurence Gillian 600 posts 1219 karma points
    Jun 05, 2013 @ 15:44
    Laurence Gillian
    0

    A new day and it seems the error has changed now too:

    error:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> The given key was not present in the dictionary. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.OpenSession(String sessionKey) at Umbraco.Courier.Core.Packaging.RevisionPackaging.Package() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 05/06/2013 14:35:02
    
  • Peter Rombouts 71 posts 265 karma points
    Sep 27, 2013 @ 15:03
    Peter Rombouts
    0

    I have the exact same issue with Courier.

    Does anybody have an idea what the resolution could be?
    I cannot find what key is missing, or why it is lost in the first place...

    Kind regards,
    Peter Rombouts 

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Sep 27, 2013 @ 16:38
    Martin Griffiths
    0

    Hi Laurence

    What exact version of Courier are you running?

    Martin.

  • Peter Rombouts 71 posts 265 karma points
    Sep 27, 2013 @ 16:46
    Peter Rombouts
    0

    (Sneaking my version in here)

    I have the exact same problem, and my version is Courier_2.7.5.1.90.v6.zip

    Kind regards,
    Peter Rombouts

  • Per Ploug 865 posts 3491 karma points MVP admin
    Oct 02, 2013 @ 13:17
    Per Ploug
    1

    The missing key is most likely because of a missing or locked assembly which contains the datalayer, described here: https://github.com/umbraco/Courier/blob/master/Documentation/CommonIssues.md#key-not-found-exception

  • Peter Rombouts 71 posts 265 karma points
    Oct 02, 2013 @ 13:32
    Peter Rombouts
    0

    Hi Per,

    Thanks for the update.
    I've taken the nightly build Courier_2.7.5.89.hotfix.v6.zip which solves the 'key not found' exception.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft