constellation4sitecore / constellation-sitecore9

A collection of Sitecore 9 compatible, helix-conforming libraries for accelerated Sitecore development
MIT License
18 stars 12 forks source link

Redirect Manager installation issue 10.1.1.34356 #8

Open KunalSoniDev opened 2 years ago

KunalSoniDev commented 2 years ago

I have installed Constellation.Feature.Redirects (10.1.1.34356) from nuget package manager. after installation and publish to CM instance

i have verified that config file from feature and foundation has been moved. after that i got an error for "Constellation-Feature-Redirects-Items.zip" so i have put it under App_Data\packages as of now i am blocked with below error

[Exception: Item Install mode is undefined (method: Sitecore.Install.Items.ItemInstaller.GetVersionInstallMode(PackageEntry entry, ItemReference reference, XmlVersionParser parser, ItemInstallerContext context, Boolean& removeVersions)).] Sitecore.Diagnostics.Error.Raise(String error, String method) +133 Sitecore.Install.Items.ItemInstaller.InstallItem(BehaviourOptions installOptions, Item targetItem, ItemReference item, XmlVersionParser parser, Boolean& removeVersions) +583 Sitecore.Install.Items.ItemInstaller.GetVersionInstallMode(PackageEntry entry, ItemReference reference, XmlVersionParser parser, ItemInstallerContext context, Boolean& removeVersions) +375 Sitecore.Install.Items.ItemInstaller.InstallEntry(PackageEntry entry) +1318 Sitecore.Install.Items.ItemInstaller.Flush() +156 Sitecore.Install.Framework.SinkDispatcher.Flush() +105 Sitecore.Install.Utils.EntrySorter.Flush() +234 Sitecore.Install.Zip.<>c__DisplayClass9_0.<Populate>b__0(ZipFile file) +366 Sitecore.IO.<>c__DisplayClass4_0.<UsingZipFile>b__0(ZipFile file) +18 Sitecore.IO.DefaultZipUtil.UsingZipFile(String filePath, Func2 action) +178 Sitecore.Install.Utils.EntrySorter.Populate(ISink1 sink) +86 Sitecore.Install.Installer.InstallPackage(String path, Boolean registerInstallation, ISource1 source, IProcessingContext context) +445 Sitecore.Install.Installer.InstallPackage(String path, IProcessingContext context) +107 Constellation.Foundation.PackageVerification.PackageProcessor.InstallPackage(String packageFileName) +536 Constellation.Foundation.PackageVerification.PackageProcessor.Process() +147 Constellation.Foundation.PackageVerification.Pipelines.Initialize.PackageVerifier.Process(PipelineArgs args) +689 (Object , Object ) +9 Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +490 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists) +236 Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) +22 Sitecore.Nexus.Web.HttpModule.Application_Start() +146 Sitecore.Nexus.Web.HttpModule.Init(HttpApplication app) +918 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +584 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +168 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +277 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +369

[HttpException (0x80004005): Item Install mode is undefined (method: Sitecore.Install.Items.ItemInstaller.GetVersionInstallMode(PackageEntry entry, ItemReference reference, XmlVersionParser parser, ItemInstallerContext context, Boolean& removeVersions)).] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +724`

image

@sitecorerick @richardl1

sitecorerick commented 2 years ago

I have not seen this issue on any other deployments.

  1. Try re-installing Sitecore and deploying again.
  2. Make sure your Sitecore version is 10.1.x, this package was compiled specifically for that version.

When you say the zip file was moved, moved to where?

KunalSoniDev commented 2 years ago

i have tried several time to installing this module. we are using 10.1.1 i have moved that zip file to "App_Data\packages"

KunalSoniDev commented 2 years ago

@sitecorerick i have tried to install it in fresh sitecore instance but still getting this error. image

sitecorerick commented 2 years ago

Ok I have seen this error on a few unusual Sitecore installs. Here's how to fix it:

  1. _In /App_Config/Include/Feature/Constellation.Feature.Redirects.config file:_ Comment out lines 66-71, which should correspond to the <initialize/> element.
  2. _In /App_Config/Include/Feature/Constellation.Feature.Redirects.config file:_ Comment out lines 99-018, which should correspond to the <packageVerifier/> element.

Manually install Constellation-Feature-Redirects-Items.zip using the Sitecore Package Installer on the Sitecore Desktop.

At this point the DLLS and Files should be in place to run the application from within the Desktop, and the Items required to store Redirect information should also be installed.

Note: Your system needs to be able to return a "200" response to any Redirect you create. If you have bugs in your system and are getting 500s, the Redirect Manager will not let you create a Redirect. Make sure your site works first.

Redirect Manager does not support wildcards. If you need wildcard redirects, use IIS UrlRewrite 2.1, which is installed as part of Sitecore's installation scripts.

If the Redirect Manager interface does not seem to be working, rebuild your Master index. If the Master index is not healthy, the Redirect Manager interface (which relies on buckets) will not work.

UffeHammer commented 1 year ago

I had same issue on Sitecore 10.3, so it must be a general thing..