2017-04-26 81 views
3

我们有一个在Azure Web应用程序上托管的Umbraco网站(版本7.5.11)。Umbraco:Azure Web应用程序出现意外的网络错误

我们间歇性地遇到以下异常(过去3周内有3次)。一旦发生异常,它会将网站关闭,直到我们重新发布Umbraco中的主节点。在其他任何时候,网站都按预期工作,包括从服务器检索图像文件。

异常类型:IOException的

异常消息:发生意外的网络错误。在Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey,Func1 getCacheItem,Nullable1)上的Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey,Func1 getCacheItem,Nullable1 timeout,Boolean isSliding,CacheItemPriority priority,CacheItemRemovedCallback removedCallback,CacheDependency dependency) ()方法返回一个数据类型,这个数据类型可以是一个数组,在Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetCacheValues(Int32 id,Func2 func)at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id)at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetById(UmbracoContext umbracoConte在Umbraco.Web.PublishedContentQuery上的Umbraco.Web.PublishedContentQuery.DocumentById(Int32 id,ContextualPublishedCache缓存,对象ifNotFound)上的Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetById(布尔预览,Int32 contentId) Media(Int32 id)at Umbraco.Web.UmbracoHelper.Media(String id)

媒体文件存在,并重新发布主节点使网站重新联机。

在发生异常时,没有部署代码更改,也没有在Umbraco中更新/发布页面。

有没有人经历过类似的事情,或者有什么想法是什么根源?

回答

4

根据PublishedMediaCache.cs的源代码,异常通常是由以下问题引起的。

检查索引已损坏。

这是一个关于您的问题的umbraco论坛的主题。

Examine corruption issues

而且here is the solution从@Shannon Deminick这个问题。

如果您正在使用Azure的web应用程序,而不是自动缩放,您应该使用这些设置:

  1. useTempStorage =“同步”
  2. 使用此功能可以存储本地索引文件:http://issues.umbraco.org/issue/U4-7614
  3. 从指数路径
  4. RebuildOnAppStart =“真”删除{}计算机名令牌 - 因为这应该只发生一次

如果您正在使用Azure的web应用程序,并负载均衡W /自动缩放您的前端工作人员则:

  1. useTempStorage =“同步”
  2. 使用此功能可以存储在本地索引文件:http://issues.umbraco.org/issue/U4-7614
  3. 你必须有{}计算机名令牌从指数路径
  4. RebuildOnAppStart =“真” - 这样,当新网站上线,它们的索引是建立
  5. ...是在某些情况下,这可能不是理想请参阅:https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/74731-examine-corruption-issues#comment-244293
相关问题