【问题标题】:Sitefinity starts upgrade after deploying to production serverSitefinity 部署到生产服务器后开始升级
【发布时间】:2021-02-17 21:27:45
【问题描述】:

我们正在将现有的 Sitefinity 10.x 网站迁移到新的托管服务提供商,但遇到了一系列问题。

首先,我们将站点从当前主机备份并恢复到本地开发环境,并在大约 10 分钟内启动并运行 - 没有问题。

我们再次备份所有内容,然后按照以下说明在共享托管环境中部署到新的托管服务提供商:https://www.progress.com/documentation/sitefinity-cms/deploy-projects-to-shared-hosting

结果是 Sitefinity 似乎以某种方式认为它需要安装/升级并最终导致抛出异常循环,在 App_Data 的 Logs 目录中创建非常大的文件,包括大小在 6 到 6 之间的 Error 和 UpgradeTrace 日志文件20Mb。

我在这里缺少什么?这通常很容易做到。

这是系统初始化过程输出的一个小示例。

    HandlingInstanceID: a7548528-e50b-4c45-ac31-14997da528e2 An exception of type 'System.Exception' occurred and was caught.   
            ----------------------------------------------------------------   
            11/05/2020 08:30:45 Type : System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message :   
            FAILED : SiteInitializer : Upgrade to 1106 (Upgrade backend pages accessible to all in Backend role) -   
Exception has been thrown by the target of an invocation.   
Source :   
Help link :   
Data : System.Collections.ListDictionaryInternal   
            TargetSite : HResult : -2146233088 Stack Trace : The stack trace is unavailable.   
Additional Info:   
MachineName : --hidden-- TimeStamp : 2020/11/05 6:30:45 AM   
FullName : Telerik.Sitefinity.Utilities, Version=10.0.6400.0, Culture=neutral, PublicKeyToken=b28c218413bdf563   
AppDomainName : /LM/W3SVC/556/ROOT-1-132490314385720168   
ThreadIdentity : Anonymous WindowsIdentity : --hidden\hidden--   
Requested URL : http://127.0.0.1/   
    
    Inner Exception --------------- 
      Type :  System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089   
      Message : Exception has been thrown by the target of an invocation.  
      Source : mscorlib Help link :   
      Data : System.Collections.ListDictionaryInternal  
      TargetSite : System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)  
      HResult : -2146232828    
      Stack Trace :  
        at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   
        at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   
        at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Telerik.Sitefinity.Abstractions.UpgradeMethod.Execute(Object upgradeContext)   
        at Telerik.Sitefinity.Abstractions.SiteInitializer.Upgrade[TUpgradeInfoAttribute](Object instance, Int32 upgradeFrom, Object upgradeContext)   
    Inner Exception --------------- Type :    
    Telerik.Sitefinity.SitefinityExceptions.ItemNotFoundException, Telerik.Sitefinity, Version=10.0.6400.0, Culture=neutral, PublicKeyToken=b28c218413bdf563 Message :   
            
            You are trying to access item that no longer exists. The most probable reason is that it has been deleted by another user.   
            
            Source : Unity_ILEmit_DynamicClasses Help link : Data : System.Collections.ListDictionaryInternal  
            TargetSite : Telerik.Sitefinity.Pages.Model.PageNode GetPageNode(System.Guid) HResult : -2146233088 Stack Trace :   
    at DynamicModule.ns.Wrapped_OpenAccessPageProvider_325400689b95401abccc69f6d0957c5f.GetPageNode(Guid id)   
    at Telerik.Sitefinity.Modules.Pages.PageManager.GetPageNode(Guid id)   
    at Telerik.Sitefinity.Abstractions.SiteInitializer.UpgradeTo1106()
                Expand  08:57:24
                FAILED : SiteInitializer : Upgrade to 1106 (Upgrade backend pages accessible to all in Backend role) - Exception has been thrown by the target of an invocation.
                08:57:24
                Upgrading Progress Sitefinity CMS from build version 1 to 6400.
                08:57:24
                System is initializing...
                08:57:24

【问题讨论】:

  • sitefinity 配置文件和数据库中的版本可能不匹配。此外,您连接到数据库的用户 - 它是否对数据库具有 dbo 权限?

标签: web-deployment shared-hosting sitefinity-10


【解决方案1】:

其实这很简单。

  1. 我将<clear /> 添加到数据配置文件中以删除 machine.config 的 DB 配置。这就是我意识到的地方 数据库还原出了点问题。
  2. 在托管服务提供商站点上使用 SolidCP 我认为数据库恢复 成功了,但结果却是默默地失败了。
  3. ISP 进行了成功的手动恢复
  4. 最后我们将<clear /> 添加到 SiteMapProvider 设置中,因为 ISP 还安装了 MySql 提供程序,如果您不清除 Machine.config 的 SiteMaps 配置,则会导致 Sitefinity 出现问题。

之后一切都按预期进行。

【讨论】:

    猜你喜欢
    • 2019-01-05
    • 1970-01-01
    • 2022-01-15
    • 2023-02-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多