2 Replies Latest reply on Feb 9, 2013 9:01 AM by Pravin Chikhale

    baseline-update Error:- Utility 'emgr_update_set_post_forge_dims' failed

    989784
      I am trying to crawl a web site, store the results in a record store and index them. Crawl completes successfully but while running a base line I get the following error.

      ./baseline_update.sh
      [02.08.13 04:49:55] INFO: Checking definition from AppConfig.xml against existing EAC provisioning.
      [02.08.13 04:49:56] INFO: Definition has not changed.
      [02.08.13 04:49:56] INFO: Starting baseline update script.
      [02.08.13 04:49:56] INFO: Acquired lock 'update_lock'.
      [02.08.13 04:49:56] INFO: [ITLHost] Starting shell utility 'cleanDir_processing'.
      [02.08.13 04:49:57] INFO: [ITLHost] Starting shell utility 'cleanDir_forge-output'.
      [02.08.13 04:49:57] INFO: [ITLHost] Starting shell utility 'cleanDir_dgidx-output'.
      [02.08.13 04:49:59] INFO: [ITLHost] Starting shell utility 'move_-toprocessing'.
      [02.08.13 04:50:00] INFO: [ITLHost] Starting copy utility 'fetch_config_to_input_for_forge_Forge'.
      [02.08.13 04:50:00] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_ConfigurationGeneratorForge'.
      [02.08.13 04:50:00] INFO: [ITLHost] Starting component 'ConfigurationGeneratorForge'.
      [02.08.13 04:50:30] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Forge'.
      [02.08.13 04:50:30] INFO: [ITLHost] Starting component 'Forge'.
      [02.08.13 04:50:40] INFO: [ITLHost] Starting backup utility 'backup_log_dir_for_component_Dgidx'.
      [02.08.13 04:50:41] INFO: [ITLHost] Starting component 'Dgidx'.
      [02.08.13 04:50:51] INFO: [AuthoringMDEXHost] Starting shell utility 'cleanDir_local-dgraph-input'.
      [02.08.13 04:50:52] INFO: [AuthoringMDEXHost] Starting copy utility 'copy_index_to_host_AuthoringMDEXHost_AuthoringDgraph'.
      [02.08.13 04:50:53] INFO: Applying index to dgraphs in restart group 'A'.
      [02.08.13 04:50:53] INFO: [AuthoringMDEXHost] Starting shell utility 'mkpath_dgraph-input-new'.
      [02.08.13 04:50:54] INFO: [AuthoringMDEXHost] Starting copy utility 'copy_index_to_temp_new_dgraph_input_dir_for_AuthoringDgraph'.
      [02.08.13 04:50:56] INFO: [AuthoringMDEXHost] Starting shell utility 'move_dgraph-input_to_dgraph-input-old'.
      [02.08.13 04:50:56] INFO: [AuthoringMDEXHost] Starting shell utility 'move_dgraph-input-new_to_dgraph-input'.
      [02.08.13 04:50:57] INFO: [AuthoringMDEXHost] Starting backup utility 'backup_log_dir_for_component_AuthoringDgraph'.
      [02.08.13 04:50:58] INFO: [AuthoringMDEXHost] Starting component 'AuthoringDgraph'.
      [02.08.13 04:51:04] INFO: Publishing Workbench 'authoring' configuration to MDEX 'AuthoringDgraph'
      [02.08.13 04:51:04] INFO: Pushing authoring content to dgraph: AuthoringDgraph
      [02.08.13 04:51:05] INFO: Finished pushing content to dgraph.
      [02.08.13 04:51:05] INFO: [AuthoringMDEXHost] Starting shell utility 'rmdir_dgraph-input-old'.
      [02.08.13 04:51:05] INFO: [LiveMDEXHostA] Starting shell utility 'cleanDir_local-dgraph-input'.
      [02.08.13 04:51:07] INFO: [LiveMDEXHostA] Starting copy utility 'copy_index_to_host_LiveMDEXHostA_DgraphA1'.
      [02.08.13 04:51:08] INFO: Applying index to dgraphs in restart group '1'.
      [02.08.13 04:51:08] INFO: [LiveMDEXHostA] Starting shell utility 'mkpath_dgraph-input-new'.
      [02.08.13 04:51:08] INFO: [LiveMDEXHostA] Starting copy utility 'copy_index_to_temp_new_dgraph_input_dir_for_DgraphA1'.
      [02.08.13 04:51:10] INFO: [LiveMDEXHostA] Starting shell utility 'move_dgraph-input_to_dgraph-input-old'.
      [02.08.13 04:51:11] INFO: [LiveMDEXHostA] Starting shell utility 'move_dgraph-input-new_to_dgraph-input'.
      [02.08.13 04:51:11] INFO: [LiveMDEXHostA] Starting backup utility 'backup_log_dir_for_component_DgraphA1'.
      [02.08.13 04:51:11] INFO: [LiveMDEXHostA] Starting component 'DgraphA1'.
      [02.08.13 04:51:21] INFO: Publishing Workbench 'live' configuration to MDEX 'DgraphA1'
      [02.08.13 04:51:21] INFO: Pushing live content to dgraph: DgraphA1
      [02.08.13 04:51:21] INFO: Finished pushing content to dgraph.
      [02.08.13 04:51:21] INFO: [LiveMDEXHostA] Starting shell utility 'rmdir_dgraph-input-old'.
      [02.08.13 04:51:22] INFO: [ITLHost] Starting shell utility 'cleanDir_temp'.
      [02.08.13 04:51:23] INFO: [ITLHost] Starting copy utility 'fetch_post_forge_dimensions_to_ws_temp_dir_-usr-local-endeca-apps-PeapodProd-data-workbench-temp'.
      [02.08.13 04:51:23] INFO: Uploading post-Forge Dimensions to Workbench.
      [02.08.13 04:51:23] INFO: [ITLHost] Starting shell utility 'emgr_update_set_post_forge_dims'.
      [02.08.13 04:51:24] SEVERE: Utility 'emgr_update_set_post_forge_dims' failed. Refer to utility logs in [ENDECA_CONF]/logs/shell on host ITLHost.
      Occurred while executing line 34 of valid BeanShell script:
      [[

      31| // Upload the generated dimension values to Workbench
      32| WorkbenchManager.cleanDirs();
      33| Forge.getPostForgeDimensions();
      34| WorkbenchManager.updateWsDimensions();
      35|
      36| // Upload the generated config to Workbench
      37| WorkbenchManager.updateWsConfig();

      ]]

      [02.08.13 04:51:24] 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.EacComponentControlException
      com.endeca.soleng.eac.toolkit.utility.Utility run - Utility 'emgr_update_set_post_forge_dims' failed. Refer to utility logs in [ENDECA_CONF]/logs/shell on host ITLHost.

      [02.08.13 04:51:24] INFO: Released lock 'update_lock'.
      ---------------------------------------------
      [ENDECA_CONF]/logs/shell contains
      ERROR: Could not open acquire_lock.status.
      -----------------

      I get following error while running initialize_services.sh.

      [02.08.13 05:57:11] INFO: Finished uploading contents.
      Finished importing editors configuration
      Importing templates...
      Removing existing cartridge templates for PeapodProd
      ERROR: Could not open acquire_lock.status.
      Failed to import templates.
      --------------------------------
      My Env: CentOS VM, CAS/Tools Framework 3.1.1, PlatformServices 6.1.3, MDEX 6.4.0.
      Any one had similar experiences? Any help on how to resolve? - Thanks.
        • 1. Re: baseline-update Error:- Utility 'emgr_update_set_post_forge_dims' failed
          989043
          Greetings,
          I have had similar issues. I go to the workbench / applilcation setting / resource locks
          There you can release any locks that are present and then rerun your baseline. Here are a couple of helpful commands:

          from /opt/isv/endeca/apps/SuperSKU/control
          ./runcommand.sh --print-status
          ./runcommand.sh --help (Shows all the options)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
          • 2. Re: baseline-update Error:- Utility 'emgr_update_set_post_forge_dims' failed
            Pravin Chikhale
            Check if the user you are using to run script have read/write permission to all directories.
            Also you can use below command to remove the lock

            *eaccmd   remove-all-flags  --app  <app_id>*

            And make sure you are not doing any changes in workbench while running baseline, as it will lock the session for workbench user.

            HTH

            -Pravin