Panic, exception while loading cache data
m
I'm getting the following error when starting up my Umbraco site, does anyone have any pointers in where to look?
Copy code
System.InvalidOperationException: No data for media 1120
   at Umbraco.Cms.Infrastructure.PublishedCache.Persistence.NuCacheContentRepository.CreateMediaNodeKit(ContentSourceDto dto, IContentCacheDataSerializer serializer)
   at Umbraco.Cms.Infrastructure.PublishedCache.Persistence.NuCacheContentRepository.GetAllMediaSources()+MoveNext()
   at Umbraco.Extensions.EnumerableExtensions.InGroupsOf[T](IEnumerable`1 source, Int32 groupSize)+MoveNext()
   at Umbraco.Cms.Infrastructure.PublishedCache.ContentStore.SetAllFastSortedLocked(IEnumerable`1 kits, Int32 kitGroupSize, Boolean fromDb)
d
First thing you could try is to delete the nucache. Inside your project root, there is an Umbraco folder and inside there is a data folder and then a TEMP folder. You can try deleting the TEMP folder.
m
I've had a look, but it doesn't seem that the NuCache file exists.
Got it fixed by adding an eventhandler to the Started event and manually calling the IPublishedSnapshotService Rebuild action, as that wasn't possible from the UI
302 Views