6 Replies Latest reply: Sep 6, 2012 10:02 AM by 953835 RSS

    Problems with Inital Setup on EC2 Box

    934129
      Hello,

      Ive installed the following on a EC2 instance:

      iapworkbench_x86_64pc-linux_2.1.1
      mdex_621_x86_64pc-linux
      platformservices_611585993_x86_64pc-linux

      I then used the deplyment template 3.2.2

      When i try and kick off the baseline i get the following issues:


      [root@ip-10-58-227-88 control]# ./initialize_services.sh
      Removing existing application provisioning...
      [05.01.12 08:50:58] INFO: Removing application. Any active components will be forced to stop.
      [05.01.12 08:50:59] INFO: Application 'morrisonsCRM' is not defined.
      Setting EAC provisioning and performing initial setup...
      [05.01.12 08:51:01] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
      [05.01.12 08:51:02] INFO: Setting definition for application 'morrisonsCRM'.
      [05.01.12 08:51:43] INFO: Setting definition for host 'ITLHost'.
      [05.01.12 08:51:43] INFO: Setting definition for host 'MDEXHost'.
      [05.01.12 08:51:44] INFO: Setting definition for host 'webstudio'.
      [05.01.12 08:51:44] INFO: Setting definition for script 'BaselineUpdate'.
      [05.01.12 08:51:44] INFO: Setting definition for script 'PartialUpdate'.
      [05.01.12 08:51:44] INFO: Setting definition for script 'ConfigUpdate'.
      [05.01.12 08:51:44] INFO: Setting definition for custom component 'ConfigManager'.
      [05.01.12 08:51:44] INFO: Updating provisioning for host 'ITLHost'.
      [05.01.12 08:51:44] INFO: Updating definition for host 'ITLHost'.
      [05.01.12 08:51:45] INFO: [ITLHost] Starting shell utility 'mkpath_dgraph-config'.
      [05.01.12 08:51:46] INFO: [ITLHost] Starting shell utility 'mkpath_temp'.
      [05.01.12 08:51:46] INFO: [ITLHost] Starting shell utility 'mkpath_complete-index-config'.
      [05.01.12 08:51:47] INFO: [ITLHost] Starting shell utility 'mkpath_config'.
      [05.01.12 08:51:48] INFO: Setting definition for component 'Forge'.
      [05.01.12 08:51:49] INFO: [ITLHost] Starting shell utility 'mkpath_incoming'.
      [05.01.12 08:51:50] INFO: Setting definition for component 'PartialForge'.
      [05.01.12 08:51:50] INFO: [ITLHost] Starting shell utility 'mkpath_incoming'.
      [05.01.12 08:51:51] INFO: [ITLHost] Starting shell utility 'mkpath_cumulative-partials'.
      [05.01.12 08:51:52] INFO: Setting definition for component 'Dgidx'.
      [05.01.12 08:51:53] INFO: Setting definition for component 'Dgraph1'.
      [05.01.12 08:52:00] INFO: [MDEXHost] Starting shell utility 'mkpath_local-dgraph-input'.
      [05.01.12 08:52:10] INFO: [MDEXHost] Starting shell utility 'mkpath_local-cumulative-partials'.
      [05.01.12 08:52:12] INFO: [MDEXHost] Starting shell utility 'mkpath_local-dgraph-config'.
      [05.01.12 08:52:13] INFO: [MDEXHost] Starting shell utility 'mkpath_local-xquery'.
      [05.01.12 08:52:15] INFO: Setting definition for component 'Dgraph2'.
      [05.01.12 08:52:16] INFO: Setting definition for component 'LogServer'.
      [05.01.12 08:52:17] INFO: [ITLHost] Starting shell utility 'mkpath_input'.
      [05.01.12 08:52:19] INFO: Setting definition for script 'DailyReports'.
      [05.01.12 08:52:20] INFO: Setting definition for script 'WeeklyReports'.
      [05.01.12 08:52:30] INFO: Setting definition for script 'DailyHtmlReports'.
      [05.01.12 08:52:31] INFO: Setting definition for script 'WeeklyHtmlReports'.
      [05.01.12 08:52:31] INFO: Setting definition for component 'WeeklyReportGenerator'.
      [05.01.12 08:52:32] INFO: Setting definition for component 'DailyReportGenerator'.
      [05.01.12 08:52:33] INFO: Setting definition for component 'WeeklyHtmlReportGenerator'.
      [05.01.12 08:52:34] INFO: Setting definition for component 'DailyHtmlReportGenerator'.
      [05.01.12 08:52:35] INFO: Definition updated.
      [05.01.12 08:52:35] INFO: Updating IAP Workbench configuration...
      [05.01.12 08:52:35] INFO: Downloading config files from Web Studio.
      [05.01.12 08:52:35] INFO: [ITLHost] Starting shell utility 'emgr_update_get_ws_settings'.
      [05.01.12 08:52:36] INFO: Retrieving Dev Studio configuration.
      [05.01.12 08:52:36] INFO: [ITLHost] Starting copy utility 'fetch_dev_studio_config'.
      [05.01.12 08:52:38] INFO: Retrieving Web Studio configuration.
      [05.01.12 08:52:38] INFO: Uploading config files to Web Studio.
      [05.01.12 08:52:38] INFO: [ITLHost] Starting shell utility 'emgr_update_update_mgr_settings'.
      [05.01.12 08:53:00] INFO: Finished updating IAP Workbench.
      Finished updating EAC.
      [root@ip-10-58-227-88 control]# ./load_baseline_test_data.sh
      Setting flag 'baseline_data_ready' in the EAC.
      [root@ip-10-58-227-88 control]# ./baseline_update.sh
      [05.01.12 08:56:29] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
      [05.01.12 08:56:31] INFO: Definition has not changed.
      [05.01.12 08:56:31] INFO: Starting baseline update script.
      [05.01.12 08:56:31] INFO: Acquired lock 'update_lock'.
      [05.01.12 08:56:32] INFO: Downloading config files from Web Studio.
      [05.01.12 08:56:32] INFO: [ITLHost] Starting shell utility 'emgr_update_get_ws_settings'.
      [05.01.12 08:56:34] INFO: [ITLHost] Starting shell utility 'cleanDir_complete-index-config'.
      [05.01.12 08:56:36] INFO: Retrieving Dev Studio configuration.
      [05.01.12 08:56:36] INFO: [ITLHost] Starting copy utility 'fetch_dev_studio_config'.
      [05.01.12 08:56:36] INFO: Retrieving Web Studio configuration.
      [05.01.12 08:56:36] INFO: [ITLHost] Starting copy utility 'fetch_web_studio_config_file_morrisonsCRM.thesaurus.xml'.
      [05.01.12 08:56:36] INFO: [ITLHost] Starting copy utility 'fetch_web_studio_config_file_morrisonsCRM.merch_rule_group_default.xml'.
      [05.01.12 08:56:37] INFO: [ITLHost] Starting copy utility 'fetch_web_studio_config_file_morrisonsCRM.merch_rule_group_default_redirects.xml'.
      [05.01.12 08:56:37] INFO: [ITLHost] Starting shell utility 'move_-toprocessing'.
      [05.01.12 08:56:39] INFO: [ITLHost] Starting copy utility 'fetch_config_to_input_for_forge_Forge'.
      [05.01.12 08:56:40] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Forge'.
      [05.01.12 08:56:40] INFO: [ITLHost] Starting component 'Forge'.
      [05.01.12 08:57:10] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Dgidx'.
      [05.01.12 08:57:10] INFO: [ITLHost] Starting component 'Dgidx'.
      [05.01.12 08:57:10] SEVERE: Error communicating with EAC agent while starting component.
      Occurred while executing line 32 of valid BeanShell script:
      [[

      29| Forge.archiveLogDir();
      30| Forge.run();
      31| Dgidx.archiveLogDir();
      32| Dgidx.run();
      33|
      34| // distributed index, update Dgraphs
      35| DistributeIndexAndApply.run();

      ]]

      [05.01.12 08:57:10] SEVERE: Caught an exception while invoking method 'run' on object 'BaselineUpdate'. Releasing locks.

      Caused by java.lang.reflect.InvocationTargetException
      sun.reflect.NativeMethodAccessorImpl invoke0 - null
      Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException
      com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript - Error executing valid BeanShell script.
      Caused by com.endeca.soleng.eac.toolkit.exception.EacCommunicationException
      com.endeca.soleng.eac.toolkit.component.Component start - Error communicating with EAC agent while starting component.
      Caused by com.endeca.eac.client.EACFault
      sun.reflect.NativeConstructorAccessorImpl newInstance0 - null

      [05.01.12 08:57:10] INFO: Released lock 'update_lock'.


      All my environment variable have been setup.

      Any ideas?

      Thanks
      Ben
        • 1. Re: Problems with Inital Setup on EC2 Box
          934562
          ditto, from the error i'm asuming the permissions on the log directory is wrong, but where... grepin...

          update:
          forge run works fine, commenting out dgidx run and dirst run enables the script to run... will post once located exactly what the issue is in the run, probably something simple... :(

          Edited by: 931559 on 02-May-2012 08:08

          update:
          doesn't make sense how it can be an eac communication error, both us ITLHost, i tried changing the hostname definition... still fails...

          Edited by: 931559 on 02-May-2012 08:22

          ok so it was caused by;
          eac.properties does not contain a valid ENDECA_MDEX_ROOT definition

          the environment variable was not sufficient apparently...

          Edited by: 931559 on 02-May-2012 08:32
          • 2. Re: Problems with Inital Setup on EC2 Box
            934129
            Where is the EAC.properties script?
            • 3. Re: Problems with Inital Setup on EC2 Box
              Kristen G-Oracle
              eac.properties is in the workspace/conf directory of your Platform Services install. It includes a property that points to the install location of the MDEX. You are prompted for the MDEX location during installation of Platform Services. If the ENDECA_MDEX_ROOT environment variable is set at the time of the Platform Services install, the install script should default this value for you, otherwise, you'll need to manually determine the path to specify during install, or manually update the file after MDEX is installed (or when upgrading to a new MDEX version).
              ENDECA_MDEX_ROOT gets set when running the MDEX setup script after installation
              e.g.
              source endeca/MDEX/<version>/mdex_setup_sh.ini
              on linux.

              Edited by: Kristen F on May 2, 2012 12:28 PM
              • 4. Re: Problems with Inital Setup on EC2 Box
                942020
                I do have the same error and I did follow the step by setting the ENDECA_MDEX_ROOT but I still have the same error any suggestion
                • 5. Re: Problems with Inital Setup on EC2 Box
                  Kristen G-Oracle
                  Hi. Have you checked the logs for the specific component (forge or dgidx) within your app's directory (e.g. c:\apps\wine)? Each component has it's own log and will usually included the specific error.
                  • 6. Re: Problems with Inital Setup on EC2 Box
                    953835
                    Had the same problem of the load data script complaining about not finding ENDECA_MDEX_ROOT in eac.properties.
                    Recycled PlatformServices and the changes to eac.properties were picked up.

                    Edited by: EndecaJoe on Sep 6, 2012 8:01 AM