Getting error when importing site

  1. Home
  2. Blog
  3. Getting error when importing site

Getting error when importing site

While performing activity for importing site to XM, sometime we get error like one below. This is because the .xml file that is created from site export process has application name hardcoded throughout exported xml.  When we try to import, there is a conflict with application name on target and site_import fails.

[mydemo@localhost control]$ sh import_site.sh DemoStore.xml
[04.02.15 12:07:26] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
[04.02.15 12:07:28] INFO: Definition has not changed.
Application 'DemoStore' already exists in IFCR. Delete existing content and continue? [Y/N]:
y
[04.02.15 12:07:31] INFO: Upgrading xml file...
[04.02.15 12:07:31] INFO: Backing up export file...
[04.02.15 12:07:31] INFO: Creating upgraded export file...
[04.02.15 12:07:34] INFO: Removing backup file...
[04.02.15 12:07:34] INFO: Backing up existing content to: /endeca/apps/DemoStore/control/backup_DemoStore_4498402113840547525.xml
[04.02.15 12:07:34] INFO: Deleting old content: http://locahost:8006/ifcr/sites/DemoStore
[04.02.15 12:07:35] INFO: Importing new content...
[04.02.15 12:07:49] SEVERE: Import failed.  Restoring from backup...

Caused by com.endeca.soleng.eac.toolkit.utility.IFCRUtility$HttpStatusException
com.endeca.soleng.eac.toolkit.utility.IFCRUtility execute - Internal Server Error (500): javax.jcr.RepositoryException: java.io.IOException: Stream Closed

[04.02.15 12:07:49] INFO: Deleting temporary backup file...

Resolution is simple just verify application name and hostname are appropriate as per the new server environment.

1 2 3 20
Let's Share
Show Buttons
Hide Buttons