When trying to courier anything from my Test to Staging environments, I am seeing the following exception. I have never seen it before:
error:Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [8216d51c-1de3-4eed-99f1-e6de65513bc6] from provider [e047259a-e73b-11df-9492-0800200c9a66]. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentPropertyDataItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.V6.NHibernate\Persisters\ContentPropertyData.cs:line 150 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.ItemProviders.MediaPropertyItemProvider.HandlePack(ItemIdentifier id) 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.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() 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) 25/06/2014 16:06:49
I am using Umbraco 6.1.5 and Courier 2.something (not sure of the exact version, how can I tell?)
It's kind of crucial that I fix this but I have googled my hardest and found a whole load of nothing. Otherwise our poor content manager is going to have a hell of a time migrating all of our changes to 2x environments...
Hmmm. Not an expert yet, but I think that provider guid belongs to the media items. I dug around in the courier directory on one of our dev sites we have courier installed on. In the files inside this directory: App_Data/courier/cache/revision/media/ I found things like the following xml. Does knowing the problem is in the media directory help at all? Good luck. Have you tried things like clicking on the media in question and resaving them? Maybe something was corrupted?
Thanks, that did help me find something suspicious-looking. In that media folder there is a file that stands out because its name isn't a GUID, but in that file there is the string:
The file's name is "media1341465entrepreneurship-d8e6ad87-e73a-11df-9492-0800200c9a66" so I think that Courier has hit upon an issue with this particular file and perhaps can't find it in this folder.
I will try renaming the file to what I think it should be, and see if that fixes the issue
Interestingly the original mis-named file got recreated so I assume there is something going on where Courier can't deduce the GUID properly. Anyway it works for me now, hopefully this is useful for someone else (or possibly me when it goes wrong again...)
Umbraco.Courier.Core.Exceptions.RetrieveException
Hi,
When trying to courier anything from my Test to Staging environments, I am seeing the following exception. I have never seen it before:
error:Umbraco.Courier.Core.Exceptions.RetrieveException: Error retrieving item [8216d51c-1de3-4eed-99f1-e6de65513bc6] from provider [e047259a-e73b-11df-9492-0800200c9a66]. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Umbraco.Courier.Persistence.V6.NHibernate.Persisters.ContentPropertyDataItem.RetrieveItem[T](ItemIdentifier itemId) in c:\Program Files (x86)\teamcity\buildAgent\work\650bafc4b83aa858\Core\Umbraco.Courier.Persistence.V6.NHibernate\Persisters\ContentPropertyData.cs:line 150 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.ItemProviders.MediaPropertyItemProvider.HandlePack(ItemIdentifier id) 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.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() at Umbraco.Courier.Core.Packaging.RevisionPackaging.PackageBatch() 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) 25/06/2014 16:06:49
I am using Umbraco 6.1.5 and Courier 2.something (not sure of the exact version, how can I tell?)
It's kind of crucial that I fix this but I have googled my hardest and found a whole load of nothing. Otherwise our poor content manager is going to have a hell of a time migrating all of our changes to 2x environments...
Hmmm. Not an expert yet, but I think that provider guid belongs to the media items. I dug around in the courier directory on one of our dev sites we have courier installed on. In the files inside this directory: App_Data/courier/cache/revision/media/ I found things like the following xml. Does knowing the problem is in the media directory help at all? Good luck. Have you tried things like clicking on the media in question and resaving them? Maybe something was corrupted?
Thanks, that did help me find something suspicious-looking. In that media folder there is a file that stands out because its name isn't a GUID, but in that file there is the string:
<CourierFileName>8216d51c-1de3-4eed-99f1-e6de65513bc6</CourierFileName>
The file's name is "media1341465entrepreneurship-d8e6ad87-e73a-11df-9492-0800200c9a66" so I think that Courier has hit upon an issue with this particular file and perhaps can't find it in this folder.
I will try renaming the file to what I think it should be, and see if that fixes the issue
That worked :) I also had to replace this node in the XML file:
->
Interestingly the original mis-named file got recreated so I assume there is something going on where Courier can't deduce the GUID properly. Anyway it works for me now, hopefully this is useful for someone else (or possibly me when it goes wrong again...)
is working on a reply...