【问题标题】:Umbraco: An unexpected network error on Azure Web AppsUmbraco:Azure Web 应用程序出现意外网络错误
【发布时间】:2017-04-26 08:56:35
【问题描述】:

我们在 Azure Web Apps 上托管了一个 Umbraco 网站(版本 7.5.11)。

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

异常类型:IOException

异常消息:发生了意外的网络错误。在 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1 timeout, Boolean isSliding, CacheItemPriority 优先级, CacheItemRemovedCallback removedCallback, CacheDependency 依赖) 在 Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, Func1 getCacheItem, Nullable1超时,布尔 isSliding,CacheItemPriority 优先级,CacheItemRemovedCallback removedCallback,String[]dependentFiles) 在 Umbraco.Core.Cache.DeepCloneRuntimeCacheProvider.GetCacheItem(String cacheKey,Func1 getCacheItem,Nullable1 超时,布尔 isSliding,CacheItemPriority 优先级,CacheItemRemovedCallback removedCallback,String[]dependentFiles)在 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetCacheValues(Int32 id, Func2 func) 在 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id) 在 Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetById(UmbracoContext umbracoConte xt, Boolean preview, Int32 nodeId) at Umbraco.Web.PublishedCache.ContextualPublishedCache1.GetById(Boolean preview, Int32 contentId) at Umbraco.Web.PublishedContentQuery.DocumentById(Int32 id, ContextualPublishedCache cache, Object ifNotFound) at Umbraco.Web.PublishedContentQuery。 Umbraco.Web.UmbracoHelper.Media(String id) 处的媒体(Int32 id)

媒体文件存在,重新发布主节点使网站重新上线。

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

有没有人经历过类似的事情,或者知道根本原因是什么?

【问题讨论】:

    标签: azure umbraco azure-web-app-service umbraco7


    【解决方案1】:

    根据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. 从索引路径中删除 {machinename} 令牌
    4. RebuildOnAppStart="true" - 因为这只应该发生一次

    如果您正在使用 Azure Web 应用程序并且正在使用自动缩放前端工作人员进行负载平衡,那么:

    1. useTempStorage="同步"
    2. 使用此功能存储本地索引文件:http://issues.umbraco.org/issue/U4-7614
    3. 您的索引路径中必须有 {machinename} 令牌
    4. RebuildOnAppStart="true" - 这样当新网站上线时,它们的索引就会建立
    5. ...是的,在某些情况下这可能并不理想,请参阅:https://our.umbraco.org/forum/extending-umbraco-and-using-the-api/74731-examine-corruption-issues#comment-244293

    【讨论】:

      猜你喜欢
      • 2018-03-26
      • 2015-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-12
      • 2022-01-21
      • 1970-01-01
      相关资源
      最近更新 更多