Missing sites in Site Manager
We have both a production and development server that we can test our Geocortex Sites/Viewers on.
I inadvertantly copied the entire sites folder from our production server, to the development server and went to the Essentials Manager on the development server and now the site isn't even showing up in the site list in Manager. Our production/development servers run the same versions of GE and viewers. However, for some reason I can't see any of the sites folders in the sites folders. If I try to create a new site with the same ID as the site that was copied over, I get an error in the log file:
<Event Timestamp="2013-09-05T13:01:29.0258845-04:00" Level="ERROR" Identity="eengstrom"><Message>Error occurred in action 'Index' of controller 'SiteWizard': There are multiple sites with ID "ANR_ANRAv1". This operation is not permitted until this problem is corrected.
Source: Geocortex.Essentials.Configuration
Message: There are multiple sites with ID "ANR_ANRAv1". This operation is not permitted until this problem is corrected.
Stack Trace:
System.AggregateException: There are multiple sites with ID "ANR_ANRAv1". This operation is not permitted until this problem is corrected. ---> System.InvalidOperationException: Sequence contains more than one element
at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception)
at System.Reactive.Linq.QueryLanguage.SingleOrDefaultInternal[TSource](IObservable`1 source, Boolean throwOnEmpty)
at Geocortex.Essentials.Configuration.Caching.CachingSiteConfigServer.SaveSiteConfig(SiteConfig siteConfig, String username)
--- End of inner exception stack trace ---
at Geocortex.Essentials.Configuration.Caching.CachingSiteConfigServer.SaveSiteConfig(SiteConfig siteConfig, String username)
at Geocortex.Essentials.RestManager.Models.Repositories.SiteConfigRepository.SaveSite(SiteConfigInfo configInfo)
at Geocortex.Essentials.RestManager.Controllers.SiteWizardController.Finish(String currentStep)
at Geocortex.Essentials.RestManager.Controllers.WizardController`1.FinishWizard(String currentStep)
at Geocortex.Essentials.RestManager.Controllers.WizardController`1.WizardIndex(String buttonPressed, String currentStep, Nullable`1 finishSubWizard)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
---> (Inner Exception #0) System.InvalidOperationException: Sequence contains more than one element
at System.Reactive.PlatformServices.DefaultExceptionServices.Rethrow(Exception exception)
at System.Reactive.Linq.QueryLanguage.SingleOrDefaultInternal[TSource](IObservable`1 source, Boolean throwOnEmpty)
at Geocortex.Essentials.Configuration.Caching.CachingSiteConfigServer.SaveSiteConfig(SiteConfig siteConfig, String username)<---
</Message></Event>
I've cleared the cache/cookies on the client
I've deleted the Manager cache file
Restarted IIS
I've been looking for a file that may reference old sites and their IDs, I can't find one...
I even replaced the site folder with the original... It STILL will not show up in the Rest Manager.
I don't mind creating a new site, but I think I need it to have the same ID as the original, so that the URL will work. What am I missing here?
-
Looks like I figured it out...
I had placed a backups of the sites in a new folder within the Sites directory. It must parse through nested folders and get confused somehow. I ended up packaging the backup folder into a ZIP and the sites are again visible in Essentials Manager.
0 -
Hi Eric,
You will get this error anytime you have multiple site.xml files anywhere in the Sites folder where the Site ID is the same. Manager will look through all nested folders when compiling the site list.
We're glad you got it working!
-Victoria
0 -
This happened to me as well. Another symptom was when attempting to open the map in a web browser, I was receiving an error ConfigurationLoadFailed/RequestError: Unable to load...
So ya, Essentials Manager get confused if it finds the same site.xml name in the site folder.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare